.wellbeing-page {
  width: 100%;
  max-width: 100vw;
  overflow: clip;
  padding-bottom: 64px;
}

.wellbeing-page .section-header,
.wellbeing-page .journey-panel,
.wellbeing-page .wellbeing-toolbar {
  min-width: 0;
  max-width: 100%;
}

.wellbeing-page > .container,
.wellbeing-page-header > .container {
  width: 100%;
}

.wellbeing-submit-panel {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 28px;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--color-border-default, #d0d5dd);
  border-radius: 12px;
  background: var(--color-surface-1, #fff);
}

.wellbeing-submit-panel h3 { margin: 4px 0 8px; }
.wellbeing-submit-panel p { margin: 0; }
.wellbeing-submit-kicker { color: var(--color-primary-bright, #1684ff); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wellbeing-submit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wellbeing-submit-form label { display: grid; gap: 6px; color: var(--color-text-primary, #20212b); font-weight: 700; }
.wellbeing-submit-form .wide { grid-column: 1 / -1; }
.wellbeing-submit-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wellbeing-submit-actions small { color: var(--color-text-muted, #667085); }
.wellbeing-submit-login { padding: 14px; border-radius: 8px; background: var(--color-surface-2, #f9fafb); }

.wellbeing-page-header h2,
.wellbeing-page .section-header h2,
.wellbeing-guide-panel h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wellbeing-toolbar {
  position: relative;
  top: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  margin-bottom: 12px !important;
}

.wellbeing-toolbar .listing-search {
  min-width: 0;
}

.wellbeing-toolbar > select {
  min-width: 0;
  height: 100%;
}

.wellbeing-guide-panel {
  align-items: center;
  flex-wrap: wrap;
}

.wellbeing-count-pill {
  display: grid;
  gap: 4px;
  min-width: 210px;
  max-width: 100%;
  flex: 0 1 260px;
  padding: 14px 18px;
  border: 1px solid var(--color-border-default, #294057);
  border-radius: 8px;
  background: var(--color-surface-2, #0d1825);
}

.wellbeing-count-pill span {
  color: var(--color-text-primary, #f5f7fa);
  font-weight: 800;
}

.wellbeing-count-pill small {
  color: var(--color-text-secondary, #bec8d3);
}

.wellbeing-category-tabs {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  justify-content: flex-start !important;
  padding: 4px !important;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  border: 1px solid var(--color-border-default, #294057) !important;
  border-radius: 10px;
  background: var(--color-surface-1, #08111c) !important;
}

.wellbeing-category-tabs .filter-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--color-border-default, #294057) !important;
  background: var(--color-surface-2, #0d1825) !important;
  color: var(--color-text-secondary, #bec8d3) !important;
}

.wellbeing-category-tabs .filter-btn:hover,
.wellbeing-category-tabs .filter-btn:focus-visible {
  border-color: var(--color-border-accent, #1684ff) !important;
  background: var(--color-surface-hover, #162841) !important;
  color: var(--color-text-primary, #f5f7fa) !important;
}

.wellbeing-category-tabs .filter-btn.active {
  border-color: var(--color-primary-hover, #1677f2) !important;
  background: var(--color-primary, #075ee8) !important;
  color: #fff !important;
}

.wellbeing-player-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  grid-template-areas:
    "video copy"
    "comments comments";
  gap: 0;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  margin: 8px 0 24px;
  border-radius: 8px;
  background: #20212b;
  box-shadow: 0 10px 30px rgba(32, 33, 43, .12);
}

.wellbeing-comments {
  grid-area: comments;
  min-width: 0;
  padding: 24px 28px 28px;
  border-top: 1px solid var(--color-border-default, #294057);
  background: var(--color-surface-1, #08111c);
  color: var(--color-text-primary, #f5f7fa);
}

.wellbeing-comments-head,
.wellbeing-comment-form > div,
.wellbeing-comment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
}

.wellbeing-comments-head span { color: var(--color-primary-bright, #1684ff); font-weight: 800; text-transform: uppercase; }
.wellbeing-comments-head h3 { margin: 2px 0 0; }
.wellbeing-comments-head > strong { color: var(--color-text-secondary, #bec8d3); }
.wellbeing-comment-form { display: grid; gap: 8px; margin: 20px 0 24px; }
.wellbeing-comment-form label { color: var(--color-text-primary, #f5f7fa); font-weight: 800; }
.wellbeing-comment-form textarea { display: block; width: 100%; max-width: 100%; min-height: 96px; box-sizing: border-box; padding: 12px; border: 1px solid var(--color-border-default, #294057); border-radius: 6px; background: var(--color-surface-2, #0d1825); color: var(--color-text-primary, #f5f7fa); resize: vertical; }
.wellbeing-comment-form textarea::placeholder { color: var(--color-text-subtle, #788594); opacity: 1; }
.wellbeing-comment-form textarea:focus { border-color: var(--color-border-accent, #1684ff); box-shadow: 0 0 0 3px rgba(22,132,255,.18); outline: 0; }
.wellbeing-comment-form small { color: var(--color-text-secondary, #bec8d3); }
.wellbeing-comment-login { margin: 18px 0; padding: 12px; border: 1px solid var(--color-border-default, #294057); border-radius: 6px; background: var(--color-surface-2, #0d1825); }
.wellbeing-comment-list { display: grid; gap: 12px; }
.wellbeing-comment { padding: 16px; border: 1px solid var(--color-border-default, #294057); border-radius: 8px; background: var(--color-surface-2, #0d1825); }
.wellbeing-comment strong { color: var(--color-text-primary, #f5f7fa); }
.wellbeing-comment time { color: var(--color-text-secondary, #bec8d3); font-size: .82rem; }
.wellbeing-comment p { margin: 10px 0 0; color: var(--color-text-secondary, #bec8d3); overflow-wrap: anywhere; white-space: pre-wrap; }
.wellbeing-comment button { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--color-danger, #ed5b68); font-weight: 700; cursor: pointer; }

#wellbeingSummary {
  margin: 16px 0 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--color-border-default, #294057);
  border-radius: 8px;
  background: var(--color-surface-1, #08111c) !important;
  color: var(--color-text-secondary, #bec8d3) !important;
}

.wellbeing-submit-form .form-control,
.wellbeing-toolbar .form-control {
  border-color: var(--color-border-default, #294057) !important;
  background: var(--color-surface-2, #0d1825) !important;
  color: var(--color-text-primary, #f5f7fa) !important;
}

.wellbeing-submit-form .form-control::placeholder,
.wellbeing-toolbar .form-control::placeholder {
  color: var(--color-text-subtle, #788594) !important;
  opacity: 1;
}

.wellbeing-player {
  grid-area: video;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.wellbeing-player iframe,
.wellbeing-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.wellbeing-player video {
  object-fit: contain;
}

.wellbeing-player-tiktok {
  aspect-ratio: 9 / 16;
  max-height: 720px;
  justify-self: center;
  width: min(100%, 405px);
}

.wellbeing-player-copy {
  grid-area: copy;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: #fff;
}

.wellbeing-player-copy span {
  color: #fdbe33;
  font-weight: 800;
  text-transform: uppercase;
}

.wellbeing-player-copy h2 {
  margin: 8px 0 12px;
  font-size: 1.65rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.wellbeing-player-copy p {
  color: rgba(255,255,255,.78);
}

.wellbeing-video-card {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
}

#wellbeingGrid > [class*="col-"] {
  display: flex;
}

.wellbeing-video-card .community-card-meta,
.wellbeing-video-card .community-card-foot {
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
}

.wellbeing-video-card .community-card-foot .btn {
  flex: 0 0 auto;
}

.wellbeing-video-card.is-active {
  border-color: #FDBE33;
  box-shadow: 0 0 0 3px rgba(253, 190, 51, .18), 0 10px 24px rgba(32, 33, 43, .08);
}

.wellbeing-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 148px;
  min-height: 148px;
  max-height: 148px;
  flex: 0 0 148px;
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  padding: 0;
  background: #20212b;
  cursor: pointer;
}

.wellbeing-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wellbeing-thumb span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #FDBE33;
  transform: translate(-50%, -50%);
}

@media (max-width: 991px) {
  .wellbeing-toolbar {
    grid-template-columns: 1fr;
  }

  .wellbeing-player-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "video"
      "copy"
      "comments";
  }

  .wellbeing-guide-panel {
    align-items: flex-start;
  }

  .wellbeing-submit-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .wellbeing-page {
    padding-bottom: 32px;
  }

  .wellbeing-page > .container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .wellbeing-page .section-header,
  .wellbeing-guide-panel,
  .wellbeing-toolbar,
  .wellbeing-category-tabs,
  .wellbeing-player-shell,
  #wellbeingSummary,
  #wellbeingGrid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .wellbeing-guide-panel,
  .wellbeing-comments-head,
  .wellbeing-comment-form > div,
  .wellbeing-comment > div {
    align-items: stretch;
  }

  .wellbeing-page-header h2 {
    font-size: clamp(2rem, 11vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }

  .wellbeing-page .section-header {
    text-align: left !important;
  }

  .wellbeing-page .section-header h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.2;
  }

  .wellbeing-count-pill {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .wellbeing-submit-panel,
  .wellbeing-submit-form {
    grid-template-columns: 1fr;
  }

  .wellbeing-submit-form .wide {
    grid-column: auto;
  }

  .wellbeing-submit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wellbeing-player-copy,
  .wellbeing-comments {
    padding: 20px 16px;
  }

  .wellbeing-player-copy h2 {
    font-size: 1.35rem;
  }

  .wellbeing-comment-form button {
    width: 100%;
  }

  .wellbeing-thumb,
  .listing-page .wellbeing-thumb,
  .listing-page .wellbeing-thumb img {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }
}
