:root {
  --jk-primary: #2F4A6A;
  --jk-secondary: #27752F;
  --jk-accent: #C8A46A;
  --jk-bg: #f4f6f8;
  --jk-surface: #ffffff;
  --jk-border: #d8e0e8;
  --jk-text: #142335;
  --jk-muted: #657280;
  --jk-radius-lg: 20px;
  --jk-radius-md: 14px;
  --jk-shadow: 0 14px 38px rgba(47, 74, 106, 0.12);
}

.jk-portal-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  min-height: 80vh;
  background: var(--jk-bg);
  border-radius: var(--jk-radius-lg);
  overflow: hidden;
  box-shadow: var(--jk-shadow);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jk-sidebar {
  background: linear-gradient(180deg, var(--jk-primary), #22334a);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.jk-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jk-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.jk-brand strong,
.jk-brand span,
.jk-sidebar-footer a,
.jk-sidebar-footer p {
  color: #fff;
}

.jk-brand span {
  display: block;
  opacity: 0.75;
  font-size: 13px;
}

.jk-nav {
  display: grid;
  gap: 8px;
}

.jk-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.18s ease;
}

.jk-nav-item:hover,
.jk-nav-item:focus-visible,
.jk-nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.jk-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.jk-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jk-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px 18px;
  background: var(--jk-surface);
  border-bottom: 1px solid var(--jk-border);
}

.jk-page-header h1,
.jk-page-header h2,
.jk-card h2,
.jk-card h3,
.jk-login-card h2 {
  color: var(--jk-primary);
  margin-top: 0;
}

.jk-page-subtitle,
.jk-meta-line,
.jk-empty-state p,
.jk-help-list,
.jk-card p,
.jk-card li,
.jk-login-card p {
  color: var(--jk-muted);
}

.jk-content {
  padding: 28px 32px 36px;
  display: grid;
  gap: 24px;
}

.jk-grid {
  display: grid;
  gap: 24px;
}

.jk-grid-2,
.jk-two-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-card,
.jk-login-card,
.jk-repeater-item {
  background: var(--jk-surface);
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-lg);
  box-shadow: var(--jk-shadow);
  padding: 24px;
}

.jk-repeater-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jk-login-card {
  max-width: 520px;
  margin: 40px auto;
}

.jk-login-logo {
  max-width: 240px;
  display: block;
  margin-bottom: 18px;
}

.jk-stat-card strong,
.jk-inline-stats strong {
  color: var(--jk-primary);
  font-size: 34px;
  display: block;
  margin-top: 8px;
}

.jk-eyebrow {
  color: var(--jk-accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.jk-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.jk-primary-button,
.jk-secondary-button,
.jk-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.jk-primary-button {
  background: var(--jk-primary);
  color: #fff;
}

.jk-primary-button:hover,
.jk-primary-button:focus-visible {
  background: #263d58;
  color: #fff;
  outline: none;
}

.jk-secondary-button {
  background: rgba(47, 74, 106, 0.08);
  color: var(--jk-primary);
  border-color: rgba(47, 74, 106, 0.12);
}

.jk-secondary-button:hover,
.jk-secondary-button:focus-visible,
.jk-link-button:hover,
.jk-link-button:focus-visible {
  background: rgba(47, 74, 106, 0.16);
  color: var(--jk-primary);
  outline: none;
}

.jk-link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--jk-primary);
}

.jk-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(47, 74, 106, 0.12);
  color: var(--jk-primary);
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge {
  background: rgba(39, 117, 47, 0.14);
  color: var(--jk-secondary);
}

.jk-badge-revision_requested,
.jk-badge-failed,
.jk-badge-rejected {
  background: rgba(180, 40, 40, 0.12);
  color: #b91c1c;
}

.jk-badge-certificate {
  background: rgba(200, 164, 106, 0.18);
  color: #8b6a33;
}

.jk-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf3;
  margin: 14px 0 10px;
}

.jk-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--jk-secondary), var(--jk-primary));
}

.jk-status-list,
.jk-help-list,
.jk-lesson-list,
.jk-meta-list {
  margin: 0;
  padding-left: 18px;
}

.jk-status-list {
  list-style: none;
  padding-left: 0;
}

.jk-status-list li,
.jk-lesson-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--jk-border);
}

.jk-status-list li:last-child,
.jk-lesson-row:last-child {
  border-bottom: 0;
}

.jk-course-structure {
  display: grid;
  gap: 20px;
}

.jk-module-block {
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-md);
  padding: 18px;
}

.jk-video-wrap {
  margin-bottom: 20px;
}

.jk-video-wrap iframe,
.jk-video-wrap video {
  width: 100%;
  border-radius: 18px;
}

.jk-rich-text {
  color: var(--jk-text);
}

.jk-rich-text p,
.jk-rich-text li {
  color: var(--jk-text);
}

.jk-lesson-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.jk-breadcrumb {
  color: var(--jk-primary);
  text-decoration: none;
}

.jk-locked-text {
  color: var(--jk-muted);
}

.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section {
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-md);
  padding: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.jk-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.jk-form-grid {
  display: grid;
  gap: 16px;
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]),
.jk-form-grid textarea,
.jk-form-grid select,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]),
.jk-repeater-grid textarea,
.jk-repeater-grid select,
.jk-login-card input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--jk-border);
  box-sizing: border-box;
  font: inherit;
  background: #fff;
  color: var(--jk-text);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.jk-form-grid textarea.widefat,
.jk-repeater-grid textarea.widefat {
  min-height: 140px;
  resize: vertical;
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):hover,
.jk-form-grid textarea:hover,
.jk-form-grid select:hover,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):hover,
.jk-repeater-grid textarea:hover,
.jk-repeater-grid select:hover,
.jk-login-card input:hover {
  border-color: #b8c5d3;
  background: #fff;
  box-shadow: none;
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.jk-form-grid textarea:focus,
.jk-form-grid textarea:focus-visible,
.jk-form-grid select:focus,
.jk-form-grid select:focus-visible,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.jk-repeater-grid textarea:focus,
.jk-repeater-grid textarea:focus-visible,
.jk-repeater-grid select:focus,
.jk-repeater-grid select:focus-visible,
.jk-login-card input:focus,
.jk-login-card input:focus-visible {
  outline: none;
  border-color: #b8c5d3;
  box-shadow: 0 0 0 2px rgba(47, 74, 106, 0.08);
  background: #fff;
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):not(:focus):not(:focus-visible),
.jk-form-grid textarea:not(:focus):not(:focus-visible),
.jk-form-grid select:not(:focus):not(:focus-visible),
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):not(:focus):not(:focus-visible),
.jk-repeater-grid textarea:not(:focus):not(:focus-visible),
.jk-repeater-grid select:not(:focus):not(:focus-visible),
.jk-login-card input:not(:focus):not(:focus-visible) {
  box-shadow: none;
}

.jk-login-card .button,
.jk-login-card #wp-submit {
  background: var(--jk-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
}

.jk-notice {
  margin: 0 32px;
  padding: 14px 16px;
  border-left: 4px solid var(--jk-secondary);
  background: rgba(39, 117, 47, 0.12);
  color: var(--jk-secondary);
  font-weight: 600;
}

.jk-repeater-section {
  margin-bottom: 20px;
}

.jk-repeater-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.jk-repeater-items {
  display: grid;
  gap: 18px;
}

.jk-repeater-grid {
  display: grid;
  gap: 16px;
}

.jk-form-grid p,
.jk-repeater-grid p {
  margin: 0;
}

.jk-form-grid label,
.jk-repeater-grid label {
  display: block;
}

.jk-remove-repeater {
  align-self: flex-start;
  margin-top: 4px;
}

.jk-help-list li,
.jk-meta-list li {
  margin-bottom: 8px;
}

@media (max-width: 1080px) {
  .jk-portal-app {
    grid-template-columns: 1fr;
  }

  .jk-peercoach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .jk-sidebar {
    padding-bottom: 16px;
  }

  .jk-grid-2,
  .jk-grid-3,
  .jk-two-column-grid {
    grid-template-columns: 1fr;
  }

  .jk-page-header,
  .jk-content {
    padding: 20px;
  }

  .jk-notice {
    margin: 0 20px;
  }
}

@media (max-width: 640px) {
  .jk-peercoach-grid {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-head,
  .jk-peercoach-peer-name,
  .jk-peercoach-peer-email,
  .jk-peercoach-next-lesson,
  .jk-peercoach-peer-stat strong,
  .jk-peercoach-peer-stat span {
    min-height: 0;
  }

  .jk-card-actions,
  .jk-lesson-header-meta,
  .jk-status-list li,
  .jk-lesson-row,
  .jk-repeater-header,
  .jk-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-primary-button,
  .jk-secondary-button {
    width: 100%;
  }
}


.jk-leadership-grid {
  grid-template-areas:
    "wyrdt aandacht"
    "wyrdt veiligheid"
    "verbinding invloed";
  align-items: start;
}

.jk-leadership-grid .jk-leadership-wyrdt { grid-area: wyrdt; }
.jk-leadership-grid .jk-leadership-aandacht { grid-area: aandacht; }
.jk-leadership-grid .jk-leadership-veiligheid { grid-area: veiligheid; }
.jk-leadership-grid .jk-leadership-invloed { grid-area: invloed; }
.jk-leadership-grid .jk-leadership-verbinding { grid-area: verbinding; }

.jk-leadership-grid .jk-leadership-wyrdt textarea {
  min-height: 180px;
}

@media (max-width: 1080px) {
  .jk-leadership-grid {
    grid-template-areas:
      "wyrdt"
      "aandacht"
      "veiligheid"
      "invloed"
      "verbinding";
    grid-template-columns: 1fr;
  }
}


.jk-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 8px;
}

.jk-profile-actions .jk-primary-button {
  margin-right: 0;
}

.jk-consent-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jk-muted);
  font-weight: 500;
}

.jk-consent-inline input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}

.jk-consent-inline.is-locked {
  opacity: 0.72;
}

.jk-consent-inline.is-locked span {
  color: var(--jk-muted);
}

.jk-profile-consent-status {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--jk-muted);
}

@media (max-width: 640px) {
  .jk-profile-actions {
    align-items: stretch;
  }

  .jk-consent-inline {
    width: 100%;
  }
}

.jk-content .jk-form-grid textarea.widefat,
.jk-content .jk-form-grid textarea.widefat:hover,
.jk-content .jk-form-grid textarea.widefat:focus,
.jk-content .jk-form-grid textarea.widefat:focus-visible,
.jk-content .jk-form-grid input.widefat,
.jk-content .jk-form-grid input.widefat:hover,
.jk-content .jk-form-grid input.widefat:focus,
.jk-content .jk-form-grid input.widefat:focus-visible {
  border-color: var(--jk-border);
}

.jk-content .jk-form-grid textarea.widefat:focus,
.jk-content .jk-form-grid textarea.widefat:focus-visible,
.jk-content .jk-form-grid input.widefat:focus,
.jk-content .jk-form-grid input.widefat:focus-visible {
  border-color: #b8c5d3;
  box-shadow: 0 0 0 2px rgba(47, 74, 106, 0.08);
}

.jk-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.jk-notice {
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.jk-notice.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
}

.jk-content .jk-form-grid textarea.widefat,
.jk-content .jk-form-grid textarea.widefat:hover,
.jk-content .jk-form-grid textarea.widefat:focus,
.jk-content .jk-form-grid textarea.widefat:focus-visible,
.jk-content .jk-form-grid input.widefat,
.jk-content .jk-form-grid input.widefat:hover,
.jk-content .jk-form-grid input.widefat:focus,
.jk-content .jk-form-grid input.widefat:focus-visible,
.jk-content .jk-repeater-grid textarea.widefat,
.jk-content .jk-repeater-grid textarea.widefat:hover,
.jk-content .jk-repeater-grid textarea.widefat:focus,
.jk-content .jk-repeater-grid textarea.widefat:focus-visible,
.jk-content .jk-repeater-grid input.widefat,
.jk-content .jk-repeater-grid input.widefat:hover,
.jk-content .jk-repeater-grid input.widefat:focus,
.jk-content .jk-repeater-grid input.widefat:focus-visible,
.jk-content .jk-leadership-grid textarea.widefat,
.jk-content .jk-leadership-grid textarea.widefat:hover,
.jk-content .jk-leadership-grid textarea.widefat:focus,
.jk-content .jk-leadership-grid textarea.widefat:focus-visible,
.jk-content .jk-leadership-grid input.widefat,
.jk-content .jk-leadership-grid input.widefat:hover,
.jk-content .jk-leadership-grid input.widefat:focus,
.jk-content .jk-leadership-grid input.widefat:focus-visible {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border-color: var(--jk-border);
  box-shadow: none;
  outline: none;
}

.jk-content .jk-form-grid input.widefat:hover,
.jk-content .jk-form-grid textarea.widefat:hover,
.jk-content .jk-repeater-grid input.widefat:hover,
.jk-content .jk-repeater-grid textarea.widefat:hover,
.jk-content .jk-leadership-grid input.widefat:hover,
.jk-content .jk-leadership-grid textarea.widefat:hover {
  border-color: #b8c5d3;
}

.jk-content .jk-form-grid textarea.widefat:focus,
.jk-content .jk-form-grid textarea.widefat:focus-visible,
.jk-content .jk-form-grid input.widefat:focus,
.jk-content .jk-form-grid input.widefat:focus-visible,
.jk-content .jk-repeater-grid textarea.widefat:focus,
.jk-content .jk-repeater-grid textarea.widefat:focus-visible,
.jk-content .jk-repeater-grid input.widefat:focus,
.jk-content .jk-repeater-grid input.widefat:focus-visible,
.jk-content .jk-leadership-grid textarea.widefat:focus,
.jk-content .jk-leadership-grid textarea.widefat:focus-visible,
.jk-content .jk-leadership-grid input.widefat:focus,
.jk-content .jk-leadership-grid input.widefat:focus-visible {
  border-color: #b8c5d3;
  box-shadow: 0 0 0 2px rgba(47, 74, 106, 0.08);
}

.jk-readonly-form input:not([type="checkbox"]):not([type="radio"]):disabled,
.jk-readonly-form textarea:disabled,
.jk-readonly-form select:disabled {
  background: #fff;
  color: var(--jk-text);
  opacity: 1;
  -webkit-text-fill-color: var(--jk-text);
  cursor: default;
  box-shadow: none;
}

.jk-readonly-form textarea:disabled {
  resize: none;
}

.jk-profile-actions-readonly {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .jk-header-actions {
    width: 100%;
    justify-content: stretch;
  }
}


.jk-lesson-actions-card {
  display: flex;
  flex-direction: column;
}

.jk-lesson-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.jk-lesson-manual-action {
  margin-top: 18px;
}

.jk-lesson-manual-action form {
  margin: 0;
}

.jk-lesson-manual-action .jk-primary-button {
  display: inline-flex;
}

@media (max-width: 640px) {
  .jk-lesson-secondary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-lesson-secondary-actions .jk-secondary-button,
  .jk-lesson-manual-action .jk-primary-button {
    width: 100%;
  }
}


.jk-quiz-form {
  display: grid;
  gap: 20px;
}

.jk-question-card {
  margin: 0;
  padding: 24px 22px 20px;
  border: 1px solid var(--jk-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(47, 74, 106, 0.06);
}

.jk-question-title {
  display: block;
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--jk-text);
}

.jk-question-card textarea,
.jk-question-card input:not([type="checkbox"]):not([type="radio"]),
.jk-question-card select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}

.jk-question-card .jk-quiz-open-answer {
  display: block;
  width: 100%;
  min-height: 190px;
  margin-top: 12px;
  resize: vertical;
  box-shadow: none;
}

.jk-quiz-form > .jk-primary-button,
.jk-quiz-form > button[type="submit"] {
  margin-top: 4px;
}


.jk-assignment-file-link {
  display: block;
  margin-top: 12px;
}

.jk-assignment-file-link .jk-secondary-button {
  display: inline-flex;
}

.jk-assignment-current-file {
  display: block;
  margin-top: 12px;
  color: var(--jk-muted);
}


.jk-file-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.jk-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jk-file-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 48px;
  padding: 12px 18px;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
}

.jk-file-status {
  color: var(--jk-muted);
  font-size: 15px;
}

.jk-file-input:focus-visible + .jk-file-trigger {
  outline: 2px solid rgba(47, 74, 106, 0.28);
  outline-offset: 2px;
}


.jk-peercoach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start;
}

.jk-peercoach-peer-card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jk-peercoach-detail-header {
  height: auto;
  margin-bottom: 24px;
}

.jk-peercoach-peer-head {
  min-height: 108px;
}

.jk-peercoach-peer-head h3,
.jk-peercoach-detail-top h2 {
  margin-bottom: 6px;
}

.jk-peercoach-peer-name {
  min-height: 84px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.jk-peercoach-peer-email {
  min-height: 56px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.jk-peercoach-peer-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jk-peercoach-peer-stat {
  min-width: 0;
}

.jk-peercoach-peer-stat strong {
  display: block;
  min-height: 46px;
  margin-bottom: 8px;
}

.jk-peercoach-peer-stat span {
  display: block;
  min-height: 44px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.jk-peercoach-next-lesson {
  min-height: 78px;
  margin: 0;
  line-height: 1.45;
}

.jk-peercoach-next-lesson strong {
  display: inline;
}

.jk-peercoach-next-lesson span {
  display: inline;
  overflow-wrap: anywhere;
}

.jk-peercoach-peer-actions {
  margin-top: auto;
}

.jk-peercoach-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.jk-peercoach-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.jk-peercoach-tabs .jk-secondary-button.is-active {
  background: var(--jk-primary);
  color: #fff;
}

.jk-readonly-view {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.jk-readonly-field {
  border: 1px solid var(--jk-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  padding: 16px;
}

.jk-readonly-field strong {
  display: block;
  color: var(--jk-primary);
  margin-bottom: 10px;
}

.jk-readonly-field-wide {
  grid-column: span 2;
}

.jk-readonly-value {
  color: var(--jk-text);
  white-space: pre-wrap;
  line-height: 1.6;
}

.jk-card > .jk-repeater-section:first-of-type,
.jk-card > .jk-readonly-view:first-of-type {
  margin-top: 24px;
}

.jk-card > .jk-repeater-section + .jk-repeater-section {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .jk-peercoach-detail-top {
    flex-direction: column;
  }

  .jk-readonly-field-wide {
    grid-column: auto;
  }
}

.jk-guidance-grid {
  align-items: stretch;
}

.jk-guidance-card {
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-md);
  padding: 18px;
  background: rgba(255,255,255,0.75);
}

.jk-guidance-card strong {
  display: block;
  color: var(--jk-primary);
  margin-bottom: 10px;
}

.jk-guidance-card p {
  margin: 0 0 10px;
}

.jk-guidance-card small {
  color: var(--jk-muted);
}

.jk-guidance-wrapper {
  display: grid;
  gap: 16px;
}

.jk-guidance-wrapper h3 {
  margin: 0;
  color: var(--jk-primary);
}

.jk-peercoach-stat-text {
  font-size: 24px;
  line-height: 1.3;
}

.jk-feedback-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.jk-feedback-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--jk-border);
  box-sizing: border-box;
  font: inherit;
  resize: vertical;
}

.jk-feedback-list {
  display: grid;
  gap: 14px;
}

.jk-feedback-note {
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.jk-feedback-note p {
  margin: 10px 0 0;
  color: var(--jk-text);
}

.jk-feedback-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.jk-feedback-meta small {
  color: var(--jk-muted);
}

.jk-portal-table-wrap {
  overflow-x: auto;
}

.jk-portal-table {
  width: 100%;
  border-collapse: collapse;
}

.jk-portal-table th,
.jk-portal-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--jk-border);
  text-align: left;
  vertical-align: top;
}

.jk-portal-table th {
  color: var(--jk-primary);
  font-weight: 700;
}

.jk-trainer-review-card {
  margin-top: 16px;
}

.jk-trainer-inline-form {
  margin-top: 16px;
}

.jk-trainer-filter-pills {
  margin-top: 14px;
}

.jk-trainer-review-card .jk-secondary-button,
.jk-trainer-review-card .jk-primary-button,
.jk-portal-table .jk-secondary-button {
  padding: 10px 16px;
}


.jk-peercoach-peer-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-color: rgba(47, 74, 106, 0.12);
  background:
    radial-gradient(circle at top right, rgba(200, 164, 106, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.jk-peercoach-peer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: auto;
}

.jk-peercoach-peer-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.jk-peercoach-peer-copy {
  min-width: 0;
}

.jk-peercoach-peer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--jk-primary), #496789);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 30px rgba(47, 74, 106, 0.20);
  flex-shrink: 0;
}

.jk-peercoach-review-pill {
  background: rgba(47, 74, 106, 0.08);
  color: var(--jk-primary);
  border: 1px solid rgba(47, 74, 106, 0.12);
  white-space: nowrap;
}

.jk-peercoach-peer-name {
  min-height: 0;
  margin: 0;
  line-height: 1.05;
  font-size: clamp(30px, 2vw, 38px);
}

.jk-peercoach-peer-email {
  min-height: 0;
  margin: 10px 0 0;
}

.jk-peercoach-peer-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jk-peercoach-peer-stat {
  padding: 16px;
  border-radius: 16px;
  background: rgba(47, 74, 106, 0.05);
  border: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-peercoach-peer-stat strong {
  min-height: 0;
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
}

.jk-peercoach-peer-stat span {
  min-height: 0;
  font-size: 14px;
}

.jk-peercoach-next-lesson {
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-peercoach-peer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.jk-trainer-review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.jk-manage-overview-card {
  display: grid;
  gap: 20px;
}

.jk-manage-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.jk-manage-item-list {
  display: grid;
  gap: 14px;
}

.jk-manage-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--jk-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,251,0.96));
}

.jk-manage-item-card h3 {
  margin: 12px 0 6px;
}

.jk-manage-item-main {
  min-width: 0;
}

.jk-manage-item-actions {
  flex-shrink: 0;
}

.jk-manage-status-badge.is-published {
  background: rgba(39, 117, 47, 0.14);
  color: var(--jk-secondary);
}

.jk-manage-status-badge.is-draft {
  background: rgba(47, 74, 106, 0.10);
  color: var(--jk-primary);
}

.jk-manage-status-badge.is-private {
  background: rgba(200, 164, 106, 0.18);
  color: #8a5f21;
}

.jk-manage-status-badge.is-neutral {
  background: rgba(101, 114, 128, 0.12);
  color: var(--jk-muted);
}

.jk-portal-table-wrap {
  border: 1px solid var(--jk-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
}

.jk-portal-table {
  min-width: 100%;
}

.jk-portal-table th {
  background: rgba(47, 74, 106, 0.06);
}

.jk-trainer-review-card {
  margin-top: 16px;
  border: 1px solid rgba(47, 74, 106, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

@media (max-width: 900px) {
  .jk-peercoach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .jk-trainer-review-toolbar,
  .jk-manage-item-card,
  .jk-peercoach-peer-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .jk-peercoach-grid {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-stats {
    grid-template-columns: 1fr;
  }

  .jk-peercoach-peer-identity {
    align-items: center;
  }
}

/* v34 compact peer cards + clearer management table */
.jk-peercoach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.jk-peercoach-grid > * {
  min-width: 0;
}

.jk-peercoach-peer-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  height: auto !important;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
}

.jk-peercoach-peer-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.jk-peercoach-peer-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.jk-peercoach-peer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(47, 74, 106, 0.16);
}

.jk-peercoach-review-pill {
  align-self: flex-start;
  font-size: 13px;
  line-height: 1;
}

.jk-peercoach-peer-name {
  margin: 0;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.15;
  word-break: break-word;
}

.jk-peercoach-peer-email {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.jk-peercoach-peer-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jk-peercoach-peer-stat {
  padding: 14px 12px;
  border-radius: 14px;
}

.jk-peercoach-peer-stat strong {
  margin: 0 0 6px;
  font-size: 28px;
}

.jk-peercoach-peer-stat span {
  font-size: 13px;
  line-height: 1.3;
}

.jk-peercoach-next-lesson {
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.45;
}

.jk-peercoach-peer-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
}

.jk-manage-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.95fr);
  align-items: start;
}

.jk-manage-overview-card,
.jk-manage-editor-card {
  min-width: 0;
}

.jk-manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.jk-manage-scope-tabs,
.jk-manage-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.jk-manage-total {
  margin: 0;
}

.jk-manage-table-wrap {
  border: 1px solid rgba(47, 74, 106, 0.12);
  border-radius: 18px;
  overflow: auto;
  background: #fff;
}

.jk-manage-table {
  table-layout: fixed;
}

.jk-manage-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f8;
  color: var(--jk-primary);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) {
  width: 42%;
}

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) {
  width: 16%;
}

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) {
  width: 20%;
}

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 22%;
}

.jk-manage-table tbody tr:hover {
  background: rgba(47, 74, 106, 0.03);
}

.jk-manage-table td {
  vertical-align: middle;
}

.jk-manage-title-cell {
  display: grid;
  gap: 4px;
}

.jk-manage-title {
  color: var(--jk-primary);
  font-size: 18px;
  line-height: 1.35;
}

.jk-manage-date {
  font-size: 14px;
  color: var(--jk-muted);
}

.jk-manage-inline-form {
  margin: 0;
}

.jk-manage-inline-form button,
.jk-manage-row-actions > a {
  white-space: nowrap;
}

.jk-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(166, 43, 43, 0.22);
  background: rgba(166, 43, 43, 0.08);
  color: #8d1f1f;
  cursor: pointer;
}

.jk-danger-button:hover,
.jk-danger-button:focus-visible {
  background: rgba(166, 43, 43, 0.14);
  color: #7d1515;
  outline: none;
}

.jk-manage-status-badge.is-trash {
  background: rgba(166, 43, 43, 0.12);
  color: #8d1f1f;
}

@media (max-width: 1100px) {
  .jk-peercoach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto;
  }

  .jk-manage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jk-peercoach-grid {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-actions {
    grid-template-columns: 1fr;
  }

  .jk-manage-toolbar,
  .jk-manage-scope-tabs,
  .jk-manage-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-manage-inline-form,
  .jk-manage-inline-form button,
  .jk-manage-row-actions > a,
  .jk-danger-button {
    width: 100%;
  }
}


/* v37 peer action sizing + guidance cleanup */
.jk-peercoach-peer-card {
  gap: 12px;
}

.jk-peercoach-peer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  width: auto !important;
  flex: 0 0 auto;
  min-width: 136px;
  max-width: 136px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.jk-manage-table td:last-child {
  text-align: right;
}

.jk-manage-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.jk-manage-inline-form {
  display: inline-flex;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 132px;
  height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.jk-manage-inline-form .jk-danger-button,
.jk-manage-inline-form .jk-secondary-button {
  width: 132px;
}

.jk-manage-date {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .jk-peercoach-peer-actions {
    justify-content: center;
    gap: 8px;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button {
    width: auto !important;
    min-width: 124px;
    max-width: 124px;
    font-size: 14px;
    padding: 9px 10px;
  }

  .jk-manage-table td:last-child {
    text-align: left;
  }

  .jk-manage-row-actions {
    justify-content: stretch;
  }

  .jk-manage-row-actions > a,
  .jk-manage-inline-form,
  .jk-manage-inline-form button {
    width: 100%;
  }
}

/* v38 brand refresh – Peercoach Academy */
:root {
  --jk-primary: #2F4A6A;
  --jk-primary-80: #59708e;
  --jk-secondary: #27752F;
  --jk-secondary-80: #529058;
  --jk-accent: #C8A46A;
  --jk-accent-80: #d3b584;
  --jk-black: #000000;
  --jk-grey: #9D9D9C;
  --jk-bg: #f5f3ee;
  --jk-surface: #fffdfa;
  --jk-surface-alt: #f8fafc;
  --jk-border: rgba(47, 74, 106, 0.14);
  --jk-text: #243548;
  --jk-muted: #6e7885;
  --jk-radius-lg: 24px;
  --jk-radius-md: 18px;
  --jk-shadow: 0 18px 40px rgba(47, 74, 106, 0.08);
  --jk-font-ui: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jk-font-body: Georgia, "Times New Roman", serif;
}

.jk-portal-app {
  background: linear-gradient(180deg, rgba(47, 74, 106, 0.05), rgba(200, 164, 106, 0.04));
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(47, 74, 106, 0.12);
  font-family: var(--jk-font-ui);
}

.jk-sidebar {
  background: linear-gradient(180deg, #2F4A6A 0%, #29415d 68%, #23364c 100%);
  padding: 30px 22px;
  gap: 22px;
}

.jk-brand {
  gap: 16px;
  padding: 2px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jk-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.jk-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.jk-brand span {
  color: rgba(200, 164, 106, 0.96);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
}

.jk-nav {
  gap: 10px;
}

.jk-nav-item {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.jk-nav-item:hover,
.jk-nav-item:focus-visible,
.jk-nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.jk-page-header {
  padding: 30px 34px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fffdfa);
}

.jk-page-header h1,
.jk-page-header h2,
.jk-card h2,
.jk-card h3,
.jk-login-card h2,
.jk-manage-title,
.jk-peercoach-peer-name {
  font-family: var(--jk-font-ui);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.jk-page-header h1 {
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 0.98;
}

.jk-page-subtitle,
.jk-card p,
.jk-card li,
.jk-meta-line,
.jk-empty-state p,
.jk-help-list,
.jk-manage-date,
.jk-peercoach-peer-email,
.jk-guidance-card p,
.jk-guidance-card small,
.jk-status-list small {
  font-size: 17px;
  line-height: 1.7;
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-guidance-card,
.jk-peercoach-peer-card,
.jk-trainer-review-card,
.jk-manage-table-wrap,
.jk-manage-editor-card,
.jk-manage-overview-card {
  background: var(--jk-surface);
  border: 1px solid var(--jk-border);
  box-shadow: var(--jk-shadow);
}

.jk-card,
.jk-login-card,
.jk-repeater-item {
  border-radius: 24px;
  padding: 26px;
}

.jk-hero-card {
  background:
    radial-gradient(circle at top right, rgba(200, 164, 106, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(47, 74, 106, 0.025), rgba(47, 74, 106, 0)),
    var(--jk-surface);
}

.jk-stat-card {
  position: relative;
  overflow: hidden;
}

.jk-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--jk-secondary), var(--jk-accent));
}

.jk-stat-card strong,
.jk-inline-stats strong,
.jk-peercoach-peer-stat strong {
  color: var(--jk-primary);
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1;
}

.jk-stat-label,
.jk-peercoach-peer-stat span,
.jk-guidance-card strong,
.jk-eyebrow {
  letter-spacing: -0.02em;
}

.jk-eyebrow {
  color: var(--jk-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.jk-card-actions {
  gap: 10px;
}

.jk-primary-button,
.jk-secondary-button,
.jk-link-button,
.jk-danger-button {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--jk-font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.jk-primary-button {
  background: var(--jk-primary);
  box-shadow: 0 12px 24px rgba(47, 74, 106, 0.16);
}

.jk-primary-button:hover,
.jk-primary-button:focus-visible {
  background: #263d58;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(47, 74, 106, 0.18);
}

.jk-secondary-button {
  background: #fff;
  color: var(--jk-primary);
  border-color: rgba(47, 74, 106, 0.18);
  box-shadow: 0 6px 16px rgba(47, 74, 106, 0.06);
}

.jk-secondary-button:hover,
.jk-secondary-button:focus-visible {
  background: rgba(47, 74, 106, 0.06);
  border-color: rgba(47, 74, 106, 0.24);
  transform: translateY(-1px);
}

.jk-danger-button {
  background: rgba(200, 164, 106, 0.16);
  border-color: rgba(200, 164, 106, 0.34);
  color: #8f5f10;
  box-shadow: none;
}

.jk-danger-button:hover,
.jk-danger-button:focus-visible {
  background: rgba(200, 164, 106, 0.24);
  color: #7a500c;
}

.jk-badge,
.jk-review-pill,
.jk-manage-status-badge,
.jk-peercoach-review-pill {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge,
.jk-manage-status-badge.is-published {
  background: rgba(39, 117, 47, 0.14);
  color: var(--jk-secondary);
}

.jk-manage-status-badge.is-draft {
  background: rgba(47, 74, 106, 0.12);
  color: var(--jk-primary);
}

.jk-manage-status-badge.is-private,
.jk-peercoach-review-pill {
  background: rgba(200, 164, 106, 0.2);
  color: #8f6a2f;
}

.jk-manage-status-badge.is-trash {
  background: rgba(47, 74, 106, 0.08);
  color: var(--jk-primary);
}

.jk-form-grid input[type="text"],
.jk-form-grid input[type="email"],
.jk-form-grid input[type="number"],
.jk-form-grid input[type="url"],
.jk-form-grid input[type="date"],
.jk-form-grid select,
.jk-form-grid textarea,
.jk-readonly-field {
  border-radius: 16px;
  border: 1px solid rgba(47, 74, 106, 0.16);
  background: #fff;
  color: var(--jk-text);
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(47, 74, 106, 0.03);
}

.jk-form-grid input:focus,
.jk-form-grid select:focus,
.jk-form-grid textarea:focus,
.jk-readonly-field:focus {
  outline: none;
  border-color: rgba(200, 164, 106, 0.72);
  box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.16);
}

.jk-guidance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jk-guidance-card {
  border-radius: 22px;
  padding: 20px 18px;
  min-height: 168px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.jk-guidance-card:nth-child(1) { border-top: 4px solid var(--jk-secondary); }
.jk-guidance-card:nth-child(2) { border-top: 4px solid var(--jk-accent); }
.jk-guidance-card:nth-child(3) { border-top: 4px solid var(--jk-primary); }

.jk-guidance-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--jk-primary);
}

.jk-guidance-card p {
  margin: 0;
}

.jk-peercoach-grid {
  gap: 20px;
}

.jk-peercoach-peer-card {
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(200, 164, 106, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.jk-peercoach-peer-avatar {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--jk-primary), #415f83);
  color: #fff;
}

.jk-peercoach-peer-stats {
  gap: 12px;
}

.jk-peercoach-peer-stat {
  background: linear-gradient(180deg, rgba(47, 74, 106, 0.04), rgba(47, 74, 106, 0.02));
  border: 1px solid rgba(47, 74, 106, 0.1);
  border-radius: 18px;
  padding: 16px 14px;
}

.jk-peercoach-next-lesson {
  border-radius: 18px;
  background: rgba(47, 74, 106, 0.03);
  border: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-peercoach-peer-actions {
  display: grid;
  grid-template-columns: repeat(2, 128px);
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  width: 128px !important;
  min-width: 128px;
  max-width: 128px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 14px;
}

.jk-status-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-status-list li:last-child {
  border-bottom: 0;
}

.jk-trainer-review-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.jk-manage-layout {
  gap: 22px;
}

.jk-manage-overview-head h2,
.jk-manage-editor-card h2 {
  margin-bottom: 8px;
}

.jk-manage-table-wrap {
  border-radius: 22px;
  overflow: hidden;
}

.jk-manage-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.jk-manage-table thead th {
  background: var(--jk-primary);
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 16px 14px;
}

.jk-manage-table tbody tr:nth-child(even) {
  background: rgba(47, 74, 106, 0.02);
}

.jk-manage-table tbody tr:hover {
  background: rgba(200, 164, 106, 0.08);
}

.jk-manage-table td {
  padding: 18px 14px;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-manage-title-cell {
  gap: 6px;
}

.jk-manage-title {
  font-size: 26px;
  line-height: 1.12;
  color: var(--jk-primary);
}

.jk-manage-date {
  font-size: 15px;
}

.jk-manage-row-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 126px;
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
}

.jk-manage-inline-form .jk-danger-button,
.jk-manage-inline-form .jk-secondary-button {
  width: 126px;
}

.jk-empty-state {
  padding: 18px;
  border-radius: 18px;
  background: rgba(47, 74, 106, 0.03);
  border: 1px dashed rgba(47, 74, 106, 0.12);
}

.jk-login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.jk-login-logo {
  max-width: 300px;
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .jk-page-header {
    padding: 26px 24px 20px;
  }

  .jk-content {
    padding: 24px;
  }

  .jk-guidance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .jk-portal-app {
    grid-template-columns: 1fr;
  }

  .jk-sidebar {
    border-radius: 28px 28px 0 0;
  }

  .jk-grid-2,
  .jk-two-column-grid,
  .jk-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jk-card,
  .jk-login-card,
  .jk-repeater-item {
    padding: 20px;
  }

  .jk-page-header h1 {
    font-size: 34px;
  }

  .jk-page-subtitle,
  .jk-card p,
  .jk-card li,
  .jk-meta-line,
  .jk-empty-state p,
  .jk-help-list,
  .jk-manage-date,
  .jk-peercoach-peer-email,
  .jk-guidance-card p,
  .jk-guidance-card small,
  .jk-status-list small {
    font-size: 15px;
  }

  .jk-peercoach-peer-actions {
    grid-template-columns: 1fr;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button,
  .jk-manage-row-actions > a,
  .jk-manage-inline-form,
  .jk-manage-inline-form button {
    width: 100% !important;
    min-width: 0;
    max-width: none;
  }

  .jk-manage-table th:nth-child(3),
  .jk-manage-table td:nth-child(3) {
    white-space: normal;
  }
}

/* v39 brand lock-in – Peercoach Academy */
:root {
  --jk-primary: #2F4A6A;
  --jk-primary-10: rgba(47, 74, 106, 0.10);
  --jk-primary-20: rgba(47, 74, 106, 0.20);
  --jk-primary-60: rgba(47, 74, 106, 0.60);
  --jk-secondary: #27752F;
  --jk-secondary-12: rgba(39, 117, 47, 0.12);
  --jk-accent: #C8A46A;
  --jk-accent-12: rgba(200, 164, 106, 0.12);
  --jk-accent-18: rgba(200, 164, 106, 0.18);
  --jk-accent-24: rgba(200, 164, 106, 0.24);
  --jk-danger: #8C4251;
  --jk-danger-10: rgba(140, 66, 81, 0.10);
  --jk-danger-18: rgba(140, 66, 81, 0.18);
  --jk-black: #000000;
  --jk-grey: #9D9D9C;
  --jk-bg: #f5f2eb;
  --jk-bg-soft: #eef3f8;
  --jk-surface: #ffffff;
  --jk-surface-soft: #fbfaf7;
  --jk-border: rgba(47, 74, 106, 0.12);
  --jk-border-strong: rgba(47, 74, 106, 0.18);
  --jk-text: #233547;
  --jk-muted: #667687;
  --jk-shadow-soft: 0 8px 22px rgba(31, 49, 72, 0.06);
  --jk-shadow-card: 0 18px 38px rgba(31, 49, 72, 0.08);
  --jk-radius-xl: 28px;
  --jk-radius-lg: 24px;
  --jk-radius-md: 18px;
  --jk-radius-sm: 14px;
  --jk-font-ui: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jk-portal-app {
  min-height: 88vh;
  border: 1px solid rgba(47, 74, 106, 0.10);
  border-radius: var(--jk-radius-xl);
  background: linear-gradient(180deg, var(--jk-bg) 0%, var(--jk-bg-soft) 100%) !important;
  box-shadow: 0 26px 60px rgba(31, 49, 72, 0.10) !important;
  font-family: var(--jk-font-ui);
}

.jk-sidebar {
  background: linear-gradient(180deg, #2F4A6A 0%, #2a4361 100%) !important;
  padding: 28px 20px 24px !important;
  gap: 22px !important;
}

.jk-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 2px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jk-brand-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  border-radius: 14px;
}

.jk-brand-platform,
.jk-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-nav {
  gap: 6px !important;
}

.jk-nav-item {
  min-height: 48px;
  padding: 13px 14px !important;
  border-radius: 15px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

.jk-nav-item:hover,
.jk-nav-item:focus-visible,
.jk-nav-item.is-active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.jk-sidebar-footer {
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.jk-sidebar-footer p,
.jk-sidebar-footer a {
  color: rgba(255, 255, 255, 0.86) !important;
}

.jk-main {
  min-width: 0;
  background: transparent;
}

.jk-page-header {
  padding: 30px 32px 22px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--jk-border) !important;
}

.jk-page-header h1,
.jk-page-header h2,
.jk-card h2,
.jk-card h3,
.jk-login-card h2,
.jk-manage-title,
.jk-peercoach-peer-name {
  font-family: var(--jk-font-ui);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--jk-primary) !important;
}

.jk-page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 3.6vw, 58px) !important;
  line-height: 0.96 !important;
}

.jk-page-subtitle,
.jk-card p,
.jk-card li,
.jk-login-card p,
.jk-meta-line,
.jk-empty-state p,
.jk-help-list,
.jk-manage-date,
.jk-peercoach-peer-email,
.jk-guidance-card p,
.jk-guidance-card small,
.jk-status-list small,
.jk-rich-text p,
.jk-rich-text li {
  color: var(--jk-muted) !important;
  font-family: var(--jk-font-ui);
}

.jk-page-subtitle {
  max-width: 68ch;
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.jk-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.jk-content {
  padding: 28px 32px 36px !important;
  gap: 24px !important;
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-guidance-card,
.jk-peercoach-peer-card,
.jk-trainer-review-card,
.jk-manage-table-wrap,
.jk-manage-editor-card,
.jk-manage-overview-card,
.jk-trainer-review-toolbar {
  border-radius: var(--jk-radius-lg) !important;
  border: 1px solid var(--jk-border) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 250, 247, 0.98) 100%) !important;
  box-shadow: var(--jk-shadow-card) !important;
}

.jk-card,
.jk-login-card,
.jk-repeater-item {
  padding: 24px !important;
}

.jk-hero-card {
  background: linear-gradient(135deg, rgba(47, 74, 106, 0.035), rgba(200, 164, 106, 0.08)) !important;
}

.jk-stat-card {
  position: relative;
  overflow: hidden;
}

.jk-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--jk-accent) !important;
}

.jk-stat-card strong,
.jk-inline-stats strong,
.jk-peercoach-peer-stat strong {
  color: var(--jk-primary) !important;
  font-size: clamp(32px, 2.8vw, 42px) !important;
  line-height: 1;
}

.jk-stat-label,
.jk-peercoach-peer-stat span,
.jk-guidance-card strong,
.jk-eyebrow {
  letter-spacing: -0.02em;
}

.jk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jk-accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

.jk-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--jk-accent);
}

.jk-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px !important;
  margin-top: 18px;
}

.jk-card-actions > * {
  flex: 0 0 auto;
}

.jk-primary-button,
.jk-secondary-button,
.jk-link-button,
.jk-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  font-family: var(--jk-font-ui);
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.15;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.jk-primary-button {
  background: var(--jk-primary) !important;
  border: 1px solid var(--jk-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(47, 74, 106, 0.15) !important;
}

.jk-primary-button:hover,
.jk-primary-button:focus-visible {
  background: #273f5b !important;
  border-color: #273f5b !important;
  box-shadow: 0 16px 26px rgba(47, 74, 106, 0.18) !important;
  transform: translateY(-1px);
}

.jk-secondary-button {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--jk-border-strong) !important;
  color: var(--jk-primary) !important;
  box-shadow: 0 4px 12px rgba(47, 74, 106, 0.05) !important;
}

.jk-secondary-button:hover,
.jk-secondary-button:focus-visible {
  background: rgba(47, 74, 106, 0.05) !important;
  border-color: rgba(47, 74, 106, 0.22) !important;
  transform: translateY(-1px);
}

.jk-danger-button {
  background: var(--jk-danger-10) !important;
  border: 1px solid var(--jk-danger-18) !important;
  color: var(--jk-danger) !important;
  box-shadow: none !important;
}

.jk-danger-button:hover,
.jk-danger-button:focus-visible {
  background: rgba(140, 66, 81, 0.14) !important;
  border-color: rgba(140, 66, 81, 0.26) !important;
}

.jk-badge,
.jk-review-pill,
.jk-manage-status-badge,
.jk-peercoach-review-pill,
.jk-badge-certificate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.jk-badge,
.jk-review-pill,
.jk-manage-status-badge {
  background: var(--jk-primary-10) !important;
  color: var(--jk-primary) !important;
  border-color: rgba(47, 74, 106, 0.10) !important;
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge,
.jk-manage-status-badge.is-published {
  background: var(--jk-secondary-12) !important;
  border-color: rgba(39, 117, 47, 0.14) !important;
  color: var(--jk-secondary) !important;
}

.jk-badge-submitted,
.jk-badge-received,
.jk-badge-under_review,
.jk-badge-pending_review,
.jk-badge-revision_requested,
.jk-peercoach-review-pill,
.jk-manage-status-badge.is-private {
  background: var(--jk-accent-18) !important;
  border-color: var(--jk-accent-24) !important;
  color: #8a6732 !important;
}

.jk-badge-failed,
.jk-badge-rejected,
.jk-manage-status-badge.is-trash {
  background: var(--jk-danger-10) !important;
  border-color: var(--jk-danger-18) !important;
  color: var(--jk-danger) !important;
}

.jk-manage-status-badge.is-draft {
  background: rgba(157, 157, 156, 0.15) !important;
  border-color: rgba(157, 157, 156, 0.24) !important;
  color: #6b6b6a !important;
}

.jk-badge-certificate {
  background: var(--jk-accent-18) !important;
  border-color: var(--jk-accent-24) !important;
  color: #8a6732 !important;
}

.jk-progress {
  background: rgba(47, 74, 106, 0.10) !important;
  border-radius: 999px;
}

.jk-progress span {
  background: linear-gradient(90deg, var(--jk-primary), rgba(47, 74, 106, 0.75)) !important;
}

.jk-form-grid input[type="text"],
.jk-form-grid input[type="email"],
.jk-form-grid input[type="number"],
.jk-form-grid input[type="url"],
.jk-form-grid input[type="date"],
.jk-form-grid input[type="password"],
.jk-form-grid select,
.jk-form-grid textarea,
.jk-readonly-field,
.jk-content .jk-form-grid textarea.widefat,
.jk-content .jk-form-grid input.widefat {
  border-radius: 16px !important;
  border: 1px solid rgba(47, 74, 106, 0.16) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--jk-text) !important;
  box-shadow: inset 0 1px 2px rgba(47, 74, 106, 0.03) !important;
}

.jk-form-grid input:focus,
.jk-form-grid select:focus,
.jk-form-grid textarea:focus,
.jk-readonly-field:focus,
.jk-content .jk-form-grid textarea.widefat:focus,
.jk-content .jk-form-grid input.widefat:focus {
  outline: none;
  border-color: rgba(200, 164, 106, 0.70) !important;
  box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.14) !important;
}

.jk-guidance-wrapper {
  width: 100%;
}

.jk-guidance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px !important;
}

.jk-guidance-card {
  position: relative;
  min-height: 168px;
  padding: 22px 20px !important;
  background: var(--jk-surface) !important;
}

.jk-guidance-card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--jk-accent);
  box-shadow: 0 0 0 6px rgba(200, 164, 106, 0.12);
}

.jk-guidance-card--peercoach::before {
  background: var(--jk-primary);
  box-shadow: 0 0 0 6px rgba(47, 74, 106, 0.12);
}

.jk-guidance-card--mentor::before {
  background: var(--jk-accent);
  box-shadow: 0 0 0 6px rgba(200, 164, 106, 0.12);
}

.jk-guidance-card--trainer::before {
  background: var(--jk-secondary);
  box-shadow: 0 0 0 6px rgba(39, 117, 47, 0.12);
}

.jk-guidance-card strong {
  display: block;
  margin-bottom: 10px !important;
  font-size: 18px !important;
  color: var(--jk-primary) !important;
}

.jk-guidance-card p {
  margin: 0 0 8px 0 !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.jk-guidance-card small {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.jk-guidance-card:nth-child(1),
.jk-guidance-card:nth-child(2),
.jk-guidance-card:nth-child(3) {
  border-top: 1px solid var(--jk-border) !important;
}

.jk-peercoach-grid {
  align-items: stretch;
  gap: 20px !important;
}

.jk-peercoach-peer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

.jk-peercoach-peer-head,
.jk-peercoach-peer-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.jk-peercoach-peer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px !important;
  background: var(--jk-primary) !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  box-shadow: 0 12px 22px rgba(47, 74, 106, 0.16);
}

.jk-peercoach-peer-name {
  margin: 0 0 4px 0;
  font-size: clamp(24px, 2.2vw, 42px) !important;
  line-height: 1.06 !important;
}

.jk-peercoach-peer-email {
  font-size: 16px !important;
  line-height: 1.5 !important;
  word-break: break-word;
}

.jk-peercoach-review-pill {
  align-self: flex-start;
}

.jk-peercoach-peer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
}

.jk-peercoach-peer-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 94px;
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(47, 74, 106, 0.08) !important;
  background: linear-gradient(180deg, rgba(47, 74, 106, 0.03), rgba(47, 74, 106, 0.01)) !important;
}

.jk-peercoach-peer-stat span {
  font-size: 15px !important;
  color: var(--jk-muted) !important;
}

.jk-peercoach-next-lesson {
  margin-top: 0;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(47, 74, 106, 0.08) !important;
  background: rgba(47, 74, 106, 0.03) !important;
}

.jk-peercoach-next-lesson strong {
  color: var(--jk-primary) !important;
}

.jk-peercoach-peer-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: auto !important;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 148px !important;
  max-width: none !important;
  min-height: 44px !important;
  padding: 11px 18px !important;
}

.jk-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jk-status-list li {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08) !important;
}

.jk-status-list li:last-child {
  border-bottom: 0 !important;
}

.jk-status-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--jk-primary);
  font-size: 16px;
}

.jk-manage-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.95fr) !important;
  gap: 22px !important;
  align-items: start;
}

.jk-manage-overview-card {
  padding: 0 !important;
  overflow: hidden;
}

.jk-manage-overview-head {
  padding: 24px 24px 0;
}

.jk-manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 20px;
}

.jk-manage-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jk-manage-scope-tabs .jk-secondary-button.is-active,
.jk-trainer-filter-pills .jk-secondary-button.is-active {
  background: var(--jk-primary) !important;
  border-color: var(--jk-primary) !important;
  color: #ffffff !important;
}

.jk-manage-total {
  margin: 0;
  font-size: 14px !important;
}

.jk-manage-table-wrap {
  margin: 0 24px 24px;
  border-radius: 20px !important;
  border: 1px solid rgba(47, 74, 106, 0.12) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: auto;
}

.jk-portal-table,
.jk-manage-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff !important;
}

.jk-manage-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f8 !important;
  color: var(--jk-primary) !important;
  text-transform: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(47, 74, 106, 0.10);
}

.jk-manage-table tbody tr:nth-child(even) {
  background: rgba(47, 74, 106, 0.02) !important;
}

.jk-manage-table tbody tr:hover {
  background: rgba(47, 74, 106, 0.05) !important;
}

.jk-manage-table td {
  padding: 18px !important;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08) !important;
  vertical-align: middle !important;
}

.jk-manage-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.jk-manage-title {
  font-size: 20px !important;
  line-height: 1.25 !important;
}

.jk-manage-date {
  font-size: 15px !important;
  white-space: nowrap;
}

.jk-manage-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form,
.jk-manage-inline-form button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 136px !important;
  max-width: none !important;
}

.jk-manage-inline-form {
  display: inline-flex !important;
}

.jk-manage-inline-form button {
  white-space: nowrap;
}

.jk-manage-editor-card {
  position: sticky;
  top: 24px;
}

.jk-empty-state {
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px dashed rgba(47, 74, 106, 0.14) !important;
  background: rgba(47, 74, 106, 0.03) !important;
}

.jk-login-card {
  max-width: 580px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 250, 247, 0.98)) !important;
}

.jk-login-logo {
  display: block;
  max-width: 320px !important;
  height: auto;
  margin-bottom: 22px !important;
}

@media (max-width: 1220px) {
  .jk-manage-layout {
    grid-template-columns: 1fr !important;
  }

  .jk-manage-editor-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .jk-guidance-grid,
  .jk-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jk-portal-app {
    grid-template-columns: 1fr;
  }

  .jk-sidebar {
    border-radius: 28px 28px 0 0;
  }

  .jk-page-header,
  .jk-content {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .jk-grid-2,
  .jk-two-column-grid,
  .jk-grid-3,
  .jk-guidance-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .jk-page-header h1 {
    font-size: 34px !important;
  }

  .jk-page-subtitle {
    font-size: 16px !important;
  }

  .jk-card,
  .jk-login-card,
  .jk-repeater-item,
  .jk-guidance-card,
  .jk-peercoach-peer-card,
  .jk-trainer-review-card,
  .jk-manage-editor-card,
  .jk-manage-overview-card {
    padding: 20px !important;
  }

  .jk-manage-overview-head,
  .jk-manage-toolbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .jk-manage-table-wrap {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
  }

  .jk-peercoach-peer-head,
  .jk-peercoach-peer-identity {
    align-items: flex-start;
  }

  .jk-peercoach-peer-stats {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-actions {
    justify-content: center !important;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button,
  .jk-manage-row-actions > a,
  .jk-manage-inline-form,
  .jk-manage-inline-form button {
    min-width: 0 !important;
    width: 100% !important;
  }

  .jk-status-list li {
    grid-template-columns: 1fr !important;
  }
}

/* v39 lock-in: cohesive Peercoach Academy brand theme */
:root {
  --jk-primary: #2F4A6A;
  --jk-secondary: #27752F;
  --jk-accent: #C8A46A;
  --jk-bg: #eef2f6;
  --jk-bg-warm: #f7f4ef;
  --jk-surface: #ffffff;
  --jk-surface-soft: #fbfcfe;
  --jk-border: rgba(47, 74, 106, 0.12);
  --jk-border-strong: rgba(47, 74, 106, 0.18);
  --jk-text: #1f3248;
  --jk-muted: #667789;
  --jk-shadow-sm: 0 8px 18px rgba(47, 74, 106, 0.06);
  --jk-shadow: 0 18px 42px rgba(47, 74, 106, 0.08);
  --jk-shadow-lg: 0 26px 60px rgba(47, 74, 106, 0.12);
  --jk-radius-xl: 28px;
  --jk-radius-lg: 24px;
  --jk-radius-md: 18px;
  --jk-radius-sm: 14px;
  --jk-font-display: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jk-font-ui: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jk-font-body: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jk-portal-app,
.jk-portal-app * {
  box-sizing: border-box;
}

.jk-portal-app {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  border: 1px solid rgba(47, 74, 106, 0.08);
  border-radius: 32px;
  box-shadow: var(--jk-shadow-lg);
  overflow: hidden;
  font-family: var(--jk-font-body);
}

.jk-sidebar {
  background: linear-gradient(180deg, #2F4A6A 0%, #253c57 100%);
  padding: 32px 22px 24px;
  gap: 22px;
}

.jk-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jk-brand-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

.jk-brand-platform,
.jk-brand-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-sidebar-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
}

.jk-sidebar-footer p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 600;
}

.jk-sidebar-footer a {
  display: inline-block;
  font-size: 14px;
  opacity: 0.82;
  text-decoration: none;
}

.jk-sidebar-footer a:hover,
.jk-sidebar-footer a:focus-visible {
  opacity: 1;
}

.jk-nav {
  gap: 10px;
}

.jk-nav-item {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jk-nav-item:hover,
.jk-nav-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.jk-nav-item.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 10px 18px rgba(0, 0, 0, 0.14);
}

.jk-page-header {
  position: relative;
  padding: 32px 36px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.96));
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-page-header::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: 0;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--jk-accent), rgba(200, 164, 106, 0));
  border-radius: 999px;
}

.jk-page-header h1,
.jk-page-header h2,
.jk-card h2,
.jk-card h3,
.jk-login-card h2,
.jk-manage-title,
.jk-peercoach-peer-name,
.jk-guidance-card strong,
.jk-trainer-review-card h3,
.jk-portal-table th {
  font-family: var(--jk-font-display);
  color: var(--jk-primary);
}

.jk-page-header h1 {
  font-size: clamp(38px, 3.8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0 0 10px;
  font-weight: 600;
}

.jk-page-subtitle {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--jk-muted);
}

.jk-content {
  padding: 28px 32px 36px;
  gap: 24px;
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-guidance-card,
.jk-peercoach-peer-card,
.jk-trainer-review-card,
.jk-manage-overview-card,
.jk-manage-editor-card,
.jk-manage-table-wrap,
.jk-portal-table-wrap,
.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section,
.jk-feedback-note,
.jk-module-block {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid var(--jk-border);
  box-shadow: var(--jk-shadow);
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-module-block {
  border-radius: 26px;
  padding: 26px;
}

.jk-card p,
.jk-card li,
.jk-meta-line,
.jk-empty-state p,
.jk-help-list,
.jk-peercoach-peer-email,
.jk-manage-date,
.jk-guidance-card p,
.jk-guidance-card small,
.jk-feedback-meta small,
.jk-status-list small,
.jk-lesson-row small {
  font-size: 15px;
  line-height: 1.7;
  color: var(--jk-muted);
}

.jk-hero-card,
.jk-peercoach-detail-header,
.jk-trainer-review-toolbar {
  background: linear-gradient(135deg, rgba(47, 74, 106, 0.04) 0%, rgba(255, 255, 255, 1) 42%, rgba(200, 164, 106, 0.08) 100%);
}

.jk-stat-card {
  position: relative;
  overflow: hidden;
}

.jk-stat-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--jk-accent), rgba(200, 164, 106, 0.28));
  border-radius: 999px;
}

.jk-stat-card strong,
.jk-inline-stats strong,
.jk-peercoach-peer-stat strong {
  font-size: clamp(34px, 3vw, 44px);
  color: var(--jk-primary);
  line-height: 1;
}

.jk-stat-label,
.jk-peercoach-peer-stat span {
  color: var(--jk-muted);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.jk-eyebrow {
  color: var(--jk-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-primary-button,
.jk-secondary-button,
.jk-danger-button,
.jk-link-button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--jk-font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.jk-primary-button {
  background: var(--jk-primary);
  border: 1px solid var(--jk-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 74, 106, 0.16);
}

.jk-primary-button:hover,
.jk-primary-button:focus-visible {
  background: #263d58;
  border-color: #263d58;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(47, 74, 106, 0.18);
}

.jk-secondary-button {
  background: #fff;
  border: 1px solid rgba(47, 74, 106, 0.14);
  color: var(--jk-primary);
  box-shadow: 0 6px 12px rgba(47, 74, 106, 0.05);
}

.jk-secondary-button:hover,
.jk-secondary-button:focus-visible,
.jk-link-button:hover,
.jk-link-button:focus-visible {
  background: #f4f8fb;
  border-color: rgba(47, 74, 106, 0.22);
  color: var(--jk-primary);
  transform: translateY(-1px);
}

.jk-danger-button {
  background: #fff;
  border: 1px solid rgba(164, 61, 61, 0.18);
  color: #a43d3d;
  box-shadow: none;
}

.jk-danger-button:hover,
.jk-danger-button:focus-visible {
  background: rgba(164, 61, 61, 0.06);
  border-color: rgba(164, 61, 61, 0.26);
  color: #912f2f;
}

.jk-badge,
.jk-review-pill,
.jk-manage-status-badge,
.jk-peercoach-review-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.jk-badge,
.jk-manage-status-badge.is-draft,
.jk-manage-status-badge.is-neutral,
.jk-manage-status-badge.is-trash {
  background: rgba(47, 74, 106, 0.08);
  color: var(--jk-primary);
}

.jk-peercoach-review-pill,
.jk-manage-status-badge.is-private,
.jk-badge-certificate {
  background: rgba(200, 164, 106, 0.16);
  border: 1px solid rgba(200, 164, 106, 0.26);
  color: #7a5e31;
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge,
.jk-manage-status-badge.is-published {
  background: rgba(39, 117, 47, 0.12);
  color: var(--jk-secondary);
}

.jk-badge-revision_requested,
.jk-badge-failed,
.jk-badge-rejected {
  background: rgba(164, 61, 61, 0.09);
  color: #a43d3d;
}

.jk-progress {
  background: #eaf0f5;
  border-radius: 999px;
}

.jk-progress span {
  background: linear-gradient(90deg, var(--jk-primary), var(--jk-accent));
}

.jk-status-list li,
.jk-lesson-row {
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section,
.jk-feedback-note,
.jk-module-block {
  border-radius: 20px;
}

.jk-empty-state {
  background: linear-gradient(180deg, rgba(47, 74, 106, 0.03), rgba(255, 255, 255, 0.98));
  border-style: dashed;
}

.jk-notice {
  border-left: 0;
  border-radius: 18px;
  background: rgba(39, 117, 47, 0.10);
  color: var(--jk-secondary);
  box-shadow: var(--jk-shadow-sm);
}

.jk-feedback-note p {
  margin: 10px 0 0;
  color: var(--jk-text);
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]),
.jk-form-grid textarea,
.jk-form-grid select,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]),
.jk-repeater-grid textarea,
.jk-repeater-grid select,
.jk-login-card input,
.jk-readonly-field {
  border-radius: 14px;
  border: 1px solid rgba(47, 74, 106, 0.14);
  background: #fff;
  color: var(--jk-text);
  box-shadow: inset 0 1px 2px rgba(47, 74, 106, 0.03);
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.jk-form-grid textarea:focus,
.jk-form-grid select:focus,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.jk-repeater-grid textarea:focus,
.jk-repeater-grid select:focus,
.jk-login-card input:focus,
.jk-readonly-field:focus {
  border-color: rgba(200, 164, 106, 0.70);
  box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.16);
}

.jk-guidance-grid {
  gap: 18px;
}

.jk-guidance-card {
  position: relative;
  min-height: 180px;
  padding: 22px 20px;
  border-radius: 22px;
}

.jk-guidance-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 48px;
  height: 4px;
  background: var(--jk-accent);
  border-radius: 999px;
}

.jk-guidance-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 600;
}

.jk-guidance-card p {
  margin: 0;
}

.jk-guidance-card p + p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-peercoach-grid {
  gap: 22px;
  align-items: stretch;
}

.jk-peercoach-peer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.jk-peercoach-peer-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 4px;
  background: var(--jk-accent);
  border-radius: 999px;
}

.jk-peercoach-peer-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.jk-peercoach-peer-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.jk-peercoach-peer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--jk-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(47, 74, 106, 0.18);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.jk-peercoach-peer-name {
  margin: 0;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.1;
  word-break: break-word;
}

.jk-peercoach-peer-email {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}

.jk-peercoach-peer-stats {
  gap: 12px;
}

.jk-peercoach-peer-stat {
  padding: 16px 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-peercoach-peer-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--jk-muted);
}

.jk-peercoach-next-lesson {
  padding: 16px;
  border-radius: 18px;
  background: #f9fbfd;
  border: 1px solid rgba(47, 74, 106, 0.08);
  font-size: 15px;
  line-height: 1.6;
  color: var(--jk-text);
}

.jk-peercoach-next-lesson strong {
  color: var(--jk-primary);
}

.jk-peercoach-peer-actions {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  flex: 0 0 130px !important;
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
}

.jk-peercoach-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.jk-peercoach-tabs .jk-secondary-button.is-active {
  background: var(--jk-primary);
  border-color: var(--jk-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 74, 106, 0.16);
}

.jk-manage-layout {
  gap: 24px;
  align-items: start;
}

.jk-manage-overview-head h2,
.jk-manage-editor-card h2 {
  margin-bottom: 8px;
}

.jk-trainer-filter-pills,
.jk-manage-scope-tabs,
.jk-manage-row-actions,
.jk-lesson-secondary-actions,
.jk-card-actions {
  gap: 10px;
}

.jk-manage-table-wrap,
.jk-portal-table-wrap {
  border-radius: 20px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--jk-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.jk-manage-table,
.jk-portal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.jk-manage-table {
  table-layout: fixed;
}

.jk-manage-table thead th,
.jk-portal-table thead th,
.jk-portal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f8;
  color: var(--jk-primary);
  text-transform: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--jk-border-strong);
}

.jk-manage-table th + th,
.jk-manage-table td + td,
.jk-portal-table th + th,
.jk-portal-table td + td {
  border-left: 1px solid rgba(47, 74, 106, 0.06);
}

.jk-manage-table tbody tr,
.jk-portal-table tbody tr {
  background: #fff;
}

.jk-manage-table tbody tr:nth-child(even),
.jk-portal-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.jk-manage-table tbody tr:hover,
.jk-portal-table tbody tr:hover {
  background: #f7f2ea;
}

.jk-manage-table td,
.jk-portal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
  vertical-align: middle;
}

.jk-manage-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--jk-primary);
}

.jk-manage-date {
  font-size: 14px;
  line-height: 1.55;
  color: var(--jk-muted);
  white-space: normal;
}

.jk-manage-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.jk-manage-inline-form {
  display: inline-flex;
  margin: 0;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 118px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.jk-manage-inline-form .jk-danger-button,
.jk-manage-inline-form .jk-secondary-button {
  width: 118px;
}

.jk-login-card {
  max-width: 560px;
}

.jk-login-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 24px;
}

@media (max-width: 1180px) {
  .jk-peercoach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .jk-manage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .jk-portal-app {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .jk-sidebar {
    border-radius: 24px 24px 0 0;
  }

  .jk-page-header,
  .jk-content {
    padding: 24px;
  }

  .jk-grid-2,
  .jk-grid-3,
  .jk-two-column-grid,
  .jk-guidance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jk-page-header h1 {
    font-size: 34px;
  }

  .jk-page-subtitle,
  .jk-card p,
  .jk-card li,
  .jk-meta-line,
  .jk-empty-state p,
  .jk-help-list,
  .jk-peercoach-peer-email,
  .jk-manage-date,
  .jk-guidance-card p,
  .jk-guidance-card small {
    font-size: 15px;
  }

  .jk-peercoach-grid {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-actions {
    flex-wrap: wrap;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button {
    flex: 1 1 140px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .jk-trainer-filter-pills,
  .jk-manage-scope-tabs,
  .jk-manage-row-actions,
  .jk-peercoach-tabs,
  .jk-lesson-secondary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-manage-row-actions > a,
  .jk-manage-inline-form,
  .jk-manage-inline-form button {
    width: 100% !important;
    min-width: 0;
  }

  .jk-manage-table {
    table-layout: auto;
  }
}

/* v39 polished brand system - navy first, gold as accent, green only for positive states */
:root {
  --jk-primary: #2F4A6A;
  --jk-primary-deep: #253d5a;
  --jk-primary-soft: rgba(47, 74, 106, 0.08);
  --jk-success: #27752F;
  --jk-accent: #C8A46A;
  --jk-accent-soft: rgba(200, 164, 106, 0.14);
  --jk-danger: #a63b3b;
  --jk-bg: #f4f1ea;
  --jk-bg-alt: #faf8f4;
  --jk-surface: #fffdfa;
  --jk-surface-muted: #f8f5ef;
  --jk-border: rgba(47, 74, 106, 0.12);
  --jk-text: #243548;
  --jk-muted: #6b7581;
  --jk-shadow: 0 18px 42px rgba(28, 43, 66, 0.10);
  --jk-shadow-soft: 0 10px 24px rgba(28, 43, 66, 0.06);
  --jk-radius-xl: 30px;
  --jk-radius-lg: 24px;
  --jk-radius-md: 18px;
  --jk-font-ui: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jk-font-body: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jk-portal-app,
.jk-portal-app * {
  box-sizing: border-box;
}

.jk-portal-app {
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 84vh;
  background: linear-gradient(180deg, #ffffff, var(--jk-bg));
  border-radius: var(--jk-radius-xl);
  border: 1px solid rgba(47, 74, 106, 0.08);
  box-shadow: 0 28px 64px rgba(28, 43, 66, 0.14);
  font-family: var(--jk-font-body);
}

.jk-sidebar {
  position: relative;
  background: linear-gradient(180deg, #314d70 0%, #2b4463 54%, #243a55 100%);
  padding: 26px 22px 22px;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.jk-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.jk-sidebar > * {
  position: relative;
  z-index: 1;
}

.jk-brand {
  display: grid;
  gap: 12px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jk-brand-logo {
  display: block;
  width: min(100%, 224px);
  height: auto;
}

.jk-brand-platform {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--jk-font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.jk-brand strong,
.jk-brand span,
.jk-sidebar-footer a,
.jk-sidebar-footer p {
  color: #fff;
}

.jk-nav {
  gap: 6px;
}

.jk-nav-item {
  position: relative;
  gap: 12px;
  border-radius: 16px;
  padding: 13px 16px 13px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--jk-font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.jk-nav-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: var(--jk-accent);
  transform: translateY(-50%);
  transition: height 0.18s ease;
}

.jk-nav-item:hover,
.jk-nav-item:focus-visible,
.jk-nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.jk-nav-item:hover::before,
.jk-nav-item:focus-visible::before,
.jk-nav-item.is-active::before {
  height: 24px;
}

.jk-sidebar-footer {
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--jk-font-ui);
  font-size: 14px;
}

.jk-sidebar-footer p {
  margin: 0;
  font-weight: 600;
}

.jk-sidebar-footer a {
  opacity: 0.84;
  text-decoration: none;
}

.jk-sidebar-footer a:hover,
.jk-sidebar-footer a:focus-visible {
  opacity: 1;
}

.jk-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 234, 0.90));
}

.jk-page-header {
  padding: 32px 36px 14px;
  border-bottom: 0;
  background: transparent;
}

.jk-page-header h1,
.jk-page-header h2,
.jk-card h2,
.jk-card h3,
.jk-login-card h2,
.jk-manage-title,
.jk-peercoach-peer-name,
.jk-trainer-review-card h2,
.jk-repeater-header h3 {
  margin-top: 0;
  color: var(--jk-primary);
  font-family: var(--jk-font-ui);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.jk-page-header h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 0.96;
}

.jk-page-subtitle {
  max-width: 70ch;
  margin: 0;
  color: var(--jk-muted);
  font-size: 16px;
  line-height: 1.65;
}

.jk-content {
  padding: 8px 36px 36px;
  gap: 22px;
}

.jk-grid,
.jk-repeater-items,
.jk-feedback-list {
  gap: 20px;
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-guidance-card,
.jk-peercoach-peer-card,
.jk-trainer-review-card,
.jk-manage-editor-card,
.jk-manage-overview-card,
.jk-manage-table-wrap,
.jk-readonly-field,
.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section {
  background: linear-gradient(180deg, #fffdfa, var(--jk-bg-alt));
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-lg);
  box-shadow: var(--jk-shadow-soft);
}

.jk-card,
.jk-login-card,
.jk-repeater-item {
  padding: 24px;
}

.jk-card h2,
.jk-card h3,
.jk-login-card h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

.jk-meta-line,
.jk-card p,
.jk-card li,
.jk-empty-state p,
.jk-help-list,
.jk-guidance-card p,
.jk-guidance-card small,
.jk-manage-date,
.jk-peercoach-peer-email,
.jk-feedback-note p,
.jk-readonly-value {
  color: var(--jk-muted);
  font-size: 15px;
  line-height: 1.65;
}

.jk-card p:last-child,
.jk-empty-state p:last-child,
.jk-feedback-note p:last-child {
  margin-bottom: 0;
}

.jk-hero-card,
.jk-login-card {
  position: relative;
  overflow: hidden;
}

.jk-hero-card::before,
.jk-login-card::before,
.jk-manage-editor-card::before,
.jk-peercoach-detail-header::before,
.jk-card.jk-award-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--jk-accent);
}

.jk-stat-card {
  position: relative;
  overflow: hidden;
}

.jk-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--jk-accent);
}

.jk-stat-label,
.jk-eyebrow,
.jk-guidance-card strong,
.jk-readonly-field strong {
  display: block;
  margin-bottom: 10px;
  color: var(--jk-primary);
  font-family: var(--jk-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-eyebrow {
  color: var(--jk-accent);
}

.jk-stat-card strong,
.jk-inline-stats strong,
.jk-peercoach-peer-stat strong,
.jk-peercoach-stat-text {
  display: block;
  margin: 0;
  color: var(--jk-primary);
  font-family: var(--jk-font-ui);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 600;
  line-height: 1;
}

.jk-card-actions,
.jk-header-actions,
.jk-lesson-secondary-actions,
.jk-peercoach-tabs,
.jk-manage-scope-tabs,
.jk-trainer-filter-pills,
.jk-manage-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.jk-header-actions {
  justify-content: flex-end;
}

.jk-primary-button,
.jk-secondary-button,
.jk-link-button,
.jk-danger-button,
.jk-login-card .button,
.jk-login-card #wp-submit,
.jk-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--jk-font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.jk-primary-button,
.jk-login-card .button,
.jk-login-card #wp-submit {
  background: var(--jk-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 74, 106, 0.16);
}

.jk-primary-button:hover,
.jk-primary-button:focus-visible,
.jk-login-card .button:hover,
.jk-login-card .button:focus-visible,
.jk-login-card #wp-submit:hover,
.jk-login-card #wp-submit:focus-visible {
  background: var(--jk-primary-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 74, 106, 0.18);
  outline: none;
}

.jk-secondary-button,
.jk-file-trigger {
  background: #fff;
  color: var(--jk-primary);
  border-color: rgba(47, 74, 106, 0.18);
  box-shadow: 0 6px 16px rgba(47, 74, 106, 0.06);
}

.jk-secondary-button:hover,
.jk-secondary-button:focus-visible,
.jk-file-trigger:hover,
.jk-file-trigger:focus-visible,
.jk-link-button:hover,
.jk-link-button:focus-visible {
  background: rgba(47, 74, 106, 0.05);
  color: var(--jk-primary);
  border-color: rgba(47, 74, 106, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.jk-link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jk-primary);
  box-shadow: none;
}

.jk-danger-button {
  background: rgba(166, 59, 59, 0.08);
  color: #8c2f2f;
  border-color: rgba(166, 59, 59, 0.18);
  box-shadow: none;
}

.jk-danger-button:hover,
.jk-danger-button:focus-visible {
  background: rgba(166, 59, 59, 0.14);
  color: #772323;
  border-color: rgba(166, 59, 59, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.jk-badge,
.jk-manage-status-badge,
.jk-peercoach-review-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--jk-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(47, 74, 106, 0.09);
  color: var(--jk-primary);
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge,
.jk-manage-status-badge.is-published {
  background: rgba(39, 117, 47, 0.14);
  color: var(--jk-success);
}

.jk-badge-revision_requested,
.jk-badge-failed,
.jk-badge-rejected,
.jk-manage-status-badge.is-trash {
  background: rgba(166, 59, 59, 0.10);
  color: #8c2f2f;
}

.jk-badge-certificate,
.jk-manage-status-badge.is-private,
.jk-peercoach-review-pill {
  background: var(--jk-accent-soft);
  color: #846233;
}

.jk-manage-status-badge.is-draft {
  background: rgba(47, 74, 106, 0.10);
  color: var(--jk-primary);
}

.jk-progress {
  width: 100%;
  height: 10px;
  margin: 14px 0 10px;
  border-radius: 999px;
  background: rgba(47, 74, 106, 0.08);
  overflow: hidden;
}

.jk-progress span {
  display: block;
  height: 100%;
  background: var(--jk-primary);
}

.jk-status-list,
.jk-help-list,
.jk-lesson-list,
.jk-meta-list {
  margin: 0;
  padding-left: 18px;
}

.jk-status-list {
  list-style: none;
  padding-left: 0;
}

.jk-status-list li,
.jk-lesson-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-status-list li:last-child,
.jk-lesson-row:last-child {
  border-bottom: 0;
}

.jk-status-list strong,
.jk-lesson-row strong,
.jk-feedback-meta strong {
  color: var(--jk-primary);
  font-family: var(--jk-font-ui);
  font-weight: 600;
}

.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section,
.jk-readonly-field,
.jk-feedback-note {
  padding: 18px;
  border-radius: var(--jk-radius-md);
}

.jk-empty-state {
  background: rgba(47, 74, 106, 0.03);
  border-style: dashed;
}

.jk-notice {
  margin: 0 36px;
  padding: 14px 16px;
  border-left: 4px solid var(--jk-success);
  border-radius: 16px;
  background: rgba(39, 117, 47, 0.10);
  color: var(--jk-success);
  font-family: var(--jk-font-ui);
  font-size: 14px;
  font-weight: 600;
}

.jk-form-grid,
.jk-repeater-grid,
.jk-readonly-view {
  gap: 16px;
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]),
.jk-form-grid textarea,
.jk-form-grid select,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]),
.jk-repeater-grid textarea,
.jk-repeater-grid select,
.jk-login-card input,
.jk-content .jk-form-grid input.widefat,
.jk-content .jk-form-grid textarea.widefat,
.jk-content .jk-repeater-grid input.widefat,
.jk-content .jk-repeater-grid textarea.widefat,
.jk-content .jk-leadership-grid input.widefat,
.jk-content .jk-leadership-grid textarea.widefat {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(47, 74, 106, 0.16);
  background: #fff;
  color: var(--jk-text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(47, 74, 106, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.jk-form-grid textarea.widefat,
.jk-repeater-grid textarea.widefat,
.jk-question-card .jk-quiz-open-answer {
  min-height: 140px;
  resize: vertical;
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):hover,
.jk-form-grid textarea:hover,
.jk-form-grid select:hover,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):hover,
.jk-repeater-grid textarea:hover,
.jk-repeater-grid select:hover,
.jk-login-card input:hover,
.jk-content .jk-form-grid input.widefat:hover,
.jk-content .jk-form-grid textarea.widefat:hover,
.jk-content .jk-repeater-grid input.widefat:hover,
.jk-content .jk-repeater-grid textarea.widefat:hover,
.jk-content .jk-leadership-grid input.widefat:hover,
.jk-content .jk-leadership-grid textarea.widefat:hover {
  border-color: rgba(47, 74, 106, 0.24);
}

.jk-form-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.jk-form-grid textarea:focus,
.jk-form-grid select:focus,
.jk-repeater-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.jk-repeater-grid textarea:focus,
.jk-repeater-grid select:focus,
.jk-login-card input:focus,
.jk-content .jk-form-grid input.widefat:focus,
.jk-content .jk-form-grid textarea.widefat:focus,
.jk-content .jk-repeater-grid input.widefat:focus,
.jk-content .jk-repeater-grid textarea.widefat:focus,
.jk-content .jk-leadership-grid input.widefat:focus,
.jk-content .jk-leadership-grid textarea.widefat:focus {
  outline: none;
  border-color: rgba(200, 164, 106, 0.78);
  box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.16);
}

.jk-login-card {
  max-width: 560px;
  margin: 42px auto;
}

.jk-login-logo {
  display: block;
  width: min(100%, 320px);
  max-width: 320px;
  height: auto;
  margin-bottom: 22px;
}

.jk-file-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.jk-file-status,
.jk-assignment-current-file,
.jk-assignment-file-link {
  font-size: 14px;
  color: var(--jk-muted);
}

.jk-guidance-wrapper {
  display: block;
}

.jk-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jk-guidance-card {
  position: relative;
  min-height: 168px;
  padding: 22px 20px;
  overflow: hidden;
}

.jk-guidance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--jk-accent);
}

.jk-guidance-card strong {
  margin-bottom: 12px;
}

.jk-guidance-card p {
  margin: 0 0 8px;
}

.jk-guidance-card p:last-child {
  margin-bottom: 0;
}

.jk-peercoach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 20px;
}

.jk-peercoach-peer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
}

.jk-peercoach-peer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--jk-accent);
}

.jk-peercoach-peer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.jk-peercoach-peer-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.jk-peercoach-peer-copy {
  min-width: 0;
}

.jk-peercoach-peer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--jk-primary), #446180);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jk-font-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(47, 74, 106, 0.16);
}

.jk-peercoach-peer-name {
  margin: 0;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.08;
  word-break: break-word;
}

.jk-peercoach-peer-email {
  margin: 6px 0 0;
  word-break: break-word;
}

.jk-peercoach-review-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.jk-peercoach-peer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jk-peercoach-peer-stat {
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(47, 74, 106, 0.08);
  background: rgba(47, 74, 106, 0.03);
}

.jk-peercoach-peer-stat span {
  display: block;
  margin-top: 8px;
  color: var(--jk-muted);
  font-size: 13px;
  line-height: 1.35;
}

.jk-peercoach-next-lesson {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 74, 106, 0.08);
  background: rgba(47, 74, 106, 0.03);
  color: var(--jk-text);
  line-height: 1.55;
}

.jk-peercoach-next-lesson strong {
  color: var(--jk-primary);
  font-family: var(--jk-font-ui);
}

.jk-peercoach-peer-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  flex: 0 0 auto;
  min-width: 124px;
  max-width: none;
  width: auto !important;
  padding: 10px 16px;
  white-space: nowrap;
}

.jk-peercoach-detail-header,
.jk-trainer-review-card,
.jk-feedback-note {
  position: relative;
}

.jk-peercoach-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.jk-peercoach-tabs {
  margin-top: 18px;
}

.jk-peercoach-tabs .jk-secondary-button.is-active,
.jk-trainer-filter-pills .jk-secondary-button.is-active,
.jk-manage-scope-tabs .jk-secondary-button.is-active {
  background: var(--jk-primary);
  color: #fff;
  border-color: var(--jk-primary);
  box-shadow: 0 10px 22px rgba(47, 74, 106, 0.14);
}

.jk-feedback-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.jk-feedback-meta small {
  color: var(--jk-muted);
  font-size: 13px;
}

.jk-manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.95fr);
  align-items: start;
  gap: 22px;
}

.jk-manage-overview-head,
.jk-manage-toolbar,
.jk-trainer-review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.jk-manage-overview-head h2,
.jk-manage-editor-card h2 {
  margin-bottom: 8px;
}

.jk-manage-total {
  margin: 0;
}

.jk-manage-table-wrap,
.jk-portal-table-wrap {
  border-radius: 20px;
  overflow: hidden;
}

.jk-manage-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

.jk-manage-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 14px;
  background: var(--jk-primary);
  color: #fff;
  font-family: var(--jk-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) { width: 40%; }

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) { width: 17%; }

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) { width: 20%; }

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) { width: 23%; }

.jk-manage-table td {
  padding: 16px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08);
}

.jk-manage-table tbody tr:nth-child(even) {
  background: rgba(47, 74, 106, 0.02);
}

.jk-manage-table tbody tr:hover {
  background: rgba(200, 164, 106, 0.08);
}

.jk-manage-title-cell {
  display: grid;
  gap: 4px;
}

.jk-manage-title {
  margin: 0;
  color: var(--jk-primary);
  font-size: 17px;
  line-height: 1.35;
}

.jk-manage-date {
  font-size: 14px;
  white-space: nowrap;
}

.jk-manage-row-actions {
  justify-content: flex-end;
  gap: 8px;
}

.jk-manage-inline-form {
  display: inline-flex;
  margin: 0;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 110px;
  min-height: 40px;
  padding: 9px 14px;
  box-sizing: border-box;
}

.jk-manage-inline-form .jk-danger-button,
.jk-manage-inline-form .jk-secondary-button {
  width: auto;
}

.jk-portal-table td:last-child,
.jk-manage-table td:last-child {
  text-align: right;
}

.jk-readonly-field-wide {
  grid-column: span 2;
}

.jk-help-list li,
.jk-meta-list li {
  margin-bottom: 8px;
}

.jk-course-structure,
.jk-repeater-items {
  display: grid;
  gap: 18px;
}

.jk-module-block {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--jk-border);
  background: linear-gradient(180deg, #fffdfa, var(--jk-bg-alt));
}

.jk-video-wrap iframe,
.jk-video-wrap video {
  width: 100%;
  border-radius: 20px;
}

.jk-breadcrumb {
  color: var(--jk-primary);
  text-decoration: none;
}

.jk-breadcrumb:hover,
.jk-breadcrumb:focus-visible {
  text-decoration: underline;
}

.jk-award-card small {
  color: var(--jk-muted);
}

@media (max-width: 1180px) {
  .jk-portal-app {
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .jk-page-header {
    padding: 28px 24px 12px;
  }

  .jk-content {
    padding: 8px 24px 28px;
  }

  .jk-guidance-grid {
    grid-template-columns: 1fr;
  }

  .jk-manage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .jk-portal-app {
    grid-template-columns: 1fr;
  }

  .jk-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .jk-grid-2,
  .jk-grid-3,
  .jk-two-column-grid,
  .jk-peercoach-grid {
    grid-template-columns: 1fr !important;
  }

  .jk-peercoach-peer-head,
  .jk-trainer-review-toolbar,
  .jk-manage-overview-head,
  .jk-manage-toolbar,
  .jk-peercoach-detail-top,
  .jk-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .jk-notice {
    margin: 0 20px;
  }

  .jk-card,
  .jk-login-card,
  .jk-repeater-item {
    padding: 20px;
  }

  .jk-page-header h1 {
    font-size: 34px;
  }

  .jk-page-subtitle,
  .jk-card p,
  .jk-card li,
  .jk-meta-line,
  .jk-empty-state p,
  .jk-help-list,
  .jk-manage-date,
  .jk-peercoach-peer-email,
  .jk-guidance-card p,
  .jk-guidance-card small,
  .jk-status-list small,
  .jk-feedback-note p,
  .jk-readonly-value {
    font-size: 14px;
  }

  .jk-peercoach-peer-stats {
    grid-template-columns: 1fr;
  }

  .jk-peercoach-peer-actions {
    justify-content: stretch;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button,
  .jk-manage-row-actions > a,
  .jk-manage-inline-form,
  .jk-manage-inline-form button,
  .jk-primary-button,
  .jk-secondary-button {
    width: 100% !important;
    min-width: 0;
  }

  .jk-manage-row-actions,
  .jk-manage-scope-tabs,
  .jk-trainer-filter-pills,
  .jk-card-actions,
  .jk-peercoach-tabs,
  .jk-header-actions {
    align-items: stretch;
  }

  .jk-manage-table th:nth-child(3),
  .jk-manage-table td:nth-child(3),
  .jk-manage-table th:nth-child(4),
  .jk-manage-table td:nth-child(4) {
    white-space: normal;
  }

  .jk-readonly-field-wide {
    grid-column: auto;
  }
}

/* v39.1 final lock-in overrides */
:root {
  --jk-primary: #2F4A6A;
  --jk-primary-deep: #243a55;
  --jk-success: #27752F;
  --jk-accent: #C8A46A;
  --jk-bg: #f3f6f9;
  --jk-bg-alt: #fbfcfd;
  --jk-surface: #ffffff;
  --jk-border: rgba(47, 74, 106, 0.12);
  --jk-text: #223447;
  --jk-muted: #667789;
}

.jk-portal-app {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
  box-shadow: 0 28px 60px rgba(28, 43, 66, 0.12) !important;
}

.jk-sidebar {
  background: linear-gradient(180deg, #2F4A6A 0%, #253d5a 100%) !important;
}

.jk-page-header,
.jk-hero-card,
.jk-peercoach-detail-header,
.jk-trainer-review-toolbar {
  background: linear-gradient(135deg, rgba(47, 74, 106, 0.04) 0%, rgba(255, 255, 255, 1) 50%, rgba(200, 164, 106, 0.06) 100%) !important;
}

.jk-stat-card::before,
.jk-guidance-card::before,
.jk-peercoach-peer-card::before {
  background: var(--jk-accent) !important;
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-guidance-card,
.jk-peercoach-peer-card,
.jk-trainer-review-card,
.jk-manage-overview-card,
.jk-manage-editor-card,
.jk-manage-table-wrap,
.jk-portal-table-wrap,
.jk-feedback-note,
.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section,
.jk-module-block {
  background: linear-gradient(180deg, #ffffff, #fbfcfd) !important;
  border-color: rgba(47, 74, 106, 0.12) !important;
  box-shadow: 0 16px 34px rgba(28, 43, 66, 0.08) !important;
}

.jk-primary-button {
  background: var(--jk-primary) !important;
  border-color: var(--jk-primary) !important;
  color: #fff !important;
}

.jk-secondary-button {
  background: #ffffff !important;
  border-color: rgba(47, 74, 106, 0.14) !important;
  color: var(--jk-primary) !important;
}

.jk-danger-button {
  background: #ffffff !important;
  border-color: rgba(164, 61, 61, 0.18) !important;
  color: #a43d3d !important;
}

.jk-badge,
.jk-manage-status-badge.is-draft,
.jk-manage-status-badge.is-neutral,
.jk-manage-status-badge.is-trash {
  background: rgba(47, 74, 106, 0.08) !important;
  color: var(--jk-primary) !important;
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge,
.jk-manage-status-badge.is-published {
  background: rgba(39, 117, 47, 0.12) !important;
  color: var(--jk-success) !important;
}

.jk-peercoach-review-pill,
.jk-manage-status-badge.is-private,
.jk-badge-certificate {
  background: rgba(200, 164, 106, 0.16) !important;
  border: 1px solid rgba(200, 164, 106, 0.26) !important;
  color: #7a5e31 !important;
}

.jk-progress span {
  background: linear-gradient(90deg, var(--jk-primary), var(--jk-accent)) !important;
}

.jk-guidance-card {
  min-height: 184px !important;
}

.jk-guidance-card strong {
  font-size: 19px !important;
  font-weight: 600 !important;
}

.jk-guidance-card p:last-child {
  margin-bottom: 0;
}

.jk-peercoach-peer-card {
  gap: 18px !important;
  padding: 24px !important;
}

.jk-peercoach-peer-avatar {
  background: var(--jk-primary) !important;
  box-shadow: 0 10px 22px rgba(47, 74, 106, 0.16) !important;
}

.jk-peercoach-peer-stat,
.jk-peercoach-next-lesson {
  background: #f8fafc !important;
  border-color: rgba(47, 74, 106, 0.08) !important;
}


.jk-peercoach-peer-avatar.jk-peercoach-peer-avatar-flag {
  background: #ffffff !important;
  color: inherit !important;
  font-size: 28px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 20px rgba(47, 74, 106, 0.10) !important;
}

.jk-language-filter-pills {
  margin-bottom: 10px !important;
}

.jk-peercoach-peer-actions {
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  padding: 10px 12px !important;
  text-align: center !important;
  justify-content: center !important;
}

.jk-manage-table-wrap,
.jk-portal-table-wrap {
  border-radius: 20px !important;
  background: #ffffff !important;
}

.jk-manage-table,
.jk-portal-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
}

.jk-manage-table thead th,
.jk-portal-table thead th,
.jk-portal-table th {
  background: #edf2f7 !important;
  color: var(--jk-primary) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  border-bottom: 1px solid rgba(47, 74, 106, 0.14) !important;
}

.jk-manage-table th + th,
.jk-manage-table td + td,
.jk-portal-table th + th,
.jk-portal-table td + td {
  border-left: 1px solid rgba(47, 74, 106, 0.06) !important;
}

.jk-manage-table td,
.jk-portal-table td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(47, 74, 106, 0.08) !important;
}

.jk-manage-table tbody tr:nth-child(even),
.jk-portal-table tbody tr:nth-child(even) {
  background: #fbfcfd !important;
}

.jk-manage-table tbody tr:hover,
.jk-portal-table tbody tr:hover {
  background: #f7f2ea !important;
}

.jk-manage-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

.jk-manage-date {
  font-size: 14px !important;
  line-height: 1.55 !important;
  white-space: normal !important;
}

.jk-manage-row-actions {
  justify-content: flex-end !important;
  gap: 8px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 118px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
}

@media (max-width: 720px) {
  .jk-peercoach-peer-actions {
    flex-wrap: wrap !important;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button,
  .jk-manage-row-actions > a,
  .jk-manage-inline-form,
  .jk-manage-inline-form button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .jk-manage-row-actions,
  .jk-manage-scope-tabs,
  .jk-trainer-filter-pills,
  .jk-card-actions,
  .jk-peercoach-tabs,
  .jk-header-actions {
    align-items: stretch !important;
  }
}

/* v40 final art direction – navy first, gold subtle, green only for success */
:root {
  --jk-primary: #2F4A6A;
  --jk-primary-deep: #253d5a;
  --jk-secondary: #27752F;
  --jk-accent: #C8A46A;
  --jk-bg: #f4f1ea;
  --jk-surface: #fffdfa;
  --jk-surface-soft: #fbfaf7;
  --jk-border: rgba(47, 74, 106, 0.12);
  --jk-border-strong: rgba(47, 74, 106, 0.18);
  --jk-text: #243548;
  --jk-muted: #6c7886;
  --jk-shadow: 0 18px 42px rgba(28, 43, 66, 0.10);
}

.jk-portal-app {
  background: linear-gradient(180deg, #ffffff 0%, var(--jk-bg) 100%) !important;
  border: 1px solid rgba(47, 74, 106, 0.08) !important;
  box-shadow: 0 28px 64px rgba(28, 43, 66, 0.14) !important;
}

.jk-sidebar {
  background: linear-gradient(180deg, #314d70 0%, #273f5b 100%) !important;
}

.jk-page-header::after,
.jk-stat-card::before,
.jk-peercoach-peer-card::before,
.jk-guidance-card::before {
  background: var(--jk-accent) !important;
}

.jk-hero-card,
.jk-peercoach-detail-header,
.jk-trainer-review-toolbar {
  background: linear-gradient(180deg, rgba(47, 74, 106, 0.04) 0%, rgba(255, 255, 255, 0.96) 68%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.jk-card,
.jk-login-card,
.jk-repeater-item,
.jk-guidance-card,
.jk-peercoach-peer-card,
.jk-trainer-review-card,
.jk-manage-overview-card,
.jk-manage-editor-card,
.jk-manage-table-wrap,
.jk-portal-table-wrap,
.jk-question-card,
.jk-feedback-box,
.jk-empty-state,
.jk-repeater-section,
.jk-feedback-note,
.jk-module-block {
  background: linear-gradient(180deg, #ffffff 0%, var(--jk-surface-soft) 100%) !important;
  border: 1px solid var(--jk-border) !important;
  box-shadow: var(--jk-shadow) !important;
}

.jk-primary-button {
  background: var(--jk-primary) !important;
  border-color: var(--jk-primary) !important;
  color: #ffffff !important;
}

.jk-secondary-button {
  background: #ffffff !important;
  border: 1px solid var(--jk-border-strong) !important;
  color: var(--jk-primary) !important;
}

.jk-primary-button:hover,
.jk-primary-button:focus-visible {
  background: var(--jk-primary-deep) !important;
  border-color: var(--jk-primary-deep) !important;
}

.jk-secondary-button:hover,
.jk-secondary-button:focus-visible,
.jk-link-button:hover,
.jk-link-button:focus-visible {
  background: #f4f7fa !important;
  border-color: rgba(47, 74, 106, 0.22) !important;
}

.jk-progress span {
  background: var(--jk-primary) !important;
}

.jk-badge,
.jk-review-pill,
.jk-manage-status-badge,
.jk-manage-status-badge.is-draft,
.jk-manage-status-badge.is-neutral,
.jk-manage-status-badge.is-trash {
  background: rgba(47, 74, 106, 0.08) !important;
  color: var(--jk-primary) !important;
}

.jk-peercoach-review-pill,
.jk-manage-status-badge.is-private,
.jk-badge-certificate,
.jk-badge-submitted,
.jk-badge-received,
.jk-badge-under_review,
.jk-badge-pending_review,
.jk-badge-revision_requested {
  background: rgba(200, 164, 106, 0.16) !important;
  border-color: rgba(200, 164, 106, 0.24) !important;
  color: #7b6236 !important;
}

.jk-badge-completed,
.jk-badge-approved,
.jk-badge-passed,
.jk-badge-badge,
.jk-manage-status-badge.is-published {
  background: rgba(39, 117, 47, 0.12) !important;
  color: var(--jk-secondary) !important;
}

.jk-peercoach-peer-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

.jk-peercoach-peer-actions .jk-primary-button,
.jk-peercoach-peer-actions .jk-secondary-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 146px !important;
  max-width: none !important;
  padding: 10px 18px !important;
}

.jk-manage-table-wrap,
.jk-portal-table-wrap {
  background: #ffffff !important;
  border: 1px solid var(--jk-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.jk-manage-table thead th,
.jk-portal-table thead th,
.jk-portal-table th {
  background: #edf3f8 !important;
  color: var(--jk-primary) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

.jk-manage-table tbody tr:nth-child(even),
.jk-portal-table tbody tr:nth-child(even) {
  background: #fbfcfd !important;
}

.jk-manage-table tbody tr:hover,
.jk-portal-table tbody tr:hover {
  background: #f7f2ea !important;
}

.jk-manage-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

.jk-manage-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 118px !important;
  height: 40px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
}

.jk-manage-inline-form .jk-danger-button,
.jk-manage-inline-form .jk-secondary-button {
  width: 118px !important;
}

@media (max-width: 720px) {
  .jk-peercoach-peer-actions {
    justify-content: center !important;
  }

  .jk-peercoach-peer-actions .jk-primary-button,
  .jk-peercoach-peer-actions .jk-secondary-button {
    flex: 1 1 140px !important;
    min-width: 140px !important;
    width: auto !important;
  }
}

/* v40.1 polish – sidebar logo, clearer beheer table, peer course assignment */
.jk-brand {
  gap: 14px !important;
}

.jk-brand-lockup {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

.jk-brand-icon {
  width: 62px !important;
  height: auto !important;
  flex: 0 0 62px !important;
  display: block !important;
}

.jk-brand-wordmark {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.jk-brand-wordmark strong,
.jk-brand-wordmark span {
  display: block !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em !important;
  margin: 0 !important;
}

.jk-brand-wordmark strong {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 2.25vw, 2.5rem) !important;
  font-weight: 600 !important;
}

.jk-brand-wordmark span {
  color: var(--jk-accent) !important;
  font-size: clamp(1.35rem, 1.8vw, 1.9rem) !important;
  font-weight: 500 !important;
}

.jk-brand-tag {
  align-self: flex-start !important;
}

.jk-login-logo {
  width: min(100%, 320px) !important;
  height: auto !important;
}

.jk-manage-table {
  table-layout: fixed !important;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) {
  width: 44% !important;
}

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) {
  width: 16% !important;
}

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) {
  width: 18% !important;
}

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 22% !important;
}

.jk-manage-title-cell {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.jk-manage-row-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: end !important;
  gap: 8px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form {
  width: 100% !important;
  max-width: 148px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 0 12px !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  font-size: 13px !important;
}

.jk-manage-table td:last-child {
  overflow: visible !important;
}

.jk-assignment-card {
  margin-bottom: 28px !important;
}

.jk-peer-course-form {
  gap: 18px !important;
}

.jk-peer-course-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.jk-peer-course-option {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid var(--jk-border) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

.jk-peer-course-option:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(47, 74, 106, 0.22) !important;
  box-shadow: 0 14px 28px rgba(28, 43, 66, 0.08) !important;
}

.jk-peer-course-option-check {
  flex: 0 0 auto !important;
  padding-top: 2px !important;
}

.jk-peer-course-option-check input {
  width: 18px !important;
  height: 18px !important;
}

.jk-peer-course-option-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.jk-peer-course-option-body strong {
  color: var(--jk-primary) !important;
  font-size: 16px !important;
}

.jk-peer-course-option-body .jk-meta-line {
  margin: 0 !important;
}

.jk-peer-course-option-body .jk-badge {
  width: fit-content !important;
  margin-top: 2px !important;
}

@media (max-width: 920px) {
  .jk-peer-course-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .jk-brand-lockup {
    gap: 12px !important;
  }

  .jk-brand-icon {
    width: 50px !important;
    flex-basis: 50px !important;
  }

  .jk-manage-table {
    min-width: 660px !important;
  }

  .jk-manage-row-actions > a,
  .jk-manage-inline-form {
    max-width: none !important;
  }
}

/* v41 final polish – full logo restore, beheer cleanup, feedback delete, progress tools */
.jk-brand {
  align-items: flex-start !important;
  gap: 12px !important;
}

.jk-brand-lockup {
  display: block !important;
  width: 100% !important;
}

.jk-brand-logo {
  display: block !important;
  width: min(100%, 206px) !important;
  height: auto !important;
}

.jk-brand-icon,
.jk-brand-wordmark {
  display: none !important;
}

.jk-brand-tag {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.jk-manage-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
}

.jk-manage-overview-card,
.jk-manage-editor-card {
  min-width: 0 !important;
}

.jk-manage-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.jk-manage-table-wrap {
  overflow-x: auto !important;
}

.jk-manage-table {
  width: 100% !important;
  min-width: 860px !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.jk-manage-table th,
.jk-manage-table td {
  vertical-align: middle !important;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) {
  width: 48% !important;
}

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) {
  width: 17% !important;
}

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) {
  width: 18% !important;
}

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 17% !important;
}

.jk-manage-row-actions {
  justify-items: stretch !important;
  align-content: center !important;
  gap: 10px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form {
  width: 100% !important;
  max-width: 164px !important;
  margin-left: auto !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  height: 42px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.jk-manage-editor-card .jk-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px 18px !important;
}

.jk-manage-editor-card .jk-form-grid > p:nth-child(5),
.jk-manage-editor-card .jk-form-grid > p:nth-child(6),
.jk-manage-editor-card .jk-form-grid > p:nth-child(7),
.jk-manage-editor-card .jk-form-grid > p:nth-child(8),
.jk-manage-editor-card .jk-form-grid > p:nth-child(9),
.jk-manage-editor-card .jk-form-grid > p:nth-child(10),
.jk-manage-editor-card .jk-form-grid > p:nth-child(11),
.jk-manage-editor-card .jk-form-grid > p:nth-child(12),
.jk-manage-editor-card .jk-form-grid > p:nth-child(13),
.jk-manage-editor-card .jk-form-grid > p:nth-child(14),
.jk-manage-editor-card .jk-form-grid > p:nth-child(15),
.jk-manage-editor-card .jk-form-grid > .jk-card-actions {
  grid-column: 1 / -1 !important;
}

.jk-feedback-note-actions {
  margin-top: 12px !important;
}

.jk-feedback-note-actions .jk-danger-button {
  min-width: 0 !important;
  height: 36px !important;
  padding: 0 14px !important;
}

.jk-progress-admin-card {
  margin-bottom: 28px !important;
}

.jk-progress-admin-grid {
  margin-bottom: 18px !important;
}

.jk-progress-admin-panel {
  height: 100% !important;
}

.jk-inline-stack {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.jk-progress-module-list {
  display: grid !important;
  gap: 14px !important;
}

.jk-progress-course-card {
  padding: 18px !important;
}

.jk-progress-course-head {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.jk-progress-module-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.jk-progress-module-form {
  margin: 0 !important;
}

.jk-progress-module-form .jk-secondary-button {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 960px) {
  .jk-manage-editor-card .jk-form-grid,
  .jk-progress-admin-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .jk-brand-logo {
    width: min(100%, 180px) !important;
  }

  .jk-manage-table {
    min-width: 760px !important;
  }
}

/* v42 final manage-actions layout fix */
.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 24% !important;
}

.jk-manage-table td:last-child {
  overflow: visible !important;
}

.jk-manage-row-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  justify-items: unset !important;
  align-content: unset !important;
  gap: 10px !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form {
  display: flex !important;
  flex: 0 0 132px !important;
  width: 132px !important;
  max-width: 132px !important;
  min-width: 132px !important;
  margin: 0 !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  height: 42px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .jk-manage-row-actions {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
  }
}

/* v43 beheer layout, feedback permissions UI, peer learning management */
@media (min-width: 1180px) {
  .jk-manage-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.9fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }

  .jk-manage-overview-card,
  .jk-manage-editor-card {
    min-width: 0 !important;
    width: auto !important;
    grid-column: auto !important;
  }

  .jk-manage-editor-card {
    position: sticky;
    top: 24px;
  }
}

.jk-manage-table-wrap {
  overflow-x: auto;
}

.jk-manage-table {
  width: 100%;
  table-layout: fixed;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) {
  width: 42%;
}

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) {
  width: 16%;
}

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) {
  width: 18%;
}

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 24%;
  min-width: 292px;
}

.jk-manage-table td:last-child {
  overflow: visible;
}

.jk-manage-row-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form {
  flex: 0 0 auto;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form .jk-secondary-button,
.jk-manage-inline-form .jk-danger-button {
  width: 136px !important;
  min-width: 136px !important;
  height: 44px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.jk-feedback-summary-card .jk-feedback-summary-scroll {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}

.jk-feedback-summary-card .jk-feedback-summary-list {
  display: grid;
  gap: 12px;
}

.jk-feedback-summary-card .jk-feedback-note {
  margin: 0;
}

.jk-feedback-note-actions {
  justify-content: flex-end;
}

@media (max-width: 1179px) {
  .jk-manage-layout {
    grid-template-columns: 1fr !important;
  }

  .jk-manage-editor-card {
    position: static;
  }
}

@media (max-width: 920px) {
  .jk-manage-table {
    table-layout: auto;
  }

  .jk-manage-row-actions {
    flex-wrap: wrap !important;
  }

  .jk-manage-row-actions > a,
  .jk-manage-inline-form .jk-secondary-button,
  .jk-manage-inline-form .jk-danger-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* v44 manage actions width fix */
.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) { width: 36%; }

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) { width: 16%; }

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) { width: 20%; }

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) { width: 28%; }

.jk-manage-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form button {
  min-width: 126px;
}

@media (max-width: 900px) {
  .jk-manage-row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* v45 manage actions stay inside column */
.jk-manage-table {
  width: 100% !important;
  min-width: 980px !important;
  table-layout: fixed !important;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) {
  width: 35% !important;
}

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) {
  width: 15% !important;
}

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) {
  width: 18% !important;
}

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 32% !important;
  min-width: 300px !important;
}

.jk-manage-table th:last-child,
.jk-manage-table td:last-child {
  overflow: hidden !important;
}

.jk-manage-row-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(118px, 1fr)) !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
}

.jk-manage-row-actions > a,
.jk-manage-row-actions > .jk-manage-inline-form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.jk-manage-inline-form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.jk-manage-row-actions > a,
.jk-manage-inline-form .jk-secondary-button,
.jk-manage-inline-form .jk-danger-button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

/* v46 portal fixes */
.jk-manage-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr) !important;
  align-items: start !important;
}

.jk-manage-overview-card,
.jk-manage-editor-card {
  min-width: 0 !important;
}

.jk-manage-table-wrap {
  overflow-x: auto !important;
}

.jk-manage-table {
  width: 100% !important;
  min-width: 1100px !important;
  table-layout: fixed !important;
}

.jk-manage-table th:nth-child(1),
.jk-manage-table td:nth-child(1) {
  width: 34% !important;
}

.jk-manage-table th:nth-child(2),
.jk-manage-table td:nth-child(2) {
  width: 15% !important;
}

.jk-manage-table th:nth-child(3),
.jk-manage-table td:nth-child(3) {
  width: 19% !important;
}

.jk-manage-table th:nth-child(4),
.jk-manage-table td:nth-child(4) {
  width: 32% !important;
  min-width: 330px !important;
}

.jk-manage-table td:last-child,
.jk-manage-table th:last-child {
  overflow: visible !important;
}

.jk-manage-row-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: none !important;
}

.jk-manage-row-actions > a,
.jk-manage-row-actions > .jk-manage-inline-form,
.jk-manage-inline-form button {
  width: auto !important;
  min-width: 138px !important;
  max-width: 138px !important;
  flex: 0 0 138px !important;
}

.jk-manage-inline-form {
  display: inline-flex !important;
  margin: 0 !important;
}

.jk-manage-inline-form .jk-secondary-button,
.jk-manage-inline-form .jk-danger-button,
.jk-manage-row-actions > a {
  height: 44px !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.jk-peer-course-assignment-card .jk-peer-course-table {
  display: grid;
  gap: 12px;
}

.jk-peer-course-assignment-card .jk-peer-course-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(190px, 220px);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(47, 74, 106, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.jk-peer-course-assignment-card .jk-peer-course-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.jk-peer-course-assignment-card .jk-peer-course-main strong {
  color: var(--jk-brand-blue, #2F4A6A);
}

.jk-peer-course-assignment-card .jk-peer-course-status {
  justify-self: start;
}

.jk-peer-course-assignment-card .jk-peer-course-control select {
  width: 100%;
}

.jk-progress-module-list {
  display: grid;
  gap: 18px;
}

.jk-progress-course-card {
  padding-top: 28px;
}

.jk-progress-course-card > h3 {
  margin-bottom: 14px;
}

.jk-progress-module-select-form {
  margin: 0;
}

.jk-feedback-summary-card .jk-feedback-summary-scroll {
  max-height: 220px !important;
}

@media (max-width: 1100px) {
  .jk-manage-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .jk-manage-table {
    min-width: 980px !important;
  }

  .jk-manage-row-actions {
    justify-content: flex-start !important;
  }

  .jk-peer-course-assignment-card .jk-peer-course-row {
    grid-template-columns: 1fr;
  }
}


.jk-media-field {
  display: grid;
  gap: 12px;
}

.jk-media-preview {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 74, 106, 0.14);
  border-radius: 16px;
  background: #f7f8fa;
  overflow: hidden;
}

.jk-media-preview img {
  display: block;
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  border-radius: 16px;
}

.jk-media-placeholder {
  color: #6f7b8a;
  font-size: 14px;
}

.jk-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jk-readonly-photo img {
  display: block;
  max-width: 180px;
  max-height: 180px;
  border-radius: 16px;
}

/* v51 profile upload + logo sizing fix */
.jk-brand-logo {
  width: min(100%, 236px) !important;
  height: auto !important;
}

.jk-login-logo {
  width: min(100%, 270px) !important;
  max-width: 270px !important;
  height: auto !important;
}

.jk-profile-photo-field {
  align-self: start;
}

.jk-profile-photo-field .jk-media-field {
  align-items: flex-start;
}

.jk-profile-photo-field .jk-media-preview {
  width: min(100%, 220px);
  min-height: 180px;
  padding: 16px;
  justify-content: center;
  background: #fafbfc;
}

.jk-profile-photo-field .jk-media-preview img {
  max-width: 100%;
  max-height: 148px;
  border-radius: 14px;
}

.jk-media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.jk-upload-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.jk-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.jk-media-actions .jk-secondary-button,
.jk-media-actions .jk-upload-button {
  min-height: 42px;
}

.jk-media-actions .jk-upload-button span {
  pointer-events: none;
}

@media (max-width: 900px) {
  .jk-profile-photo-field .jk-media-preview {
    width: 100%;
    max-width: 220px;
  }
}

/* v52 logo + profile alignment fix */
.jk-brand {
  align-items: flex-start !important;
  gap: 0 !important;
}

.jk-brand-lockup {
  display: block !important;
  width: 100% !important;
}

.jk-brand-logo {
  display: block !important;
  width: min(100%, 228px) !important;
  max-width: 228px !important;
  height: auto !important;
}

.jk-brand-tag {
  display: block !important;
  margin-top: 10px !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.76) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.jk-profile-photo-field {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  min-width: 0 !important;
}

.jk-profile-photo-field .jk-media-field {
  width: 100% !important;
}

.jk-profile-photo-field .jk-media-preview {
  width: 100% !important;
  max-width: 260px !important;
  min-height: 172px !important;
  justify-content: center !important;
}

.jk-profile-photo-field .jk-media-actions {
  justify-content: flex-start !important;
}

@media (max-width: 900px) {
  .jk-brand-logo {
    width: min(100%, 210px) !important;
    max-width: 210px !important;
  }

  .jk-profile-photo-field .jk-media-preview {
    max-width: 100% !important;
  }
}

/* v53 sidebar logo + profile page cleanup */
.jk-sidebar .jk-brand {
  align-items: center !important;
  gap: 0 !important;
  margin-bottom: 10px !important;
}

.jk-sidebar .jk-brand-lockup {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  text-decoration: none !important;
}

.jk-sidebar .jk-brand-icon {
  display: block !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
}

.jk-sidebar .jk-brand-wordmark {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.jk-sidebar .jk-brand-wordmark strong {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 17px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.jk-sidebar .jk-brand-wordmark > span {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.jk-sidebar .jk-brand-logo,
.jk-sidebar .jk-brand-tag {
  display: none !important;
}

.jk-profile-form {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr) !important;
  align-items: start !important;
  gap: 24px !important;
}

.jk-profile-form > .jk-profile-field,
.jk-profile-form > .jk-profile-photo-field {
  margin: 0 !important;
  min-width: 0 !important;
}

.jk-profile-field-phone {
  grid-column: 1 !important;
}

.jk-profile-field-language {
  grid-column: 2 !important;
}

.jk-profile-field-country {
  grid-column: 1 !important;
}

.jk-profile-field-photo {
  grid-column: 2 !important;
  grid-row: 2 / span 2 !important;
  align-self: start !important;
}

.jk-profile-field-story {
  grid-column: 1 !important;
}

.jk-profile-field-bio,
.jk-profile-field-interests,
.jk-profile-field-note,
.jk-profile-form > .jk-profile-actions,
.jk-profile-form > .jk-profile-consent-status {
  grid-column: 1 / -1 !important;
}

.jk-profile-form label {
  display: block !important;
  margin-bottom: 10px !important;
}

.jk-profile-form textarea {
  min-height: 148px !important;
}

.jk-profile-field-interests textarea {
  min-height: 132px !important;
}

.jk-profile-photo-field .jk-media-field {
  width: 100% !important;
  max-width: none !important;
}

.jk-profile-photo-field .jk-media-preview {
  width: 100% !important;
  max-width: none !important;
  min-height: 196px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #f7f8fa !important;
}

.jk-profile-photo-field .jk-media-preview img {
  max-width: 100% !important;
  max-height: 160px !important;
  width: auto !important;
  height: auto !important;
}

.jk-profile-photo-field .jk-media-placeholder {
  font-size: 15px !important;
}

.jk-profile-photo-field .jk-media-actions {
  justify-content: flex-start !important;
}

@media (max-width: 980px) {
  .jk-profile-form {
    grid-template-columns: 1fr !important;
  }

  .jk-profile-field-language,
  .jk-profile-field-country,
  .jk-profile-field-photo,
  .jk-profile-field-story,
  .jk-profile-field-bio,
  .jk-profile-field-interests,
  .jk-profile-field-note,
  .jk-profile-form > .jk-profile-actions,
  .jk-profile-form > .jk-profile-consent-status {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .jk-profile-photo-field .jk-media-preview {
    min-height: 180px !important;
  }
}

/* v53 final logo + profile layout cleanup */
.jk-brand {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.jk-brand-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: auto !important;
  max-width: 100% !important;
  text-decoration: none !important;
}

.jk-brand-logo,
.jk-brand-tag {
  display: none !important;
}

.jk-brand-icon {
  display: block !important;
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
  object-fit: contain !important;
}

.jk-brand-wordmark {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.jk-brand-wordmark strong,
.jk-brand-wordmark span {
  display: block !important;
  margin: 0 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
}

.jk-brand-wordmark strong {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

.jk-brand-wordmark span {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.jk-profile-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr) !important;
  grid-template-areas:
    'phone language'
    'country photo'
    'story bio'
    'interests interests'
    'note note'
    'actions actions'
    'consent consent' !important;
  align-items: start !important;
  gap: 22px 24px !important;
}

.jk-profile-form .jk-profile-field,
.jk-profile-form .jk-profile-photo-field,
.jk-profile-form .jk-profile-actions,
.jk-profile-form .jk-profile-consent-status {
  min-width: 0 !important;
}

.jk-profile-form .jk-profile-field-phone { grid-area: phone !important; }
.jk-profile-form .jk-profile-field-language { grid-area: language !important; }
.jk-profile-form .jk-profile-field-country { grid-area: country !important; }
.jk-profile-form .jk-profile-field-photo { grid-area: photo !important; }
.jk-profile-form .jk-profile-field-story { grid-area: story !important; }
.jk-profile-form .jk-profile-field-bio { grid-area: bio !important; }
.jk-profile-form .jk-profile-field-interests { grid-area: interests !important; }
.jk-profile-form .jk-profile-field-note { grid-area: note !important; }
.jk-profile-form .jk-profile-actions { grid-area: actions !important; }
.jk-profile-form .jk-profile-consent-status { grid-area: consent !important; }

.jk-profile-form .jk-field-span-2 {
  grid-column: 1 / -1 !important;
}

.jk-profile-form .jk-profile-photo-field {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
}

.jk-profile-form .jk-profile-photo-field > label {
  margin-bottom: 8px !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-field {
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
  border: 1px solid rgba(47, 74, 106, 0.14) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.98), rgba(244, 246, 249, 0.98)) !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-preview {
  width: 100% !important;
  max-width: none !important;
  min-height: 196px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  justify-content: center !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-preview img {
  max-width: min(100%, 180px) !important;
  max-height: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-placeholder {
  text-align: center !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-actions {
  justify-content: flex-start !important;
}

.jk-profile-form .jk-profile-field-story textarea,
.jk-profile-form .jk-profile-field-bio textarea {
  min-height: 148px !important;
}

.jk-profile-form .jk-profile-field-interests textarea {
  min-height: 128px !important;
}

@media (max-width: 980px) {
  .jk-profile-form {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'phone'
      'language'
      'country'
      'photo'
      'story'
      'bio'
      'interests'
      'note'
      'actions'
      'consent' !important;
  }

  .jk-profile-form .jk-field-span-2 {
    grid-column: auto !important;
  }
}


/* v53 final sidebar logo + profile page css fix */
.jk-brand {
  gap: 0 !important;
}

.jk-brand-lockup {
  width: auto !important;
  max-width: 100% !important;
  gap: 14px !important;
}

.jk-brand-icon {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}

.jk-brand-wordmark strong {
  font-size: 1.04rem !important;
  line-height: 1.06 !important;
}

.jk-brand-wordmark span {
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
}

.jk-profile-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas:
    'phone language'
    'country country'
    'photo photo'
    'story bio'
    'interests interests'
    'note note'
    'actions actions'
    'consent consent' !important;
  gap: 22px 24px !important;
}

.jk-profile-form .jk-profile-field-country,
.jk-profile-form .jk-profile-field-photo,
.jk-profile-form .jk-profile-field-interests,
.jk-profile-form .jk-profile-field-note,
.jk-profile-form .jk-profile-actions,
.jk-profile-form .jk-profile-actions-readonly {
  grid-column: 1 / -1 !important;
}

.jk-profile-form .jk-profile-photo-field > label {
  margin-bottom: 10px !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-field {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 18px !important;
  padding: 18px !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-preview {
  width: min(100%, 320px) !important;
  max-width: 320px !important;
  min-height: 184px !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 220px !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-actions .jk-secondary-button,
.jk-profile-form .jk-profile-photo-field .jk-media-actions .jk-upload-button {
  width: auto !important;
  min-width: 220px !important;
  justify-content: center !important;
}

.jk-profile-form .jk-profile-field-interests textarea {
  min-height: 144px !important;
}

@media (max-width: 980px) {
  .jk-brand-lockup {
    gap: 12px !important;
  }

  .jk-brand-icon {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  .jk-brand-wordmark strong {
    font-size: 0.98rem !important;
  }

  .jk-brand-wordmark span {
    font-size: 0.8rem !important;
  }

  .jk-profile-form {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'phone'
      'language'
      'country'
      'photo'
      'story'
      'bio'
      'interests'
      'note'
      'actions'
      'consent' !important;
  }

  .jk-profile-form .jk-field-span-2 {
    grid-column: auto !important;
  }

  .jk-profile-form .jk-profile-photo-field .jk-media-preview {
    width: 100% !important;
    max-width: 100% !important;
  }

  .jk-profile-form .jk-profile-photo-field .jk-media-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .jk-profile-form .jk-profile-photo-field .jk-media-actions .jk-secondary-button,
  .jk-profile-form .jk-profile-photo-field .jk-media-actions .jk-upload-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* v53 sidebar logo + profile page cleanup */
.jk-brand {
  padding: 2px 2px 16px !important;
  gap: 0 !important;
}

.jk-brand-lockup {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: auto !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

.jk-brand-logo {
  display: none !important;
}

.jk-brand-icon {
  display: block !important;
  width: 46px !important;
  height: auto !important;
  flex: 0 0 46px !important;
  object-fit: contain !important;
}

.jk-brand-wordmark {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.jk-brand-wordmark strong,
.jk-brand-wordmark span {
  display: block !important;
  margin: 0 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}

.jk-brand-wordmark strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.jk-brand-wordmark span,
.jk-brand-tag {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.jk-profile-form {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr) !important;
  grid-template-areas:
    'phone language'
    'country photo'
    'story bio'
    'interests bio'
    'note note'
    'actions actions'
    'consent consent' !important;
  gap: 18px 24px !important;
}

.jk-profile-form .jk-profile-field,
.jk-profile-form .jk-profile-photo-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.jk-profile-form .jk-profile-field-photo {
  justify-self: start !important;
  width: min(100%, 260px) !important;
  max-width: 260px !important;
}

.jk-profile-form .jk-profile-photo-field > label {
  margin-bottom: 0 !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-field {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(47, 74, 106, 0.12) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #f9fbfd, #f4f7fa) !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-preview {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 138px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  justify-content: center !important;
  align-items: center !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-preview img {
  max-width: min(100%, 150px) !important;
  max-height: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-placeholder {
  text-align: center !important;
  font-size: 14px !important;
}

.jk-profile-form .jk-profile-photo-field .jk-media-actions {
  justify-content: flex-start !important;
}

.jk-profile-form .jk-profile-field-story textarea,
.jk-profile-form .jk-profile-field-bio textarea {
  min-height: 156px !important;
}

.jk-profile-form .jk-profile-field-interests textarea {
  min-height: 138px !important;
}

@media (max-width: 980px) {
  .jk-brand-icon {
    width: 42px !important;
    flex-basis: 42px !important;
  }

  .jk-brand-wordmark strong {
    font-size: 15px !important;
  }

  .jk-brand-wordmark span,
  .jk-brand-tag {
    font-size: 12px !important;
  }

  .jk-profile-form {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'phone'
      'language'
      'country'
      'photo'
      'story'
      'bio'
      'interests'
      'note'
      'actions'
      'consent' !important;
  }

  .jk-profile-form .jk-profile-field-photo {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* v61 authoritative profile page layout based on v53 header/logo */
body .jk-profile-form {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-areas: none !important;
  gap: 22px 24px !important;
  align-items: start !important;
}

body .jk-profile-form .jk-profile-field,
body .jk-profile-form .jk-profile-photo-field,
body .jk-profile-form .jk-profile-actions,
body .jk-profile-form .jk-profile-consent-status {
  grid-area: auto !important;
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

body .jk-profile-form .jk-field-span-2 {
  grid-column: auto !important;
}

body .jk-profile-form .jk-profile-field-photo {
  grid-column: 1 / span 3 !important;
  grid-row: 1 !important;
  max-width: none !important;
  width: 100% !important;
}

body .jk-profile-form .jk-profile-field-bio {
  grid-column: 4 / span 3 !important;
  grid-row: 1 !important;
}

body .jk-profile-form .jk-profile-field-country {
  grid-column: 1 / span 2 !important;
  grid-row: 2 !important;
}

body .jk-profile-form .jk-profile-field-phone {
  grid-column: 3 / span 2 !important;
  grid-row: 2 !important;
}

body .jk-profile-form .jk-profile-field-language {
  grid-column: 5 / span 2 !important;
  grid-row: 2 !important;
}

body .jk-profile-form .jk-profile-field-story {
  grid-column: 1 / span 3 !important;
  grid-row: 3 !important;
}

body .jk-profile-form .jk-profile-field-interests {
  grid-column: 4 / span 3 !important;
  grid-row: 3 !important;
}

body .jk-profile-form .jk-profile-field-note {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

body .jk-profile-form .jk-profile-actions,
body .jk-profile-form .jk-profile-actions-readonly {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
}

body .jk-profile-form .jk-profile-consent-status {
  grid-column: 1 / -1 !important;
  grid-row: 6 !important;
}

body .jk-profile-form .jk-profile-field-photo,
body .jk-profile-form .jk-profile-field-bio,
body .jk-profile-form .jk-profile-field-story,
body .jk-profile-form .jk-profile-field-interests {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body .jk-profile-form .jk-profile-field-photo > label,
body .jk-profile-form .jk-profile-field-bio > label,
body .jk-profile-form .jk-profile-field-story > label,
body .jk-profile-form .jk-profile-field-interests > label {
  margin-bottom: 0 !important;
}

body .jk-profile-form .jk-profile-field-bio textarea,
body .jk-profile-form .jk-profile-field-story textarea,
body .jk-profile-form .jk-profile-field-interests textarea {
  min-height: 220px !important;
}

body .jk-profile-form.jk-readonly-form .jk-profile-field-photo .jk-media-field {
  display: grid !important;
  gap: 0 !important;
  min-height: 220px !important;
  height: 220px !important;
  padding: 18px !important;
}

body .jk-profile-form.jk-readonly-form .jk-profile-field-photo .jk-media-preview {
  min-height: 100% !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body .jk-profile-form.jk-readonly-form .jk-profile-field-photo .jk-media-preview img {
  max-width: min(100%, 160px) !important;
  max-height: 160px !important;
}

body .jk-profile-form.jk-readonly-form .jk-profile-field-photo .jk-media-placeholder {
  text-align: center !important;
  line-height: 1.5 !important;
}

body .jk-profile-form:not(.jk-readonly-form) .jk-profile-field-photo .jk-media-field {
  display: grid !important;
  grid-template-rows: minmax(220px, auto) auto !important;
  gap: 14px !important;
}

body .jk-profile-form:not(.jk-readonly-form) .jk-profile-field-photo .jk-media-preview {
  min-height: 220px !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 980px) {
  body .jk-profile-form {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body .jk-profile-form .jk-profile-field-phone,
  body .jk-profile-form .jk-profile-field-language,
  body .jk-profile-form .jk-profile-field-country,
  body .jk-profile-form .jk-profile-field-photo,
  body .jk-profile-form .jk-profile-field-story,
  body .jk-profile-form .jk-profile-field-bio,
  body .jk-profile-form .jk-profile-field-interests,
  body .jk-profile-form .jk-profile-field-note,
  body .jk-profile-form .jk-profile-actions,
  body .jk-profile-form .jk-profile-consent-status {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  body .jk-profile-form.jk-readonly-form .jk-profile-field-photo .jk-media-field,
  body .jk-profile-form:not(.jk-readonly-form) .jk-profile-field-photo .jk-media-field,
  body .jk-profile-form .jk-profile-field-bio textarea,
  body .jk-profile-form .jk-profile-field-story textarea,
  body .jk-profile-form .jk-profile-field-interests textarea {
    min-height: 180px !important;
    height: auto !important;
  }
}


/* AI Coach */
.jk-ai-coach-shell {
  display: grid;
  gap: 22px;
}

.jk-ai-coach-intro h2 {
  margin-bottom: 10px;
}

.jk-ai-coach-layout {
  align-items: stretch;
}

.jk-ai-coach-card,
.jk-ai-coach-answer-card {
  min-height: 420px;
}

.jk-ai-coach-form {
  display: grid;
  gap: 18px;
}

.jk-ai-coach-form select,
.jk-ai-coach-form textarea {
  width: 100%;
  border: 1px solid rgba(47, 74, 106, 0.18);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: #203149;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(20, 33, 61, 0.03);
}

.jk-ai-coach-form textarea {
  resize: vertical;
  min-height: 150px;
}

.jk-ai-coach-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jk-ai-coach-suggestions button {
  border: 1px solid rgba(47, 74, 106, 0.18);
  border-radius: 999px;
  background: #f7f9fc;
  color: #2F4A6A;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
}

.jk-ai-coach-suggestions button:hover,
.jk-ai-coach-suggestions button:focus {
  background: #2F4A6A;
  color: #fff;
}

.jk-ai-coach-answer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.jk-ai-coach-answer-head h3 {
  margin: 0;
  color: #2F4A6A;
}

.jk-ai-coach-status {
  color: #C8A46A;
  font-weight: 700;
  white-space: nowrap;
}

.jk-ai-coach-answer {
  border: 1px solid rgba(47, 74, 106, 0.12);
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
  min-height: 300px;
  line-height: 1.7;
}

.jk-ai-coach-answer p:first-child {
  margin-top: 0;
}

.jk-ai-error {
  color: #b42318;
  font-weight: 700;
}

.jk-ai-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 900px) {
  .jk-ai-coach-layout {
    grid-template-columns: 1fr;
  }
}


/* AI Coach answer formatting v11 - natural text */
.jk-ai-coach-answer {
  background: #ffffff;
  border: 1px solid rgba(47, 74, 106, 0.12);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.05);
}

.jk-ai-answer-pretty {
  max-width: 760px;
  color: #25364d;
  font-size: 16px;
  line-height: 1.75;
}

.jk-ai-answer-pretty h4 {
  margin: 22px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2F4A6A;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  box-shadow: none;
}

.jk-ai-answer-pretty h4:first-child {
  margin-top: 0;
}

.jk-ai-answer-pretty p {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #25364d;
  box-shadow: none;
}

.jk-ai-answer-pretty ul,
.jk-ai-answer-pretty ol {
  margin: 0 0 16px 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #25364d;
  box-shadow: none;
}

.jk-ai-answer-pretty li {
  margin: 5px 0;
  padding-left: 2px;
}

.jk-ai-answer-pretty strong {
  color: #2F4A6A;
  font-weight: 800;
}

.jk-ai-answer-pretty code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(47, 74, 106, 0.07);
  color: #203149;
  font-size: 0.92em;
}

.jk-ai-answer-pretty a {
  color: #27752F;
  font-weight: 700;
}

/* AI advies direct boven open quizvragen */
.jk-portal-review-ai-advice,
.jk-review-ai-advice {
  margin: 18px 0 16px;
  border: 1px solid rgba(200, 164, 106, 0.34);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.82);
  padding: 16px 18px;
}

.jk-review-ai-advice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.jk-review-ai-advice-head strong {
  display: block;
  color: var(--jk-primary, #2F4A6A);
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.jk-review-ai-advice-head p,
.jk-review-ai-output p {
  margin: 0;
  color: var(--jk-muted, #7b8494);
  line-height: 1.65;
}

.jk-review-ai-result {
  border-top: 1px solid rgba(47, 74, 106, 0.08);
  padding-top: 12px;
}

.jk-review-ai-result p {
  color: var(--jk-text, #263348);
  margin: 8px 0 0;
  line-height: 1.7;
}

.jk-review-ai-main-advice {
  color: var(--jk-primary, #2F4A6A) !important;
  font-weight: 700;
}

.jk-review-ai-small-title {
  color: var(--jk-primary, #2F4A6A) !important;
  font-weight: 700;
  margin-top: 12px !important;
}

.jk-review-ai-result ul {
  margin: 8px 0 0 18px;
  color: var(--jk-muted, #7b8494);
  line-height: 1.6;
}

.jk-review-ai-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.jk-review-ai-result small {
  color: var(--jk-muted, #7b8494);
}

.jk-ai-error {
  color: #b42318 !important;
}

@media (max-width: 700px) {
  .jk-review-ai-advice-head,
  .jk-review-ai-bottom-row {
    flex-direction: column;
  }
}

/* Community timeline */
.jk-community-shell {
  display: grid;
  gap: 22px;
}

.jk-community-intro h2,
.jk-community-feed-head h3 {
  margin-top: 0;
}

.jk-community-composer textarea,
.jk-community-reply-form textarea {
  width: 100%;
  resize: vertical;
}

.jk-community-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jk-community-file-name {
  color: var(--jk-muted, #6b7280);
  font-size: 14px;
}

.jk-community-message {
  margin-top: 12px;
  color: var(--jk-muted, #6b7280);
}

.jk-community-message.is-success {
  color: #27752F;
}

.jk-community-message.is-warn {
  color: #9a6b14;
}

.jk-community-message.is-error,
.jk-community-error {
  color: #b42318;
}

.jk-community-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.jk-community-feed {
  display: grid;
  gap: 18px;
}

.jk-community-post {
  border: 1px solid var(--jk-border, #e5e7eb);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.jk-community-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.jk-community-author img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2f7;
}

.jk-community-author strong {
  display: block;
  color: var(--jk-primary, #2F4A6A);
}

.jk-community-author span {
  display: block;
  color: var(--jk-muted, #6b7280);
  font-size: 13px;
}

.jk-community-flagged {
  margin-left: auto;
  border-radius: 999px;
  background: #fbf8f1;
  color: #9a6b14;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.jk-community-body p {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.65;
}

.jk-community-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 12px;
  background: #f3f6f8;
}

.jk-community-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--jk-border, #e5e7eb);
}

.jk-community-actions button {
  border: 0;
  border-radius: 999px;
  background: #f3f6f8;
  color: var(--jk-primary, #2F4A6A);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.jk-community-actions button:hover,
.jk-community-actions button.is-liked {
  background: var(--jk-primary, #2F4A6A);
  color: #fff;
}

.jk-community-comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.jk-community-comment {
  border-left: 4px solid var(--jk-gold, #C8A46A);
  border-radius: 14px;
  background: #f7f9fc;
  padding: 12px 14px;
}

.jk-community-comment strong {
  color: var(--jk-primary, #2F4A6A);
  margin-right: 8px;
}

.jk-community-comment span {
  color: var(--jk-muted, #6b7280);
  font-size: 12px;
}

.jk-community-comment p {
  margin: 6px 0 0;
}

.jk-community-reply-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

@media (max-width: 760px) {
  .jk-community-feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .jk-community-post {
    padding: 14px;
  }
}


/* Community Facebook-style profiles */
.jk-community-author-link,
.jk-community-comment-author {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.jk-community-author-link:hover strong,
.jk-community-comment-author:hover strong { text-decoration: underline; }

.jk-community-author-link small {
  display: block;
  color: var(--jk-muted);
  font-weight: 500;
  margin-top: 2px;
}

.jk-community-profile-panel { margin: 18px 0 24px; }

.jk-community-profile-card {
  border: 1px solid var(--jk-border);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(47, 74, 106, 0.08);
  position: relative;
}

.jk-community-profile-close { margin: 18px 22px 0; position: relative; z-index: 2; }

.jk-community-profile-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--jk-primary), var(--jk-green));
  margin-top: -46px;
}

.jk-community-profile-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  padding: 0 26px 24px;
  margin-top: -44px;
}

.jk-community-profile-head img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: 0 12px 24px rgba(47, 74, 106, 0.18);
  flex: 0 0 auto;
}

.jk-community-profile-head h3 { margin: 0 0 6px; color: var(--jk-primary); font-size: 28px; }
.jk-community-profile-head p { margin: 0; color: var(--jk-muted); }

.jk-community-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 26px 22px;
}

.jk-community-profile-stats div {
  border: 1px solid var(--jk-border);
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
}

.jk-community-profile-stats strong { display: block; color: var(--jk-primary); font-size: 22px; }
.jk-community-profile-stats span { display: block; color: var(--jk-muted); font-size: 13px; }

.jk-community-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 0 26px 26px;
}

.jk-community-profile-grid h4 { margin: 0 0 10px; color: var(--jk-primary); }
.jk-community-profile-grid ul { list-style: none; margin: 0; padding: 0; }
.jk-community-profile-grid li { border-top: 1px solid var(--jk-border); padding: 12px 0; }
.jk-community-profile-grid li:first-child { border-top: 0; }
.jk-community-profile-grid li span { display: block; color: var(--jk-muted); font-size: 12px; }
.jk-community-profile-grid li strong { color: var(--jk-primary); }

.jk-community-profile-posts p { margin: 4px 0; }
.jk-community-profile-post-image { max-width: 100%; border-radius: 14px; margin-top: 8px; }

@media (max-width: 782px) {
  .jk-community-profile-head { align-items: flex-start; flex-direction: column; }
  .jk-community-profile-stats,
  .jk-community-profile-grid { grid-template-columns: 1fr; }
}

/* Community v24: Facebook-like network */
.jk-community-facebook .jk-community-fb-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.jk-community-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  align-items: start;
}

.jk-community-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}

.jk-community-sidebar h3,
.jk-community-sidebar h4 {
  margin: 0;
  color: var(--jk-primary, #2F4A6A);
}

.jk-community-sidebar hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--jk-border, #e5e7eb);
  margin: 2px 0;
}

.jk-community-me-mini .jk-community-author-link,
.jk-community-person-row > button,
.jk-community-person-row {
  width: 100%;
}

.jk-community-search-field input {
  width: 100%;
  border-radius: 999px;
  padding: 12px 14px;
}

.jk-community-people-results,
.jk-community-friends-panel {
  display: grid;
  gap: 10px;
}

.jk-community-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--jk-border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
}

.jk-community-person-row > button:first-child {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.jk-community-person-row img,
.jk-community-chat-head img,
.jk-community-comment-author img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2f7;
  flex: 0 0 auto;
}

.jk-community-person-row span,
.jk-community-me-mini span {
  min-width: 0;
}

.jk-community-person-row strong,
.jk-community-person-row small,
.jk-community-me-mini small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-community-person-row strong { color: var(--jk-primary, #2F4A6A); }
.jk-community-person-row small,
.jk-community-mini-badge { color: var(--jk-muted, #6b7280); font-size: 12px; }

.jk-community-mini-badge {
  border-radius: 999px;
  background: #f3f6f8;
  padding: 7px 10px;
  white-space: nowrap;
}

.jk-community-composer-modal[hidden] { display: none; }
.jk-community-composer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}

.jk-community-composer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}

.jk-community-composer-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.jk-community-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jk-community-composer-head h3 { margin: 0; color: var(--jk-primary, #2F4A6A); }
.jk-community-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: #f3f6f8;
  color: var(--jk-primary, #2F4A6A);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.jk-community-status-form {
  display: grid;
  gap: 10px;
}

.jk-community-status-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 16px;
}

.jk-community-status-message {
  color: var(--jk-green, #27752F);
  font-size: 13px;
}

.jk-community-chat-panel {
  display: grid;
  gap: 10px;
}

.jk-community-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--jk-primary, #2F4A6A);
}

.jk-community-chat-messages {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
  border: 1px solid var(--jk-border, #e5e7eb);
  border-radius: 18px;
  padding: 10px;
  background: #f8fafc;
}

.jk-community-chat-message {
  max-width: 85%;
  justify-self: start;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  padding: 8px 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}

.jk-community-chat-message.is-mine {
  justify-self: end;
  border-radius: 18px 18px 4px 18px;
  background: var(--jk-primary, #2F4A6A);
  color: #fff;
}

.jk-community-chat-message p { margin: 0; }
.jk-community-chat-message span { display: block; margin-top: 3px; opacity: .72; font-size: 11px; }

.jk-community-chat-form {
  display: grid;
  gap: 8px;
}

.jk-community-chat-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 16px;
}

.jk-community-image-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
}

.jk-community-comment-author {
  gap: 8px;
}

.jk-community-comment-author img {
  width: 28px;
  height: 28px;
}

.jk-community-profile-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jk-community-profile-bio {
  margin-top: 8px !important;
}

@media (max-width: 1180px) {
  .jk-community-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .jk-community-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .jk-community-facebook .jk-community-fb-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .jk-community-person-row {
    grid-template-columns: 1fr;
  }
}


/* Community v25: social network polish + automatic presence */
.jk-community-facebook {
  --jk-fb-bg: #f3f6f8;
  --jk-fb-card: #ffffff;
  --jk-fb-line: #dfe5ee;
  --jk-fb-soft: #eef3f8;
}

.jk-community-facebook .jk-community-fb-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--jk-fb-line);
  box-shadow: 0 18px 50px rgba(47, 74, 106, .08);
  padding: 24px 28px;
}

.jk-community-facebook .jk-community-fb-hero h2 {
  margin-bottom: 4px;
  font-size: clamp(30px, 4vw, 46px);
}

.jk-community-layout {
  grid-template-columns: minmax(230px, 300px) minmax(420px, 680px) minmax(250px, 320px);
  justify-content: center;
}

.jk-community-feed-card,
.jk-community-sidebar,
.jk-community-post {
  border-color: var(--jk-fb-line) !important;
  box-shadow: 0 16px 42px rgba(47, 74, 106, .075) !important;
}

.jk-community-feed-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--jk-fb-line);
}

.jk-community-feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jk-community-feed-actions .jk-primary-button,
.jk-community-feed-actions .jk-secondary-button {
  min-height: 44px;
  padding-inline: 18px;
}

.jk-community-post {
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.jk-community-post .jk-community-author {
  padding: 16px 18px 0;
}

.jk-community-post .jk-community-body {
  padding: 0 18px 14px;
}

.jk-community-post .jk-community-actions {
  margin: 0 18px;
  padding: 10px 0;
  justify-content: space-around;
}

.jk-community-post .jk-community-comments,
.jk-community-post .jk-community-reply-form {
  padding-left: 18px;
  padding-right: 18px;
}

.jk-community-post .jk-community-reply-form { padding-bottom: 18px; }

.jk-community-image {
  border-radius: 14px;
  max-height: 520px;
}

.jk-community-author-link img,
.jk-community-person-row img,
.jk-community-chat-head img,
.jk-community-comment-author img {
  box-shadow: 0 6px 16px rgba(47, 74, 106, .14);
}

.jk-community-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.jk-community-avatar-wrap.is-profile img {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  border: 5px solid #fff;
}

.jk-status-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  background: #9ca3af;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(47, 74, 106, .12);
}

.jk-community-avatar-wrap .jk-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
}

.jk-community-avatar-wrap.is-profile .jk-status-dot {
  width: 18px;
  height: 18px;
  right: 8px;
  bottom: 8px;
}

.jk-status-dot.is-online { background: #22c55e; }
.jk-status-dot.is-busy { background: #f59e0b; }
.jk-status-dot.is-offline { background: #9ca3af; }
.jk-status-dot.is-private { background: #64748b; }

.jk-community-auto-status,
.jk-community-my-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jk-community-my-status {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--jk-fb-line);
  border-radius: 18px;
  padding: 14px;
  flex-wrap: wrap;
}

.jk-community-my-status strong { color: var(--jk-primary, #2F4A6A); }
.jk-community-my-status p {
  flex-basis: 100%;
  margin: 2px 0 0 22px;
  color: var(--jk-muted, #6b7280);
  font-size: 13px;
  line-height: 1.45;
}

.jk-community-profile-settings-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.jk-community-people-results .jk-community-person-row,
.jk-community-friends-panel .jk-community-person-row {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.jk-community-people-results .jk-community-person-row:hover,
.jk-community-friends-panel .jk-community-person-row:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 74, 106, .25);
  box-shadow: 0 10px 24px rgba(47, 74, 106, .08);
}

.jk-profile-privacy-toggle {
  border: 1px solid var(--jk-border, #e5e7eb);
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px 16px;
}

.jk-profile-privacy-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--jk-muted, #6b7280);
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .jk-community-layout { grid-template-columns: minmax(0, 720px); }
}

@media (max-width: 700px) {
  .jk-community-feed-head,
  .jk-community-feed-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .jk-community-feed-actions .jk-primary-button,
  .jk-community-feed-actions .jk-secondary-button { width: 100%; justify-content: center; }
}


/* Community v26: layout fix, inline status privacy and chat notifications */
.jk-community-layout {
  grid-template-columns: minmax(240px, 280px) minmax(0, 660px) minmax(260px, 310px);
  gap: 18px;
  align-items: start;
}

.jk-community-leftbar,
.jk-community-rightbar,
.jk-community-feed-card {
  min-width: 0;
}

.jk-community-me-mini .jk-community-author-link {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fafc;
  text-decoration: none;
}

.jk-community-me-mini .jk-community-author-link img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  border-radius: 16px;
  object-fit: cover;
  background: #eef2f7;
}

.jk-community-me-mini .jk-community-author-link span,
.jk-community-author-link span {
  min-width: 0;
}

.jk-community-me-mini .jk-community-author-link strong,
.jk-community-me-mini .jk-community-author-link small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jk-community-feed-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.jk-community-feed-head h3 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}

.jk-community-feed-actions {
  justify-content: flex-end;
}

.jk-community-status-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--jk-fb-line, #dfe5ee);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
}

.jk-community-status-toggle input {
  margin-top: 4px;
  accent-color: var(--jk-primary, #2F4A6A);
}

.jk-community-status-toggle strong {
  display: block;
  color: var(--jk-primary, #2F4A6A);
}

.jk-community-status-toggle small {
  display: block;
  color: var(--jk-muted, #6b7280);
  line-height: 1.45;
  margin-top: 3px;
}

.jk-community-status-message.is-success {
  color: #27752F;
}

.jk-community-status-message.is-error {
  color: #b42318;
}

.jk-community-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e03131;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}

.jk-community-person-row.has-unread {
  border-color: rgba(224, 49, 49, .28);
  box-shadow: 0 10px 24px rgba(224, 49, 49, .08);
}

.jk-community-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 18px;
  padding: 14px 18px;
  background: var(--jk-primary, #2F4A6A);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  font-weight: 700;
}

.jk-community-toast.is-error {
  background: #b42318;
}

.jk-community-chat-head {
  border: 1px solid var(--jk-fb-line, #dfe5ee);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
}

.jk-community-chat-form textarea {
  min-height: 74px;
}

.jk-community-image {
  object-fit: contain;
  background: #0f172a;
}

@media (max-width: 1280px) {
  .jk-community-layout {
    grid-template-columns: minmax(0, 760px);
  }
  .jk-community-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .jk-community-feed-head {
    grid-template-columns: 1fr;
  }
  .jk-community-toast {
    right: 16px;
    bottom: 16px;
  }
}

/* Community v27: compact layout + profile cleanup */
.jk-community-layout {
  grid-template-columns: minmax(220px, 270px) minmax(0, 620px) minmax(220px, 300px) !important;
  gap: 18px !important;
  align-items: start !important;
}
.jk-community-sidebar {
  gap: 12px !important;
  padding: 22px 20px !important;
  min-height: 0 !important;
}
.jk-community-sidebar h3 { font-size: 24px !important; line-height: 1.1 !important; }
.jk-community-sidebar h4 { font-size: 18px !important; line-height: 1.15 !important; }
.jk-community-sidebar hr { margin: 14px 0 !important; }
.jk-community-leftbar,
.jk-community-rightbar { overflow: hidden !important; }
.jk-community-me-mini .jk-community-author-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: normal !important;
}
.jk-community-me-mini .jk-community-author-link img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  flex: 0 0 52px !important;
}
.jk-community-me-mini span,
.jk-community-me-mini strong,
.jk-community-me-mini small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
}
.jk-community-feed-card { padding: 24px !important; }
.jk-community-feed-head { gap: 14px !important; }
.jk-community-feed-head h3 { font-size: 30px !important; line-height: 1.08 !important; }
.jk-community-post { margin: 0 0 16px !important; }
.jk-community-feed { gap: 16px !important; }
.jk-community-my-status { margin-bottom: 8px !important; }
.jk-community-profile-settings-link { font-size: 13px !important; padding: 10px 12px !important; width: 100%; justify-content: center; }
.jk-community-profile-card.is-clean-profile .jk-community-profile-stats,
.jk-community-profile-card.is-clean-profile .jk-community-profile-posts { display: none !important; }
.jk-community-profile-card.is-clean-profile .jk-community-profile-grid {
  grid-template-columns: 1fr !important;
  padding: 0 24px 24px !important;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-grid li strong {
  display: block !important;
  white-space: normal !important;
  word-break: break-word !important;
}
.jk-community-person-row { gap: 10px !important; }
.jk-community-friends-panel { max-height: none !important; }
@media (max-width: 1220px) {
  .jk-community-layout { grid-template-columns: minmax(0, 720px) !important; }
  .jk-community-sidebar { position: static !important; }
}


/* Community/Profile v28: cleaner profile form and popup header */
.jk-profile-field-age {
  display: none !important;
}
.jk-profile-community-privacy-panel {
  align-self: start;
  max-width: 520px;
  margin-top: 0;
}
.jk-profile-community-privacy-panel .jk-eyebrow {
  margin: 0 0 8px;
}
.jk-profile-community-privacy-panel .jk-profile-privacy-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  max-width: 420px;
}
.jk-profile-community-privacy-panel .jk-profile-privacy-toggle input {
  margin-top: 3px;
}
.jk-profile-community-privacy-panel .jk-profile-privacy-toggle strong,
.jk-profile-community-privacy-panel .jk-profile-privacy-toggle small {
  white-space: normal;
  word-break: normal;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-head {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 26px 10px !important;
  margin-top: -44px !important;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-title {
  min-width: 0;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-head h3 {
  margin: 0 0 4px !important;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-bio {
  padding: 0 26px 18px !important;
  margin: 0 !important;
  color: var(--jk-muted, #6b7280);
  font-size: 16px;
  line-height: 1.6;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-actions {
  margin-top: 10px !important;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-grid {
  padding-top: 4px !important;
}
.jk-community-profile-card.is-clean-profile .jk-community-profile-grid li span,
.jk-community-profile-card.is-clean-profile .jk-community-profile-grid li strong {
  font-size: 15px;
}
@media (max-width: 782px) {
  .jk-community-profile-card.is-clean-profile .jk-community-profile-head {
    align-items: flex-start !important;
    flex-direction: row !important;
  }
}

/* Community v29: compact layout, real status privacy toggle in sidebar, no profile-form community block */
.jk-profile-community-privacy-panel { display: none !important; }
.jk-community-layout {
  grid-template-columns: minmax(210px, 250px) minmax(0, 620px) minmax(230px, 290px) !important;
  gap: 16px !important;
  justify-content: center !important;
}
.jk-community-sidebar,
.jk-community-feed-card {
  align-self: start !important;
}
.jk-community-sidebar {
  padding: 20px 18px !important;
  gap: 14px !important;
  min-height: 0 !important;
}
.jk-community-sidebar hr {
  margin: 8px 0 !important;
}
.jk-community-sidebar h3 {
  font-size: 23px !important;
  margin-bottom: 2px !important;
}
.jk-community-sidebar h4 {
  font-size: 17px !important;
  margin: 0 0 6px !important;
}
.jk-community-my-status {
  margin: 0 !important;
  padding: 13px 14px !important;
}
.jk-community-status-privacy-form {
  display: grid;
  gap: 8px;
}
.jk-community-status-toggle {
  padding: 12px 13px !important;
  border-radius: 16px !important;
}
.jk-community-status-message {
  min-height: 18px;
  margin: 0 2px !important;
  font-size: 12px;
}
.jk-community-profile-settings-link { display: none !important; }
.jk-community-friends-panel,
.jk-community-people-results {
  gap: 8px !important;
}
.jk-community-person-row {
  padding: 8px !important;
  border-radius: 15px !important;
}
.jk-community-me-mini .jk-community-author-link {
  padding: 8px !important;
  border-radius: 16px !important;
}
.jk-community-feed-card { padding: 22px !important; }
.jk-community-feed-head { padding-bottom: 12px !important; }
.jk-community-post .jk-community-author { padding-top: 14px !important; }
.jk-community-post .jk-community-body { padding-bottom: 12px !important; }
.jk-community-profile-card.is-clean-profile .jk-community-profile-grid li:first-child { border-top: 0 !important; }
@media (max-width: 1220px) {
  .jk-community-layout { grid-template-columns: minmax(0, 720px) !important; }
}

/* Community v30: compact layout + strict private presence */
.jk-community-layout {
  align-items: start !important;
  gap: 18px !important;
}
.jk-community-sidebar {
  padding: 18px !important;
}
.jk-community-rightbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.jk-community-rightbar > h3 {
  margin: 0 !important;
}
.jk-community-rightbar > hr,
.jk-community-sidebar hr {
  margin: 12px 0 !important;
}
.jk-community-my-status {
  margin: 0 !important;
  padding: 14px !important;
  min-height: 0 !important;
}
.jk-community-status-privacy-form {
  margin: 0 !important;
}
.jk-community-status-toggle {
  margin-top: 0 !important;
  padding: 12px 14px !important;
}
.jk-community-status-toggle strong {
  font-size: 14px !important;
}
.jk-community-status-toggle small {
  line-height: 1.35 !important;
}
.jk-community-friends-panel,
.jk-community-people-results {
  display: grid !important;
  gap: 10px !important;
}
.jk-community-person-row {
  min-height: 0 !important;
  padding: 10px !important;
}
.jk-community-person-row > button:first-child {
  min-width: 0 !important;
}
.jk-community-person-row strong,
.jk-community-person-row small {
  max-width: 120px !important;
}
.jk-status-dot.is-private {
  background: #9ca3af !important;
  box-shadow: 0 0 0 3px rgba(156,163,175,.18) !important;
}
.jk-community-person-row .jk-status-dot.is-private + span,
.jk-community-auto-status .jk-status-dot.is-private + span {
  color: var(--jk-muted, #6b7280) !important;
}
@media (min-width: 1100px) {
  .jk-community-layout {
    grid-template-columns: minmax(190px, 240px) minmax(420px, 1fr) minmax(230px, 300px) !important;
  }
}


/* Community v31: privacy controls, less jumping, compact sidebar */
.jk-community-status-privacy-form {
  gap: 10px !important;
}
.jk-community-status-toggle {
  padding: 11px 12px !important;
  background: #fff !important;
}
.jk-community-my-status strong,
.jk-community-status-toggle strong {
  line-height: 1.25 !important;
}
.jk-community-my-status p,
.jk-community-status-toggle small {
  font-size: 12px !important;
}
.jk-community-rightbar > hr,
.jk-community-sidebar hr {
  margin: 8px 0 !important;
}
.jk-community-rightbar {
  gap: 10px !important;
}
.jk-community-friends-panel h4 {
  margin-top: 0 !important;
}
.jk-community-person-row strong,
.jk-community-person-row small {
  max-width: 150px !important;
}
.jk-community-person-row .jk-status-dot.is-offline {
  background: #9ca3af !important;
}
@media (min-width: 1100px) {
  .jk-community-layout {
    grid-template-columns: minmax(190px, 240px) minmax(460px, 680px) minmax(230px, 300px) !important;
  }
}

/* Community v32: open chat in the center column with back-to-timeline button */
.jk-community-chat-stage {
  padding: 26px !important;
  min-width: 0;
}
.jk-community-chat-stage[hidden],
.jk-community-feed-card[hidden] {
  display: none !important;
}
.jk-community-chat-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jk-fb-line, #dfe5ee);
}
.jk-community-chat-stage-head h3 {
  margin: 0;
  color: var(--jk-primary, #2F4A6A);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}
.jk-community-chat-stage .jk-community-chat-panel {
  display: grid;
  gap: 14px;
}
.jk-community-chat-stage .jk-community-chat-head {
  border: 1px solid var(--jk-fb-line, #dfe5ee);
  border-radius: 20px;
  padding: 12px 14px;
  background: #fff;
}
.jk-community-chat-stage .jk-community-chat-messages {
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  border-radius: 22px;
  padding: 16px;
}
.jk-community-chat-stage .jk-community-chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.jk-community-chat-stage .jk-community-chat-form textarea {
  min-height: 58px;
  max-height: 140px;
  resize: vertical;
}
.jk-community-friends-panel [data-chat] {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .jk-community-chat-stage-head,
  .jk-community-chat-stage .jk-community-chat-form {
    grid-template-columns: 1fr;
    display: grid;
  }
  .jk-community-chat-stage .jk-community-chat-messages {
    min-height: 260px;
    max-height: 420px;
  }
}

/* Community v34: serious action icons, delete own posts, friend controls */
.jk-community-option-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
  color: var(--jk-primary, #2F4A6A);
  font-weight: 650;
}
.jk-community-option-line input { width: 16px; height: 16px; }
.jk-community-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.jk-community-action-button,
.jk-community-icon-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}
.jk-community-action-button svg,
.jk-community-icon-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}
.jk-community-action-button.is-danger {
  color: #8a2832 !important;
  background: #fff5f5 !important;
  border-color: #ffd6d6 !important;
}
.jk-community-action-button.is-danger:hover {
  background: #ffecec !important;
}
.jk-community-button-pair {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.jk-community-button-pair .jk-secondary-button {
  min-height: 38px;
  padding: 9px 12px !important;
}
.jk-community-icon-action.is-subtle {
  color: var(--jk-muted, #6b7280) !important;
  background: #f8fafc !important;
}
.jk-community-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.jk-community-reply-form .jk-community-icon-action {
  margin-top: 8px;
}
@media (max-width: 920px) {
  .jk-community-button-pair { justify-content: flex-start; width: 100%; }
}


/* Community v35: comments are an expandable panel like a menu */
.jk-community-comments-panel[hidden] {
  display: none !important;
}
.jk-community-comments-panel {
  margin: 0 18px 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--jk-border, #e5e7eb);
}
.jk-community-comments {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.jk-community-comment {
  border-left: 0 !important;
  border-radius: 16px;
  background: #f6f8fb;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(47, 74, 106, .06);
}
.jk-community-comment-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.jk-community-comment-top > span {
  color: var(--jk-muted, #6b7280);
  font-size: 12px;
  white-space: nowrap;
}
.jk-community-comment-body {
  margin: 7px 0 0 38px;
  color: #4b5563;
  line-height: 1.55;
}
.jk-community-comment-body p {
  margin: 0 0 6px;
}
.jk-community-comment-reply {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--jk-primary, #2F4A6A);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0 38px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.jk-community-comment-reply svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.jk-community-reply-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.jk-community-reply-form textarea {
  width: 100%;
  min-height: 72px;
  border-radius: 16px;
  background: #fff;
}
.jk-community-action-button.is-open {
  background: var(--jk-primary, #2F4A6A) !important;
  color: #fff !important;
}
.jk-community-no-comments {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--jk-muted, #6b7280);
  font-size: 14px;
}
.jk-community-button-pair {
  max-width: 100%;
}
.jk-community-button-pair .jk-secondary-button,
.jk-community-friends-panel .jk-secondary-button {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .jk-community-comments-panel {
    margin-left: 14px;
    margin-right: 14px;
  }
  .jk-community-comment-body,
  .jk-community-comment-reply {
    margin-left: 0;
  }
}


/* Community v36: fix comments, profile privacy and cleaner profile avatar */
.jk-community-avatar-wrap.is-profile .jk-status-dot {
  display: none !important;
}
.jk-community-profile-card.is-clean-profile .jk-community-avatar-wrap.is-profile img {
  width: 96px !important;
  height: 96px !important;
  border: 4px solid #fff !important;
  box-shadow: 0 14px 32px rgba(47,74,106,.18) !important;
}
.jk-community-reply-submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.jk-community-reply-message {
  margin: 0;
  color: var(--jk-muted, #6b7280);
  font-size: 13px;
  line-height: 1.35;
}
.jk-community-reply-message.is-success { color: #27752F; }
.jk-community-reply-message.is-error { color: #b42318; }
.jk-community-comments-panel {
  background: #fbfcfe;
  border-radius: 0 0 18px 18px;
}
.jk-community-comment {
  overflow-wrap: anywhere;
}
.jk-community-comment-author img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
}
.jk-community-reply-form textarea:focus {
  outline: 2px solid rgba(47, 74, 106, .18);
  border-color: rgba(47, 74, 106, .38);
}


/* Community v37: Instagram-like comment threads and inline reply composer */
.jk-community-comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 0 38px;
}
.jk-community-comment-actions .jk-community-comment-reply,
.jk-community-comment-thread-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--jk-primary, #2F4A6A);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.jk-community-comment-thread-toggle.is-open,
.jk-community-comment-actions .jk-community-comment-reply:hover,
.jk-community-comment-thread-toggle:hover {
  color: #17324f;
  text-decoration: underline;
}
.jk-community-comment-thread-toggle svg,
.jk-community-comment-actions .jk-community-comment-reply svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.jk-community-comment-thread[hidden] {
  display: none !important;
}
.jk-community-comment-thread {
  margin: 12px 0 0 34px;
  padding-left: 14px;
  border-left: 2px solid rgba(200, 164, 106, .35);
  display: grid;
  gap: 10px;
}
.jk-community-comment[data-depth="1"],
.jk-community-comment[data-depth="2"],
.jk-community-comment[data-depth="3"] {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(47, 74, 106, .08);
}
.jk-community-inline-reply-host:empty { display: none; }
.jk-community-inline-reply-host {
  margin: 12px 0 0 38px;
}
.jk-community-inline-reply-form {
  background: #fff;
  border: 1px solid rgba(47, 74, 106, .12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(47, 74, 106, .07);
}
.jk-community-inline-reply-label {
  color: var(--jk-muted, #6b7280);
  font-size: 13px;
  margin-bottom: 8px;
}
.jk-community-inline-reply-label strong {
  color: var(--jk-primary, #2F4A6A);
}
.jk-community-inline-cancel {
  border: 0;
  background: transparent;
  color: var(--jk-muted, #6b7280);
  font-weight: 800;
  cursor: pointer;
  padding: 8px 6px;
}
.jk-community-inline-cancel:hover { color: #17324f; }
.jk-community-main-reply-form > input[type="hidden"],
.jk-community-inline-reply-form > input[type="hidden"] { display: none !important; }
@media (max-width: 760px) {
  .jk-community-comment-actions,
  .jk-community-inline-reply-host,
  .jk-community-comment-thread {
    margin-left: 0;
  }
}

/* Community v38: polished search cards + Instagram-like nested replies */
.jk-community-leftbar,
.jk-community-rightbar,
.jk-community-feed-card {
  border-radius: 24px !important;
}

.jk-community-search-field input {
  width: 100% !important;
  height: 44px !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(47,74,106,.16) !important;
  background: #fff !important;
  color: var(--jk-primary, #2F4A6A) !important;
}

.jk-community-people-results {
  margin-top: 12px !important;
  display: grid !important;
  gap: 10px !important;
}

.jk-community-people-results .jk-community-person-row,
.jk-community-friends-panel .jk-community-person-row {
  width: 100% !important;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(47,74,106,.11) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(47,74,106,.045) !important;
}

.jk-community-person-row > button:first-child,
.jk-community-person-row .jk-community-author-link {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  text-align: left !important;
}

.jk-community-person-row img,
.jk-community-comment-author img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  flex: 0 0 42px !important;
}

.jk-community-person-row strong,
.jk-community-person-row small {
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.jk-community-person-row .jk-secondary-button,
.jk-community-person-row .jk-community-icon-action,
.jk-community-button-pair .jk-secondary-button {
  min-height: 40px !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.jk-community-button-pair {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 100% !important;
}

.jk-community-comments-panel {
  margin: 0 18px 18px !important;
  padding: 14px !important;
  border: 1px solid rgba(47,74,106,.09) !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
}

.jk-community-comments {
  gap: 12px !important;
}

.jk-community-comment {
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.jk-community-comment-top {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
}

.jk-community-comment-author {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  text-align: left !important;
}

.jk-community-comment-author img {
  width: 34px !important;
  height: 34px !important;
}

.jk-community-comment-author strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-weight: 850 !important;
}

.jk-community-comment-top > span {
  justify-self: end !important;
  color: #9aa4b2 !important;
  font-size: 11px !important;
}

.jk-community-comment-body {
  display: inline-block !important;
  max-width: calc(100% - 44px) !important;
  margin: 6px 0 0 42px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(47,74,106,.08) !important;
  color: #374151 !important;
  line-height: 1.5 !important;
  box-shadow: 0 8px 16px rgba(47,74,106,.035) !important;
}

.jk-community-comment-actions {
  margin: 7px 0 0 42px !important;
  gap: 12px !important;
}

.jk-community-comment-actions .jk-community-comment-reply,
.jk-community-comment-thread-toggle {
  color: #5f6f84 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.jk-community-comment-actions .jk-community-comment-reply:hover,
.jk-community-comment-thread-toggle:hover,
.jk-community-comment-thread-toggle.is-open {
  color: var(--jk-primary, #2F4A6A) !important;
  text-decoration: none !important;
}

.jk-community-comment-thread {
  margin: 12px 0 0 42px !important;
  padding-left: 16px !important;
  border-left: 2px solid rgba(200,164,106,.32) !important;
  gap: 12px !important;
}

.jk-community-inline-reply-host {
  margin: 12px 0 0 42px !important;
}

.jk-community-inline-reply-form,
.jk-community-main-reply-form {
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 18px !important;
  background: #fff !important;
  padding: 12px !important;
  box-shadow: 0 12px 26px rgba(47,74,106,.06) !important;
}

.jk-community-inline-reply-label {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  color: #7b8794 !important;
}

.jk-community-inline-reply-form textarea,
.jk-community-main-reply-form textarea,
.jk-community-reply-form textarea {
  min-height: 78px !important;
  max-height: 150px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(47,74,106,.16) !important;
  background: #fbfcfe !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #1f2937 !important;
  resize: vertical !important;
}

.jk-community-reply-submit-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.jk-community-reply-submit-row .jk-secondary-button,
.jk-community-reply-submit-row .jk-community-icon-action {
  min-height: 40px !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  background: var(--jk-primary, #2F4A6A) !important;
  border-color: var(--jk-primary, #2F4A6A) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.jk-community-inline-cancel {
  min-height: 40px !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  background: #f1f5f9 !important;
  color: #526173 !important;
  font-size: 13px !important;
}

.jk-community-reply-message {
  flex: 1 1 160px !important;
  font-size: 12px !important;
  color: #7b8794 !important;
}

@media (max-width: 760px) {
  .jk-community-comments-panel {
    margin: 0 10px 14px !important;
    padding: 12px !important;
  }
  .jk-community-comment-body,
  .jk-community-comment-actions,
  .jk-community-comment-thread,
  .jk-community-inline-reply-host {
    margin-left: 0 !important;
  }
  .jk-community-comment-body {
    max-width: 100% !important;
  }
  .jk-community-reply-submit-row {
    align-items: stretch !important;
    flex-direction: column !important;
  }
}


/* Community v39: cleaner friend/profile buttons and compact Instagram-style reply editor */
.jk-community-people-results .jk-community-person-row,
.jk-community-friends-panel .jk-community-person-row {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 12px !important;
  overflow: hidden !important;
}

.jk-community-people-results .jk-community-person-row > button:first-child,
.jk-community-friends-panel .jk-community-person-row > button:first-child {
  min-height: 46px !important;
}

.jk-community-people-results .jk-community-person-row .jk-community-button-pair,
.jk-community-friends-panel .jk-community-person-row .jk-community-button-pair {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.jk-community-people-results .jk-community-person-row > .jk-secondary-button,
.jk-community-friends-panel .jk-community-person-row > .jk-secondary-button,
.jk-community-person-row [data-friend-request],
.jk-community-person-row [data-friend-respond],
.jk-community-person-row [data-chat],
.jk-community-person-row [data-friend-remove] {
  width: 100% !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
}

.jk-community-person-row [data-friend-request] {
  background: #fff !important;
  color: var(--jk-primary, #2F4A6A) !important;
  border: 1px solid rgba(47,74,106,.18) !important;
}

.jk-community-person-row [data-friend-request] svg,
.jk-community-person-row [data-friend-respond] svg,
.jk-community-person-row [data-chat] svg,
.jk-community-person-row [data-friend-remove] svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
}

.jk-community-profile-card.is-clean-profile .jk-community-profile-actions {
  margin-top: 10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.jk-community-profile-card.is-clean-profile .jk-community-profile-actions .jk-secondary-button,
.jk-community-profile-card.is-clean-profile .jk-community-profile-actions .jk-community-icon-action {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.jk-community-profile-card.is-clean-profile .jk-community-profile-actions .jk-secondary-button svg,
.jk-community-profile-card.is-clean-profile .jk-community-profile-actions .jk-community-icon-action svg {
  width: 15px !important;
  height: 15px !important;
}

/* Reply editor: compact, calmer and aligned */
.jk-community-inline-reply-host {
  margin: 10px 0 0 42px !important;
  max-width: 520px !important;
}

.jk-community-inline-reply-form,
.jk-community-main-reply-form {
  padding: 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  box-shadow: 0 10px 24px rgba(47,74,106,.055) !important;
}

.jk-community-inline-reply-label {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #7b8794 !important;
}

.jk-community-inline-reply-label strong {
  color: var(--jk-primary, #2F4A6A) !important;
  font-weight: 850 !important;
}

.jk-community-inline-reply-form textarea,
.jk-community-main-reply-form textarea,
.jk-community-reply-form textarea {
  width: 100% !important;
  min-height: 58px !important;
  max-height: 120px !important;
  display: block !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  border: 1px solid rgba(47,74,106,.14) !important;
  background: #fff !important;
  padding: 11px 12px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #1f2937 !important;
  box-shadow: inset 0 1px 0 rgba(47,74,106,.02) !important;
  outline: none !important;
}

.jk-community-inline-reply-form textarea:focus,
.jk-community-main-reply-form textarea:focus,
.jk-community-reply-form textarea:focus {
  border-color: rgba(47,74,106,.35) !important;
  box-shadow: 0 0 0 3px rgba(47,74,106,.08) !important;
}

.jk-community-reply-submit-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 9px !important;
}

.jk-community-reply-submit-row .jk-secondary-button,
.jk-community-reply-submit-row .jk-community-icon-action {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--jk-primary, #2F4A6A) !important;
  border: 1px solid var(--jk-primary, #2F4A6A) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
}

.jk-community-reply-submit-row .jk-secondary-button svg,
.jk-community-reply-submit-row .jk-community-icon-action svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}

.jk-community-inline-cancel {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  background: #f1f5f9 !important;
  color: #526173 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  flex: 0 0 auto !important;
}

.jk-community-reply-message {
  margin: 0 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: right !important;
  font-size: 12px !important;
}

@media (max-width: 760px) {
  .jk-community-inline-reply-host {
    margin-left: 0 !important;
    max-width: none !important;
  }
  .jk-community-reply-submit-row {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
  .jk-community-reply-message {
    width: 100% !important;
    text-align: left !important;
  }
}


/* Community v40: clean friend button and completely restyled reply composer */
.jk-community-person-row [data-friend-request].jk-community-friend-add-clean,
.jk-community-person-row [data-friend-request] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #2F4A6A !important;
  border: 1px solid rgba(47,74,106,.16) !important;
  box-shadow: 0 8px 20px rgba(47,74,106,.06) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.jk-community-person-row [data-friend-request] svg,
.jk-community-profile-actions [data-friend-request] svg,
.jk-community-friend-add-clean svg {
  display: none !important;
}

.jk-community-person-row [data-friend-request]:hover,
.jk-community-profile-actions [data-friend-request]:hover {
  border-color: rgba(47,74,106,.28) !important;
  box-shadow: 0 10px 24px rgba(47,74,106,.10) !important;
  transform: translateY(-1px);
}

/* Reply editor: neutral card, smaller controls, no big gold buttons */
.jk-community-comments-panel {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(47,74,106,.08) !important;
}

.jk-community-inline-reply-host {
  margin: 10px 0 0 38px !important;
  max-width: 460px !important;
}

.jk-community-inline-reply-form,
.jk-community-main-reply-form,
.jk-community-reply-form {
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(47,74,106,.12) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(47,74,106,.045) !important;
}

.jk-community-inline-reply-label {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #7b8794 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

.jk-community-inline-reply-label strong {
  color: #2F4A6A !important;
  font-weight: 850 !important;
}

.jk-community-inline-reply-form textarea,
.jk-community-main-reply-form textarea,
.jk-community-reply-form textarea {
  width: 100% !important;
  min-height: 46px !important;
  max-height: 100px !important;
  resize: vertical !important;
  display: block !important;
  border-radius: 14px !important;
  border: 1px solid rgba(47,74,106,.14) !important;
  background: #f8fafc !important;
  padding: 10px 12px !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
}

.jk-community-inline-reply-form textarea:focus,
.jk-community-main-reply-form textarea:focus,
.jk-community-reply-form textarea:focus {
  border-color: rgba(47,74,106,.40) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(47,74,106,.08) !important;
  outline: none !important;
}

.jk-community-reply-submit-row {
  margin-top: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.jk-community-reply-submit-row .jk-secondary-button,
.jk-community-reply-submit-row .jk-community-icon-action {
  order: 1;
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: #2F4A6A !important;
  border: 1px solid #2F4A6A !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  gap: 6px !important;
}

.jk-community-reply-submit-row .jk-secondary-button:hover,
.jk-community-reply-submit-row .jk-community-icon-action:hover {
  background: #263e59 !important;
  border-color: #263e59 !important;
  transform: none !important;
}

.jk-community-reply-submit-row .jk-secondary-button svg,
.jk-community-reply-submit-row .jk-community-icon-action svg {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
}

.jk-community-inline-cancel {
  order: 2;
  width: auto !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  background: #f1f5f9 !important;
  color: #526173 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.jk-community-inline-cancel:hover {
  background: #e9eef5 !important;
  color: #2F4A6A !important;
}

.jk-community-reply-message {
  order: 3;
  flex: 1 0 100% !important;
  margin: 0 !important;
  min-height: 15px !important;
  text-align: left !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.jk-community-comment-thread {
  margin: 8px 0 0 38px !important;
  padding-left: 12px !important;
  border-left: 2px solid rgba(202,162,96,.26) !important;
}

.jk-community-comment-actions {
  margin-top: 6px !important;
  gap: 8px !important;
}

.jk-community-comment-actions .jk-community-comment-reply,
.jk-community-comment-thread-toggle {
  min-height: 28px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  background: transparent !important;
  border: 0 !important;
  color: #526173 !important;
  box-shadow: none !important;
}

.jk-community-comment-actions .jk-community-comment-reply:hover,
.jk-community-comment-thread-toggle:hover {
  background: rgba(47,74,106,.06) !important;
  color: #2F4A6A !important;
}

@media (max-width: 760px) {
  .jk-community-inline-reply-host,
  .jk-community-comment-thread {
    margin-left: 0 !important;
  }
  .jk-community-reply-submit-row {
    gap: 7px !important;
  }
}


/* Community v41: mobiele app-like chat editing/deleting and cleaner reply/comment actions */
.jk-community-chat-messages {
  max-height: 420px !important;
  padding: 14px !important;
  gap: 10px !important;
}
.jk-community-chat-message {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 140px;
  padding: 10px 12px 8px !important;
}
.jk-community-chat-message.is-deleted {
  opacity: .78;
  font-style: italic;
}
.jk-community-chat-message.is-mine .jk-community-chat-actions {
  justify-content: flex-end;
}
.jk-community-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.jk-community-chat-actions button,
.jk-community-chat-edit-actions button,
.jk-community-comment-delete,
.jk-community-comment-reply,
.jk-community-comment-thread-toggle {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 74, 106, .08);
  color: #2F4A6A;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.jk-community-chat-message.is-mine .jk-community-chat-actions button {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.jk-community-chat-actions button:hover,
.jk-community-chat-edit-actions button:hover,
.jk-community-comment-delete:hover,
.jk-community-comment-reply:hover,
.jk-community-comment-thread-toggle:hover {
  transform: translateY(-1px);
}
.jk-community-chat-edit-form {
  margin-top: 10px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.96);
  color: #1f2937;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}
.jk-community-chat-message.is-mine .jk-community-chat-edit-form {
  background: rgba(255,255,255,.98);
}
.jk-community-chat-edit-label {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  margin-bottom: 6px;
}
.jk-community-chat-edit-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid rgba(47,74,106,.18);
  border-radius: 13px;
  padding: 10px 11px;
  font: inherit;
  color: #1f2937;
  background: #fff;
}
.jk-community-chat-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.jk-community-chat-edit-actions button:first-child {
  background: #2F4A6A;
  color: #fff;
}
.jk-community-comment-delete {
  color: #9f1239;
  background: rgba(159, 18, 57, .08);
}
.jk-community-comment-delete svg,
.jk-community-comment-reply svg,
.jk-community-comment-thread-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Community v42: rechtermuisknop-menu voor eigen chatberichten */
.jk-community-chat-message[data-chat-can-edit="1"],
.jk-community-chat-message[data-chat-can-delete="1"] {
  cursor: context-menu;
}

.jk-community-chat-context-menu {
  position: fixed;
  z-index: 999999;
  min-width: 178px;
  padding: 7px;
  border: 1px solid rgba(47, 74, 106, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  backdrop-filter: blur(12px);
}

.jk-community-chat-context-menu[hidden] {
  display: none !important;
}

.jk-community-chat-context-menu button {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #203247;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.jk-community-chat-context-menu button:hover,
.jk-community-chat-context-menu button:focus-visible {
  background: rgba(47, 74, 106, .08);
  outline: none;
}

.jk-community-chat-context-menu button.is-danger {
  color: #9f1239;
}

.jk-community-chat-context-menu button.is-danger:hover,
.jk-community-chat-context-menu button.is-danger:focus-visible {
  background: rgba(159, 18, 57, .09);
}

.jk-community-chat-context-menu button[hidden] {
  display: none !important;
}

/* v69 - Communitygroepen zichtbaar op de website */
.jk-community-groups-widget {
  display: grid;
  gap: 14px;
}
.jk-community-groups-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.jk-community-mini-button {
  padding: 8px 12px !important;
  font-size: 0.86rem !important;
  min-height: auto !important;
}
.jk-community-groups-list {
  display: grid;
  gap: 10px;
}
.jk-community-group-pill {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--jk-border, rgba(47,74,106,.14));
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  text-decoration: none !important;
  color: var(--jk-primary, #2f4a6a) !important;
}
.jk-community-group-pill strong,
.jk-community-group-pill small {
  display: block;
}
.jk-community-group-pill small {
  margin-top: 3px;
  color: var(--jk-muted, #718096);
}
.jk-community-group-pill.is-active {
  border-color: rgba(200,164,106,.55);
  background: rgba(200,164,106,.14);
  box-shadow: 0 8px 18px rgba(47,74,106,.10);
}
.jk-community-group-create {
  padding: 12px 0 0;
}
.jk-community-group-create summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--jk-primary, #2f4a6a);
}
.jk-community-group-form,
.jk-community-group-message-form,
.jk-community-group-add-member {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.jk-community-group-panel {
  margin-bottom: 18px;
}
.jk-community-group-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.jk-community-group-notice {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(39,117,47,.12);
  color: #276f2f;
  font-weight: 800;
  margin-bottom: 14px;
}
.jk-community-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .45fr);
  gap: 18px;
}
.jk-community-group-messages {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.jk-community-group-message {
  padding: 14px;
  border: 1px solid var(--jk-border, rgba(47,74,106,.12));
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.jk-community-group-message strong,
.jk-community-group-message small {
  display: block;
}
.jk-community-group-message small {
  color: var(--jk-muted, #718096);
  margin-top: 3px;
}
.jk-community-group-message p {
  margin: 10px 0 0;
}
.jk-community-group-members {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.jk-community-group-member {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(47,74,106,.06);
}
.jk-community-group-member img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}
.jk-community-group-member strong,
.jk-community-group-member small {
  display: block;
}
.jk-community-group-member small {
  color: var(--jk-muted, #718096);
}
@media (max-width: 980px) {
  .jk-community-group-grid {
    grid-template-columns: 1fr;
  }
}


/* v70 - Community website CSS fix: rustiger, duidelijker en groepen echt zichtbaar */
.jk-community-facebook {
  --jk-community-ink: #142033;
  --jk-community-muted: #647084;
  --jk-community-panel: #ffffff;
  --jk-community-soft: #f7f4ed;
  --jk-community-line: rgba(47, 74, 106, .12);
  --jk-community-gold-soft: rgba(200, 164, 106, .16);
  --jk-community-shadow: 0 18px 46px rgba(32, 48, 72, .08);
  color: var(--jk-community-ink);
}

.jk-community-facebook .jk-card {
  border: 1px solid var(--jk-community-line) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: var(--jk-community-shadow) !important;
}

.jk-community-facebook .jk-community-fb-hero {
  padding: 30px 34px !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at top right, rgba(200,164,106,.20), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fbfaf7 100%) !important;
}

.jk-community-facebook .jk-community-fb-hero .jk-eyebrow {
  color: #8b6b34 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.jk-community-facebook .jk-community-fb-hero h2 {
  margin: 0 0 8px !important;
  color: var(--jk-community-ink) !important;
  font-size: clamp(34px, 3.2vw, 50px) !important;
  line-height: .98 !important;
  letter-spacing: -.04em !important;
}

.jk-community-facebook .jk-community-fb-hero p:last-child {
  max-width: 860px !important;
  margin: 0 !important;
  color: var(--jk-community-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.jk-community-facebook .jk-community-layout {
  display: grid !important;
  grid-template-columns: minmax(250px, 300px) minmax(540px, 760px) minmax(250px, 300px) !important;
  gap: 24px !important;
  align-items: start !important;
  justify-content: center !important;
}

.jk-community-facebook .jk-community-leftbar,
.jk-community-facebook .jk-community-rightbar,
.jk-community-facebook .jk-community-feed-card,
.jk-community-facebook .jk-community-group-panel,
.jk-community-facebook .jk-community-chat-stage {
  padding: 24px !important;
}

.jk-community-facebook .jk-community-sidebar {
  gap: 18px !important;
}

.jk-community-facebook .jk-community-sidebar h3,
.jk-community-facebook .jk-community-group-panel h3,
.jk-community-facebook .jk-community-feed-card h3 {
  color: var(--jk-community-ink) !important;
  font-size: 25px !important;
  letter-spacing: -.03em !important;
  line-height: 1.08 !important;
}

.jk-community-facebook .jk-community-sidebar hr {
  border-top: 1px solid var(--jk-community-line) !important;
  margin: 8px 0 !important;
}

.jk-community-facebook .jk-community-me-mini .jk-community-author-link {
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(47,74,106,.06), rgba(200,164,106,.08)) !important;
  padding: 12px !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.jk-community-facebook .jk-community-me-mini .jk-community-author-link:hover,
.jk-community-facebook .jk-community-me-mini .jk-community-author-link:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(47,74,106,.08) !important;
  outline: none !important;
}

.jk-community-facebook .jk-community-search-field input,
.jk-community-facebook .jk-form-field input,
.jk-community-facebook .jk-form-field textarea,
.jk-community-facebook .jk-form-field select {
  border-radius: 18px !important;
  border: 1px solid rgba(47,74,106,.16) !important;
  background: #fff !important;
  color: var(--jk-community-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8) !important;
}

.jk-community-facebook .jk-community-search-field input:focus,
.jk-community-facebook .jk-form-field input:focus,
.jk-community-facebook .jk-form-field textarea:focus,
.jk-community-facebook .jk-form-field select:focus {
  border-color: rgba(200,164,106,.75) !important;
  box-shadow: 0 0 0 4px rgba(200,164,106,.14) !important;
  outline: none !important;
}

.jk-community-facebook .jk-primary-button,
.jk-community-facebook .jk-secondary-button,
.jk-community-facebook button.jk-primary-button,
.jk-community-facebook button.jk-secondary-button {
  min-height: 44px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important;
}

.jk-community-facebook .jk-primary-button:hover,
.jk-community-facebook .jk-secondary-button:hover,
.jk-community-facebook button.jk-primary-button:hover,
.jk-community-facebook button.jk-secondary-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(47,74,106,.14) !important;
}

/* Communitygroepen als nette module, niet als losse rommel onderaan */
.jk-community-facebook .jk-community-groups-widget {
  display: grid !important;
  visibility: visible !important;
  gap: 14px !important;
  margin-top: 2px !important;
  padding: 18px !important;
  border: 1px solid rgba(200,164,106,.24) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top right, rgba(200,164,106,.22), transparent 36%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 72%) !important;
  box-shadow: 0 12px 28px rgba(47,74,106,.06) !important;
}

.jk-community-facebook .jk-community-groups-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
}

.jk-community-facebook .jk-community-groups-head h3 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  font-size: 20px !important;
}

.jk-community-facebook .jk-community-groups-head h3::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(47,74,106,.98), rgba(47,74,106,.72));
  box-shadow: 0 8px 18px rgba(47,74,106,.18);
}

.jk-community-facebook .jk-community-mini-button {
  min-height: 34px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  background: #fff !important;
  border-color: rgba(47,74,106,.14) !important;
}

.jk-community-facebook .jk-community-groups-widget .jk-muted {
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px dashed rgba(47,74,106,.18) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.64) !important;
  color: var(--jk-community-muted) !important;
  line-height: 1.5 !important;
}

.jk-community-facebook .jk-community-groups-list {
  display: grid !important;
  gap: 10px !important;
  max-height: 310px !important;
  overflow: auto !important;
  padding-right: 2px !important;
}

.jk-community-facebook .jk-community-group-pill {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 64px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(47,74,106,.12) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.86) !important;
  color: var(--jk-community-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(47,74,106,.045) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important;
}

.jk-community-facebook .jk-community-group-pill::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(200,164,106,.95), rgba(139,107,52,.75));
  box-shadow: 0 8px 16px rgba(200,164,106,.24);
}

.jk-community-facebook .jk-community-group-pill strong,
.jk-community-facebook .jk-community-group-pill small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.jk-community-facebook .jk-community-group-pill strong {
  color: var(--jk-community-ink) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.jk-community-facebook .jk-community-group-pill small {
  color: var(--jk-community-muted) !important;
  font-size: 12px !important;
  margin-top: 2px !important;
}

.jk-community-facebook .jk-community-group-pill:hover,
.jk-community-facebook .jk-community-group-pill:focus-visible {
  transform: translateY(-2px) !important;
  border-color: rgba(200,164,106,.50) !important;
  box-shadow: 0 16px 30px rgba(47,74,106,.10) !important;
  outline: none !important;
}

.jk-community-facebook .jk-community-group-pill.is-active {
  border-color: rgba(200,164,106,.72) !important;
  background: #fff7e8 !important;
  box-shadow: 0 16px 34px rgba(200,164,106,.18) !important;
}

.jk-community-facebook .jk-community-group-pill.is-active::after {
  content: "Open";
  position: absolute;
  right: 12px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47,74,106,.09);
  color: #2F4A6A;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.jk-community-facebook .jk-community-group-create {
  padding: 0 !important;
}

.jk-community-facebook .jk-community-group-create summary {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(47,74,106,.14) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2F4A6A !important;
  cursor: pointer !important;
  font-weight: 900 !important;
}

.jk-community-facebook .jk-community-group-create summary::-webkit-details-marker {
  display: none !important;
}

.jk-community-facebook .jk-community-group-create[open] summary {
  border-color: rgba(200,164,106,.55) !important;
  background: rgba(200,164,106,.12) !important;
}

.jk-community-facebook .jk-community-group-form {
  margin-top: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.72) !important;
}

/* Groepdetail boven de tijdlijn: strak en leesbaar */
.jk-community-facebook .jk-community-group-panel {
  margin-bottom: 22px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at top left, rgba(47,74,106,.08), transparent 30%),
    #ffffff !important;
}

.jk-community-facebook .jk-community-group-panel-head {
  margin: -24px -24px 18px !important;
  padding: 24px !important;
  background: linear-gradient(135deg, rgba(47,74,106,.06), rgba(200,164,106,.12)) !important;
  border-bottom: 1px solid rgba(47,74,106,.10) !important;
}

.jk-community-facebook .jk-community-group-panel-head .jk-eyebrow {
  color: #8b6b34 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.jk-community-facebook .jk-community-group-panel-head h3 {
  margin: 0 0 5px !important;
}

.jk-community-facebook .jk-community-group-panel-head p:last-child {
  margin: 0 !important;
  color: var(--jk-community-muted) !important;
}

.jk-community-facebook .jk-community-group-notice {
  border-radius: 18px !important;
  background: rgba(39,117,47,.10) !important;
  color: #225f2a !important;
  border: 1px solid rgba(39,117,47,.16) !important;
  margin-bottom: 16px !important;
}

.jk-community-facebook .jk-community-group-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  gap: 20px !important;
}

.jk-community-facebook .jk-community-group-grid h4 {
  margin: 0 0 12px !important;
  color: var(--jk-community-ink) !important;
  font-size: 18px !important;
  letter-spacing: -.02em !important;
}

.jk-community-facebook .jk-community-group-message-form,
.jk-community-facebook .jk-community-group-add-member {
  padding: 14px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 22px !important;
  background: #fbfaf7 !important;
}

.jk-community-facebook .jk-community-group-messages {
  margin-top: 16px !important;
  display: grid !important;
  gap: 12px !important;
}

.jk-community-facebook .jk-community-group-message {
  padding: 16px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(47,74,106,.045) !important;
}

.jk-community-facebook .jk-community-group-message strong {
  color: var(--jk-community-ink) !important;
  font-weight: 900 !important;
}

.jk-community-facebook .jk-community-group-message small {
  color: var(--jk-community-muted) !important;
  font-size: 12px !important;
}

.jk-community-facebook .jk-community-group-message p {
  color: #314056 !important;
  line-height: 1.55 !important;
}

.jk-community-facebook .jk-community-group-members {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.jk-community-facebook .jk-community-group-member {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-member img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
}

.jk-community-facebook .jk-community-group-member strong,
.jk-community-facebook .jk-community-group-member small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.jk-community-facebook .jk-community-feed-card {
  background: #ffffff !important;
}

.jk-community-facebook .jk-community-feed-head {
  border-bottom: 1px solid var(--jk-community-line) !important;
  padding-bottom: 16px !important;
  margin-bottom: 18px !important;
}

.jk-community-facebook .jk-community-feed-actions {
  gap: 10px !important;
}

.jk-community-facebook .jk-community-post {
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(47,74,106,.055) !important;
  overflow: hidden !important;
}

.jk-community-facebook .jk-community-image {
  border-radius: 20px !important;
  border: 1px solid rgba(47,74,106,.08) !important;
}

@media (max-width: 1280px) {
  .jk-community-facebook .jk-community-layout {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  }
  .jk-community-facebook .jk-community-rightbar {
    grid-column: 1 / -1 !important;
    position: static !important;
  }
}

@media (max-width: 980px) {
  .jk-community-facebook .jk-community-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .jk-community-facebook .jk-community-sidebar {
    position: static !important;
  }
  .jk-community-facebook .jk-community-group-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .jk-community-facebook .jk-community-fb-hero,
  .jk-community-facebook .jk-community-leftbar,
  .jk-community-facebook .jk-community-rightbar,
  .jk-community-facebook .jk-community-feed-card,
  .jk-community-facebook .jk-community-group-panel,
  .jk-community-facebook .jk-community-chat-stage {
    padding: 18px !important;
    border-radius: 24px !important;
  }
  .jk-community-facebook .jk-community-group-panel-head {
    margin: -18px -18px 16px !important;
    padding: 18px !important;
  }
  .jk-community-facebook .jk-community-feed-head,
  .jk-community-facebook .jk-community-feed-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .jk-community-facebook .jk-community-feed-actions .jk-primary-button,
  .jk-community-facebook .jk-community-feed-actions .jk-secondary-button {
    width: 100% !important;
  }
}


/* v71 - Communitygroepen laten aansluiten op bestaande communitystijl + formulieren rustig houden */
.jk-community-facebook .jk-community-groups-widget {
  display: grid !important;
  gap: 14px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-groups-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.jk-community-facebook .jk-community-groups-head h3 {
  margin: 0 !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
}

.jk-community-facebook .jk-community-groups-head h3::before {
  display: none !important;
  content: none !important;
}

.jk-community-facebook .jk-community-groups-list {
  display: grid !important;
  gap: 10px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.jk-community-facebook .jk-community-group-pill {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--jk-primary, #2F4A6A) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.jk-community-facebook .jk-community-group-pill::before,
.jk-community-facebook .jk-community-group-pill::after {
  display: none !important;
  content: none !important;
}

.jk-community-facebook .jk-community-group-pill strong {
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: normal !important;
}

.jk-community-facebook .jk-community-group-pill small {
  justify-self: end !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: var(--jk-muted, #718096) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.jk-community-facebook .jk-community-group-pill:hover,
.jk-community-facebook .jk-community-group-pill:focus-visible {
  transform: none !important;
  border-color: rgba(47, 74, 106, .24) !important;
  box-shadow: 0 8px 18px rgba(47,74,106,.06) !important;
  outline: none !important;
}

.jk-community-facebook .jk-community-group-pill.is-active {
  border-color: rgba(47,74,106,.32) !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-create {
  padding: 0 !important;
}

.jk-community-facebook .jk-community-group-create summary {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--jk-primary, #2F4A6A) !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-create summary::-webkit-details-marker {
  display: none !important;
}

.jk-community-facebook .jk-community-group-create[open] summary {
  background: #f8fafc !important;
  border-color: rgba(47, 74, 106, .22) !important;
}

.jk-community-facebook .jk-community-group-form {
  display: grid !important;
  gap: 12px !important;
  margin-top: 12px !important;
  padding: 14px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 18px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-panel {
  margin-bottom: 18px !important;
  padding: 24px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.jk-community-facebook .jk-community-group-panel-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  align-items: flex-start !important;
  margin: 0 0 16px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--jk-border, #e5e7eb) !important;
  background: transparent !important;
}

.jk-community-facebook .jk-community-group-panel-head .jk-eyebrow {
  color: var(--jk-muted, #718096) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.jk-community-facebook .jk-community-group-panel-head h3 {
  margin: 0 0 4px !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
}

.jk-community-facebook .jk-community-group-panel-head p:last-child {
  margin: 0 !important;
  color: var(--jk-muted, #718096) !important;
}

.jk-community-facebook .jk-community-group-notice {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(39,117,47,.08) !important;
  color: #276f2f !important;
  border: 1px solid rgba(39,117,47,.16) !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
}

.jk-community-facebook .jk-community-group-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 250px !important;
  gap: 18px !important;
}

.jk-community-facebook .jk-community-group-message-form,
.jk-community-facebook .jk-community-group-add-member {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 18px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-message {
  padding: 14px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-member {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1px solid var(--jk-border, #e5e7eb) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

.jk-community-facebook .jk-community-group-member img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}

@media (max-width: 980px) {
  .jk-community-facebook .jk-community-group-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v72 - Communitygroepen: zelfde rustige stijl als bestaande community + WhatsApp-achtige groepslijst */
.jk-community-facebook .jk-community-groups-widget {
  display: grid !important;
  gap: 14px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-groups-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
}

.jk-community-facebook .jk-community-groups-head h3 {
  margin: 0 !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
}

.jk-community-facebook .jk-community-groups-head h3::before {
  display: none !important;
  content: none !important;
}

.jk-community-facebook .jk-community-mini-button {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: #fff !important;
  border: 1px solid rgba(47,74,106,.14) !important;
  color: var(--jk-primary, #2F4A6A) !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-groups-empty {
  display: grid !important;
  gap: 3px !important;
  padding: 12px 0 0 !important;
  color: var(--jk-muted, #718096) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-groups-empty strong {
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.jk-community-facebook .jk-community-groups-empty small {
  color: var(--jk-muted, #718096) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.jk-community-facebook .jk-community-groups-list {
  display: grid !important;
  gap: 8px !important;
  max-height: 360px !important;
  overflow-y: auto !important;
  padding: 2px 2px 2px 0 !important;
}

.jk-community-facebook .jk-community-group-pill {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: var(--jk-primary, #2F4A6A) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}

.jk-community-facebook .jk-community-group-pill::before,
.jk-community-facebook .jk-community-group-pill::after {
  display: none !important;
  content: none !important;
}

.jk-community-facebook .jk-community-group-pill:hover,
.jk-community-facebook .jk-community-group-pill:focus-visible,
.jk-community-facebook .jk-community-group-pill.is-active {
  background: #f7f9fc !important;
  border-color: rgba(47,74,106,.08) !important;
  box-shadow: none !important;
  outline: none !important;
}

.jk-community-facebook .jk-community-group-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: var(--jk-primary, #2F4A6A) !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

.jk-community-facebook .jk-community-group-text {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

.jk-community-facebook .jk-community-group-text strong {
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.jk-community-facebook .jk-community-group-text small {
  color: var(--jk-muted, #718096) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.jk-community-facebook .jk-community-group-open {
  align-self: center !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.jk-community-facebook .jk-community-group-create[hidden] {
  display: none !important;
}

.jk-community-facebook .jk-community-group-create {
  padding: 0 !important;
  margin: 0 !important;
}

.jk-community-facebook .jk-community-group-form {
  display: grid !important;
  gap: 12px !important;
  margin-top: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-form .jk-form-field,
.jk-community-facebook .jk-community-group-message-form .jk-form-field,
.jk-community-facebook .jk-community-group-add-member .jk-form-field {
  margin: 0 !important;
}

.jk-community-facebook .jk-community-group-form input,
.jk-community-facebook .jk-community-group-form select,
.jk-community-facebook .jk-community-group-form textarea,
.jk-community-facebook .jk-community-group-message-form textarea,
.jk-community-facebook .jk-community-group-add-member input {
  width: 100% !important;
  border: 1px solid rgba(47,74,106,.14) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #203247 !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-form-actions {
  display: grid !important;
  gap: 8px !important;
}

.jk-community-facebook .jk-community-group-form-actions .jk-primary-button,
.jk-community-facebook .jk-community-group-form-actions .jk-secondary-button,
.jk-community-facebook .jk-community-group-message-form .jk-primary-button,
.jk-community-facebook .jk-community-group-add-member .jk-secondary-button {
  width: 100% !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-panel {
  margin-bottom: 18px !important;
  padding: 22px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(47,74,106,.055) !important;
}

.jk-community-facebook .jk-community-group-panel-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  align-items: flex-start !important;
  margin: 0 0 18px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid rgba(47,74,106,.10) !important;
  background: transparent !important;
}

.jk-community-facebook .jk-community-group-panel-head h3 {
  margin: 0 0 4px !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  letter-spacing: -.045em !important;
}

.jk-community-facebook .jk-community-group-panel-head p:last-child,
.jk-community-facebook .jk-community-group-panel .jk-muted {
  color: var(--jk-muted, #718096) !important;
}

.jk-community-facebook .jk-community-group-notice {
  margin-bottom: 14px !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(39,117,47,.14) !important;
  border-radius: 16px !important;
  background: rgba(39,117,47,.08) !important;
  color: #276f2f !important;
  font-weight: 850 !important;
}

.jk-community-facebook .jk-community-group-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 270px !important;
  gap: 18px !important;
  align-items: start !important;
}

.jk-community-facebook .jk-community-group-grid h4 {
  margin: 0 0 12px !important;
  color: var(--jk-primary, #2F4A6A) !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
}

.jk-community-facebook .jk-community-group-message-form,
.jk-community-facebook .jk-community-group-add-member {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-messages,
.jk-community-facebook .jk-community-group-members {
  display: grid !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.jk-community-facebook .jk-community-group-message {
  padding: 13px 14px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-message strong {
  color: var(--jk-primary, #2F4A6A) !important;
  font-weight: 850 !important;
}

.jk-community-facebook .jk-community-group-message small {
  color: var(--jk-muted, #718096) !important;
  font-size: 12px !important;
}

.jk-community-facebook .jk-community-group-member {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1px solid rgba(47,74,106,.10) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-member img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
}

.jk-community-facebook .jk-community-group-member strong,
.jk-community-facebook .jk-community-group-member small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.jk-community-facebook .jk-community-group-member small {
  color: var(--jk-muted, #718096) !important;
  font-size: 12px !important;
}

@media (max-width: 980px) {
  .jk-community-facebook .jk-community-group-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .jk-community-facebook .jk-community-group-pill {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
  .jk-community-facebook .jk-community-group-open {
    display: none !important;
  }
  .jk-community-facebook .jk-community-group-panel {
    padding: 18px !important;
    border-radius: 24px !important;
  }
}

/* v74 - Communitygroepen: WhatsApp-achtige flow in dezelfde rustige communitystijl */
.jk-community-leftbar .jk-community-groups-widget.jk-groups-whatsapp {
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding-top: 24px;
    margin-top: 20px;
}

.jk-groups-whatsapp .jk-community-groups-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.jk-groups-whatsapp .jk-community-groups-head h3 {
    margin: 0;
    color: #2b4868;
    font-size: 18px;
    line-height: 1.2;
}

.jk-groups-whatsapp .jk-community-groups-head small {
    display: block;
    color: #7b8798;
    margin-top: 3px;
    font-size: 12px;
}

.jk-community-group-plus {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(43, 72, 104, .14);
    background: #fff;
    color: #2b4868;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.jk-community-group-plus:hover {
    background: #f7f9fc;
    transform: translateY(-1px);
}

.jk-groups-whatsapp .jk-community-groups-empty {
    border: 1px solid rgba(43, 72, 104, .10);
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
    color: #6f7c90;
}

.jk-groups-whatsapp .jk-community-groups-empty strong {
    display: block;
    color: #2b4868;
    margin-bottom: 4px;
}

.jk-groups-whatsapp .jk-community-group-create {
    background: #fff;
    border: 1px solid rgba(43, 72, 104, .10);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}

.jk-community-group-create-form .jk-form-field {
    margin-bottom: 10px;
}

.jk-community-create-title {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: end;
}

.jk-community-group-avatar.is-create {
    background: #2b4868;
    color: #fff;
    border: 0;
}

.jk-groups-whatsapp .jk-community-groups-list {
    display: grid;
    gap: 4px;
}

.jk-groups-whatsapp .jk-community-group-pill {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 10px 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.jk-groups-whatsapp .jk-community-group-pill:hover,
.jk-groups-whatsapp .jk-community-group-pill.is-active {
    background: #f7f9fc;
    border-color: rgba(43, 72, 104, .10);
}

.jk-community-group-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2b4868, #4e6f93);
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    flex: 0 0 auto;
    box-shadow: 0 10px 20px rgba(43, 72, 104, .14);
}

.jk-community-group-avatar.is-large {
    width: 56px;
    height: 56px;
    font-size: 18px;
}

.jk-community-group-text {
    min-width: 0;
}

.jk-community-group-text strong {
    display: block;
    color: #14243b;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jk-community-group-text small,
.jk-community-group-meta small {
    display: block;
    color: #7a8495;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jk-community-group-chat-card {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(43, 72, 104, .10) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .07) !important;
}

.jk-community-group-notice {
    margin: 16px 16px 0;
    border-radius: 14px;
    padding: 10px 12px;
    background: #eef6ff;
    color: #2b4868;
    font-weight: 700;
    font-size: 13px;
}

.jk-community-group-empty-chat {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px;
    color: #7a8495;
}

.jk-community-group-empty-chat h3 {
    color: #14243b;
    margin: 12px 0 6px;
}

.jk-community-group-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid rgba(43, 72, 104, .10);
}

.jk-community-group-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.jk-community-group-chat-head h3 {
    margin: 0;
    color: #14243b;
    font-size: 20px;
}

.jk-community-group-chat-head p,
.jk-community-group-chat-head small {
    margin: 2px 0 0;
    color: #7a8495;
    font-size: 13px;
}

.jk-community-group-description {
    margin: 0;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(43, 72, 104, .08);
    background: #fbfcfe;
    color: #69778b;
    font-size: 13px;
}

.jk-community-group-invite-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(43, 72, 104, .08);
    background: #fbfcfe;
}

.jk-community-group-invite-bar .jk-form-field {
    margin: 0;
}

.jk-community-group-chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    min-height: 520px;
}

.jk-community-group-chat-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f7f3ed;
}

.jk-community-group-bubbles {
    flex: 1;
    min-height: 400px;
    max-height: 560px;
    overflow: auto;
    padding: 18px;
    background:
        radial-gradient(circle at 20px 20px, rgba(43,72,104,.035) 0 2px, transparent 2px 20px),
        #f7f3ed;
}

.jk-community-group-chat-empty {
    margin: 40px auto;
    width: fit-content;
    max-width: 360px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255,255,255,.78);
    color: #7a8495;
    font-size: 13px;
}

.jk-community-group-bubble-row {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    align-items: flex-end;
}

.jk-community-group-bubble-row.is-mine {
    justify-content: flex-end;
}

.jk-community-group-bubble-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.jk-community-group-message-bubble {
    max-width: min(78%, 520px);
    padding: 9px 12px 7px;
    border-radius: 16px;
    background: #fff;
    color: #26364d;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.jk-community-group-bubble-row.is-mine .jk-community-group-message-bubble {
    background: #dbeafe;
    border-bottom-right-radius: 5px;
}

.jk-community-group-bubble-row.is-other .jk-community-group-message-bubble {
    border-bottom-left-radius: 5px;
}

.jk-community-group-message-bubble strong {
    display: block;
    color: #2b4868;
    font-size: 12px;
    margin-bottom: 3px;
}

.jk-community-group-message-bubble p {
    margin: 0;
    color: #26364d;
    line-height: 1.45;
}

.jk-community-group-message-bubble small {
    display: block;
    text-align: right;
    margin-top: 3px;
    color: #7a8495;
    font-size: 10px;
}

.jk-community-group-sendbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid rgba(43, 72, 104, .10);
}

.jk-community-group-sendbar textarea {
    min-height: 46px;
    max-height: 120px;
    resize: vertical;
    border-radius: 999px;
    border: 1px solid rgba(43, 72, 104, .14);
    padding: 12px 16px;
    background: #f8fafc;
    color: #14243b;
}

.jk-community-group-send-button {
    border-radius: 999px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.jk-community-group-members-panel {
    border-left: 1px solid rgba(43, 72, 104, .10);
    background: #fff;
    padding: 16px;
    overflow: auto;
}

.jk-community-group-members-panel h4 {
    margin: 0 0 12px;
    color: #2b4868;
}

.jk-community-group-members {
    display: grid;
    gap: 10px;
}

.jk-community-group-member {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 14px;
    background: #f8fafc;
}

.jk-community-group-member img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.jk-community-group-member strong {
    display: block;
    color: #14243b;
    font-size: 13px;
}

.jk-community-group-member small {
    display: block;
    color: #7a8495;
    font-size: 11px;
}

@media (max-width: 980px) {
    .jk-community-group-chat-layout {
        grid-template-columns: 1fr;
    }
    .jk-community-group-members-panel {
        border-left: 0;
        border-top: 1px solid rgba(43, 72, 104, .10);
    }
}

@media (max-width: 680px) {
    .jk-community-group-chat-head,
    .jk-community-group-invite-bar,
    .jk-community-group-sendbar {
        grid-template-columns: 1fr;
    }
    .jk-community-group-chat-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v75 - Communitygroepen: dichter bij WhatsApp, maar in bestaande Peercoach stijl */
.jk-community-group-create-form .jk-community-create-title {
    grid-template-columns: 72px 1fr;
    align-items: center;
}

.jk-community-group-photo-picker {
    display: grid;
    gap: 6px;
    justify-items: center;
    cursor: pointer;
    color: #7a8495;
    font-size: 11px;
    font-weight: 800;
}

.jk-community-group-photo-picker input {
    display: none !important;
}

.jk-community-group-avatar.has-photo,
.jk-community-group-avatar.has-photo img,
.jk-community-group-avatar img {
    overflow: hidden;
}

.jk-community-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.jk-community-group-avatar.is-xl {
    width: 82px;
    height: 82px;
    font-size: 26px;
}

.jk-community-group-chat-head-button {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.jk-community-group-chat-head-button:hover {
    background: #f8fafc;
}

.jk-community-group-head-action {
    color: #6f7c90;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.jk-community-group-info-drawer {
    border-bottom: 1px solid rgba(43, 72, 104, .10);
    background: #fff;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.jk-community-group-info-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jk-community-group-info-top h3,
.jk-community-group-info-section h4 {
    margin: 0 0 4px;
    color: #14243b;
}

.jk-community-group-info-top p,
.jk-community-group-info-top small,
.jk-community-group-info-section p {
    margin: 0;
    color: #7a8495;
}

.jk-community-group-info-section {
    border-top: 1px solid rgba(43, 72, 104, .08);
    padding-top: 14px;
}

.jk-community-group-invite-section .jk-community-group-invite-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.jk-group-user-picker {
    position: relative;
}

.jk-group-user-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(43, 72, 104, .12);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
    padding: 6px;
    max-height: 260px;
    overflow: auto;
}

.jk-group-user-result {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
}

.jk-group-user-result:hover {
    background: #f7f9fc;
}

.jk-group-user-result img,
.jk-group-user-chip img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.jk-group-user-result strong,
.jk-group-user-chip strong {
    display: block;
    color: #14243b;
    font-size: 13px;
}

.jk-group-user-result small {
    display: block;
    color: #7a8495;
    font-size: 11px;
}

.jk-group-user-empty,
.jk-group-user-loading {
    padding: 10px;
    color: #7a8495;
    font-size: 13px;
}

.jk-group-user-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.jk-group-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px 5px 5px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(43, 72, 104, .10);
}

.jk-group-user-chip button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font-weight: 900;
}

.jk-community-group-chat-layout {
    grid-template-columns: 1fr;
}

.jk-community-group-chat-area {
    min-height: 520px;
}

.jk-community-group-bubbles {
    background: #f4efe7;
}

.jk-community-group-members.is-info-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

@media (max-width: 680px) {
    .jk-community-group-create-form .jk-community-create-title,
    .jk-community-group-invite-section .jk-community-group-invite-bar {
        grid-template-columns: 1fr;
    }
    .jk-community-group-info-top {
        align-items: flex-start;
    }
}

/* v76 - Communitygroepen: strakker WhatsApp-gevoel, maar exact in Peercoach communitystijl */
.jk-community-facebook {
    --jk-group-blue: var(--jk-primary, #2F4A6A);
    --jk-group-text: var(--jk-text, #142335);
    --jk-group-muted: var(--jk-muted, #657280);
    --jk-group-line: var(--jk-border, #d8e0e8);
    --jk-group-soft: #f7f9fc;
    --jk-group-chat-bg: #f5efe7;
}

.jk-community-facebook .jk-community-leftbar .jk-community-groups-widget.jk-groups-whatsapp {
    margin-top: 22px !important;
    padding-top: 22px !important;
    border-top: 1px solid var(--jk-group-line) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-groups-head {
    margin: 0 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-groups-head h3 {
    margin: 0 !important;
    color: var(--jk-group-blue) !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-groups-head h3::before {
    display: none !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-groups-head small {
    color: var(--jk-group-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 3px !important;
}

.jk-community-facebook .jk-community-group-plus {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(47, 74, 106, .12) !important;
    background: #fff !important;
    color: var(--jk-group-blue) !important;
    box-shadow: 0 8px 20px rgba(47, 74, 106, .08) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 0 !important;
    padding: 0 0 3px !important;
}

.jk-community-facebook .jk-community-group-plus:hover,
.jk-community-facebook .jk-community-group-plus:focus-visible {
    background: var(--jk-group-blue) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Nieuwe groep maken: compacte nette kaart onder de groepslijstknop */
.jk-community-facebook .jk-groups-whatsapp .jk-community-group-create {
    margin: 0 0 14px !important;
    padding: 14px !important;
    border: 1px solid var(--jk-group-line) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(47, 74, 106, .08) !important;
}

.jk-community-facebook .jk-community-group-create-form {
    display: grid !important;
    gap: 11px !important;
}

.jk-community-facebook .jk-community-group-create-form .jk-community-create-title {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
}

.jk-community-facebook .jk-community-group-photo-picker {
    display: grid !important;
    gap: 5px !important;
    justify-items: center !important;
    color: var(--jk-group-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

.jk-community-facebook .jk-community-group-photo-picker .jk-community-group-avatar {
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 10px 22px rgba(47, 74, 106, .12) !important;
}

.jk-community-facebook .jk-community-group-create-form .jk-form-field {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-create-form input,
.jk-community-facebook .jk-community-group-create-form textarea,
.jk-community-facebook .jk-community-group-create-form select,
.jk-community-facebook .jk-community-group-add-member input,
.jk-community-facebook .jk-community-group-sendbar textarea {
    width: 100% !important;
    border: 1px solid var(--jk-group-line) !important;
    background: #fff !important;
    color: var(--jk-group-text) !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-create-form input:focus,
.jk-community-facebook .jk-community-group-create-form textarea:focus,
.jk-community-facebook .jk-community-group-create-form select:focus,
.jk-community-facebook .jk-community-group-add-member input:focus,
.jk-community-facebook .jk-community-group-sendbar textarea:focus {
    border-color: rgba(47, 74, 106, .42) !important;
    box-shadow: 0 0 0 3px rgba(47, 74, 106, .08) !important;
    outline: none !important;
}

.jk-community-facebook .jk-community-group-form-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-top: 2px !important;
}

.jk-community-facebook .jk-community-group-form-actions .jk-primary-button,
.jk-community-facebook .jk-community-group-form-actions .jk-secondary-button {
    min-height: 40px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
}

/* Groepslijst links: WhatsApp-lijst zonder rare losse blokken */
.jk-community-facebook .jk-groups-whatsapp .jk-community-groups-empty {
    padding: 13px 14px !important;
    border: 1px solid var(--jk-group-line) !important;
    border-radius: 18px !important;
    background: var(--jk-group-soft) !important;
    color: var(--jk-group-muted) !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-groups-list {
    display: grid !important;
    gap: 2px !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-group-pill {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 9px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-groups-whatsapp .jk-community-group-pill:hover,
.jk-community-facebook .jk-groups-whatsapp .jk-community-group-pill:focus-visible,
.jk-community-facebook .jk-groups-whatsapp .jk-community-group-pill.is-active {
    background: var(--jk-group-soft) !important;
    border-color: rgba(47, 74, 106, .09) !important;
    transform: none !important;
}

.jk-community-facebook .jk-community-group-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--jk-group-blue), #526e8f) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(47, 74, 106, .13) !important;
    overflow: hidden !important;
}

.jk-community-facebook .jk-community-group-avatar.is-large {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
}

.jk-community-facebook .jk-community-group-avatar.is-xl {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
    font-size: 24px !important;
}

.jk-community-facebook .jk-community-group-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

.jk-community-facebook .jk-community-group-text strong {
    color: var(--jk-group-text) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

.jk-community-facebook .jk-community-group-text small,
.jk-community-facebook .jk-community-group-meta small {
    color: var(--jk-group-muted) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

/* Hoofdpaneel: één duidelijke WhatsApp-chatkaart */
.jk-community-facebook .jk-community-group-panel.jk-community-group-chat-card {
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--jk-group-line) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 16px 42px rgba(47, 74, 106, .075) !important;
}

.jk-community-facebook .jk-community-group-notice {
    margin: 14px 16px 0 !important;
    padding: 11px 13px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(39, 117, 47, .16) !important;
    background: #eef8f0 !important;
    color: #27752f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 15px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--jk-group-line) !important;
    background: #fff !important;
    color: inherit !important;
    box-shadow: none !important;
    text-align: left !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:hover,
.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:focus-visible {
    background: #f9fbfd !important;
    outline: none !important;
}

.jk-community-facebook .jk-community-group-head-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.jk-community-facebook .jk-community-group-chat-head h3 {
    color: var(--jk-group-text) !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    letter-spacing: -0.025em !important;
}

.jk-community-facebook .jk-community-group-chat-head p,
.jk-community-facebook .jk-community-group-chat-head small {
    color: var(--jk-group-muted) !important;
    font-size: 13px !important;
    margin: 3px 0 0 !important;
}

.jk-community-facebook .jk-community-group-head-action {
    color: var(--jk-group-muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

/* Groepsinfo moet voelen als WhatsApp-info, niet als dubbel rommelig blok */
.jk-community-facebook .jk-community-group-info-drawer {
    padding: 18px !important;
    border-bottom: 1px solid var(--jk-group-line) !important;
    background: #f8fafc !important;
    display: grid !important;
    gap: 14px !important;
}

.jk-community-facebook .jk-community-group-info-top {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px !important;
    border: 1px solid var(--jk-group-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
}

.jk-community-facebook .jk-community-group-info-top h3 {
    color: var(--jk-group-text) !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin: 0 0 3px !important;
}

.jk-community-facebook .jk-community-group-info-top p,
.jk-community-facebook .jk-community-group-info-top small {
    color: var(--jk-group-muted) !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-info-section {
    padding: 15px !important;
    border: 1px solid var(--jk-group-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
}

.jk-community-facebook .jk-community-group-info-section h4 {
    margin: 0 0 10px !important;
    color: var(--jk-group-blue) !important;
    font-size: 18px !important;
    letter-spacing: -0.015em !important;
}

.jk-community-facebook .jk-community-group-info-section p {
    margin: 0 !important;
    color: var(--jk-group-muted) !important;
    line-height: 1.55 !important;
}

/* Uitnodigen: zoeken en selecteren als nette WhatsApp member-picker */
.jk-community-facebook .jk-community-group-invite-section {
    position: relative !important;
    overflow: visible !important;
}

.jk-community-facebook .jk-community-group-invite-section .jk-community-group-invite-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.jk-community-facebook .jk-community-group-invite-section .jk-form-field {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-invite-section .jk-primary-button {
    min-height: 46px !important;
    padding: 11px 18px !important;
    border-radius: 999px !important;
    background: var(--jk-group-blue) !important;
    color: #fff !important;
}

.jk-community-facebook .jk-group-user-picker {
    position: relative !important;
    min-width: 0 !important;
}

.jk-community-facebook .jk-group-user-results {
    position: absolute !important;
    top: calc(100% + 7px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    padding: 6px !important;
    max-height: 250px !important;
    overflow: auto !important;
    border: 1px solid var(--jk-group-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 20px 45px rgba(47, 74, 106, .16) !important;
}

.jk-community-facebook .jk-group-user-result {
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--jk-group-text) !important;
    text-align: left !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-group-user-result:hover,
.jk-community-facebook .jk-group-user-result:focus-visible,
.jk-community-facebook .jk-group-user-result:active {
    background: var(--jk-group-soft) !important;
    color: var(--jk-group-text) !important;
    outline: none !important;
}

.jk-community-facebook .jk-group-user-result img,
.jk-community-facebook .jk-group-user-chip img {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
}

.jk-community-facebook .jk-group-user-result strong,
.jk-community-facebook .jk-group-user-chip strong {
    display: block !important;
    color: var(--jk-group-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.jk-community-facebook .jk-group-user-result small {
    display: block !important;
    color: var(--jk-group-muted) !important;
    font-size: 11px !important;
    margin-top: 2px !important;
}

.jk-community-facebook .jk-group-user-selected {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 9px !important;
}

.jk-community-facebook .jk-group-user-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 8px 5px 5px !important;
    border: 1px solid rgba(47, 74, 106, .12) !important;
    border-radius: 999px !important;
    background: var(--jk-group-soft) !important;
    color: var(--jk-group-text) !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-group-user-chip button {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--jk-group-muted) !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-group-user-empty,
.jk-community-facebook .jk-group-user-loading {
    padding: 10px !important;
    color: var(--jk-group-muted) !important;
    font-size: 13px !important;
}

/* Ledenlijst in info */
.jk-community-facebook .jk-community-group-members.is-info-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 10px !important;
}

.jk-community-facebook .jk-community-group-member {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    border: 1px solid rgba(47, 74, 106, .08) !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.jk-community-facebook .jk-community-group-member img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
}

.jk-community-facebook .jk-community-group-member strong {
    color: var(--jk-group-text) !important;
    font-size: 13px !important;
}

.jk-community-facebook .jk-community-group-member small {
    color: var(--jk-group-muted) !important;
    font-size: 12px !important;
}

/* Chatvibe */
.jk-community-facebook .jk-community-group-chat-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: 520px !important;
}

.jk-community-facebook .jk-community-group-chat-area {
    min-height: 520px !important;
    background: var(--jk-group-chat-bg) !important;
}

.jk-community-facebook .jk-community-group-bubbles {
    min-height: 430px !important;
    max-height: 590px !important;
    padding: 18px !important;
    overflow: auto !important;
    background:
      radial-gradient(circle at 18px 18px, rgba(47, 74, 106, .035) 0 2px, transparent 2px 20px),
      var(--jk-group-chat-bg) !important;
}

.jk-community-facebook .jk-community-group-chat-empty {
    width: fit-content !important;
    max-width: 360px !important;
    margin: 80px auto !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.78) !important;
    color: var(--jk-group-muted) !important;
    font-size: 13px !important;
    box-shadow: 0 8px 20px rgba(47, 74, 106, .06) !important;
}

.jk-community-facebook .jk-community-group-bubble-row {
    display: flex !important;
    align-items: flex-end !important;
    gap: 8px !important;
    margin: 8px 0 !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-mine {
    justify-content: flex-end !important;
}

.jk-community-facebook .jk-community-group-bubble-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
}

.jk-community-facebook .jk-community-group-message-bubble {
    max-width: min(78%, 520px) !important;
    padding: 9px 12px 7px !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #26364d !important;
    box-shadow: 0 7px 18px rgba(47, 74, 106, .08) !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-mine .jk-community-group-message-bubble {
    background: #dcecff !important;
    border-bottom-right-radius: 5px !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-other .jk-community-group-message-bubble {
    border-bottom-left-radius: 5px !important;
}

.jk-community-facebook .jk-community-group-message-bubble strong {
    color: var(--jk-group-blue) !important;
    font-size: 12px !important;
    margin-bottom: 3px !important;
}

.jk-community-facebook .jk-community-group-message-bubble p {
    margin: 0 !important;
    color: #26364d !important;
    line-height: 1.45 !important;
}

.jk-community-facebook .jk-community-group-message-bubble small {
    display: block !important;
    margin-top: 3px !important;
    color: var(--jk-group-muted) !important;
    font-size: 10px !important;
    text-align: right !important;
}

.jk-community-facebook .jk-community-group-sendbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px !important;
    background: #fff !important;
    border-top: 1px solid var(--jk-group-line) !important;
}

.jk-community-facebook .jk-community-group-sendbar textarea {
    min-height: 46px !important;
    max-height: 120px !important;
    resize: vertical !important;
    border-radius: 999px !important;
    padding: 12px 16px !important;
    background: #f8fafc !important;
}

.jk-community-facebook .jk-community-group-send-button {
    min-height: 46px !important;
    border-radius: 999px !important;
    padding-inline: 20px !important;
}

@media (max-width: 700px) {
    .jk-community-facebook .jk-community-group-create-form .jk-community-create-title,
    .jk-community-facebook .jk-community-group-invite-section .jk-community-group-invite-bar,
    .jk-community-facebook .jk-community-group-sendbar {
        grid-template-columns: 1fr !important;
    }
    .jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button,
    .jk-community-facebook .jk-community-group-info-top {
        align-items: flex-start !important;
    }
}

/* v77 WhatsApp-achtige groepsrechten */
.jk-community-group-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.jk-community-group-action-row form,
.jk-community-group-inline-form {
    margin: 0;
}

.jk-community-group-soft-danger,
.jk-community-group-hard-danger {
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 14px;
    font-weight: 800;
}

.jk-community-group-soft-danger {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #9a3412 !important;
}

.jk-community-group-hard-danger,
.jk-community-member-danger {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

.jk-community-group-member-row {
    gap: 12px;
}

.jk-community-group-member-row > span {
    flex: 1;
    min-width: 0;
}

.jk-community-group-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.jk-community-member-role-button,
.jk-community-member-danger {
    appearance: none;
    border-radius: 999px;
    border: 1px solid #d7e0ec;
    background: #ffffff;
    color: #2f4d70;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    padding: 9px 11px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20, 41, 70, 0.06);
}

.jk-community-member-role-button:hover {
    background: #f5f8fc;
    border-color: #b9c8dc;
}

.jk-community-member-danger:hover {
    background: #fee2e2 !important;
}

@media (max-width: 760px) {
    .jk-community-group-member-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 50px;
    }
}

/* v78 - WhatsApp-achtige groepschat: strakker, geen tijdlijn onder actieve groep, echte 3-punten menu's */
.jk-community-facebook.has-active-group .jk-community-rightbar {
    display: none !important;
}

.jk-community-facebook.has-active-group .jk-community-layout {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) !important;
    align-items: stretch !important;
}

.jk-community-facebook.has-active-group .jk-community-mainfeed {
    min-width: 0 !important;
}

.jk-community-facebook.has-active-group .jk-community-feed-card {
    display: none !important;
}

.jk-community-facebook .jk-community-group-chat-card {
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 26px !important;
    border: 1px solid #dbe4ef !important;
    background: #ffffff !important;
    box-shadow: 0 18px 45px rgba(30, 54, 83, 0.08) !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
    border: 0 !important;
    border-bottom: 1px solid #e4ebf3 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    padding: 14px 18px !important;
    min-height: 76px !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:hover {
    background: #f8fafc !important;
}

.jk-community-facebook .jk-community-group-head-left {
    min-width: 0 !important;
}

.jk-community-facebook .jk-community-group-head-left h3 {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    color: #122039 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.jk-community-facebook .jk-community-group-head-left p,
.jk-community-facebook .jk-community-group-head-left small {
    margin: 3px 0 0 !important;
    color: #738196 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.jk-community-facebook .jk-community-group-head-kebab {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
    color: #64748b !important;
    background: transparent !important;
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: -4px !important;
    padding-right: 4px !important;
}

.jk-community-facebook .jk-community-group-chat-head:hover .jk-community-group-head-kebab {
    background: #edf2f7 !important;
    color: #122039 !important;
}

.jk-community-facebook .jk-community-group-info-drawer {
    border: 0 !important;
    border-bottom: 1px solid #e4ebf3 !important;
    border-radius: 0 !important;
    background: #fbfcfe !important;
    padding: 18px !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-info-top {
    padding: 0 0 16px !important;
    border-bottom: 1px solid #e4ebf3 !important;
}

.jk-community-facebook .jk-community-group-info-section {
    padding: 16px 0 !important;
    border-bottom: 1px solid #e9eef5 !important;
}

.jk-community-facebook .jk-community-group-info-section:last-child {
    border-bottom: 0 !important;
}

.jk-community-facebook .jk-community-group-info-section h4 {
    margin: 0 0 10px !important;
    font-size: 15px !important;
    color: #122039 !important;
}

.jk-community-facebook .jk-community-group-invite-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: end !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    padding: 12px !important;
}

.jk-community-facebook .jk-community-group-invite-bar .jk-form-field {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-invite-bar input[type="search"] {
    min-height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #d7e0ec !important;
    background: #f8fafc !important;
}

.jk-community-facebook .jk-community-group-members.is-info-list {
    display: grid !important;
    gap: 8px !important;
}

.jk-community-facebook .jk-community-group-member-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 8px !important;
    border-radius: 16px !important;
    border: 1px solid transparent !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-member-row:hover {
    background: #f8fafc !important;
    border-color: #edf2f7 !important;
}

.jk-community-facebook .jk-community-group-member-row img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.jk-community-facebook .jk-community-group-member-row > span {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

.jk-community-facebook .jk-community-group-member-row strong {
    color: #122039 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.jk-community-facebook .jk-community-group-member-row small {
    color: #7b8798 !important;
    font-size: 12px !important;
}

.jk-community-facebook .jk-community-member-menu {
    position: relative !important;
    justify-self: end !important;
}

.jk-community-facebook .jk-community-member-menu summary {
    list-style: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 0 !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
    background: transparent !important;
    color: #64748b !important;
}

.jk-community-facebook .jk-community-member-menu summary::-webkit-details-marker {
    display: none !important;
}

.jk-community-facebook .jk-community-member-menu summary span {
    font-weight: 900 !important;
    font-size: 18px !important;
    letter-spacing: -4px !important;
    padding-right: 4px !important;
    line-height: 1 !important;
}

.jk-community-facebook .jk-community-member-menu summary:hover,
.jk-community-facebook .jk-community-member-menu[open] summary {
    background: #edf2f7 !important;
    color: #122039 !important;
}

.jk-community-facebook .jk-community-member-menu-popover {
    position: absolute !important;
    right: 0 !important;
    top: 42px !important;
    z-index: 50 !important;
    min-width: 190px !important;
    padding: 7px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
}

.jk-community-facebook .jk-community-member-menu-popover form {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-member-menu-popover button {
    width: 100% !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
    color: #1f3654 !important;
}

.jk-community-facebook .jk-community-member-menu-popover button:hover {
    background: #f1f5f9 !important;
}

.jk-community-facebook .jk-community-member-menu-popover .jk-community-member-danger {
    color: #b42318 !important;
}

.jk-community-facebook .jk-community-member-menu-popover .jk-community-member-danger:hover {
    background: #fef2f2 !important;
}

.jk-community-facebook .jk-community-group-bubbles {
    min-height: 440px !important;
    max-height: 62vh !important;
    padding: 20px !important;
    background: #f3eee7 !important;
    overflow-y: auto !important;
}

.jk-community-facebook .jk-community-group-message-bubble {
    border-radius: 18px !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-mine .jk-community-group-message-bubble {
    background: #d9fdd3 !important;
    color: #122039 !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-other .jk-community-group-message-bubble {
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-sendbar {
    position: sticky !important;
    bottom: 0 !important;
    border-top: 1px solid #e4ebf3 !important;
}

.jk-community-facebook .jk-community-group-sendbar textarea {
    border: 1px solid #d7e0ec !important;
    background: #f8fafc !important;
}

@media (max-width: 1100px) {
    .jk-community-facebook.has-active-group .jk-community-layout {
        grid-template-columns: 1fr !important;
    }
    .jk-community-facebook.has-active-group .jk-community-leftbar {
        order: 1 !important;
    }
    .jk-community-facebook.has-active-group .jk-community-mainfeed {
        order: 2 !important;
    }
}

/* v79: groepchat blijft in het midden, tijdlijn blijft bereikbaar, rechten zijn WhatsApp-achtig. */
.jk-community-facebook .jk-community-group-chat-head-wrap {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: stretch !important;
    border-bottom: 1px solid #e4ebf3 !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    min-width: 92px !important;
    border-right: 1px solid #e4ebf3 !important;
    color: #2f4f76 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    background: #fbfcfe !important;
}

.jk-community-facebook .jk-community-group-back:hover {
    background: #f1f5f9 !important;
    color: #10233f !important;
}

.jk-community-facebook .jk-community-group-chat-head-wrap .jk-community-group-chat-head.jk-community-group-chat-head-button {
    border-bottom: 0 !important;
}

.jk-community-facebook.has-active-group .jk-community-feed-card {
    display: none !important;
}

.jk-community-facebook .jk-community-group-info-drawer .jk-community-group-invite-section {
    background: #fbfcfe !important;
    border-radius: 18px !important;
    padding: 14px !important;
    border: 1px solid #e6edf5 !important;
}

.jk-community-facebook .jk-community-member-menu summary span {
    letter-spacing: 0 !important;
    padding-right: 0 !important;
    font-size: 20px !important;
    transform: rotate(90deg) !important;
}

.jk-community-facebook .jk-community-member-menu-popover button {
    font-family: inherit !important;
    min-height: 38px !important;
}

@media (max-width: 760px) {
    .jk-community-facebook .jk-community-group-chat-head-wrap {
        grid-template-columns: 1fr !important;
    }
    .jk-community-facebook .jk-community-group-back {
        justify-content: flex-start !important;
        min-height: 44px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e4ebf3 !important;
    }
}


/* v80: groepsinfo mag alleen zichtbaar worden na klik op de groepsheader. */
.jk-community-group-info-drawer[hidden],
.jk-community-facebook .jk-community-group-info-drawer[hidden],
[data-jk-group-info][hidden] {
    display: none !important;
    visibility: hidden !important;
}

.jk-community-group-info-drawer.is-open,
.jk-community-facebook .jk-community-group-info-drawer.is-open,
[data-jk-group-info].is-open {
    display: grid !important;
    visibility: visible !important;
}

/* v81: stabiele WhatsApp-achtige groepschat binnen de bestaande Peercoach-stijl. */
.jk-community-facebook.has-active-group .jk-community-layout {
    grid-template-columns: minmax(260px, 330px) minmax(0, 820px) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: 22px !important;
}

.jk-community-facebook.has-active-group .jk-community-mainfeed {
    width: 100% !important;
    max-width: 820px !important;
    justify-self: center !important;
}

.jk-community-facebook.has-active-group .jk-community-rightbar,
.jk-community-facebook.has-active-group .jk-community-feed-card {
    display: none !important;
}

.jk-community-facebook .jk-community-group-chat-card {
    border-radius: 24px !important;
    border: 1px solid #dce6f1 !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(18, 38, 63, 0.08) !important;
}

.jk-community-facebook .jk-community-group-chat-head-wrap {
    grid-template-columns: auto minmax(0, 1fr) !important;
    border-bottom: 1px solid #e5edf6 !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-back {
    min-width: 150px !important;
    padding: 0 18px !important;
    color: #1e3a5f !important;
    background: #f7f9fc !important;
    border-right: 1px solid #e5edf6 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.jk-community-facebook .jk-community-group-back:hover,
.jk-community-facebook .jk-community-group-back:focus-visible {
    color: #10233f !important;
    background: #edf3fa !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
    min-height: 78px !important;
    padding: 14px 18px !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:hover,
.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:focus-visible {
    background: #f8fbff !important;
}

.jk-community-facebook .jk-community-group-head-left h3,
.jk-community-facebook .jk-community-group-info-top h3,
.jk-community-facebook .jk-community-group-info-section h4 {
    color: #10233f !important;
}

.jk-community-facebook .jk-community-group-head-left p,
.jk-community-facebook .jk-community-group-head-left small,
.jk-community-facebook .jk-community-group-info-top p,
.jk-community-facebook .jk-community-group-info-top small,
.jk-community-facebook .jk-community-group-info-section p {
    color: #607089 !important;
}

.jk-community-facebook .jk-community-group-info-drawer {
    background: #fbfdff !important;
    border-bottom: 1px solid #e5edf6 !important;
    padding: 18px !important;
}

.jk-community-facebook .jk-community-group-info-section {
    border-bottom: 1px solid #edf2f7 !important;
}

.jk-community-facebook .jk-community-group-invite-section .jk-community-group-invite-bar {
    background: #ffffff !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.05) !important;
}

.jk-community-facebook .jk-community-group-members.is-info-list {
    gap: 8px !important;
}

.jk-community-facebook .jk-community-group-member-row {
    background: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
}

.jk-community-facebook .jk-community-group-member-row:not(.has-member-menu) {
    grid-template-columns: 42px minmax(0, 1fr) !important;
}

.jk-community-facebook .jk-community-group-member-row:hover {
    background: #f8fbff !important;
    border-color: #e5edf6 !important;
}

.jk-community-facebook .jk-community-member-menu-popover {
    z-index: 90 !important;
    border-radius: 16px !important;
    border: 1px solid #dce6f1 !important;
    box-shadow: 0 18px 42px rgba(18, 38, 63, 0.16) !important;
}

.jk-community-facebook .jk-community-group-bubbles {
    min-height: 440px !important;
    max-height: calc(100vh - 330px) !important;
    padding: 22px !important;
    background: #f6f8fb !important;
    overflow-y: auto !important;
}

.jk-community-facebook .jk-community-group-chat-empty {
    color: #607089 !important;
    background: #ffffff !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 18px !important;
}

.jk-community-facebook .jk-community-group-message-bubble {
    color: #10233f !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.06) !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-mine .jk-community-group-message-bubble {
    background: #eaf2ff !important;
    border-color: #cfdef3 !important;
    color: #10233f !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-other .jk-community-group-message-bubble {
    background: #ffffff !important;
    color: #10233f !important;
}

.jk-community-facebook .jk-community-group-message-bubble strong {
    color: #1e3a5f !important;
}

.jk-community-facebook .jk-community-group-message-bubble small {
    color: #6e7d93 !important;
}

.jk-community-facebook .jk-community-group-sendbar {
    background: #ffffff !important;
    border-top: 1px solid #e5edf6 !important;
    padding: 13px !important;
}

.jk-community-facebook .jk-community-group-sendbar textarea {
    background: #f8fbff !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 18px !important;
    color: #10233f !important;
}

.jk-community-facebook .jk-community-group-send-button {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: #ffffff !important;
}

.jk-community-facebook .jk-community-group-soft-danger,
.jk-community-facebook .jk-community-group-hard-danger,
.jk-community-facebook .jk-community-member-danger {
    box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-soft-danger {
    background: #ffffff !important;
    border-color: #d8e2ee !important;
    color: #1e3a5f !important;
}

.jk-community-facebook .jk-community-group-hard-danger,
.jk-community-facebook .jk-community-member-danger {
    background: #fff7f7 !important;
    border-color: #f2c9c9 !important;
    color: #9f1f1f !important;
}

@media (max-width: 1100px) {
    .jk-community-facebook.has-active-group .jk-community-layout {
        grid-template-columns: minmax(0, 820px) !important;
    }
    .jk-community-facebook.has-active-group .jk-community-leftbar {
        order: 2 !important;
    }
    .jk-community-facebook.has-active-group .jk-community-mainfeed {
        order: 1 !important;
    }
}

@media (max-width: 760px) {
    .jk-community-facebook .jk-community-group-chat-head-wrap {
        grid-template-columns: 1fr !important;
    }
    .jk-community-facebook .jk-community-group-back {
        min-width: 0 !important;
        min-height: 44px !important;
        justify-content: flex-start !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e5edf6 !important;
    }
    .jk-community-facebook .jk-community-group-bubbles {
        min-height: 360px !important;
        max-height: 58vh !important;
        padding: 16px !important;
    }
    .jk-community-facebook .jk-community-group-sendbar {
        grid-template-columns: 1fr !important;
    }
}

/* v82: groepsheader rustiger maken, groep-instellingen toevoegen en oude chat-achtergrond herstellen. */
.jk-community-facebook .jk-community-group-chat-head-wrap {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5edf6 !important;
}

.jk-community-facebook .jk-community-group-back {
    min-width: 0 !important;
    width: fit-content !important;
    min-height: 0 !important;
    margin: 12px 16px 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 999px !important;
    background: #f7f9fc !important;
    color: #1e3a5f !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.jk-community-facebook .jk-community-group-back:hover,
.jk-community-facebook .jk-community-group-back:focus-visible {
    background: #edf3fa !important;
    color: #10233f !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 18px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    text-align: left !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:hover,
.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:focus-visible {
    background: #f8fbff !important;
}

.jk-community-facebook .jk-community-group-head-left {
    min-width: 0 !important;
}

.jk-community-facebook .jk-community-group-head-kebab {
    flex: 0 0 auto !important;
    background: #f7f9fc !important;
    color: #1e3a5f !important;
    border: 1px solid #dce6f1 !important;
}

.jk-community-facebook .jk-community-group-chat-head:hover .jk-community-group-head-kebab,
.jk-community-facebook .jk-community-group-chat-head:focus-visible .jk-community-group-head-kebab {
    background: #edf3fa !important;
}

.jk-community-facebook .jk-community-group-settings-section {
    background: #ffffff !important;
    border: 1px solid #e5edf6 !important;
    border-radius: 18px !important;
    padding: 14px !important;
}

.jk-community-facebook .jk-community-group-settings-form {
    display: grid !important;
    gap: 12px !important;
}

.jk-community-facebook .jk-community-group-settings-grid {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
}

.jk-community-facebook .jk-community-group-photo-picker.is-settings {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px dashed #d6e0eb !important;
    border-radius: 16px !important;
    background: #f8fbff !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-photo-picker.is-settings input[type="file"] {
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.jk-community-facebook .jk-community-group-photo-picker.is-settings small,
.jk-community-facebook .jk-community-group-remove-photo {
    color: #607089 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.jk-community-facebook .jk-community-group-settings-fields {
    display: grid !important;
    gap: 10px !important;
}

.jk-community-facebook .jk-community-group-settings-form .jk-form-field {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-remove-photo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.jk-community-facebook .jk-community-group-chat-area,
.jk-community-facebook .jk-community-group-bubbles {
    background:
        radial-gradient(circle at 18px 18px, rgba(47, 74, 106, .035) 0 2px, transparent 2px 20px),
        var(--jk-group-chat-bg, #f5efe7) !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-mine .jk-community-group-message-bubble {
    background: #dcecff !important;
    border-color: transparent !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-other .jk-community-group-message-bubble {
    background: #ffffff !important;
    border-color: transparent !important;
}

@media (max-width: 760px) {
    .jk-community-facebook .jk-community-group-back {
        margin: 10px 12px 0 !important;
        border-bottom: 1px solid #dce6f1 !important;
    }

    .jk-community-facebook .jk-community-group-settings-grid {
        grid-template-columns: 1fr !important;
    }

    .jk-community-facebook .jk-community-group-photo-picker.is-settings {
        align-items: flex-start !important;
    }
}

/* v83: groepsheader, rechten-UI en beheerformulier opgeschoond. */
.jk-community-facebook .jk-community-group-chat-head-wrap {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e4ebf3 !important;
}

.jk-community-facebook .jk-community-group-chat-head-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    text-align: left !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:hover,
.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:focus-visible {
    background: #f7f9fc !important;
    outline: none !important;
}

.jk-community-facebook .jk-community-group-head-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.jk-community-facebook .jk-community-group-head-left > div {
    min-width: 0 !important;
}

.jk-community-facebook .jk-community-group-head-left h3,
.jk-community-facebook .jk-community-group-head-left p,
.jk-community-facebook .jk-community-group-head-left small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.jk-community-facebook .jk-community-group-header-menu {
    position: relative !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 12px 0 4px !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-header-menu summary {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto 0 !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #1e3a5f !important;
    list-style: none !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-header-menu summary::-webkit-details-marker {
    display: none !important;
}

.jk-community-facebook .jk-community-group-header-menu summary:hover,
.jk-community-facebook .jk-community-group-header-menu summary:focus-visible,
.jk-community-facebook .jk-community-group-header-menu[open] summary {
    background: #edf3fa !important;
    border-color: #dce6f1 !important;
    outline: none !important;
}

.jk-community-facebook .jk-community-group-header-menu summary span {
    display: block !important;
    transform: none !important;
    rotate: none !important;
    letter-spacing: 1px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.jk-community-facebook .jk-community-group-header-popover {
    position: absolute !important;
    top: calc(100% - 8px) !important;
    right: 12px !important;
    z-index: 120 !important;
    min-width: 210px !important;
    display: grid !important;
    gap: 4px !important;
    padding: 8px !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(18, 38, 63, 0.16) !important;
}

.jk-community-facebook .jk-community-group-header-popover form {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-menu-button {
    width: 100% !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #10233f !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-menu-button:hover,
.jk-community-facebook .jk-community-group-menu-button:focus-visible {
    background: #f1f5f9 !important;
    outline: none !important;
}

.jk-community-facebook .jk-community-group-menu-button.is-danger {
    color: #a11d1d !important;
}

.jk-community-facebook .jk-community-group-menu-button.is-danger:hover,
.jk-community-facebook .jk-community-group-menu-button.is-danger:focus-visible {
    background: #fff1f1 !important;
}

.jk-community-facebook .jk-community-group-info-drawer {
    background: #ffffff !important;
    border-bottom: 1px solid #e4ebf3 !important;
    padding: 16px !important;
    gap: 14px !important;
}

.jk-community-facebook .jk-community-group-info-section {
    padding: 0 0 14px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.jk-community-facebook .jk-community-group-info-section:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.jk-community-facebook .jk-community-group-settings-section,
.jk-community-facebook .jk-community-group-invite-section {
    background: #f8fbff !important;
    border: 1px solid #e1eaf4 !important;
    border-radius: 18px !important;
    padding: 14px !important;
}

.jk-community-facebook .jk-community-group-settings-section[hidden],
.jk-community-facebook [data-jk-group-edit-panel][hidden] {
    display: none !important;
}

.jk-community-facebook .jk-community-group-settings-form,
.jk-community-facebook .jk-community-group-settings-fields {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
}

.jk-community-facebook .jk-community-group-settings-grid {
    display: grid !important;
    grid-template-columns: 136px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

.jk-community-facebook .jk-community-group-settings-form .jk-form-field,
.jk-community-facebook .jk-community-group-invite-bar .jk-form-field {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-settings-form .jk-form-field > span,
.jk-community-facebook .jk-community-group-invite-bar .jk-form-field > span {
    display: block !important;
    color: #1e3a5f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.jk-community-facebook .jk-community-group-settings-form input[type="text"],
.jk-community-facebook .jk-community-group-settings-form select,
.jk-community-facebook .jk-community-group-settings-form textarea,
.jk-community-facebook .jk-community-group-invite-bar input[type="search"] {
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 13px !important;
    border: 1px solid #d7e0ec !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #10233f !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.jk-community-facebook .jk-community-group-settings-form textarea {
    min-height: 112px !important;
    resize: vertical !important;
    line-height: 1.45 !important;
}

.jk-community-facebook .jk-community-group-photo-picker.is-settings {
    min-height: 132px !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ffffff !important;
}

.jk-community-facebook .jk-community-group-settings-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
}

.jk-community-facebook .jk-community-group-invite-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: end !important;
    background: #ffffff !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 16px !important;
    padding: 12px !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-chat-area,
.jk-community-facebook .jk-community-group-bubbles {
    background:
        radial-gradient(circle at 18px 18px, rgba(47, 74, 106, .035) 0 2px, transparent 2px 20px),
        #f3eee7 !important;
}

.jk-community-facebook .jk-community-group-bubbles {
    min-height: 440px !important;
    max-height: 62vh !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-mine .jk-community-group-message-bubble {
    background: #d9fdd3 !important;
    border-color: transparent !important;
    color: #122039 !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-other .jk-community-group-message-bubble {
    background: #ffffff !important;
    border-color: transparent !important;
    color: #122039 !important;
}

@media (max-width: 760px) {
    .jk-community-facebook .jk-community-group-chat-head-row {
        align-items: center !important;
    }

    .jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
        min-height: 68px !important;
        padding: 12px !important;
    }

    .jk-community-facebook .jk-community-group-header-menu {
        padding: 0 10px 0 0 !important;
    }

    .jk-community-facebook .jk-community-group-header-popover {
        right: 8px !important;
    }

    .jk-community-facebook .jk-community-group-settings-grid,
    .jk-community-facebook .jk-community-group-invite-bar {
        grid-template-columns: 1fr !important;
    }
}

/* v84 - communitygroep header, info en berichtacties opgeschoond */
.jk-community-facebook .jk-community-group-chat-head-wrap {
    background: #fff !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.jk-community-facebook .jk-community-group-chat-head-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #fff !important;
    min-height: 86px !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 18px 20px !important;
    box-shadow: none !important;
    min-height: 86px !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:hover,
.jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button:focus-visible {
    background: #f7f9fc !important;
}

.jk-community-facebook .jk-community-group-head-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.jk-community-facebook .jk-community-group-chat-head h3 {
    margin: 0 0 3px !important;
    color: #132845 !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
}

.jk-community-facebook .jk-community-group-chat-head p,
.jk-community-facebook .jk-community-group-chat-head small {
    margin: 0 !important;
    color: #6f7f92 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.jk-community-facebook .jk-community-group-header-menu {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 58px !important;
    border-left: 1px solid #eef2f7 !important;
    background: #fff !important;
}

.jk-community-facebook .jk-community-group-header-menu summary {
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #17345a !important;
    cursor: pointer !important;
    list-style: none !important;
}

.jk-community-facebook .jk-community-group-header-menu summary::-webkit-details-marker,
.jk-community-facebook .jk-community-group-message-menu summary::-webkit-details-marker {
    display: none !important;
}

.jk-community-facebook .jk-community-group-header-menu summary:hover {
    background: #f2f5f9 !important;
}

.jk-community-facebook .jk-community-group-header-popover,
.jk-community-facebook .jk-community-group-message-popover {
    position: absolute !important;
    z-index: 50 !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    min-width: 190px !important;
    background: #fff !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 44px rgba(19, 40, 69, .14) !important;
    padding: 8px !important;
}

.jk-community-facebook .jk-community-group-header-popover form,
.jk-community-facebook .jk-community-group-message-popover form {
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-menu-button,
.jk-community-facebook .jk-community-group-message-popover button {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    color: #132845 !important;
    text-align: left !important;
    padding: 11px 12px !important;
    border-radius: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-menu-button:hover,
.jk-community-facebook .jk-community-group-message-popover button:hover {
    background: #f4f7fb !important;
}

.jk-community-facebook .jk-community-group-menu-button.is-danger,
.jk-community-facebook .jk-community-group-message-popover button.is-danger {
    color: #a51d2d !important;
}

.jk-community-facebook .jk-community-group-info-drawer {
    border: 1px solid #dfe7f2 !important;
    border-top: 0 !important;
    border-radius: 0 0 22px 22px !important;
    background: #fff !important;
    margin: 0 0 14px !important;
    padding: 16px !important;
    box-shadow: none !important;
}

.jk-community-facebook .jk-community-group-info-section {
    background: #fff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin: 0 0 12px !important;
}

.jk-community-facebook .jk-community-group-info-section:first-child {
    margin-top: 0 !important;
}

.jk-community-facebook .jk-community-group-info-section h4 {
    color: #132845 !important;
    font-size: 15px !important;
    margin: 0 0 8px !important;
}

.jk-community-facebook .jk-community-group-info-section p {
    color: #3b4a5f !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.jk-community-facebook .jk-community-group-bubbles {
    background-color: #efe7db !important;
    background-image:
        radial-gradient(circle at 16px 16px, rgba(255,255,255,.35) 0 2px, transparent 3px),
        linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0)) !important;
    background-size: 42px 42px, auto !important;
}

.jk-community-facebook .jk-community-group-message-bubble {
    position: relative !important;
    padding-right: 38px !important;
}

.jk-community-facebook .jk-community-group-bubble-row.is-deleted .jk-community-group-message-bubble {
    opacity: .75 !important;
    font-style: italic !important;
}

.jk-community-facebook .jk-community-group-message-menu {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
}

.jk-community-facebook .jk-community-group-message-menu summary {
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6f7f92 !important;
    cursor: pointer !important;
    list-style: none !important;
}

.jk-community-facebook .jk-community-group-message-menu summary:hover {
    background: rgba(19,40,69,.08) !important;
}

.jk-community-facebook .jk-community-group-message-edit-form,
.jk-community-inline-edit-form {
    margin-top: 10px !important;
    padding: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 14px !important;
}

.jk-community-facebook .jk-community-group-message-edit-form[hidden],
.jk-community-inline-edit-form[hidden] {
    display: none !important;
}

.jk-community-facebook .jk-community-group-message-edit-form textarea,
.jk-community-inline-edit-form textarea {
    width: 100% !important;
    min-height: 78px !important;
    resize: vertical !important;
    border: 1px solid #d6e0ec !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    color: #132845 !important;
    font: inherit !important;
}

.jk-community-facebook .jk-community-group-message-edit-form > div,
.jk-community-inline-edit-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
}

.jk-community-facebook .jk-community-group-message-edit-form button,
.jk-community-inline-edit-actions button {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 9px 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

.jk-community-facebook .jk-community-group-message-edit-form button[type="submit"],
.jk-community-inline-edit-actions button[type="submit"] {
    background: #2f527a !important;
    color: #fff !important;
}

.jk-community-facebook .jk-community-group-message-edit-form button[type="button"],
.jk-community-inline-edit-actions button[type="button"] {
    background: #eef3f8 !important;
    color: #132845 !important;
}

.jk-community-inline-edit-label {
    color: #132845 !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

@media (max-width: 760px) {
    .jk-community-facebook .jk-community-group-chat-head-row {
        grid-template-columns: minmax(0, 1fr) 52px !important;
    }
    .jk-community-facebook .jk-community-group-chat-head.jk-community-group-chat-head-button {
        padding: 14px !important;
    }
    .jk-community-facebook .jk-community-group-chat-head h3 {
        font-size: 19px !important;
    }
}

/* v85 - Groepschat: zelfde rechtermuisknop-acties als 1-op-1 chat + WhatsApp-achtige datums */
.jk-community-chat-date-separator {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 8px 0 10px !important;
  pointer-events: none !important;
}

.jk-community-chat-date-separator span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(47, 74, 106, .08) !important;
  color: #55677d !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .07) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.jk-community-group-date-separator {
  grid-column: 1 / -1 !important;
}

.jk-community-facebook .jk-community-group-bubble-row[data-group-can-edit="1"],
.jk-community-facebook .jk-community-group-bubble-row[data-group-can-delete="1"] {
  cursor: context-menu !important;
}

.jk-community-facebook .jk-community-group-message-bubble {
  padding-right: 14px !important;
}

.jk-community-facebook .jk-community-group-message-menu,
.jk-community-facebook .jk-community-group-message-popover {
  display: none !important;
}

.jk-community-facebook .jk-community-group-context-menu {
  z-index: 1000000 !important;
}

.jk-community-facebook .jk-community-group-message-delete-form[hidden] {
  display: none !important;
}

.jk-community-facebook .jk-community-group-message-edit-form {
  margin-top: 10px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .12) !important;
}

.jk-community-chat-messages .jk-community-chat-date-separator {
  margin: 4px 0 8px !important;
}

.jk-community-chat-messages .jk-community-chat-date-separator span {
  background: rgba(244, 247, 251, .96) !important;
}

/* v86 Portfolio basis onder Profiel */
.jk-portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jk-portfolio-header,
.jk-portfolio-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.jk-portfolio-header h2,
.jk-portfolio-item h3 {
  margin: 0;
  color: #10233f;
}

.jk-portfolio-create {
  border: 1px solid #dbe5f2;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px;
}

.jk-portfolio-create > summary,
.jk-portfolio-edit > summary {
  cursor: pointer;
  font-weight: 800;
  color: #10233f;
  list-style: none;
}

.jk-portfolio-create > summary::-webkit-details-marker,
.jk-portfolio-edit > summary::-webkit-details-marker {
  display: none;
}

.jk-portfolio-create > summary::after,
.jk-portfolio-edit > summary::after {
  content: '›';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.18s ease;
}

.jk-portfolio-create[open] > summary::after,
.jk-portfolio-edit[open] > summary::after {
  transform: rotate(90deg);
}

.jk-portfolio-form {
  margin-top: 14px;
}

.jk-portfolio-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.jk-portfolio-form-grid p {
  margin: 0;
}

.jk-portfolio-form-grid label {
  display: block;
  margin-bottom: 6px;
  color: #10233f;
}

.jk-portfolio-form-grid input[type="text"],
.jk-portfolio-form-grid input[type="file"],
.jk-portfolio-form-grid select,
.jk-portfolio-form-grid textarea {
  width: 100%;
  border: 1px solid #d7e1ef;
  border-radius: 16px;
  background: #fff;
  color: #10233f;
  padding: 12px 14px;
  box-shadow: none;
}

.jk-portfolio-form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.jk-portfolio-form-grid .jk-field-span-2 {
  grid-column: 1 / -1;
}

.jk-help-text {
  display: block;
  margin-top: 6px;
  color: #66758c;
  font-size: 13px;
}

.jk-checkbox-line {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
  color: #344766;
}

.jk-portfolio-list {
  display: grid;
  gap: 16px;
}

.jk-portfolio-item {
  border: 1px solid #dbe5f2;
  border-radius: 22px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 35, 63, 0.05);
}

.jk-portfolio-type {
  margin-bottom: 8px;
}

.jk-portfolio-body {
  margin-top: 14px;
  color: #273a59;
  line-height: 1.65;
}

.jk-portfolio-body p:last-child {
  margin-bottom: 0;
}

.jk-portfolio-file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.jk-portfolio-file span {
  color: #66758c;
  font-size: 13px;
}

.jk-portfolio-feedback {
  margin-top: 18px;
  border-top: 1px solid #e7edf6;
  padding-top: 16px;
}

.jk-portfolio-feedback h4 {
  margin: 0 0 10px;
  color: #10233f;
}

.jk-portfolio-feedback-form {
  background: #f7f9fc;
  border: 1px solid #e1e9f4;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

.jk-portfolio-owner-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid #e7edf6;
  padding-top: 14px;
}

.jk-portfolio-edit {
  flex: 1;
}

@media (max-width: 760px) {
  .jk-portfolio-header,
  .jk-portfolio-item-head,
  .jk-portfolio-owner-actions {
    flex-direction: column;
  }

  .jk-portfolio-form-grid {
    grid-template-columns: 1fr;
  }
}

/* v87 Portfolio als eigen pagina */
.jk-profile-portfolio-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dbe5f2;
  background: #ffffff;
}

.jk-profile-portfolio-shortcut h2 {
  margin: 0 0 6px;
  color: #10233f;
}

.jk-profile-portfolio-shortcut .jk-card-actions {
  flex-shrink: 0;
  align-items: center;
}

.jk-portfolio-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 22px;
  align-items: stretch;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dbe5f2;
}

.jk-portfolio-page-hero h2 {
  margin: 0 0 8px;
  color: #10233f;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.jk-portfolio-page-hero p {
  color: #344766;
  line-height: 1.65;
  max-width: 720px;
}

.jk-portfolio-guide-grid {
  display: grid;
  gap: 10px;
}

.jk-portfolio-guide-card {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  padding: 14px 16px;
  color: #273a59;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(15, 35, 63, .05);
}

.jk-portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.jk-portfolio-filter-bar .jk-secondary-button {
  border-radius: 999px;
  padding: 9px 13px;
}

.jk-portfolio-filter-bar .jk-secondary-button.is-active,
.jk-peercoach-tabs .jk-secondary-button.is-active {
  background: #10233f;
  color: #ffffff;
  border-color: #10233f;
}

.jk-portfolio-card {
  border: 1px solid #dbe5f2;
  background: #ffffff;
}

.jk-portfolio-card .jk-portfolio-create {
  background: #f8fbff;
}

.jk-portfolio-card .jk-portfolio-create[open] {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #edf2f8;
}

.jk-portfolio-item {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.jk-portfolio-item:hover {
  border-color: #c9d8ea;
  box-shadow: 0 16px 34px rgba(15, 35, 63, .08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .jk-portfolio-page-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .jk-profile-portfolio-shortcut {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-profile-portfolio-shortcut .jk-card-actions {
    align-items: stretch;
  }
}

/* v88 Persoonlijk leiderschap / ALP onder profiel */
.jk-profile-development-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.jk-profile-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dbe5f2;
  background: #ffffff;
}

.jk-profile-shortcut-card h2 {
  margin: 0 0 6px;
  color: #10233f;
}

.jk-profile-shortcut-card .jk-card-actions {
  align-items: center;
  flex-shrink: 0;
}

.jk-leadership-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 22px;
  align-items: stretch;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dbe5f2;
}

.jk-leadership-page-hero h2 {
  margin: 0 0 8px;
  color: #10233f;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.jk-leadership-page-hero p {
  color: #344766;
  line-height: 1.65;
  max-width: 760px;
}

.jk-leadership-guide-grid {
  display: grid;
  gap: 10px;
}

.jk-leadership-guide-card {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  padding: 14px 16px;
  color: #273a59;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(15, 35, 63, .05);
}

.jk-leadership-page-card {
  border: 1px solid #dbe5f2;
  background: #ffffff;
}

.jk-section-heading,
.jk-leadership-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.jk-section-heading h2,
.jk-leadership-section-heading h2 {
  margin: 0;
  color: #10233f;
}

.jk-leadership-page-card .jk-repeater-section {
  border: 1px solid #e0e8f3;
  border-radius: 20px;
  background: #fbfdff;
  padding: 18px;
  margin-top: 18px;
}

.jk-leadership-page-card .jk-repeater-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.jk-leadership-page-card .jk-repeater-header h3 {
  margin: 0 0 4px;
  color: #10233f;
}

.jk-leadership-page-card .jk-repeater-item {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 35, 63, .04);
}

.jk-leadership-page-card .jk-repeater-grid {
  gap: 14px 16px;
}

.jk-leadership-page-card label strong {
  color: #172b4d;
}

.jk-leadership-page-card textarea.widefat,
.jk-leadership-page-card input.widefat {
  border-radius: 14px;
}

.jk-leadership-save-actions {
  margin-top: 18px;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .jk-profile-development-hub,
  .jk-leadership-page-hero {
    grid-template-columns: 1fr;
  }

  .jk-profile-shortcut-card,
  .jk-section-heading,
  .jk-leadership-section-heading {
    flex-direction: column;
    align-items: stretch;
  }
}

/* v89 - Japie Krekel micro-interacties */
.jk-japie-micro {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
  pointer-events: none;
}

.jk-japie-micro-toggle,
.jk-japie-micro-card {
  pointer-events: auto;
}

.jk-japie-micro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #10233f;
  padding: 8px 12px 8px 8px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(15, 35, 63, .09);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.jk-japie-micro-toggle:hover,
.jk-japie-micro-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: #c8a46a;
  box-shadow: 0 18px 38px rgba(15, 35, 63, .13);
  outline: none;
}

.jk-japie-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eff6f1;
  border: 1px solid #cfe3d5;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.jk-japie-avatar-large {
  width: 42px;
  height: 42px;
  font-size: 22px;
  flex: 0 0 auto;
}

.jk-japie-micro-card {
  position: absolute;
  right: 0;
  top: 50px;
  width: min(420px, calc(100vw - 36px));
  border: 1px solid #dbe5f2;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 35, 63, .15);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.jk-japie-micro-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.jk-japie-micro-head .jk-eyebrow {
  margin: 0 0 4px;
}

.jk-japie-title {
  margin: 0;
  color: #10233f;
  font-size: 18px;
  line-height: 1.25;
}

.jk-japie-text {
  margin: 12px 0 0;
  color: #344766;
  line-height: 1.6;
}

.jk-japie-close {
  border: 0;
  background: #f4f7fb;
  color: #344766;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.jk-japie-close:hover,
.jk-japie-close:focus-visible {
  background: #e7eef7;
  color: #10233f;
  outline: none;
}

.jk-japie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.jk-japie-actions .jk-secondary-button {
  padding: 9px 13px;
}

.jk-japie-next {
  color: #2f4a6a;
  font-weight: 800;
}

.jk-japie-micro.is-pulsing .jk-japie-micro-card {
  animation: jkJapiePulse .36s ease;
}

@keyframes jkJapiePulse {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .jk-japie-micro {
    top: 10px;
    margin-top: 0;
  }

  .jk-japie-micro-card {
    right: 0;
    width: min(360px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-micro-toggle,
  .jk-japie-micro-card {
    transition: none;
  }

  .jk-japie-micro.is-pulsing .jk-japie-micro-card {
    animation: none;
  }
}

/* v91 - Japie Krekel zweeft linksonder met spraakwolk en krekelgeluid */
.jk-japie-micro {
  position: fixed;
  left: 26px;
  right: auto;
  bottom: 24px;
  top: auto;
  z-index: 9999;
  display: block;
  justify-content: initial;
  margin: 0;
  pointer-events: none;
}

.jk-japie-micro-toggle,
.jk-japie-micro-card {
  pointer-events: auto;
}

.jk-japie-micro-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(207, 227, 213, .95);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f1f8f3 38%, #dbeedf 100%);
  color: #10233f;
  padding: 8px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(15, 35, 63, .18), inset 0 1px 0 rgba(255, 255, 255, .85);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.jk-japie-micro-toggle:hover,
.jk-japie-micro-toggle:focus-visible {
  transform: translateY(-2px) scale(1.035);
  border-color: #b9d8bf;
  box-shadow: 0 22px 52px rgba(15, 35, 63, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
  outline: none;
}

.jk-japie-micro-toggle::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid rgba(89, 132, 92, .18);
  opacity: 0;
  transform: scale(.92);
  pointer-events: none;
}

.jk-japie-micro.is-nudging .jk-japie-micro-toggle {
  animation: jkJapieBounceV91 .82s ease both;
}

.jk-japie-micro.is-nudging .jk-japie-micro-toggle::after {
  animation: jkJapieRippleV91 .82s ease both;
}

.jk-japie-avatar {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 30px;
}

.jk-japie-toggle-text {
  display: block;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .01em;
}

.jk-japie-soundmark {
  position: absolute;
  right: -4px;
  top: -7px;
  display: inline-grid;
  min-width: 28px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe5f2;
  color: #557151;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(3px) scale(.82);
  box-shadow: 0 10px 22px rgba(15, 35, 63, .12);
}

.jk-japie-micro.is-nudging .jk-japie-soundmark {
  animation: jkJapieSoundMarkV91 .82s ease both;
}

.jk-japie-micro-card {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: 92px;
  top: auto;
  width: min(390px, calc(100vw - 44px));
  border: 1px solid #dbe5f2;
  border-radius: 26px 26px 26px 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 35, 63, .2);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform-origin: 22px 100%;
  transform: translateY(10px) scale(.96);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.jk-japie-micro-card::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -12px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-right: 1px solid #dbe5f2;
  border-bottom: 1px solid #dbe5f2;
  transform: rotate(45deg);
  border-bottom-right-radius: 6px;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.jk-japie-micro.is-open .jk-japie-micro-toggle {
  transform: translateY(-1px) scale(1.02);
}

.jk-japie-micro-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.jk-japie-avatar-large {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #eff6f1;
  border: 1px solid #cfe3d5;
  font-size: 27px;
}

.jk-japie-micro-head .jk-eyebrow {
  color: #557151;
}

.jk-japie-title {
  margin: 0;
  color: #10233f;
  font-size: 18px;
  line-height: 1.25;
}

.jk-japie-text {
  margin: 12px 0 0;
  color: #344766;
  line-height: 1.6;
}

.jk-japie-actions {
  margin-top: 15px;
}

.jk-japie-next {
  color: #557151;
}

@keyframes jkJapieBounceV91 {
  0% { transform: translateY(0) scale(1); }
  22% { transform: translateY(-5px) scale(1.13); }
  45% { transform: translateY(1px) scale(.94); }
  68% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes jkJapieRippleV91 {
  0% { opacity: 0; transform: scale(.88); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.22); }
}

@keyframes jkJapieSoundMarkV91 {
  0% { opacity: 0; transform: translateY(5px) scale(.78); }
  25% { opacity: 1; transform: translateY(0) scale(1); }
  72% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 0; transform: translateY(-7px) scale(.9); }
}

@media (max-width: 780px) {
  .jk-japie-micro {
    left: 16px;
    bottom: 16px;
  }

  .jk-japie-micro-toggle {
    width: 66px;
    height: 66px;
  }

  .jk-japie-avatar {
    width: 33px;
    height: 33px;
    font-size: 26px;
  }

  .jk-japie-toggle-text {
    font-size: 11px;
  }

  .jk-japie-micro-card {
    left: 0;
    bottom: 82px;
    width: min(340px, calc(100vw - 32px));
    border-radius: 22px 22px 22px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-micro-toggle,
  .jk-japie-micro-card {
    transition: none;
  }

  .jk-japie-micro.is-nudging .jk-japie-micro-toggle,
  .jk-japie-micro.is-nudging .jk-japie-micro-toggle::after,
  .jk-japie-micro.is-nudging .jk-japie-soundmark {
    animation: none;
  }
}

/* v92 - Japie alleen als krekel-icoon; geluid bij aandacht-vragen */
.jk-japie-micro-toggle {
  width: 62px;
  height: 62px;
  padding: 0;
  gap: 0;
}

.jk-japie-micro-toggle .jk-japie-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
}

.jk-japie-toggle-text,
.jk-japie-soundmark {
  display: none !important;
}

.jk-japie-micro.is-nudging .jk-japie-micro-toggle {
  animation: jkJapieCricketWantSayV92 .9s ease both;
}

@keyframes jkJapieCricketWantSayV92 {
  0% { transform: translateY(0) scale(1); }
  18% { transform: translateY(-3px) scale(1.18); }
  38% { transform: translateY(1px) scale(.9); }
  60% { transform: translateY(-2px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .jk-japie-micro-toggle {
    width: 58px;
    height: 58px;
  }

  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 38px;
    height: 38px;
    font-size: 31px;
  }
}

/* v93 - Japie alleen als los krekel-icoon; pulse elke 3 seconden wanneer gesloten */
.jk-japie-micro-toggle {
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline-offset: 6px;
}

.jk-japie-micro-toggle:hover,
.jk-japie-micro-toggle:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px) scale(1.08);
}

.jk-japie-micro-toggle::after {
  inset: 3px !important;
  border: 2px solid rgba(85, 113, 81, .18) !important;
  background: transparent !important;
}

.jk-japie-micro-toggle .jk-japie-avatar {
  width: 58px !important;
  height: 58px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 42px !important;
  filter: drop-shadow(0 10px 14px rgba(15, 35, 63, .18));
}

.jk-japie-micro.is-nudging .jk-japie-micro-toggle {
  animation: jkJapieCricketPulseV93 .92s ease both !important;
}

.jk-japie-micro.is-nudging .jk-japie-micro-toggle::after {
  animation: jkJapieCricketRippleV93 .92s ease both !important;
}

@keyframes jkJapieCricketPulseV93 {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-4px) scale(1.22); }
  42% { transform: translateY(1px) scale(.88); }
  64% { transform: translateY(-2px) scale(1.12); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes jkJapieCricketRippleV93 {
  0% { opacity: 0; transform: scale(.78); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.42); }
}

@media (max-width: 780px) {
  .jk-japie-micro-toggle,
  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 52px !important;
    height: 52px !important;
  }

  .jk-japie-micro-toggle .jk-japie-avatar {
    font-size: 38px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-micro.is-nudging .jk-japie-micro-toggle,
  .jk-japie-micro.is-nudging .jk-japie-micro-toggle::after {
    animation: none !important;
  }
}

/* v94 - Japie vraagt alleen aandacht bij echte context, niet continu */
.jk-japie-micro-toggle::after {
  display: none !important;
}

.jk-japie-micro.has-attention .jk-japie-micro-toggle .jk-japie-avatar {
  filter: drop-shadow(0 12px 18px rgba(15, 35, 63, .22));
}

.jk-japie-micro:not(.has-attention):not(.is-open) .jk-japie-micro-toggle .jk-japie-avatar {
  filter: drop-shadow(0 8px 12px rgba(15, 35, 63, .14));
}

/* v95 - Japie Krekel scenario responses */
.jk-japie-response {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.jk-japie-choice-row,
.jk-japie-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jk-japie-response-button,
.jk-japie-score-button {
  appearance: none;
  border: 1px solid rgba(47, 74, 106, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--jk-primary, #2F4A6A);
  cursor: pointer;
  font-weight: 700;
  padding: 8px 12px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.jk-japie-response-button:hover,
.jk-japie-score-button:hover,
.jk-japie-response-button:focus-visible,
.jk-japie-score-button:focus-visible {
  background: var(--jk-primary, #2F4A6A);
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.jk-japie-score-button {
  min-width: 34px;
  min-height: 34px;
  padding: 6px 8px;
}

.jk-japie-response-text {
  width: 100%;
  border: 1px solid rgba(47, 74, 106, 0.16);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--jk-text, #10233d);
  resize: vertical;
}

.jk-japie-response-status {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(39, 117, 47, 0.09);
  color: #1f6530;
  font-size: 13px;
  font-weight: 700;
}

.jk-japie-response-status.is-error {
  background: rgba(178, 35, 35, 0.08);
  color: #9d1f1f;
}

/* v98 Japie micro-interactie afronding */
.jk-japie-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.jk-japie-followup-text {
  width: 100%;
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(47, 74, 106, 0.18);
  background: #fff;
  color: #12233f;
  padding: 12px 14px;
  resize: vertical;
}

.jk-japie-global-settings .jk-settings-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* v100 Portfolio overzichtelijker */
.jk-portfolio-clean-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: #ffffff;
  border: 1px solid #dbe5f2;
  box-shadow: 0 16px 38px rgba(15, 35, 63, .06);
}

.jk-portfolio-hero-copy p {
  margin-bottom: 14px;
}

.jk-portfolio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.jk-portfolio-stats-panel {
  display: grid;
  gap: 10px;
}

.jk-portfolio-stat {
  border: 1px solid #e0e8f3;
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px 16px;
}

.jk-portfolio-stat strong {
  display: block;
  color: #10233f;
  font-size: 24px;
  line-height: 1.1;
}

.jk-portfolio-stat span {
  display: block;
  margin-top: 4px;
  color: #66758c;
  font-size: 13px;
  font-weight: 700;
}

.jk-portfolio-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.jk-portfolio-type-card {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 16px;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid #dbe5f2;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 35, 63, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.jk-portfolio-type-card:hover,
.jk-portfolio-type-card:focus-visible {
  transform: translateY(-1px);
  border-color: #c6d6eb;
  box-shadow: 0 16px 32px rgba(15, 35, 63, .08);
}

.jk-portfolio-type-count {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #edf4ff;
  color: #10233f;
  font-weight: 900;
}

.jk-portfolio-type-card strong {
  color: #10233f;
  font-size: 16px;
}

.jk-portfolio-type-card small {
  color: #66758c;
  line-height: 1.45;
}

.jk-portfolio-clean-filter {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.jk-portfolio-clean-filter > div:first-child strong,
.jk-portfolio-clean-filter > div:first-child span {
  display: block;
}

.jk-portfolio-clean-filter > div:first-child strong {
  color: #10233f;
}

.jk-portfolio-clean-filter > div:first-child span {
  color: #66758c;
  font-size: 13px;
  margin-top: 3px;
}

.jk-portfolio-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.jk-portfolio-filter-chips .jk-secondary-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(16, 35, 63, .08);
  font-size: 12px;
  font-weight: 900;
}

.jk-portfolio-filter-chips .jk-secondary-button.is-active span {
  background: rgba(255, 255, 255, .18);
}

.jk-portfolio-clean-card {
  gap: 18px;
}

.jk-portfolio-list-heading {
  border-bottom: 1px solid #edf2f8;
  padding-bottom: 14px;
}

.jk-portfolio-create-clean {
  background: #f8fbff;
  border: 1px solid #dbe5f2;
  padding: 0;
  overflow: hidden;
}

.jk-portfolio-create-clean > summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}

.jk-portfolio-create-clean > summary small {
  color: #66758c;
  font-weight: 600;
}

.jk-portfolio-create-clean > summary::after {
  position: absolute;
  right: 18px;
  top: 18px;
}

.jk-portfolio-create-clean .jk-portfolio-form {
  margin: 0;
  padding: 18px;
  border-top: 1px solid #e3ebf6;
  background: #ffffff;
}

.jk-portfolio-item-compact {
  padding: 0;
  overflow: hidden;
}

.jk-portfolio-item-compact > summary {
  list-style: none;
}

.jk-portfolio-item-compact > summary::-webkit-details-marker {
  display: none;
}

.jk-portfolio-item-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 16px 18px;
}

.jk-portfolio-item-summary::after {
  content: 'Openen';
  justify-self: end;
  align-self: end;
  color: #10233f;
  font-size: 12px;
  font-weight: 900;
  opacity: .72;
}

.jk-portfolio-item-compact[open] .jk-portfolio-item-summary::after {
  content: 'Sluiten';
}

.jk-portfolio-summary-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.jk-portfolio-summary-main strong {
  color: #10233f;
  font-size: 17px;
  line-height: 1.25;
}

.jk-portfolio-summary-main small {
  color: #66758c;
  line-height: 1.45;
}

.jk-portfolio-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: #66758c;
  font-size: 12px;
}

.jk-portfolio-summary-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f6fb;
  font-weight: 700;
}

.jk-portfolio-item-content {
  border-top: 1px solid #edf2f8;
  padding: 18px;
  background: #ffffff;
}

.jk-portfolio-item-content .jk-portfolio-feedback {
  background: #f8fbff;
  border: 1px solid #e3ebf6;
  border-radius: 18px;
  padding: 14px;
}

.jk-portfolio-empty-state {
  background: #f8fbff;
  border: 1px dashed #c8d8eb;
  border-radius: 18px;
}

@media (max-width: 1000px) {
  .jk-portfolio-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jk-portfolio-clean-hero,
  .jk-portfolio-clean-filter,
  .jk-portfolio-item-summary {
    grid-template-columns: 1fr;
  }

  .jk-portfolio-filter-chips,
  .jk-portfolio-summary-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .jk-portfolio-overview-grid {
    grid-template-columns: 1fr;
  }
}

.jk-portfolio-item-summary {
  position: relative;
  padding-right: 96px;
}

.jk-portfolio-item-summary::after {
  position: absolute;
  right: 18px;
  top: 18px;
}

@media (max-width: 820px) {
  .jk-portfolio-item-summary {
    padding-right: 18px;
    padding-bottom: 42px;
  }
  .jk-portfolio-item-summary::after {
    top: auto;
    bottom: 14px;
    left: 18px;
    right: auto;
  }
}

/* v101 - Japie Krekel als levende mascotte met hoed, vest en site-passende micro-animaties */
.jk-japie-micro {
  position: fixed !important;
  left: clamp(14px, 2vw, 24px) !important;
  right: auto !important;
  bottom: clamp(14px, 2vw, 24px) !important;
  top: auto !important;
  z-index: 80 !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: none;
}

.jk-japie-micro[hidden] {
  display: none !important;
}

.jk-japie-micro-toggle,
.jk-japie-micro-card {
  pointer-events: auto;
}

.jk-japie-micro-toggle {
  width: 96px !important;
  height: 116px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: grid !important;
  place-items: end center !important;
  cursor: pointer;
  outline-offset: 8px;
}

.jk-japie-micro-toggle:hover,
.jk-japie-micro-toggle:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.jk-japie-avatar,
.jk-japie-micro-toggle .jk-japie-avatar,
.jk-japie-avatar-large {
  position: relative !important;
  display: block !important;
  width: 92px !important;
  height: 112px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  filter: drop-shadow(0 16px 18px rgba(15, 35, 63, .20));
}

.jk-japie-avatar-large {
  width: 64px !important;
  height: 76px !important;
  filter: drop-shadow(0 9px 10px rgba(15, 35, 63, .14));
  flex: 0 0 64px;
}

.jk-japie-avatar-large .jk-japie-character {
  transform: scale(.68);
  transform-origin: left top;
}

.jk-japie-character,
.jk-japie-character * {
  box-sizing: border-box;
}

.jk-japie-character {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 112px;
  transform-origin: 46px 104px;
  animation: jkJapieAliveBreathV101 3.8s ease-in-out infinite;
}

.jk-japie-shadow {
  position: absolute;
  left: 18px;
  bottom: 1px;
  width: 58px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 35, 63, .18);
  filter: blur(2px);
}

.jk-japie-body {
  position: absolute;
  left: 28px;
  bottom: 20px;
  width: 38px;
  height: 48px;
  border-radius: 46% 46% 44% 44%;
  background: linear-gradient(150deg, #b8df55 0%, #79b83c 48%, #4d8e2f 100%);
  border: 2px solid rgba(47, 74, 106, .18);
  overflow: hidden;
  z-index: 4;
}

.jk-japie-body::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  width: 18px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2b9, #e6d285);
  box-shadow: inset 0 -8px 0 rgba(92, 118, 55, .10);
}

.jk-japie-vest {
  position: absolute;
  inset: 6px 4px 0;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(135deg, transparent 0 27%, #173454 28% 48%, transparent 49% 51%, #173454 52% 72%, transparent 73% 100%);
  z-index: 2;
}

.jk-japie-vest::before,
.jk-japie-vest::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #e7b04a;
  box-shadow: 0 9px 0 #e7b04a;
}

.jk-japie-vest::before { left: 15px; }
.jk-japie-vest::after { display: none; }

.jk-japie-bowtie {
  position: absolute;
  left: 14px;
  top: 5px;
  width: 11px;
  height: 8px;
  z-index: 4;
}

.jk-japie-bowtie::before,
.jk-japie-bowtie::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 8px;
  height: 7px;
  background: #f2a12b;
  border: 1px solid rgba(82, 50, 12, .35);
}

.jk-japie-bowtie::before {
  left: -4px;
  border-radius: 8px 2px 2px 8px;
  transform: rotate(12deg);
}

.jk-japie-bowtie::after {
  right: -4px;
  border-radius: 2px 8px 8px 2px;
  transform: rotate(-12deg);
}

.jk-japie-wing {
  position: absolute;
  right: 6px;
  bottom: 25px;
  width: 26px;
  height: 52px;
  border-radius: 80% 20% 70% 30%;
  background: linear-gradient(160deg, rgba(123, 171, 57, .95), rgba(59, 123, 42, .92));
  border: 2px solid rgba(47, 74, 106, .15);
  transform: rotate(-10deg);
  z-index: 2;
}

.jk-japie-wing::after {
  content: '';
  position: absolute;
  inset: 9px 8px 7px 8px;
  border-left: 2px solid rgba(242, 248, 213, .35);
  border-radius: 50%;
}

.jk-japie-head {
  position: absolute;
  left: 19px;
  top: 20px;
  width: 56px;
  height: 47px;
  border-radius: 48% 48% 46% 46%;
  background: radial-gradient(circle at 30% 24%, #ddf678 0 18%, #a9d848 45%, #76b53d 100%);
  border: 2px solid rgba(47, 74, 106, .16);
  z-index: 7;
}

.jk-japie-eye {
  position: absolute;
  top: 15px;
  width: 15px;
  height: 18px;
  border-radius: 999px;
  background: #fffdf0;
  border: 1px solid rgba(16, 35, 63, .22);
  overflow: hidden;
}

.jk-japie-eye::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 5px;
  width: 8px;
  height: 10px;
  border-radius: 999px;
  background: #10233f;
}

.jk-japie-eye::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.jk-japie-eye-left { left: 12px; transform: rotate(-8deg); }
.jk-japie-eye-right { right: 10px; transform: rotate(8deg); }

.jk-japie-smile {
  position: absolute;
  left: 20px;
  top: 32px;
  width: 19px;
  height: 9px;
  border-bottom: 3px solid #1c4f2b;
  border-radius: 0 0 999px 999px;
}

.jk-japie-antenna {
  position: absolute;
  top: 8px;
  width: 3px;
  height: 27px;
  border-radius: 999px;
  background: #4a8431;
  transform-origin: bottom center;
  z-index: 5;
}

.jk-japie-antenna::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -5px;
  width: 11px;
  height: 8px;
  border-radius: 999px;
  background: #6fa53e;
}

.jk-japie-antenna-left { left: 31px; transform: rotate(-20deg); }
.jk-japie-antenna-right { right: 30px; transform: rotate(18deg); }

.jk-japie-hat {
  position: absolute;
  left: 25px;
  top: 5px;
  width: 43px;
  height: 23px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #6d4622 0%, #3b2517 100%);
  border: 2px solid rgba(16, 35, 63, .22);
  transform: rotate(-9deg);
  transform-origin: 24px 26px;
  z-index: 9;
}

.jk-japie-hat::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: -8px;
  width: 62px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8a5a2a, #4b2d18);
  border: 2px solid rgba(16, 35, 63, .22);
}

.jk-japie-hat-band {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10233f, #2f4a6a);
  z-index: 2;
}

.jk-japie-hat-band::after {
  content: '';
  position: absolute;
  right: 6px;
  top: -5px;
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: #e7b04a;
  transform: rotate(34deg);
}

.jk-japie-arm {
  position: absolute;
  width: 9px;
  height: 33px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9ed446, #5f9d35);
  border: 1px solid rgba(47, 74, 106, .14);
  z-index: 5;
}

.jk-japie-arm::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -3px;
  width: 15px;
  height: 12px;
  border-radius: 999px;
  background: #8fc93f;
  border: 1px solid rgba(47, 74, 106, .12);
}

.jk-japie-arm-left {
  left: 17px;
  bottom: 38px;
  transform: rotate(52deg);
  transform-origin: top center;
}

.jk-japie-arm-right {
  right: 17px;
  bottom: 39px;
  transform: rotate(-28deg);
  transform-origin: top center;
}

.jk-japie-leg {
  position: absolute;
  bottom: 8px;
  width: 12px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #87c43b, #4f8f30);
  border: 1px solid rgba(47, 74, 106, .14);
  z-index: 3;
}

.jk-japie-leg::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 24px;
  height: 10px;
  border-radius: 999px;
  background: #6da93a;
  border: 1px solid rgba(47, 74, 106, .12);
}

.jk-japie-leg-left { left: 25px; transform: rotate(17deg); }
.jk-japie-leg-left::after { left: -9px; }
.jk-japie-leg-right { right: 23px; transform: rotate(-18deg); }
.jk-japie-leg-right::after { right: -9px; }

.jk-japie-micro-card {
  left: 86px !important;
  right: auto !important;
  bottom: 36px !important;
  top: auto !important;
  width: min(430px, calc(100vw - 126px)) !important;
  border-radius: 24px 24px 24px 8px !important;
  border: 1px solid rgba(219, 229, 242, .95) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%) !important;
  box-shadow: 0 26px 64px rgba(15, 35, 63, .18) !important;
  transform-origin: left bottom !important;
  transform: translateY(10px) scale(.94) !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jkJapiePopupV101 .32s cubic-bezier(.18, .88, .28, 1.18) both;
}

.jk-japie-micro-card::after {
  left: -8px !important;
  right: auto !important;
  bottom: 30px !important;
  top: auto !important;
  border-right: 10px solid #fff !important;
  border-left: 0 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
  transform: none !important;
}

.jk-japie-micro-head {
  align-items: center !important;
}

.jk-japie-micro.has-passive-tip .jk-japie-response,
.jk-japie-micro.has-passive-tip .jk-japie-actions .jk-japie-next {
  display: none !important;
}

.jk-japie-micro.is-low-score .jk-japie-micro-card {
  background: linear-gradient(180deg, #fff 0%, #fff5f1 100%) !important;
  border-color: rgba(221, 130, 92, .35) !important;
}

.jk-japie-micro.is-low-score .jk-japie-head {
  transform: rotate(-3deg);
}

.jk-japie-micro.is-low-score .jk-japie-smile {
  top: 36px;
  height: 7px;
  border-bottom: 0;
  border-top: 3px solid #356331;
  border-radius: 999px 999px 0 0;
}

.jk-japie-micro.is-low-score .jk-japie-arm-left {
  transform: rotate(26deg);
}

.jk-japie-micro.is-celebrating .jk-japie-micro-card {
  background: linear-gradient(180deg, #fff 0%, #f8fff5 100%) !important;
  border-color: rgba(102, 165, 66, .34) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-arm-left,
.jk-japie-micro.is-waving .jk-japie-arm-left,
.jk-japie-micro.is-nudging .jk-japie-arm-left {
  animation: jkJapieWaveV101 .72s ease-in-out 2;
}

.jk-japie-micro.is-hat-tip .jk-japie-hat {
  animation: jkJapieHatTipV101 1.1s ease both;
}

.jk-japie-micro.is-hopping .jk-japie-character,
.jk-japie-micro.is-nudging .jk-japie-character {
  animation: jkJapieHopV101 .88s ease both;
}

.jk-japie-micro.is-thinking .jk-japie-character {
  animation: jkJapieThinkV101 1.2s ease both;
}

.jk-japie-micro.is-idle-look .jk-japie-head {
  animation: jkJapieLookAroundV101 1.35s ease both;
}

.jk-japie-micro.is-idle-look .jk-japie-antenna-left,
.jk-japie-micro.is-idle-look .jk-japie-antenna-right,
.jk-japie-micro.is-thinking .jk-japie-antenna-left,
.jk-japie-micro.is-thinking .jk-japie-antenna-right {
  animation: jkJapieAntennaWiggleV101 1.2s ease both;
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-character {
  animation: jkJapieAttentionV101 1.05s ease both;
}

.jk-japie-score-button[data-jk-response-value="1"],
.jk-japie-score-button[data-jk-response-value="2"],
.jk-japie-score-button[data-jk-response-value="3"],
.jk-japie-score-button[data-jk-response-value="4"] {
  border-color: rgba(214, 82, 66, .22);
}

.jk-japie-score-button[data-jk-response-value="1"]:hover,
.jk-japie-score-button[data-jk-response-value="2"]:hover,
.jk-japie-score-button[data-jk-response-value="3"]:hover,
.jk-japie-score-button[data-jk-response-value="4"]:hover,
.jk-japie-score-button[data-jk-response-value="1"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="2"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="3"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="4"]:focus-visible {
  background: #d65242;
  color: #fff;
}

.jk-japie-score-button[data-jk-response-value="6"],
.jk-japie-score-button[data-jk-response-value="7"],
.jk-japie-score-button[data-jk-response-value="8"],
.jk-japie-score-button[data-jk-response-value="9"],
.jk-japie-score-button[data-jk-response-value="10"] {
  border-color: rgba(74, 157, 58, .25);
}

.jk-japie-score-button[data-jk-response-value="6"]:hover,
.jk-japie-score-button[data-jk-response-value="7"]:hover,
.jk-japie-score-button[data-jk-response-value="8"]:hover,
.jk-japie-score-button[data-jk-response-value="9"]:hover,
.jk-japie-score-button[data-jk-response-value="10"]:hover,
.jk-japie-score-button[data-jk-response-value="6"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="7"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="8"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="9"]:focus-visible,
.jk-japie-score-button[data-jk-response-value="10"]:focus-visible {
  background: #4a9d3a;
  color: #fff;
}

@keyframes jkJapieAliveBreathV101 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-2px) rotate(.6deg) scale(1.015); }
}

@keyframes jkJapiePopupV101 {
  0% { opacity: 0; visibility: visible; transform: translateY(14px) scale(.86); }
  65% { opacity: 1; transform: translateY(-3px) scale(1.025); }
  100% { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
}

@keyframes jkJapieWaveV101 {
  0%, 100% { transform: rotate(52deg); }
  35% { transform: rotate(88deg) translateY(-2px); }
  70% { transform: rotate(38deg); }
}

@keyframes jkJapieHatTipV101 {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  35% { transform: rotate(-22deg) translateY(-9px); }
  65% { transform: rotate(-5deg) translateY(-3px); }
}

@keyframes jkJapieHopV101 {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-14px) scale(1.04); }
  45% { transform: translateY(0) scale(.95, 1.05); }
  64% { transform: translateY(-5px) scale(1.02); }
}

@keyframes jkJapieThinkV101 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  28% { transform: rotate(-5deg) translateY(-1px); }
  58% { transform: rotate(4deg) translateY(0); }
}

@keyframes jkJapieLookAroundV101 {
  0%, 100% { transform: rotate(0deg); }
  32% { transform: rotate(-7deg); }
  70% { transform: rotate(6deg); }
}

@keyframes jkJapieAntennaWiggleV101 {
  0%, 100% { translate: 0 0; }
  30% { translate: -2px -1px; }
  68% { translate: 2px 0; }
}

@keyframes jkJapieAttentionV101 {
  0%, 100% { transform: translateY(0) scale(1); }
  24% { transform: translateY(-8px) scale(1.08); }
  45% { transform: translateY(0) scale(.96, 1.04); }
  70% { transform: translateY(-3px) scale(1.02); }
}

@media (max-width: 780px) {
  .jk-japie-micro {
    left: 10px !important;
    bottom: 10px !important;
  }

  .jk-japie-micro-toggle {
    width: 76px !important;
    height: 94px !important;
  }

  .jk-japie-avatar,
  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 74px !important;
    height: 92px !important;
  }

  .jk-japie-micro-toggle .jk-japie-character {
    transform: scale(.80);
    transform-origin: left bottom;
  }

  .jk-japie-micro-card {
    left: 0 !important;
    bottom: 104px !important;
    width: min(350px, calc(100vw - 20px)) !important;
    border-radius: 22px 22px 22px 10px !important;
  }

  .jk-japie-micro-card::after {
    left: 32px !important;
    bottom: -10px !important;
    border-top: 10px solid #fff !important;
    border-right: 10px solid transparent !important;
    border-left: 10px solid transparent !important;
    border-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-character,
  .jk-japie-micro.is-open .jk-japie-micro-card,
  .jk-japie-micro.is-celebrating .jk-japie-arm-left,
  .jk-japie-micro.is-waving .jk-japie-arm-left,
  .jk-japie-micro.is-nudging .jk-japie-arm-left,
  .jk-japie-micro.is-hat-tip .jk-japie-hat,
  .jk-japie-micro.is-hopping .jk-japie-character,
  .jk-japie-micro.is-nudging .jk-japie-character,
  .jk-japie-micro.is-thinking .jk-japie-character,
  .jk-japie-micro.is-idle-look .jk-japie-head,
  .jk-japie-micro.has-attention:not(.is-open) .jk-japie-character {
    animation: none !important;
  }
}

/* v102 - Japie meer echte mascotte-vibe: hoed, kleding, gezicht, pop-up en context-animaties */
.jk-japie-micro {
  z-index: 9998 !important;
}

.jk-japie-micro-toggle {
  width: 112px !important;
  height: 138px !important;
  place-items: end center !important;
}

.jk-japie-avatar,
.jk-japie-micro-toggle .jk-japie-avatar,
.jk-japie-avatar-large {
  width: 108px !important;
  height: 132px !important;
  filter: drop-shadow(0 18px 22px rgba(9, 29, 55, .22)) !important;
}

.jk-japie-avatar-large {
  width: 72px !important;
  height: 88px !important;
  flex-basis: 72px !important;
  filter: drop-shadow(0 11px 13px rgba(9, 29, 55, .16)) !important;
}

.jk-japie-avatar-large .jk-japie-character {
  transform: scale(.66) !important;
  transform-origin: left top !important;
}

.jk-japie-character {
  width: 108px !important;
  height: 132px !important;
  transform-origin: 54px 124px !important;
  animation: jkJapieBreathV102 4.4s ease-in-out infinite !important;
}

.jk-japie-shadow {
  left: 19px !important;
  bottom: 2px !important;
  width: 72px !important;
  height: 11px !important;
  background: rgba(9, 29, 55, .19) !important;
}

.jk-japie-body {
  left: 35px !important;
  bottom: 25px !important;
  width: 40px !important;
  height: 55px !important;
  border-radius: 44% 44% 36% 36% !important;
  background: linear-gradient(150deg, #c8ea61 0%, #84c33f 44%, #4c8f31 100%) !important;
  border-color: rgba(13, 43, 75, .18) !important;
  overflow: visible !important;
}

.jk-japie-shirt {
  position: absolute;
  left: 11px;
  top: 7px;
  width: 18px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2bd, #e2cb7e);
  box-shadow: inset 0 -11px 0 rgba(16, 35, 63, .07);
  z-index: 1;
}

.jk-japie-body::before {
  display: none !important;
}

.jk-japie-vest {
  inset: 6px 1px 3px !important;
  border-radius: 14px 14px 18px 18px !important;
  background:
    linear-gradient(135deg, transparent 0 22%, #092a48 23% 49%, transparent 50%),
    linear-gradient(225deg, transparent 0 22%, #123c63 23% 49%, transparent 50%) !important;
  z-index: 3 !important;
}

.jk-japie-jacket-tail {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -8px;
  height: 20px;
  border-radius: 4px 4px 16px 16px;
  background: linear-gradient(180deg, #0a2b4a, #061d32);
  clip-path: polygon(0 0, 47% 0, 37% 100%, 0 58%, 0 0, 53% 0, 100% 0, 100% 58%, 63% 100%, 53% 0);
  z-index: 2;
}

.jk-japie-bowtie {
  left: 14px !important;
  top: 2px !important;
  width: 13px !important;
  height: 10px !important;
  z-index: 8 !important;
}

.jk-japie-bowtie::before,
.jk-japie-bowtie::after {
  width: 10px !important;
  height: 9px !important;
  background: linear-gradient(180deg, #f4aa2f, #d36e19) !important;
  border-color: rgba(68, 36, 7, .4) !important;
}

.jk-japie-bowtie::before { left: -6px !important; }
.jk-japie-bowtie::after { right: -6px !important; }

.jk-japie-button {
  position: absolute;
  left: 18px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #f7c86a;
  border: 1px solid rgba(75, 45, 16, .25);
  z-index: 9;
}

.jk-japie-button-one { top: 24px; }
.jk-japie-button-two { top: 35px; }

.jk-japie-wing {
  right: 7px !important;
  bottom: 29px !important;
  width: 30px !important;
  height: 66px !important;
  border-radius: 75% 25% 72% 28% !important;
  background:
    linear-gradient(165deg, rgba(151, 193, 65, .95), rgba(60, 127, 47, .95)) !important;
  transform: rotate(-8deg) !important;
}

.jk-japie-wing::before {
  content: '';
  position: absolute;
  inset: 10px 9px 8px 10px;
  border-left: 2px solid rgba(247, 255, 205, .38);
  border-right: 1px solid rgba(7, 57, 35, .18);
  border-radius: 50%;
}

.jk-japie-head {
  left: 24px !important;
  top: 20px !important;
  width: 64px !important;
  height: 54px !important;
  border-radius: 50% 50% 45% 45% !important;
  background:
    radial-gradient(circle at 32% 22%, #ecfb91 0 17%, transparent 18%),
    linear-gradient(145deg, #bae45d 0%, #8dcc40 58%, #5fa735 100%) !important;
  border-color: rgba(9, 42, 72, .18) !important;
  box-shadow: inset -5px -6px 0 rgba(35, 95, 37, .09);
}

.jk-japie-brow {
  position: absolute;
  top: 13px;
  width: 15px;
  height: 6px;
  border-top: 3px solid #174d2e;
  border-radius: 999px 999px 0 0;
  z-index: 11;
}

.jk-japie-brow-left { left: 12px; transform: rotate(-13deg); }
.jk-japie-brow-right { right: 11px; transform: rotate(13deg); }

.jk-japie-eye {
  top: 18px !important;
  width: 17px !important;
  height: 20px !important;
  background: #fffcee !important;
  border-color: rgba(9, 42, 72, .25) !important;
  animation: jkJapieBlinkV102 7s ease-in-out infinite;
}

.jk-japie-eye::before {
  left: 4px !important;
  top: 5px !important;
  width: 9px !important;
  height: 11px !important;
  background: radial-gradient(circle at 65% 25%, #ffffff 0 11%, transparent 12%), #082641 !important;
}

.jk-japie-eye::after {
  left: 9px !important;
  top: 4px !important;
  width: 4px !important;
  height: 4px !important;
}

.jk-japie-eye-left { left: 13px !important; }
.jk-japie-eye-right { right: 12px !important; }

.jk-japie-cheek {
  position: absolute;
  top: 34px;
  width: 9px;
  height: 5px;
  border-radius: 999px;
  background: rgba(239, 137, 73, .23);
  z-index: 10;
}

.jk-japie-cheek-left { left: 12px; }
.jk-japie-cheek-right { right: 10px; }

.jk-japie-smile {
  left: 22px !important;
  top: 37px !important;
  width: 23px !important;
  height: 11px !important;
  border-bottom: 3px solid #184a2a !important;
  border-radius: 0 0 999px 999px !important;
}

.jk-japie-antenna {
  top: 2px !important;
  width: 3px !important;
  height: 32px !important;
  background: linear-gradient(180deg, #80b349, #3f7a2c) !important;
  z-index: 6 !important;
}

.jk-japie-antenna::before {
  left: -5px !important;
  top: -6px !important;
  width: 13px !important;
  height: 9px !important;
  background: linear-gradient(180deg, #8fc451, #5f9538) !important;
}

.jk-japie-antenna-left { left: 36px !important; transform: rotate(-26deg) !important; }
.jk-japie-antenna-right { right: 35px !important; transform: rotate(22deg) !important; }

.jk-japie-hat {
  left: 25px !important;
  top: 0 !important;
  width: 55px !important;
  height: 31px !important;
  border-radius: 48% 48% 11px 11px !important;
  background: linear-gradient(180deg, #8a5b2d 0%, #4b2b18 70%, #2d190f 100%) !important;
  border-color: rgba(9, 42, 72, .25) !important;
  transform: rotate(-10deg) !important;
  z-index: 12 !important;
}

.jk-japie-hat::before {
  left: -15px !important;
  bottom: -10px !important;
  width: 84px !important;
  height: 15px !important;
  background: linear-gradient(180deg, #9d6d36, #4b2d18) !important;
  box-shadow: 0 3px 0 rgba(9, 42, 72, .09);
}

.jk-japie-hat-band {
  left: 4px !important;
  right: 4px !important;
  bottom: 5px !important;
  height: 8px !important;
  background: linear-gradient(90deg, #061f37, #123c63 58%, #061f37) !important;
}

.jk-japie-hat-band::after {
  right: 10px !important;
  top: -6px !important;
  width: 5px !important;
  height: 18px !important;
  background: #f3b545 !important;
}

.jk-japie-hat-feather {
  position: absolute;
  right: -7px;
  top: -9px;
  width: 10px;
  height: 24px;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(180deg, #ffd66c, #e89d21);
  transform: rotate(35deg);
  transform-origin: bottom left;
  box-shadow: inset -2px 0 0 rgba(127, 82, 20, .18);
}

.jk-japie-arm {
  width: 10px !important;
  height: 38px !important;
  background: linear-gradient(180deg, #a8da4a, #5e9a34) !important;
}

.jk-japie-arm::after {
  width: 17px !important;
  height: 13px !important;
  background: #93c947 !important;
}

.jk-japie-arm-left {
  left: 20px !important;
  bottom: 48px !important;
  transform: rotate(58deg) !important;
}

.jk-japie-arm-right {
  right: 18px !important;
  bottom: 47px !important;
  transform: rotate(-34deg) !important;
}

.jk-japie-cane {
  position: absolute;
  right: 19px;
  bottom: 18px;
  width: 4px;
  height: 53px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9a34d, #82521e);
  transform: rotate(-16deg);
  z-index: 1;
  opacity: .96;
}

.jk-japie-cane::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -8px;
  width: 15px;
  height: 13px;
  border-radius: 999px 999px 0 999px;
  border: 4px solid #d9a34d;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(22deg);
}

.jk-japie-leg {
  bottom: 10px !important;
  width: 13px !important;
  height: 43px !important;
  background: linear-gradient(180deg, #83c23a, #438631) !important;
}

.jk-japie-leg-left { left: 31px !important; transform: rotate(17deg) !important; }
.jk-japie-leg-right { right: 27px !important; transform: rotate(-18deg) !important; }

.jk-japie-leg::after {
  height: 11px !important;
  background: linear-gradient(180deg, #6a441f, #3b2415) !important;
  border-color: rgba(9, 42, 72, .14) !important;
}

.jk-japie-leg-front {
  left: 49px;
  bottom: 7px;
  width: 10px;
  height: 33px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8dcc40, #4c8f31);
  position: absolute;
  z-index: 5;
  transform: rotate(-4deg);
}

.jk-japie-leg-front::after {
  content: '';
  position: absolute;
  left: -7px;
  bottom: -6px;
  width: 24px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6a441f, #3b2415);
}

.jk-japie-spark,
.jk-japie-heart {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}

.jk-japie-spark::before,
.jk-japie-spark::after {
  content: '';
  position: absolute;
  background: #f3b545;
  border-radius: 999px;
}

.jk-japie-spark::before { width: 14px; height: 3px; left: -7px; top: -2px; }
.jk-japie-spark::after { width: 3px; height: 14px; left: -1px; top: -7px; }
.jk-japie-spark-one { left: 12px; top: 26px; transform: rotate(12deg); }
.jk-japie-spark-two { right: 5px; top: 49px; transform: rotate(38deg); }

.jk-japie-heart {
  left: 10px;
  top: 54px;
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
  background: #ec715f;
}
.jk-japie-heart::before,
.jk-japie-heart::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ec715f;
}
.jk-japie-heart::before { top: -7px; left: 0; }
.jk-japie-heart::after { top: 0; left: 7px; }

.jk-japie-micro-card {
  left: 104px !important;
  bottom: 42px !important;
  width: min(430px, calc(100vw - 144px)) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%) !important;
  border: 1px solid rgba(201, 169, 103, .28) !important;
  box-shadow: 0 28px 66px rgba(9, 29, 55, .18) !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jkJapiePopupV102 .38s cubic-bezier(.16, 1.06, .32, 1.18) both !important;
}

.jk-japie-micro-card::after {
  bottom: 34px !important;
}

.jk-japie-micro.is-open .jk-japie-character {
  animation: jkJapieHelloV102 .72s ease both !important;
}

.jk-japie-micro.is-low-score .jk-japie-micro-card {
  background: linear-gradient(180deg, #fff 0%, #fff2ed 100%) !important;
  border-color: rgba(221, 130, 92, .42) !important;
}

.jk-japie-micro.is-low-score .jk-japie-character {
  animation: jkJapieSupportiveV102 1.3s ease both !important;
}

.jk-japie-micro.is-low-score .jk-japie-smile {
  top: 42px !important;
  width: 18px !important;
  left: 24px !important;
  height: 7px !important;
  border-bottom: 0 !important;
  border-top: 3px solid #315d31 !important;
  border-radius: 999px 999px 0 0 !important;
}

.jk-japie-micro.is-low-score .jk-japie-heart {
  animation: jkJapieHeartV102 1.9s ease-in-out infinite;
}

.jk-japie-micro.is-low-score .jk-japie-arm-left {
  transform: rotate(18deg) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-card,
.jk-japie-micro.is-happy .jk-japie-micro-card {
  background: linear-gradient(180deg, #fff 0%, #f7fff1 100%) !important;
  border-color: rgba(102, 165, 66, .42) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-spark,
.jk-japie-micro.is-happy .jk-japie-spark {
  animation: jkJapieSparkV102 1.4s ease-in-out infinite;
}

.jk-japie-micro.is-waving .jk-japie-arm-left,
.jk-japie-micro.is-nudging .jk-japie-arm-left {
  animation: jkJapieWaveV102 .82s ease-in-out 2 !important;
}

.jk-japie-micro.is-hat-tip .jk-japie-hat {
  animation: jkJapieHatTipV102 1.05s ease both !important;
}

.jk-japie-micro.is-bow .jk-japie-character {
  animation: jkJapieBowV102 1.08s ease both !important;
}

.jk-japie-micro.is-hopping .jk-japie-character,
.jk-japie-micro.is-nudging .jk-japie-character {
  animation: jkJapieHopV102 .9s ease both !important;
}

.jk-japie-micro.is-thinking .jk-japie-character,
.jk-japie-micro.is-listen-motion .jk-japie-character {
  animation: jkJapieListenV102 1.35s ease both !important;
}

.jk-japie-micro.is-curious .jk-japie-head,
.jk-japie-micro.is-idle-look .jk-japie-head {
  animation: jkJapieCuriousHeadV102 1.45s ease both !important;
}

.jk-japie-micro.is-curious .jk-japie-antenna-left,
.jk-japie-micro.is-curious .jk-japie-antenna-right,
.jk-japie-micro.is-idle-look .jk-japie-antenna-left,
.jk-japie-micro.is-idle-look .jk-japie-antenna-right,
.jk-japie-micro.is-listen-motion .jk-japie-antenna-left,
.jk-japie-micro.is-listen-motion .jk-japie-antenna-right {
  animation: jkJapieAntennaV102 1.25s ease both !important;
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-character {
  animation: jkJapieAttentionV102 1.1s ease both !important;
}

@keyframes jkJapieBreathV102 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-2px) rotate(.45deg) scale(1.012); }
}

@keyframes jkJapieBlinkV102 {
  0%, 47%, 50%, 100% { transform: scaleY(1); }
  48.5% { transform: scaleY(.12); }
}

@keyframes jkJapiePopupV102 {
  0% { opacity: 0; visibility: visible; transform: translateY(18px) scale(.76) rotate(-1deg); }
  58% { opacity: 1; transform: translateY(-4px) scale(1.035) rotate(.45deg); }
  100% { opacity: 1; visibility: visible; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes jkJapieHelloV102 {
  0% { transform: translateY(4px) scale(.96); }
  42% { transform: translateY(-8px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes jkJapieWaveV102 {
  0%, 100% { transform: rotate(58deg); }
  32% { transform: rotate(105deg) translateY(-3px); }
  65% { transform: rotate(40deg); }
}

@keyframes jkJapieHatTipV102 {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  35% { transform: rotate(-26deg) translate(-3px, -11px); }
  64% { transform: rotate(-4deg) translate(1px, -4px); }
}

@keyframes jkJapieBowV102 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  45% { transform: translateY(4px) rotate(-6deg) scale(1.02, .96); }
  70% { transform: translateY(-3px) rotate(2deg) scale(1.01); }
}

@keyframes jkJapieHopV102 {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-16px) scale(1.04); }
  44% { transform: translateY(0) scale(.94, 1.06); }
  67% { transform: translateY(-5px) scale(1.015); }
}

@keyframes jkJapieListenV102 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  26% { transform: rotate(-4deg) translateY(-1px); }
  57% { transform: rotate(5deg) translateY(0); }
}

@keyframes jkJapieCuriousHeadV102 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  32% { transform: rotate(-8deg) translateY(-1px); }
  70% { transform: rotate(7deg) translateY(0); }
}

@keyframes jkJapieAntennaV102 {
  0%, 100% { translate: 0 0; }
  30% { translate: -3px -1px; }
  66% { translate: 3px 0; }
}

@keyframes jkJapieAttentionV102 {
  0%, 100% { transform: translateY(0) scale(1); }
  22% { transform: translateY(-10px) scale(1.08); }
  43% { transform: translateY(0) scale(.95, 1.06); }
  68% { transform: translateY(-3px) scale(1.02); }
}

@keyframes jkJapieSupportiveV102 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  32% { transform: rotate(-3deg) translateY(1px); }
  66% { transform: rotate(2deg) translateY(0); }
}

@keyframes jkJapieSparkV102 {
  0%, 100% { opacity: 0; transform: scale(.6) rotate(0deg); }
  30%, 70% { opacity: 1; transform: scale(1) rotate(14deg); }
}

@keyframes jkJapieHeartV102 {
  0%, 100% { opacity: 0; transform: translateY(4px) scale(.62) rotate(-45deg); }
  40%, 75% { opacity: 1; transform: translateY(-2px) scale(.82) rotate(-45deg); }
}

@media (max-width: 780px) {
  .jk-japie-micro-toggle {
    width: 84px !important;
    height: 106px !important;
  }

  .jk-japie-avatar,
  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 82px !important;
    height: 102px !important;
  }

  .jk-japie-micro-toggle .jk-japie-character {
    transform: scale(.76) !important;
    transform-origin: left bottom !important;
  }

  .jk-japie-micro-card {
    left: 0 !important;
    bottom: 110px !important;
    width: min(348px, calc(100vw - 24px)) !important;
    border-radius: 24px 24px 24px 10px !important;
  }

  .jk-japie-micro-card::after {
    left: 28px !important;
    bottom: -9px !important;
    border-right: 10px solid transparent !important;
    border-left: 10px solid transparent !important;
    border-top: 10px solid #fff !important;
    border-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-character,
  .jk-japie-eye,
  .jk-japie-micro.is-open .jk-japie-character,
  .jk-japie-micro.is-low-score .jk-japie-character,
  .jk-japie-micro.is-celebrating .jk-japie-spark,
  .jk-japie-micro.is-happy .jk-japie-spark,
  .jk-japie-micro.is-waving .jk-japie-arm-left,
  .jk-japie-micro.is-nudging .jk-japie-arm-left,
  .jk-japie-micro.is-hat-tip .jk-japie-hat,
  .jk-japie-micro.is-bow .jk-japie-character,
  .jk-japie-micro.is-hopping .jk-japie-character,
  .jk-japie-micro.is-thinking .jk-japie-character,
  .jk-japie-micro.is-listen-motion .jk-japie-character,
  .jk-japie-micro.is-curious .jk-japie-head,
  .jk-japie-micro.is-idle-look .jk-japie-head,
  .jk-japie-micro.has-attention:not(.is-open) .jk-japie-character {
    animation: none !important;
  }
}

/* v103 - Japie opnieuw opgebouwd als nette SVG-mascotte: minder blokkerig, meer Peercoach/Japie-vibe */
.jk-japie-micro {
  z-index: 9999 !important;
}

.jk-japie-micro-toggle {
  width: 118px !important;
  height: 142px !important;
  overflow: visible !important;
}

.jk-japie-avatar,
.jk-japie-micro-toggle .jk-japie-avatar,
.jk-japie-avatar-large {
  position: relative !important;
  width: 116px !important;
  height: 138px !important;
  display: block !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.jk-japie-avatar-large {
  width: 58px !important;
  height: 70px !important;
  flex: 0 0 58px !important;
}

.jk-japie-character {
  display: none !important;
}

.jk-japie-mascot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 48% 92%;
  filter: drop-shadow(0 18px 18px rgba(9, 29, 55, .22));
  will-change: transform, filter;
}

.jk-japie-avatar-large .jk-japie-mascot {
  filter: drop-shadow(0 8px 10px rgba(9, 29, 55, .14));
}

.jk-japie-micro:not(.is-open):not(.has-attention) .jk-japie-mascot-main {
  animation: jkJapieV103Idle 5.4s ease-in-out infinite;
}

.jk-japie-micro.is-open .jk-japie-mascot-main,
.jk-japie-micro.is-open .jk-japie-mascot-card {
  animation: jkJapieV103Hello .72s cubic-bezier(.2, 1.2, .22, 1) both;
}

.jk-japie-micro.is-nudging .jk-japie-mascot-main,
.jk-japie-micro.has-attention:not(.is-open) .jk-japie-mascot-main {
  animation: jkJapieV103Attention .9s cubic-bezier(.22, 1.25, .28, 1) both !important;
}

.jk-japie-micro.is-hopping .jk-japie-mascot-main,
.jk-japie-micro.is-hopping .jk-japie-mascot-card,
.jk-japie-micro.is-happy .jk-japie-mascot-main {
  animation: jkJapieV103Hop .9s cubic-bezier(.22, 1.3, .34, 1) both !important;
}

.jk-japie-micro.is-waving .jk-japie-mascot-main,
.jk-japie-micro.is-curious .jk-japie-mascot-main {
  animation: jkJapieV103Wave .85s ease-in-out both !important;
}

.jk-japie-micro.is-hat-tip .jk-japie-mascot-main,
.jk-japie-micro.is-bow .jk-japie-mascot-main {
  animation: jkJapieV103HatTip .95s ease-in-out both !important;
}

.jk-japie-micro.is-thinking .jk-japie-mascot-main,
.jk-japie-micro.is-idle-look .jk-japie-mascot-main {
  animation: jkJapieV103Think 1.25s ease-in-out both !important;
}

.jk-japie-micro.is-low-score .jk-japie-mascot-main,
.jk-japie-micro.is-low-score .jk-japie-mascot-card {
  animation: jkJapieV103Support .95s ease-in-out both !important;
  filter: drop-shadow(0 14px 18px rgba(130, 64, 49, .18)) saturate(.92);
}

.jk-japie-micro.is-celebrating .jk-japie-mascot-main,
.jk-japie-micro.is-celebrating .jk-japie-mascot-card {
  animation: jkJapieV103Celebrate 1.05s cubic-bezier(.22, 1.3, .34, 1) both !important;
}

.jk-japie-live-effect {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.jk-japie-live-effect::before,
.jk-japie-live-effect::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: #F3B545;
}

.jk-japie-live-effect-one {
  top: 28px;
  right: 6px;
}

.jk-japie-live-effect-two {
  left: 11px;
  top: 57px;
}

.jk-japie-live-effect-one::before,
.jk-japie-live-effect-two::before {
  width: 15px;
  height: 3px;
  left: -7px;
  top: -1px;
}

.jk-japie-live-effect-one::after,
.jk-japie-live-effect-two::after {
  width: 3px;
  height: 15px;
  left: -1px;
  top: -7px;
}

.jk-japie-micro.is-celebrating .jk-japie-live-effect,
.jk-japie-micro.is-happy .jk-japie-live-effect {
  animation: jkJapieV103Spark .95s ease both;
}

.jk-japie-micro.is-low-score .jk-japie-live-effect-one::before {
  content: '♡';
  background: transparent;
  color: #DF715F;
  font-size: 22px;
  width: auto;
  height: auto;
  left: -8px;
  top: -9px;
}

.jk-japie-micro.is-low-score .jk-japie-live-effect-one::after {
  display: none;
}

.jk-japie-micro.is-low-score .jk-japie-live-effect-one {
  opacity: 1;
  animation: jkJapieV103Heart 1.4s ease-in-out infinite;
}

.jk-japie-micro-card {
  left: 118px !important;
  bottom: 50px !important;
  width: min(440px, calc(100vw - 164px)) !important;
  border-radius: 26px 26px 26px 9px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F0 100%) !important;
  border: 1px solid rgba(201, 169, 103, .34) !important;
  box-shadow: 0 30px 68px rgba(9, 29, 55, .18) !important;
}

.jk-japie-micro-card::after {
  left: -10px !important;
  bottom: 30px !important;
  border-right: 11px solid #fffaf2 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jkJapieV103Popup .36s cubic-bezier(.2, 1.18, .32, 1.05) both !important;
}

.jk-japie-micro.is-low-score .jk-japie-micro-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF2ED 100%) !important;
  border-color: rgba(221, 130, 92, .42) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-card,
.jk-japie-micro.is-happy .jk-japie-micro-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FFF2 100%) !important;
  border-color: rgba(111, 174, 57, .28) !important;
}

.jk-japie-micro-head {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.jk-japie-micro-head .jk-eyebrow {
  color: #B8862D !important;
  letter-spacing: .16em !important;
}

.jk-japie-title {
  color: #0B2542 !important;
  font-size: 17px !important;
}

.jk-japie-text {
  color: #344766 !important;
}

@keyframes jkJapieV103Idle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  36% { transform: translateY(-2px) rotate(.8deg) scale(1.01); }
  72% { transform: translateY(0) rotate(-.65deg) scale(1); }
}

@keyframes jkJapieV103Hello {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  34% { transform: translateY(-9px) rotate(-4deg) scale(1.04); }
  70% { transform: translateY(1px) rotate(2deg) scale(.99); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes jkJapieV103Attention {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  24% { transform: translateY(-10px) scale(1.08) rotate(-3deg); }
  46% { transform: translateY(0) scale(.97, 1.04) rotate(2deg); }
  72% { transform: translateY(-3px) scale(1.02) rotate(-1deg); }
}

@keyframes jkJapieV103Hop {
  0%, 100% { transform: translateY(0) scale(1); }
  32% { transform: translateY(-18px) scale(1.04); }
  52% { transform: translateY(0) scale(.95, 1.07); }
  74% { transform: translateY(-5px) scale(1.02); }
}

@keyframes jkJapieV103Wave {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  22% { transform: rotate(-7deg) translateY(-3px); }
  50% { transform: rotate(6deg) translateY(0); }
  76% { transform: rotate(-3deg) translateY(-2px); }
}

@keyframes jkJapieV103HatTip {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  28% { transform: rotate(-11deg) translateY(-4px); }
  56% { transform: rotate(4deg) translateY(1px); }
}

@keyframes jkJapieV103Think {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35% { transform: rotate(-5deg) translateY(-1px); }
  68% { transform: rotate(4deg) translateY(0); }
}

@keyframes jkJapieV103Support {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  35% { transform: translateY(1px) rotate(-4deg) scale(.98); }
  70% { transform: translateY(0) rotate(2deg) scale(1); }
}

@keyframes jkJapieV103Celebrate {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  22% { transform: translateY(-14px) rotate(-5deg) scale(1.05); }
  45% { transform: translateY(0) rotate(4deg) scale(.98, 1.06); }
  70% { transform: translateY(-6px) rotate(-2deg) scale(1.02); }
}

@keyframes jkJapieV103Spark {
  0% { opacity: 0; transform: scale(.4) rotate(0deg); }
  30% { opacity: 1; transform: scale(1.1) rotate(16deg); }
  100% { opacity: 0; transform: scale(.7) rotate(52deg); }
}

@keyframes jkJapieV103Heart {
  0%, 100% { transform: translateY(0) scale(.9); }
  50% { transform: translateY(-5px) scale(1.08); }
}

@keyframes jkJapieV103Popup {
  0% { opacity: 0; visibility: visible; transform: translateY(16px) scale(.9); }
  66% { opacity: 1; transform: translateY(-3px) scale(1.02); }
  100% { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .jk-japie-micro-toggle {
    width: 84px !important;
    height: 102px !important;
  }

  .jk-japie-avatar,
  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 84px !important;
    height: 100px !important;
  }

  .jk-japie-micro-card {
    left: 0 !important;
    bottom: 108px !important;
    width: min(354px, calc(100vw - 20px)) !important;
    border-radius: 22px 22px 22px 10px !important;
  }

  .jk-japie-micro-card::after {
    left: 32px !important;
    bottom: -10px !important;
    border-top: 10px solid #fffaf2 !important;
    border-right: 10px solid transparent !important;
    border-left: 10px solid transparent !important;
    border-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-mascot,
  .jk-japie-live-effect,
  .jk-japie-micro.is-open .jk-japie-micro-card {
    animation: none !important;
  }
}

/* v104 - volwassen Japie Krekel mascotte met meerdere states */
.jk-japie-micro {
  z-index: 9998 !important;
}

.jk-japie-micro-toggle {
  width: 104px !important;
  height: 128px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transform-origin: 50% 100% !important;
}

.jk-japie-avatar,
.jk-japie-micro-toggle .jk-japie-avatar {
  width: 104px !important;
  height: 128px !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.jk-japie-avatar-large {
  width: 54px !important;
  height: 66px !important;
  flex: 0 0 54px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.jk-japie-mascot {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 16px rgba(8, 38, 65, .20)) !important;
  transform-origin: 50% 92% !important;
  will-change: transform, opacity !important;
}

.jk-japie-avatar-large .jk-japie-mascot {
  filter: drop-shadow(0 5px 9px rgba(8, 38, 65, .14)) !important;
}

.jk-japie-micro:not(.is-open) .jk-japie-mascot-main {
  animation: jkJapieV104Breath 5.5s ease-in-out infinite !important;
}

.jk-japie-micro.is-open .jk-japie-mascot-main,
.jk-japie-micro.is-open .jk-japie-mascot-card {
  animation: jkJapieV104Hello .72s cubic-bezier(.2, 1.05, .25, 1) both !important;
}

.jk-japie-micro.is-nudging .jk-japie-mascot-main,
.jk-japie-micro.has-attention:not(.is-open) .jk-japie-mascot-main {
  animation: jkJapieV104Attention 1.1s ease both !important;
}

.jk-japie-micro.is-waving .jk-japie-mascot-main,
.jk-japie-micro.is-hat-tip .jk-japie-mascot-main {
  animation: jkJapieV104HatTip 1.35s ease both !important;
}

.jk-japie-micro.is-thinking .jk-japie-mascot-main,
.jk-japie-micro.is-curious .jk-japie-mascot-main,
.jk-japie-micro.is-idle-look .jk-japie-mascot-main {
  animation: jkJapieV104Think 1.45s ease both !important;
}

.jk-japie-micro.is-listen-motion .jk-japie-mascot-main {
  animation: jkJapieV104Listen 1.4s ease both !important;
}

.jk-japie-micro.is-low-score .jk-japie-mascot-main,
.jk-japie-micro.is-low-score .jk-japie-mascot-card {
  animation: jkJapieV104Support 1.6s ease both !important;
}

.jk-japie-micro.is-celebrating .jk-japie-mascot-main,
.jk-japie-micro.is-happy .jk-japie-mascot-main,
.jk-japie-micro.is-hopping .jk-japie-mascot-main {
  animation: jkJapieV104Celebrate 1.15s ease both !important;
}

.jk-japie-live-effect {
  pointer-events: none !important;
}

.jk-japie-micro-card {
  left: 118px !important;
  bottom: 48px !important;
  width: min(440px, calc(100vw - 170px)) !important;
  border-radius: 24px 24px 24px 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%) !important;
  border: 1px solid rgba(201, 169, 103, .34) !important;
  box-shadow: 0 28px 70px rgba(8, 38, 65, .18) !important;
}

.jk-japie-micro-card::after {
  left: -10px !important;
  bottom: 32px !important;
  border-right: 11px solid #fffaf3 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jkJapieV104Popup .34s cubic-bezier(.18, 1.14, .32, 1) both !important;
}

.jk-japie-micro.is-low-score .jk-japie-micro-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff4ef 100%) !important;
  border-color: rgba(213, 121, 91, .38) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-card,
.jk-japie-micro.is-happy .jk-japie-micro-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fff3 100%) !important;
  border-color: rgba(111, 174, 57, .28) !important;
}

.jk-japie-micro-head .jk-eyebrow {
  color: #B8862D !important;
  letter-spacing: .16em !important;
  font-weight: 800 !important;
}

.jk-japie-title {
  color: #0B2542 !important;
  font-weight: 800 !important;
}

.jk-japie-text {
  color: #344766 !important;
  line-height: 1.7 !important;
}

@keyframes jkJapieV104Breath {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-2px) rotate(.25deg) scale(1.008); }
}

@keyframes jkJapieV104Hello {
  0% { transform: translateY(8px) scale(.96); opacity: .92; }
  48% { transform: translateY(-6px) scale(1.025); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes jkJapieV104Attention {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-9px) scale(1.045) rotate(-2deg); }
  48% { transform: translateY(0) scale(.985, 1.025) rotate(1.4deg); }
  73% { transform: translateY(-3px) scale(1.01) rotate(-.7deg); }
}

@keyframes jkJapieV104HatTip {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  28% { transform: translateY(-5px) rotate(-4deg) scale(1.02); }
  62% { transform: translateY(1px) rotate(2deg) scale(.995); }
}

@keyframes jkJapieV104Think {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  36% { transform: translateY(-1px) rotate(-3deg); }
  72% { transform: translateY(0) rotate(2.5deg); }
}

@keyframes jkJapieV104Listen {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-2px) rotate(3deg); }
  70% { transform: translateY(0) rotate(-2deg); }
}

@keyframes jkJapieV104Support {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(2px) rotate(-2deg) scale(.99); }
  72% { transform: translateY(0) rotate(1deg) scale(1); }
}

@keyframes jkJapieV104Celebrate {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  22% { transform: translateY(-12px) rotate(-3deg) scale(1.035); }
  46% { transform: translateY(0) rotate(2.4deg) scale(.985, 1.035); }
  72% { transform: translateY(-4px) rotate(-1deg) scale(1.012); }
}

@keyframes jkJapieV104Popup {
  0% { opacity: 0; visibility: visible; transform: translateY(14px) scale(.94); }
  65% { opacity: 1; transform: translateY(-3px) scale(1.012); }
  100% { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .jk-japie-micro-toggle {
    width: 88px !important;
    height: 108px !important;
  }

  .jk-japie-avatar,
  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 88px !important;
    height: 108px !important;
  }

  .jk-japie-micro-card {
    left: 0 !important;
    bottom: 114px !important;
    width: min(354px, calc(100vw - 20px)) !important;
  }
}

/* v105 - echte PNG/Japie-mascotte in plaats van CSS/SVG poppetje */
.jk-japie-micro {
  position: fixed !important;
  left: clamp(12px, 2vw, 24px) !important;
  right: auto !important;
  bottom: clamp(12px, 2vw, 24px) !important;
  top: auto !important;
  z-index: 9999 !important;
  pointer-events: none !important;
}

.jk-japie-micro[hidden] {
  display: none !important;
}

.jk-japie-micro-toggle,
.jk-japie-micro-card {
  pointer-events: auto !important;
}

.jk-japie-micro-toggle {
  width: 132px !important;
  height: 168px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: grid !important;
  place-items: end center !important;
  cursor: pointer !important;
  transform: none !important;
}

.jk-japie-micro-toggle:hover,
.jk-japie-micro-toggle:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.jk-japie-avatar,
.jk-japie-micro-toggle .jk-japie-avatar {
  position: relative !important;
  display: block !important;
  width: 132px !important;
  height: 168px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.jk-japie-avatar-large {
  position: relative !important;
  display: block !important;
  width: 72px !important;
  height: 92px !important;
  flex: 0 0 72px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.jk-japie-character,
.jk-japie-shadow,
.jk-japie-body,
.jk-japie-head,
.jk-japie-hat,
.jk-japie-arm,
.jk-japie-leg,
.jk-japie-wing {
  display: none !important;
}

.jk-japie-mascot {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: translateX(-50%) !important;
  transform-origin: 50% 94% !important;
  display: block !important;
  filter: drop-shadow(0 18px 18px rgba(9, 29, 55, .25)) !important;
  will-change: transform, filter, opacity !important;
}

.jk-japie-avatar-large .jk-japie-mascot {
  filter: drop-shadow(0 9px 10px rgba(9, 29, 55, .16)) !important;
}

.jk-japie-micro:not(.is-open):not(.has-attention) .jk-japie-mascot-main {
  animation: jkJapieV105Idle 6.8s ease-in-out infinite !important;
}

.jk-japie-micro.is-open .jk-japie-mascot-main,
.jk-japie-micro.is-open .jk-japie-mascot-card {
  animation: jkJapieV105Open .72s cubic-bezier(.2, 1.2, .22, 1) both !important;
}

.jk-japie-micro.is-nudging .jk-japie-mascot-main,
.jk-japie-micro.has-attention:not(.is-open) .jk-japie-mascot-main {
  animation: jkJapieV105Attention .95s cubic-bezier(.22, 1.25, .28, 1) both !important;
}

.jk-japie-micro.is-waving .jk-japie-mascot-main,
.jk-japie-micro.is-hat-tip .jk-japie-mascot-main,
.jk-japie-micro.is-bow .jk-japie-mascot-main {
  animation: jkJapieV105Greeting 1s ease-in-out both !important;
}

.jk-japie-micro.is-thinking .jk-japie-mascot-main,
.jk-japie-micro.is-curious .jk-japie-mascot-main,
.jk-japie-micro.is-idle-look .jk-japie-mascot-main {
  animation: jkJapieV105Thinking 1.25s ease-in-out both !important;
}

.jk-japie-micro.is-listen-motion .jk-japie-mascot-main,
.jk-japie-micro.is-listening .jk-japie-mascot-main {
  animation: jkJapieV105Explain 1.1s ease-in-out both !important;
}

.jk-japie-micro.is-low-score .jk-japie-mascot-main,
.jk-japie-micro.is-low-score .jk-japie-mascot-card {
  animation: jkJapieV105Support 1.05s ease-in-out both !important;
  filter: drop-shadow(0 16px 18px rgba(130, 64, 49, .20)) saturate(.94) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-mascot-main,
.jk-japie-micro.is-happy .jk-japie-mascot-main,
.jk-japie-micro.is-hopping .jk-japie-mascot-main,
.jk-japie-micro.is-celebrating .jk-japie-mascot-card {
  animation: jkJapieV105Celebrate 1.05s cubic-bezier(.22, 1.3, .34, 1) both !important;
}

.jk-japie-live-effect {
  position: absolute !important;
  pointer-events: none !important;
  opacity: 0;
  z-index: 4;
}

.jk-japie-live-effect::before,
.jk-japie-live-effect::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: #F3B545;
}

.jk-japie-live-effect-one { top: 26px; right: 8px; }
.jk-japie-live-effect-two { left: 14px; top: 76px; }
.jk-japie-live-effect-one::before,
.jk-japie-live-effect-two::before { width: 16px; height: 3px; left: -8px; top: -1px; }
.jk-japie-live-effect-one::after,
.jk-japie-live-effect-two::after { width: 3px; height: 16px; left: -1px; top: -8px; }

.jk-japie-micro.is-celebrating .jk-japie-live-effect,
.jk-japie-micro.is-happy .jk-japie-live-effect,
.jk-japie-micro.is-hopping .jk-japie-live-effect {
  animation: jkJapieV105Spark .95s ease both !important;
}

.jk-japie-micro.is-low-score .jk-japie-live-effect-one {
  opacity: 1;
  animation: jkJapieV105Heart 1.7s ease-in-out infinite;
}

.jk-japie-micro.is-low-score .jk-japie-live-effect-one::before {
  content: '♡';
  background: transparent;
  color: #DF715F;
  font-size: 25px;
  width: auto;
  height: auto;
  left: -8px;
  top: -10px;
}

.jk-japie-micro.is-low-score .jk-japie-live-effect-one::after { display: none; }

.jk-japie-micro-card {
  left: 132px !important;
  bottom: 50px !important;
  width: min(440px, calc(100vw - 176px)) !important;
  border-radius: 26px 26px 26px 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%) !important;
  border: 1px solid rgba(201, 169, 103, .34) !important;
  box-shadow: 0 30px 68px rgba(9, 29, 55, .18) !important;
}

.jk-japie-micro-card::after {
  left: -10px !important;
  bottom: 31px !important;
  border-right: 11px solid #fffaf2 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jkJapieV105Popup .38s cubic-bezier(.2, 1.18, .32, 1.05) both !important;
}

.jk-japie-micro.is-low-score .jk-japie-micro-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff2ed 100%) !important;
  border-color: rgba(221, 130, 92, .42) !important;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-card,
.jk-japie-micro.is-happy .jk-japie-micro-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fff2 100%) !important;
  border-color: rgba(111, 174, 57, .28) !important;
}

.jk-japie-title { color: #0B2542 !important; }
.jk-japie-text { color: #344766 !important; }
.jk-japie-micro-head .jk-eyebrow { color: #B8862D !important; letter-spacing: .16em !important; }

@keyframes jkJapieV105Idle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
  32% { transform: translateX(-50%) translateY(-3px) rotate(.6deg) scale(1.01); }
  68% { transform: translateX(-50%) translateY(0) rotate(-.45deg) scale(1); }
}

@keyframes jkJapieV105Open {
  0% { transform: translateX(-50%) translateY(8px) scale(.92); opacity: .9; }
  46% { transform: translateX(-50%) translateY(-8px) scale(1.04); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

@keyframes jkJapieV105Attention {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
  24% { transform: translateX(-50%) translateY(-12px) scale(1.07) rotate(-2deg); }
  48% { transform: translateX(-50%) translateY(0) scale(.98, 1.04) rotate(1.5deg); }
  72% { transform: translateX(-50%) translateY(-4px) scale(1.02) rotate(-.8deg); }
}

@keyframes jkJapieV105Greeting {
  0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
  28% { transform: translateX(-50%) rotate(-6deg) translateY(-4px); }
  56% { transform: translateX(-50%) rotate(5deg) translateY(0); }
  78% { transform: translateX(-50%) rotate(-2deg) translateY(-2px); }
}

@keyframes jkJapieV105Thinking {
  0%, 100% { transform: translateX(-50%) rotate(0deg) translateY(0); }
  36% { transform: translateX(-50%) rotate(-4deg) translateY(-1px); }
  70% { transform: translateX(-50%) rotate(3deg) translateY(0); }
}

@keyframes jkJapieV105Explain {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  34% { transform: translateX(-50%) translateY(-5px) rotate(-3deg) scale(1.02); }
  66% { transform: translateX(-50%) translateY(0) rotate(2deg); }
}

@keyframes jkJapieV105Support {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  40% { transform: translateX(-50%) translateY(-2px) scale(.98) rotate(-2deg); }
  72% { transform: translateX(-50%) translateY(0) scale(1.01); }
}

@keyframes jkJapieV105Celebrate {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
  30% { transform: translateX(-50%) translateY(-18px) scale(1.05) rotate(-2deg); }
  54% { transform: translateX(-50%) translateY(0) scale(.97, 1.06) rotate(1.5deg); }
  78% { transform: translateX(-50%) translateY(-5px) scale(1.02) rotate(0deg); }
}

@keyframes jkJapieV105Popup {
  0% { opacity: 0; transform: translate(-12px, 10px) scale(.94); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes jkJapieV105Spark {
  0% { opacity: 0; transform: translateY(8px) scale(.6) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.15) rotate(28deg); }
}

@keyframes jkJapieV105Heart {
  0%, 100% { transform: translateY(0) scale(.94); opacity: .55; }
  50% { transform: translateY(-7px) scale(1.1); opacity: 1; }
}

@media (max-width: 720px) {
  .jk-japie-micro {
    left: 8px !important;
    bottom: 8px !important;
  }
  .jk-japie-micro-toggle {
    width: 92px !important;
    height: 120px !important;
  }
  .jk-japie-avatar,
  .jk-japie-micro-toggle .jk-japie-avatar {
    width: 92px !important;
    height: 120px !important;
  }
  .jk-japie-micro-card {
    left: 12px !important;
    bottom: 126px !important;
    width: min(390px, calc(100vw - 24px)) !important;
    border-radius: 22px !important;
  }
  .jk-japie-micro-card::after {
    left: 42px !important;
    bottom: -10px !important;
    border-right: 10px solid transparent !important;
    border-left: 10px solid transparent !important;
    border-top: 11px solid #fffaf2 !important;
    border-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-mascot,
  .jk-japie-micro-card,
  .jk-japie-live-effect {
    animation: none !important;
  }
}


/* v106 — WhatsApp-achtige krekel-emoji met rustigere, soepelere animaties.
   Geen PNG/SVG-mascotte meer in de UI; de vaste 🦗-emoji is bewust eenvoudiger en minder kinderachtig. */
.jk-japie-micro {
  --jk-japie-ease: cubic-bezier(.22, 1, .36, 1);
  --jk-japie-bounce: cubic-bezier(.18, .89, .32, 1.28);
  z-index: 9999;
}

.jk-japie-micro .jk-japie-mascot,
.jk-japie-micro .jk-japie-character,
.jk-japie-micro .jk-japie-shadow,
.jk-japie-micro .jk-japie-body,
.jk-japie-micro .jk-japie-head,
.jk-japie-micro .jk-japie-hat,
.jk-japie-micro .jk-japie-wing,
.jk-japie-micro .jk-japie-arm,
.jk-japie-micro .jk-japie-leg,
.jk-japie-micro .jk-japie-cane,
.jk-japie-micro .jk-japie-vest,
.jk-japie-micro .jk-japie-bowtie {
  display: none !important;
}

.jk-japie-micro .jk-japie-micro-toggle {
  width: 74px !important;
  height: 74px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  cursor: pointer;
  transform-origin: 50% 90%;
  transition: transform .45s var(--jk-japie-ease), filter .45s var(--jk-japie-ease), opacity .3s ease;
}

.jk-japie-micro .jk-japie-micro-toggle:hover,
.jk-japie-micro .jk-japie-micro-toggle:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 20px rgba(9, 35, 63, .18));
  transform: translateY(-3px) scale(1.04);
}

.jk-japie-micro .jk-japie-avatar,
.jk-japie-micro .jk-japie-micro-toggle .jk-japie-avatar,
.jk-japie-micro .jk-japie-avatar-large {
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible !important;
  transform-origin: 50% 88%;
  transition: transform .55s var(--jk-japie-ease), filter .55s var(--jk-japie-ease), opacity .35s ease;
}

.jk-japie-micro .jk-japie-avatar-large {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
}

.jk-japie-emoji {
  display: inline-block;
  font-size: 62px;
  line-height: 1;
  transform-origin: 50% 88%;
  filter: drop-shadow(0 12px 18px rgba(9, 35, 63, .22));
  will-change: transform, filter;
  transition: transform .55s var(--jk-japie-ease), filter .55s var(--jk-japie-ease), opacity .25s ease;
}

.jk-japie-avatar-large .jk-japie-emoji {
  font-size: 38px;
  filter: drop-shadow(0 6px 10px rgba(9, 35, 63, .14));
}

.jk-japie-micro:not(.is-open):not(.has-attention) .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-idle 7.2s var(--jk-japie-ease) infinite;
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-nudging:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-attention 2.8s var(--jk-japie-bounce) infinite;
}

.jk-japie-micro.is-open .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-open .75s var(--jk-japie-bounce) both;
}

.jk-japie-micro.is-low-score .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-mascot-support .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-support 3.8s var(--jk-japie-ease) infinite;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-happy .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-mascot-celebrate .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-celebrate 1.35s var(--jk-japie-bounce) both;
}

.jk-japie-micro.is-thinking .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-mascot-thinking .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-think 2.6s var(--jk-japie-ease) infinite;
}

.jk-japie-micro.is-waving .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-hat-tip .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-bow .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-click .9s var(--jk-japie-bounce) both;
}

.jk-japie-micro.is-hopping .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-emoji-hop .95s var(--jk-japie-bounce) both;
}

.jk-japie-micro .jk-japie-live-effect {
  pointer-events: none;
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  border: 2px solid rgba(26, 71, 116, .18);
  opacity: 0;
  transform: scale(.68);
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-live-effect-one,
.jk-japie-micro.is-nudging:not(.is-open) .jk-japie-live-effect-one {
  animation: jk-japie-soft-ring 2.8s ease-out infinite;
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-live-effect-two,
.jk-japie-micro.is-nudging:not(.is-open) .jk-japie-live-effect-two {
  animation: jk-japie-soft-ring 2.8s ease-out .55s infinite;
}

.jk-japie-micro-card {
  transform-origin: 24px calc(100% - 20px);
  transition: opacity .34s ease, transform .42s var(--jk-japie-ease), visibility .34s ease !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jk-japie-card-pop .46s var(--jk-japie-ease) both;
}

.jk-japie-micro.is-low-score .jk-japie-micro-card,
.jk-japie-micro.is-mascot-support .jk-japie-micro-card {
  border-color: rgba(234, 146, 87, .36) !important;
  background:
    radial-gradient(circle at 0 100%, rgba(238, 164, 113, .18), transparent 42%),
    #fffdfb !important;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-card,
.jk-japie-micro.is-happy .jk-japie-micro-card,
.jk-japie-micro.is-mascot-celebrate .jk-japie-micro-card {
  border-color: rgba(108, 151, 77, .35) !important;
  background:
    radial-gradient(circle at 0 100%, rgba(125, 180, 88, .15), transparent 45%),
    #ffffff !important;
}

.jk-japie-micro .jk-japie-score-button,
.jk-japie-micro .jk-japie-response-button {
  transition: transform .22s var(--jk-japie-bounce), background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.jk-japie-micro .jk-japie-score-button:hover,
.jk-japie-micro .jk-japie-response-button:hover {
  transform: translateY(-2px) scale(1.04);
}

@keyframes jk-japie-emoji-idle {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); filter: drop-shadow(0 12px 18px rgba(9, 35, 63, .20)); }
  18% { transform: translate3d(0,-3px,0) rotate(-2deg) scale(1.015); }
  26% { transform: translate3d(0,0,0) rotate(1deg) scale(1); }
  48% { transform: translate3d(0,-1px,0) rotate(0deg) scale(1.005); }
  60% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-emoji-attention {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  12% { transform: translate3d(0,-8px,0) rotate(-5deg) scale(1.12); }
  24% { transform: translate3d(0,1px,0) rotate(4deg) scale(.98); }
  38% { transform: translate3d(0,-3px,0) rotate(-2deg) scale(1.04); }
  54% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-emoji-open {
  0% { transform: translate3d(0,8px,0) rotate(-6deg) scale(.88); opacity: .85; }
  55% { transform: translate3d(0,-5px,0) rotate(3deg) scale(1.08); opacity: 1; }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-emoji-support {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  28% { transform: translate3d(-2px,1px,0) rotate(-5deg) scale(.98); }
  48% { transform: translate3d(0,-2px,0) rotate(2deg) scale(1.015); }
  70% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-emoji-celebrate {
  0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  20% { transform: translate3d(0,-12px,0) rotate(-8deg) scale(1.16); }
  42% { transform: translate3d(0,1px,0) rotate(7deg) scale(1.02); }
  65% { transform: translate3d(0,-5px,0) rotate(-3deg) scale(1.08); }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-emoji-think {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  35% { transform: translate3d(1px,-2px,0) rotate(4deg) scale(1.02); }
  55% { transform: translate3d(-1px,0,0) rotate(-2deg) scale(1); }
}

@keyframes jk-japie-emoji-click {
  0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  22% { transform: translate3d(0,-9px,0) rotate(-11deg) scale(1.12); }
  48% { transform: translate3d(0,0,0) rotate(8deg) scale(1.02); }
  72% { transform: translate3d(0,-3px,0) rotate(-3deg) scale(1.04); }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-emoji-hop {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  34% { transform: translate3d(0,-16px,0) rotate(-4deg) scale(1.13); }
  58% { transform: translate3d(0,2px,0) rotate(3deg) scale(.99); }
  78% { transform: translate3d(0,-4px,0) rotate(-1deg) scale(1.04); }
}

@keyframes jk-japie-soft-ring {
  0% { opacity: 0; transform: scale(.62); }
  20% { opacity: .32; }
  100% { opacity: 0; transform: scale(1.55); }
}

@keyframes jk-japie-card-pop {
  0% { opacity: 0; transform: translate3d(-8px, 12px, 0) scale(.96); }
  68% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.012); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@media (max-width: 640px) {
  .jk-japie-micro .jk-japie-micro-toggle,
  .jk-japie-micro .jk-japie-avatar,
  .jk-japie-micro .jk-japie-micro-toggle .jk-japie-avatar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
  }
  .jk-japie-emoji { font-size: 52px; }
  .jk-japie-avatar-large .jk-japie-emoji { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-micro .jk-japie-emoji,
  .jk-japie-micro .jk-japie-live-effect,
  .jk-japie-micro.is-open .jk-japie-micro-card {
    animation: none !important;
  }
  .jk-japie-micro .jk-japie-micro-toggle,
  .jk-japie-micro .jk-japie-avatar,
  .jk-japie-micro-card {
    transition: none !important;
  }
}

/* v107 — Japie Krekel: smooth icon-only micro-interactions */
.jk-japie-micro {
  --jk-japie-ease-smooth: cubic-bezier(.16, 1, .3, 1);
  --jk-japie-spring-soft: cubic-bezier(.2, .8, .2, 1);
}

.jk-japie-micro .jk-japie-micro-toggle,
.jk-japie-micro .jk-japie-avatar,
.jk-japie-micro .jk-japie-emoji {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.jk-japie-micro .jk-japie-micro-toggle {
  transition: transform .42s var(--jk-japie-ease-smooth), filter .42s var(--jk-japie-ease-smooth), opacity .25s ease !important;
}

.jk-japie-micro .jk-japie-emoji {
  transition: transform .5s var(--jk-japie-ease-smooth), filter .5s var(--jk-japie-ease-smooth), opacity .25s ease !important;
}

.jk-japie-micro:not(.is-open):not(.has-attention) .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-idle 9.5s var(--jk-japie-ease-smooth) infinite !important;
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-nudging:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-attention-motion:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-attention 2.45s var(--jk-japie-spring-soft) infinite !important;
}

.jk-japie-micro.is-open .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-open .78s var(--jk-japie-spring-soft) both !important;
}

.jk-japie-micro.is-low-score .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-mascot-support .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-support 4.4s var(--jk-japie-ease-smooth) infinite !important;
}

.jk-japie-micro.is-celebrating .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-happy .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-mascot-celebrate .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-celebrate 1.28s var(--jk-japie-spring-soft) both !important;
}

.jk-japie-micro.is-thinking .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-mascot-thinking .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-curious .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-idle-look .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-think 2.9s var(--jk-japie-ease-smooth) both !important;
}

.jk-japie-micro.is-waving .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-hat-tip .jk-japie-micro-toggle .jk-japie-emoji,
.jk-japie-micro.is-bow .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-click .92s var(--jk-japie-spring-soft) both !important;
}

.jk-japie-micro.is-hopping .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v107-hop 1.05s var(--jk-japie-spring-soft) both !important;
}

.jk-japie-micro .jk-japie-live-effect {
  border-color: rgba(10, 37, 66, .16) !important;
  filter: blur(.1px);
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-live-effect-one,
.jk-japie-micro.is-nudging:not(.is-open) .jk-japie-live-effect-one,
.jk-japie-micro.is-attention-motion:not(.is-open) .jk-japie-live-effect-one {
  animation: jk-japie-v107-ring 2.45s ease-out infinite !important;
}

.jk-japie-micro.has-attention:not(.is-open) .jk-japie-live-effect-two,
.jk-japie-micro.is-nudging:not(.is-open) .jk-japie-live-effect-two,
.jk-japie-micro.is-attention-motion:not(.is-open) .jk-japie-live-effect-two {
  animation: jk-japie-v107-ring 2.45s ease-out .48s infinite !important;
}

.jk-japie-micro-card {
  transition: opacity .28s ease, transform .42s var(--jk-japie-ease-smooth), visibility .28s ease !important;
}

.jk-japie-micro.is-open .jk-japie-micro-card {
  animation: jk-japie-v107-card-pop .42s var(--jk-japie-ease-smooth) both !important;
}

.jk-japie-micro .jk-japie-response-status {
  transition: opacity .2s ease, transform .24s var(--jk-japie-ease-smooth);
}

.jk-japie-micro .jk-japie-score-button,
.jk-japie-micro .jk-japie-response-button,
.jk-japie-micro .jk-japie-followup-submit {
  transition: transform .2s var(--jk-japie-spring-soft), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

@keyframes jk-japie-v107-idle {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); filter: drop-shadow(0 12px 18px rgba(9, 35, 63, .20)); }
  12% { transform: translate3d(0,-2px,0) rotate(-1.4deg) scale(1.012); }
  24% { transform: translate3d(0,0,0) rotate(.8deg) scale(1); }
  48% { transform: translate3d(0,-1px,0) rotate(1deg) scale(1.006); }
  62% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v107-attention {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  14% { transform: translate3d(0,-7px,0) rotate(-4deg) scale(1.09); }
  30% { transform: translate3d(0,0,0) rotate(2.4deg) scale(1.01); }
  44% { transform: translate3d(0,-2px,0) rotate(-1deg) scale(1.035); }
  62% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v107-open {
  0% { transform: translate3d(0,6px,0) rotate(-4deg) scale(.94); opacity: .9; }
  64% { transform: translate3d(0,-3px,0) rotate(2deg) scale(1.055); opacity: 1; }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v107-support {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  30% { transform: translate3d(-1px,1px,0) rotate(-3deg) scale(.992); }
  52% { transform: translate3d(0,-2px,0) rotate(1.4deg) scale(1.012); }
  72% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v107-celebrate {
  0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  22% { transform: translate3d(0,-10px,0) rotate(-6deg) scale(1.13); }
  48% { transform: translate3d(0,1px,0) rotate(4deg) scale(1.025); }
  70% { transform: translate3d(0,-3px,0) rotate(-2deg) scale(1.055); }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v107-think {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  26% { transform: translate3d(1px,-2px,0) rotate(3deg) scale(1.018); }
  54% { transform: translate3d(-1px,0,0) rotate(-1.6deg) scale(1); }
}

@keyframes jk-japie-v107-click {
  0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  26% { transform: translate3d(0,-8px,0) rotate(-8deg) scale(1.105); }
  52% { transform: translate3d(0,0,0) rotate(5deg) scale(1.015); }
  78% { transform: translate3d(0,-2px,0) rotate(-2deg) scale(1.03); }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v107-hop {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  34% { transform: translate3d(0,-14px,0) rotate(-3deg) scale(1.11); }
  58% { transform: translate3d(0,2px,0) rotate(2deg) scale(.995); }
  78% { transform: translate3d(0,-3px,0) rotate(-1deg) scale(1.035); }
}

@keyframes jk-japie-v107-ring {
  0% { opacity: 0; transform: scale(.7); }
  22% { opacity: .28; }
  100% { opacity: 0; transform: scale(1.46); }
}

@keyframes jk-japie-v107-card-pop {
  0% { opacity: 0; transform: translate3d(-7px, 10px, 0) scale(.972); }
  72% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.006); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}


/* v108 — Japie springt het scherm in als hij echt iets wil vragen */
.jk-japie-micro {
  --jk-japie-screen-in-ease: cubic-bezier(.14, 1.38, .32, 1);
}

.jk-japie-micro.has-active-question:not(.is-open) .jk-japie-micro-toggle {
  transform-origin: center bottom !important;
}

.jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-micro-toggle {
  animation: jk-japie-v108-screen-in 1.12s var(--jk-japie-screen-in-ease) both !important;
}

.jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji {
  animation: jk-japie-v108-screen-in-emoji 1.12s var(--jk-japie-screen-in-ease) both !important;
}

.jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-live-effect-one {
  animation: jk-japie-v108-landing-ring 1.12s ease-out .18s both !important;
}

.jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-live-effect-two {
  animation: jk-japie-v108-landing-ring 1.12s ease-out .34s both !important;
}

.jk-japie-micro.has-active-question:not(.is-open):not(.is-screen-jumping) .jk-japie-micro-toggle .jk-japie-emoji {
  filter: drop-shadow(0 14px 18px rgba(9, 35, 63, .22));
}

@keyframes jk-japie-v108-screen-in {
  0% {
    opacity: 0;
    transform: translate3d(-96px, 42px, 0) rotate(-22deg) scale(.58);
    filter: blur(1.8px) drop-shadow(0 6px 8px rgba(9, 35, 63, .10));
  }
  38% {
    opacity: 1;
    transform: translate3d(12px, -18px, 0) rotate(7deg) scale(1.18);
    filter: blur(0) drop-shadow(0 20px 28px rgba(9, 35, 63, .22));
  }
  60% {
    transform: translate3d(-4px, 4px, 0) rotate(-4deg) scale(.98);
  }
  78% {
    transform: translate3d(3px, -5px, 0) rotate(2deg) scale(1.045);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0) drop-shadow(0 12px 18px rgba(9, 35, 63, .20));
  }
}

@keyframes jk-japie-v108-screen-in-emoji {
  0% { transform: translate3d(-8px, 8px, 0) rotate(-18deg) scale(.88); }
  42% { transform: translate3d(0, -4px, 0) rotate(9deg) scale(1.12); }
  64% { transform: translate3d(0, 1px, 0) rotate(-5deg) scale(.98); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

@keyframes jk-japie-v108-landing-ring {
  0% { opacity: 0; transform: scale(.52); }
  18% { opacity: .32; transform: scale(.82); }
  100% { opacity: 0; transform: scale(1.72); }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-micro-toggle,
  .jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-micro-toggle .jk-japie-emoji,
  .jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-live-effect-one,
  .jk-japie-micro.is-screen-jumping:not(.is-open) .jk-japie-live-effect-two {
    animation: none !important;
  }
}

/* v111 — badges zichtbaar in communityprofiel + opleidingfeedback */
.jk-community-profile-badges {
    background: #fff;
    border: 1px solid rgba(47,74,106,.12);
    border-radius: 18px;
    padding: 16px;
}

.jk-community-profile-badges h4 {
    margin: 0 0 8px;
    color: #203a59;
    font-size: 1rem;
}

.jk-community-profile-badge-summary {
    margin: 0 0 10px;
    color: #5b6980;
    font-size: .88rem;
}

.jk-community-profile-badge {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 4px 10px;
    align-items: center;
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(200,164,106,.18), rgba(39,117,47,.08));
    border: 1px solid rgba(200,164,106,.28);
}

.jk-community-profile-badge span {
    grid-row: span 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(32,58,89,.08);
}

.jk-community-profile-badge strong {
    color: #203a59;
    line-height: 1.2;
}

.jk-community-profile-badge small,
.jk-community-profile-badge em {
    color: #5f6f84;
    font-style: normal;
    font-size: .82rem;
}

.jk-course-feedback-card .jk-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.jk-course-feedback-score {
    min-width: 96px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f7f3ea;
    border: 1px solid rgba(200,164,106,.32);
    text-align: center;
    color: #203a59;
}

.jk-course-feedback-score strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.jk-course-feedback-score small {
    display: block;
    margin-top: 4px;
    color: #68768a;
    font-size: .78rem;
}

.jk-course-feedback-fields {
    display: grid;
    grid-template-columns: minmax(110px, 150px) 1fr;
    gap: 16px;
    align-items: start;
}

.jk-course-feedback-fields label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    color: #203a59;
}

.jk-course-feedback-fields select,
.jk-course-feedback-fields textarea {
    width: 100%;
    border: 1px solid rgba(47,74,106,.18);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: #203a59;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
}

.jk-course-feedback-note {
    grid-column: span 1;
}

.jk-course-feedback-own {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(47,74,106,.12);
}

.jk-course-feedback-own strong {
    color: #203a59;
    margin-right: 8px;
}

.jk-course-feedback-own p {
    margin: 10px 0 6px;
}

.jk-course-feedback-overview {
    margin-top: 16px;
    border-top: 1px solid rgba(47,74,106,.1);
    padding-top: 14px;
}

.jk-course-feedback-overview summary {
    cursor: pointer;
    color: #203a59;
    font-weight: 800;
}

.jk-course-feedback-entry {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .jk-course-feedback-card .jk-section-heading,
    .jk-course-feedback-fields {
        display: block;
    }
    .jk-course-feedback-score {
        margin-top: 12px;
        width: fit-content;
    }
    .jk-course-feedback-fields label + label {
        margin-top: 14px;
    }
}

/* v113 — Impact Wheel rollen en FOCUS-dromen */
.jk-impact-wheel-section,
.jk-dreams-focus-section {
  border: 1px solid rgba(20, 42, 74, 0.08);
  border-radius: 22px;
  background: #ffffff;
  padding: 22px;
  margin-top: 20px;
}

.jk-impact-wheel-header .jk-meta-line,
.jk-dreams-focus-section .jk-meta-line {
  max-width: 760px;
}

.jk-impact-wheel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.jk-impact-category {
  border: 1px solid rgba(20, 42, 74, 0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.95), #ffffff);
  padding: 16px;
}

.jk-impact-category > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jk-impact-category > header strong {
  color: #12233f;
  font-size: 15px;
}

.jk-impact-category > header span {
  color: #6b7a90;
  font-size: 12px;
  white-space: nowrap;
}

.jk-impact-role-row,
.jk-dream-item {
  border: 1px solid rgba(20, 42, 74, 0.08);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
}

.jk-impact-role-row p,
.jk-dream-item p {
  margin-top: 0;
}

.jk-impact-role-row input,
.jk-impact-role-row textarea,
.jk-dream-item textarea {
  border-radius: 12px;
  border-color: rgba(20, 42, 74, 0.16);
}

.jk-dream-items {
  margin-top: 16px;
}

.jk-dream-focus-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  color: #123052;
  font-weight: 700;
}

.jk-dream-focus-toggle input:disabled + span {
  opacity: .55;
}

.jk-focus-badge,
.jk-dream-readonly-item.is-focus-dream .jk-badge {
  background: #f4a62a;
  color: #1d2740;
  border-color: rgba(244, 166, 42, .35);
}

.jk-dream-readonly-item.is-focus-dream {
  border-color: rgba(244, 166, 42, .45);
  box-shadow: 0 12px 30px rgba(244, 166, 42, .10);
}

.jk-impact-readonly-role {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .jk-impact-wheel-grid {
    grid-template-columns: 1fr;
  }
}

/* v114 — ALP rollen/Impact Wheel CSS fix: rustiger, compacter en beter leesbaar */
.jk-impact-wheel-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 74, 106, 0.12) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 98% 0%, rgba(200, 164, 106, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  padding: clamp(18px, 2.5vw, 28px) !important;
  box-shadow: 0 18px 42px rgba(47, 74, 106, 0.08);
}

.jk-impact-wheel-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2f4a6a, #c8a46a);
}

.jk-impact-wheel-header {
  align-items: flex-start !important;
  margin-bottom: 18px !important;
}

.jk-impact-wheel-header h3 {
  color: #132842;
  margin: 0 0 6px !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.12;
}

.jk-impact-wheel-header .jk-meta-line {
  color: #5d6f83;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0;
  max-width: 820px;
}

.jk-impact-wheel-grid {
  counter-reset: jk-impact-category;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  align-items: start;
}

.jk-impact-category {
  counter-increment: jk-impact-category;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 74, 106, 0.12) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  padding: 0 !important;
  box-shadow: 0 10px 24px rgba(47, 74, 106, 0.055);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jk-impact-category:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 74, 106, 0.20) !important;
  box-shadow: 0 16px 30px rgba(47, 74, 106, 0.085);
}

.jk-impact-category > header {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(47, 74, 106, 0.10);
  background: linear-gradient(180deg, rgba(47, 74, 106, 0.055), rgba(47, 74, 106, 0.018));
}

.jk-impact-category > header strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #142a4a !important;
  font-size: 14px !important;
  line-height: 1.25;
  font-weight: 800;
}

.jk-impact-category > header strong::before {
  content: counter(jk-impact-category);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2f4a6a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(47, 74, 106, 0.16);
}

.jk-impact-category > header .jk-impact-count,
.jk-impact-category > header span {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(200, 164, 106, 0.16);
  border: 1px solid rgba(200, 164, 106, 0.28);
  color: #7d5b22 !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.jk-impact-roles {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.jk-impact-role-row {
  display: grid !important;
  grid-template-columns: minmax(120px, 0.78fr) minmax(170px, 1.22fr);
  gap: 10px 12px;
  align-items: start;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(47, 74, 106, 0.10) !important;
  border-radius: 16px !important;
  background: #fbfcfd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.jk-impact-role-row:focus-within {
  border-color: rgba(47, 74, 106, 0.28) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(47, 74, 106, 0.06);
}

.jk-impact-role-row p {
  margin: 0 !important;
}

.jk-impact-role-row label {
  display: block;
  margin: 0 0 5px;
}

.jk-impact-role-row label strong {
  color: #2f4a6a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jk-impact-role-row input.widefat,
.jk-impact-role-row textarea.widefat,
.jk-impact-role-row input,
.jk-impact-role-row textarea {
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(47, 74, 106, 0.16) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #142a4a !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.jk-impact-role-row textarea.widefat,
.jk-impact-role-row textarea {
  min-height: 78px !important;
  resize: vertical;
}

.jk-impact-role-row input:focus,
.jk-impact-role-row textarea:focus {
  outline: none !important;
  border-color: rgba(47, 74, 106, 0.36) !important;
  box-shadow: 0 0 0 3px rgba(47, 74, 106, 0.08) !important;
}

.jk-impact-role-row .jk-remove-impact-role {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 34px;
  margin: -2px 0 0 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: #8f2f2f !important;
  background: rgba(143, 47, 47, 0.06) !important;
  border: 1px solid rgba(143, 47, 47, 0.12) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.jk-impact-role-row .jk-remove-impact-role:hover,
.jk-impact-role-row .jk-remove-impact-role:focus-visible {
  background: rgba(143, 47, 47, 0.10) !important;
  border-color: rgba(143, 47, 47, 0.22) !important;
  transform: none !important;
}

.jk-impact-category .jk-add-impact-role {
  width: calc(100% - 24px);
  margin: 0 12px 14px !important;
  justify-content: center;
  border-style: dashed !important;
  background: rgba(47, 74, 106, 0.035) !important;
}

.jk-impact-category .jk-add-impact-role::before {
  content: "+";
  margin-right: 6px;
  font-weight: 900;
}

.jk-impact-category.is-impact-full .jk-add-impact-role,
.jk-impact-category .jk-add-impact-role:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
}

.jk-impact-wheel-readonly .jk-impact-category {
  padding: 0 !important;
}

.jk-impact-wheel-readonly .jk-impact-readonly-role {
  margin: 10px 12px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background: #fbfcfd !important;
  border: 1px solid rgba(47, 74, 106, 0.10) !important;
}

.jk-impact-wheel-readonly .jk-impact-readonly-role strong {
  color: #142a4a;
}

@media (max-width: 1240px) {
  .jk-impact-wheel-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .jk-impact-wheel-section {
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .jk-impact-wheel-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .jk-impact-category > header {
    grid-template-columns: 1fr;
  }

  .jk-impact-category > header .jk-impact-count,
  .jk-impact-category > header span {
    justify-self: start;
  }

  .jk-impact-role-row {
    grid-template-columns: 1fr;
  }
}

/* v115 - coach zoeken / zelf koppelen */
.jk-guidance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 74, 106, .12);
  border-radius: 18px;
  background: #f8fbff;
}
.jk-coach-match-hero h2,
.jk-coach-match-results h2,
.jk-coach-match-filter-card h2,
.jk-coach-match-current h2 {
  margin-top: 0;
  color: #183655;
}
.jk-coach-match-stats {
  margin-top: 18px;
}
.jk-coach-match-stats span {
  background: #fff;
  border: 1px solid rgba(47, 74, 106, .12);
  border-radius: 16px;
  padding: 12px 16px;
}
.jk-coach-filter-form {
  align-items: end;
}
.jk-coach-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.jk-coach-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 74, 106, .14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 54, 85, .06);
}
.jk-coach-card.is-selected {
  border-color: rgba(200, 164, 106, .55);
  background: linear-gradient(180deg, #fffaf1 0%, #fff 100%);
}
.jk-coach-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.jk-coach-card-head img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(24, 54, 85, .12);
}
.jk-coach-card-head h3 {
  margin: 0 0 4px;
  color: #183655;
  font-size: 1.05rem;
}
.jk-coach-story {
  color: #2d4662;
  line-height: 1.55;
  margin: 0;
}
.jk-coach-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.jk-coach-tags span,
.jk-option-pill span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef5fb;
  color: #183655;
  border: 1px solid rgba(47, 74, 106, .1);
  padding: 6px 10px;
  font-size: .84rem;
  font-weight: 700;
}
.jk-option-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.jk-option-pills-wide {
  align-items: flex-start;
}
.jk-option-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.jk-option-pill input:disabled + span {
  opacity: .68;
}
.jk-profile-field small {
  display: block;
  margin-top: 6px;
  color: #5d6f82;
}
@media (max-width: 1100px) {
  .jk-coach-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .jk-coach-card-grid { grid-template-columns: 1fr; }
  .jk-coach-card-head { align-items: flex-start; }
  .jk-coach-filter-form { grid-template-columns: 1fr; }
}

/* v116 - coach zoeken: rustige layout en gefixte statistiek-cards */
.jk-coach-match-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px) !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #fff9ef 100%) !important;
}

.jk-coach-match-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(200, 164, 106, .12);
  pointer-events: none;
}

.jk-coach-match-hero .jk-eyebrow {
  margin: 0 0 12px !important;
  color: #66778a !important;
  letter-spacing: .18em;
  font-size: .78rem;
  text-transform: uppercase;
}

.jk-coach-match-hero h2 {
  max-width: 780px;
  margin: 0 0 10px !important;
  color: #183655 !important;
  font-size: clamp(26px, 2.8vw, 38px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em;
}

.jk-coach-match-hero > .jk-meta-line {
  max-width: 760px;
  margin: 0 !important;
  color: #607086 !important;
  font-size: 15px;
  line-height: 1.6;
}

.jk-coach-match-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 220px));
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 470px;
  margin: 24px 0 0 !important;
}

.jk-coach-match-stats span {
  display: flex !important;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(47, 74, 106, .12) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 12px 28px rgba(24, 54, 85, .06);
  box-sizing: border-box;
}

.jk-coach-match-stats span strong {
  display: block !important;
  margin: 0 !important;
  color: #2f4a6a !important;
  font-size: clamp(30px, 3.4vw, 42px) !important;
  line-height: .95 !important;
  letter-spacing: -.04em;
}

.jk-coach-match-stats span small {
  display: block;
  margin: 0 !important;
  color: #66778a !important;
  font-size: .86rem !important;
  font-weight: 600;
  line-height: 1.25;
}

.jk-coach-match-current,
.jk-coach-match-filter-card,
.jk-coach-match-results {
  border-radius: 26px !important;
}

.jk-coach-match-current h2,
.jk-coach-match-filter-card h2,
.jk-coach-match-results h2 {
  margin: 0 0 14px !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.15;
}

.jk-coach-filter-form {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.jk-coach-filter-form p {
  min-width: 0;
  margin: 0 !important;
}

.jk-coach-filter-form label {
  display: block;
  margin: 0 0 7px;
  color: #183655;
  font-size: .92rem;
}

.jk-coach-filter-form .widefat {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(47, 74, 106, .18) !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #183655;
}

.jk-coach-filter-form .widefat:focus {
  border-color: rgba(47, 74, 106, .45) !important;
  box-shadow: 0 0 0 4px rgba(47, 74, 106, .08) !important;
  outline: none;
}

.jk-coach-filter-form .jk-card-actions,
.jk-coach-filter-form .jk-field-span-2 {
  grid-column: 1 / -1;
  margin-top: 4px !important;
}

.jk-coach-card-grid {
  align-items: stretch;
}

.jk-coach-card {
  min-width: 0;
}

.jk-coach-card-head > div {
  min-width: 0;
}

.jk-coach-card-head h3,
.jk-coach-story,
.jk-coach-card .jk-meta-line {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .jk-coach-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .jk-coach-match-hero {
    padding: 22px !important;
  }

  .jk-coach-match-stats,
  .jk-coach-filter-form {
    grid-template-columns: 1fr !important;
    max-width: none;
  }

  .jk-coach-match-stats span {
    min-height: 74px;
  }
}

/* v117 - coach zoeken alleen echte peercoaches + profiel/badge weergave */
.jk-community-profile-badge {
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 10px 14px !important;
  align-items: center !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,248,236,.96)) !important;
}

.jk-community-profile-badge > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.jk-community-profile-badge-visual {
  grid-row: auto !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200,164,106,.22), rgba(47,74,106,.08)) !important;
  color: #2f4a6a;
  font-size: 1.35rem;
}

.jk-community-profile-badge-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jk-community-profile-badge small,
.jk-community-profile-badge em,
.jk-community-profile-badge-link {
  display: block;
}

.jk-community-profile-badge-link {
  width: fit-content;
  margin-top: 5px;
  color: #2f4a6a;
  font-weight: 800;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jk-coach-card-head img {
  background: #f4f7fb;
}

/* v118 - coach zoeken: alleen taal, badges/jaartal en opleiding; kaarten met persoonlijk verhaal */
.jk-coach-card .jk-coach-story {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(47, 74, 106, .10);
  color: #2d4662;
}

.jk-coach-card .jk-coach-story strong {
  display: block;
  margin-bottom: 4px;
  color: #183655;
  font-weight: 800;
}

.jk-coach-language-tags span::before {
  content: "Taal · ";
  font-weight: 600;
  opacity: .75;
}

.jk-coach-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: -2px;
}

.jk-coach-badge-list > strong {
  width: 100%;
  color: #183655;
  font-size: .9rem;
}

.jk-coach-badge-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 106, .28);
  background: #fff8ed;
  color: #2f4a6a;
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 800;
}

.jk-coach-card .jk-meta-line strong {
  color: #183655;
}

/* v119 - coachprofiel: coachervaring weg, strakke taal/opleiding velden + badgefilter opties */
body .jk-profile-form .jk-profile-field-coach-languages,
body .jk-profile-form .jk-profile-field-training {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 100% !important;
  padding: 18px !important;
  border: 1px solid rgba(47, 74, 106, .12) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(24, 54, 85, .045) !important;
}

body .jk-profile-form .jk-profile-field-coach-languages {
  grid-column: 1 / span 3 !important;
  grid-row: 5 !important;
}

body .jk-profile-form .jk-profile-field-training {
  grid-column: 4 / span 3 !important;
  grid-row: 5 !important;
}

body .jk-profile-form .jk-profile-field-coach-languages > strong,
body .jk-profile-form .jk-profile-field-training > strong {
  display: block !important;
  margin: 0 !important;
  color: #183655 !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  letter-spacing: -.01em;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pills,
body .jk-profile-form .jk-profile-field-training .jk-option-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pill,
body .jk-profile-form .jk-profile-field-training .jk-option-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  cursor: pointer !important;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pill input,
body .jk-profile-form .jk-profile-field-training .jk-option-pill input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pill span,
body .jk-profile-form .jk-profile-field-training .jk-option-pill span {
  min-height: 38px !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(47, 74, 106, .16) !important;
  background: #f6f9fc !important;
  color: #51677d !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pill input:checked + span,
body .jk-profile-form .jk-profile-field-training .jk-option-pill input:checked + span {
  border-color: rgba(47, 74, 106, .38) !important;
  background: #eef5fb !important;
  color: #183655 !important;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pill input:checked + span::before,
body .jk-profile-form .jk-profile-field-training .jk-option-pill input:checked + span::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2f4a6a;
  color: #fff;
  font-size: .68rem;
  line-height: 1;
}

body .jk-profile-form .jk-profile-field-coach-languages .jk-option-pill input:focus-visible + span,
body .jk-profile-form .jk-profile-field-training .jk-option-pill input:focus-visible + span {
  outline: 3px solid rgba(47, 74, 106, .18) !important;
  outline-offset: 2px !important;
}

body .jk-profile-form .jk-profile-actions,
body .jk-profile-form .jk-profile-actions-readonly {
  grid-row: 6 !important;
}

body .jk-profile-form .jk-profile-consent-status {
  grid-row: 7 !important;
}

body .jk-coach-match-filter-card .jk-coach-filter-form {
  align-items: end !important;
}

body .jk-coach-match-filter-card .jk-coach-filter-form select.widefat {
  line-height: 1.25 !important;
}

@media (max-width: 980px) {
  body .jk-profile-form .jk-profile-field-coach-languages,
  body .jk-profile-form .jk-profile-field-training,
  body .jk-profile-form .jk-profile-actions,
  body .jk-profile-form .jk-profile-actions-readonly,
  body .jk-profile-form .jk-profile-consent-status {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

/* v120 - Japie verschijnt alleen bij actieve micro-interactie en niet als passieve idle-mascotte */
.jk-japie-micro[hidden] {
  display: none !important;
}

.jk-japie-micro:not(.has-active-question):not(.is-open) {
  display: none !important;
}

.jk-japie-micro.has-active-question {
  display: block !important;
}

.jk-japie-micro.has-active-question:not(.is-open) .jk-japie-micro-toggle {
  animation: jkJapieScreenJumpV120 .9s cubic-bezier(.18,.89,.32,1.28) both;
}

.jk-japie-micro.has-active-question .jk-japie-micro-card {
  max-width: min(360px, calc(100vw - 28px));
}

.jk-japie-response-status:not([hidden]) {
  display: block;
}

@keyframes jkJapieScreenJumpV120 {
  0% { transform: translate(-120%, 36px) scale(.72); opacity: 0; }
  52% { transform: translate(8px, -10px) scale(1.08); opacity: 1; }
  74% { transform: translate(0, 4px) scale(.98); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .jk-japie-micro.has-active-question:not(.is-open) .jk-japie-micro-toggle {
    animation: none !important;
  }
}

/* v123 - read-only opleidingsinzicht voor gekoppelde peercoaches */
.jk-peer-learning-overview {
    overflow: hidden;
}

.jk-peer-learning-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.jk-peer-learning-course {
    border: 1px solid rgba(35, 20, 74, 0.09);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,246,255,0.92));
}

.jk-peer-learning-course-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.jk-peer-learning-course-head h3 {
    margin: 8px 0 0;
}

.jk-peer-learning-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(106, 76, 147, 0.1);
    color: #2f234f;
    font-size: 1.05rem;
    white-space: nowrap;
}

.jk-peer-learning-progress {
    margin: 8px 0 14px;
}

.jk-peer-learning-stats {
    margin-top: 14px;
}

.jk-peer-learning-stats div {
    min-width: 0;
}

.jk-peer-learning-stats strong {
    display: block;
    overflow-wrap: anywhere;
}

.jk-peer-learning-structure {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.jk-peer-learning-module {
    padding: 14px;
    border: 1px solid rgba(35, 20, 74, 0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
}

.jk-peer-learning-module h4 {
    margin: 0 0 10px;
}

.jk-peer-learning-lessons {
    margin: 0;
}

@media (max-width: 760px) {
    .jk-peer-learning-course-head {
        flex-direction: column;
        align-items: stretch;
    }

    .jk-peer-learning-percent {
        align-self: flex-start;
    }
}

/* v124 - profiel-/ALP-invulopdrachten */
.jk-profile-task-box {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(35, 22, 80, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 243, 255, 0.86));
    box-shadow: 0 12px 32px rgba(35, 22, 80, 0.08);
}

.jk-profile-task-box h4 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.jk-profile-task-box.is-complete {
    border-color: rgba(46, 125, 50, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 250, 239, 0.9));
}

.jk-profile-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .jk-profile-task-box {
        flex-direction: column;
        align-items: stretch;
    }

    .jk-profile-task-actions {
        justify-content: flex-start;
    }
}

/* v125 - duidelijker contentbeheer en verplichte profielopdrachten */
.jk-manage-guide-card .jk-manage-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}
.jk-manage-guide-card .jk-manage-steps li {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
}
.jk-profile-task-requirements {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.92), rgba(255, 255, 255, 0.96));
}
.jk-profile-task-requirements > div:first-child {
  display: grid;
  gap: 3px;
}
.jk-profile-task-requirements > div:first-child strong {
  font-size: 15px;
}
.jk-profile-task-requirements > div:first-child span,
.jk-profile-task-requirements small {
  color: #64748b;
}
.jk-profile-task-requirements ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.jk-profile-task-requirements li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
}
.jk-profile-task-requirements li > span:first-child {
  display: grid;
  gap: 3px;
}
.jk-profile-task-requirements li.is-missing {
  border-color: rgba(245, 158, 11, 0.36);
}
.jk-profile-task-requirements li.is-locked {
  border-color: rgba(34, 197, 94, 0.28);
}
@media (max-width: 720px) {
  .jk-profile-task-requirements li {
    grid-template-columns: 1fr;
  }
}
.jk-manage-type-help {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(240, 249, 255, 0.82);
}
.jk-manage-type-help span {
  color: #475569;
  font-size: 13px;
}


/* v132: translate CSS pseudo labels for English portal users. */
html.jk-lang-en .jk-portfolio-item-summary::after {
  content: 'Open';
}

html.jk-lang-en .jk-portfolio-item-compact[open] .jk-portfolio-item-summary::after {
  content: 'Close';
}

.jk-portfolio-file-upload {
  margin-top: 8px;
}

.jk-portfolio-file-upload .jk-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.jk-portfolio-form-grid .jk-portfolio-file-upload .jk-file-trigger {
  width: auto;
}
