/* Hamzi LMS community, group chat and notifications — Emerge-style (see docs/community-reference-spec.md). */

/* ---------- Shared bits ---------- */
.hp-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.hp-link { padding: 0; border: 0; background: none; color: var(--hp-primary); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.hp-link:hover { text-decoration: underline; }
.hp-muted { color: var(--hp-muted-2); font-size: 14px; }
.hp-center { text-align: center; margin: 16px 0 4px; }
.hp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e02424; flex: none; }
.hp-av { flex: none; border-radius: 50%; object-fit: cover; background: #f2f4f7; }
.hp-svg { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.hp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: #475467; cursor: pointer; flex: none; }
.hp-icon-btn:hover { background: #f2f4f7; color: #101828; }
.hp-initials { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; color: #1f2a44; font-weight: 600; text-transform: none; }
.hp-initials--sm { width: 24px; height: 24px; border-radius: 5px; font-size: 11px; flex: none; }
.hp-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hp-name strong { font-size: 14px; font-weight: 600; color: #101828; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-rolebadge { padding: 1px 6px; border-radius: 4px; background: #e6f0fb; color: var(--hp-primary); font-size: 10px; font-weight: 600; line-height: 16px; }
.hp-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #e5e5e5; border-radius: 6px; font: inherit; font-size: 14px; color: #101828; background: #fff; }
.hp-input:focus { outline: 0; border-color: var(--hp-primary); box-shadow: 0 0 0 3px rgba(49, 130, 206, .15); }
.hp-btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; border-radius: 6px; }
.hp-btn--xs { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 5px; }
.hp-btn--light { background: #fff; border-color: #fff; color: var(--hp-primary) !important; border-radius: 6px; min-height: 38px; }
.hp-btn--primary.is-muted { background: #fff; color: var(--hp-primary) !important; }
.hp-spinner { width: 26px; height: 26px; margin: 18px auto; border: 3px solid #d1e3f4; border-top-color: var(--hp-primary); border-radius: 50%; animation: hp-spin .8s linear infinite; }
.hp-send { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; padding: 0; border: 0; border-radius: 6px; background: var(--hp-primary); color: #fff; cursor: pointer; }
.hp-send:hover { background: #2b74b8; }
.hp-send[disabled] { opacity: .6; cursor: progress; }
.hp-send .hp-svg svg path { fill: #fff; }
.hp-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: #e02424; color: #fff; font-size: 10px; font-weight: 600; }
.hp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.hp-badge--stat { background: #a0a9b8; color: #fff; }
.hp-h2 { margin: 0; font-size: 26px; font-weight: 600; }

/* ---------- Header icons & bell ---------- */
.hp-hicon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d1e3f4; border-radius: 50%; background: #eef5fc; color: #475467; cursor: pointer; text-decoration: none; transition: background-color .15s; }
.hp-hicon:hover { background: #e2eefa; color: var(--hp-primary); }
.hp-hicon__badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; background: var(--hp-primary); color: #fff; font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; }
.hp-bell { position: relative; }
.hp-bell__panel { position: absolute; right: -60px; top: calc(100% + 10px); z-index: 60; width: 360px; max-width: calc(100vw - 24px); border-radius: 10px; background: #fff; box-shadow: 0 12px 40px rgba(16, 24, 40, .18); overflow: hidden; animation: hp-rise .18s ease both; }
.hp-bell__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.hp-bell__head strong { font-size: 16px; }
.hp-bell__list { max-height: 420px; overflow-y: auto; padding: 0 6px; }
.hp-bell__all { display: block; padding: 10px; background: var(--hp-primary); color: #fff !important; text-align: center; font-size: 14px; font-weight: 500; text-decoration: none; }
.hp-bell__all:hover { background: #2b74b8; }
.hp-notif { display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.hp-notif + .hp-notif { border-top: 1px solid #f2f4f7; }
.hp-notif.is-unread { background: #f3f8fd; }
.hp-notif__main { display: flex; flex: 1; align-items: flex-start; gap: 10px; min-width: 0; padding: 10px 8px; color: #101828 !important; text-decoration: none; }
.hp-notif__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; }
.hp-notif__text small { color: var(--hp-muted-2); font-size: 11px; }
.hp-notif.is-unread .hp-notif__text > span { font-weight: 500; }
.hp-notifs__list .hp-notif__text { font-size: 14px; }

/* ---------- Popovers, menus, emoji ---------- */
.hp-pop { position: absolute; z-index: 1300; border-radius: 10px; background: #fff; box-shadow: 0 10px 34px rgba(16, 24, 40, .18); animation: hp-rise .14s ease both; }
.hp-menu { display: flex; flex-direction: column; min-width: 200px; padding: 6px; }
.hp-menu__item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: #344054; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.hp-menu__item:hover, .hp-menu__item:focus-visible { background: #f2f4f7; color: #101828; }
.hp-menu__item.is-danger { color: #b42318; }
.hp-emoji-grid { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; max-height: 240px; overflow-y: auto; padding: 8px; }
.hp-emoji { width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; font-size: 20px; cursor: pointer; }
.hp-emoji:hover { background: #f2f4f7; }
.hp-reactbar { display: flex; gap: 2px; padding: 6px 8px; border-radius: 30px; }
.hp-pop--react { border-radius: 30px; }
.hp-reactbar__btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 26px; cursor: pointer; transition: transform .12s; }
.hp-reactbar__btn:hover { transform: scale(1.25) translateY(-3px); }

/* ---------- Modal & lightbox ---------- */
body.hp-modal-open { overflow: hidden; }
.hp-cmodal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px 24px; background: rgba(16, 24, 40, .45); overflow-y: auto; animation: hp-fade .15s ease; }
.hp-cmodal__card { width: 100%; max-width: 520px; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(16, 24, 40, .3); animation: hp-pop-card .2s ease both; }
.hp-cmodal__card--sm { max-width: 420px; }
.hp-cmodal__head { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 48px; border-bottom: 1px solid #eaecf0; }
.hp-cmodal__head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.hp-cmodal__head .hp-icon-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: #f2f4f7; }
.hp-cmodal__body { padding: 16px; }
.hp-cmodal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hp-compose__who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hp-compose__who strong { display: block; font-size: 14px; }
.hp-compose__in { font-size: 12px; color: var(--hp-muted-2); }
.hp-compose__textwrap { border-radius: 8px; transition: background .2s; }
.hp-compose__text { width: 100%; min-height: 110px; padding: 6px 2px; border: 0; background: transparent; font: inherit; font-size: 16px; color: #101828; resize: vertical; }
.hp-compose__text:focus { outline: 0; }
.hp-compose__textwrap.has-bg { display: flex; align-items: center; min-height: 220px; padding: 16px; }
.hp-compose__textwrap.has-bg .hp-compose__text { min-height: 90px; color: #fff; font-size: 24px; font-weight: 600; text-align: center; }
.hp-compose__textwrap.has-bg .hp-compose__text::placeholder { color: rgba(255, 255, 255, .8); }
.hp-compose__bgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.hp-bgsw { width: 30px; height: 30px; padding: 0; border: 2px solid transparent; border-radius: 7px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.hp-bgsw.is-none { background: #fff; border-color: #d0d5dd; }
.hp-bgsw.is-on { border-color: #101828; }
.hp-compose__add { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 14px; }
.hp-compose__tools { display: flex; gap: 2px; }
.hp-tool { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.hp-tool:hover { background: #f2f4f7; }
.hp-compose__post { width: 100%; margin-top: 12px; border-radius: 6px; }
.hp-compose__poll { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px; border: 1px dashed #d0d5dd; border-radius: 8px; }
.hp-compose__opts { display: flex; flex-direction: column; gap: 8px; }
.hp-compose__files, .hp-msgr__files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.hp-compose__files:empty { display: none; }
.hp-upl { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #eaecf0; border-radius: 8px; font-size: 13px; }
.hp-upl.is-error { border-color: #fecdca; background: #fff6f5; }
.hp-upl__thumb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 6px; background: #f2f4f7; flex: none; }
.hp-upl__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-upl__info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hp-upl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-upl__status { color: var(--hp-muted-2); font-size: 12px; }
.hp-lightbox { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); animation: hp-fade .15s ease; }
.hp-lightbox:focus { outline: 0; }
.hp-lightbox__img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.hp-lightbox__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.hp-lightbox__nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.hp-lightbox__nav.is-prev { left: 16px; }
.hp-lightbox__nav.is-next { right: 16px; }

/* ---------- Dashboard cards ---------- */
.hp-ccard { position: relative; }
.hp-ccard__dot { position: absolute; top: -5px; right: -5px; z-index: 2; width: 14px; height: 14px; border: 2px solid #fff; }
.hp-ccard__thumb--round { display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff; }
.hp-ccard__thumb--round img, .hp-ccard__thumb--round .hp-initials { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; font-size: 34px; }
.hp-ccard--space .hp-ccard__thumb img { object-fit: contain; background: #fff; }

/* ---------- Community page ---------- */
body.hp-page-community { background: #eef2f9; }
.hp-cm-wrap { padding: 0 16px 60px; }
.hp-cm { max-width: 1086px; margin: 0 auto; }
.hp-cm-hero { position: relative; margin-top: 0; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.hp-cm-hero.has-tabs { border-radius: 0; box-shadow: none; }
.hp-cm-hero__cover { height: 226px; background: radial-gradient(120% 140% at 10% 0%, #4b9be3 0%, #3182ce 45%, #1b4f86 100%); background-size: cover; background-position: center; }
.hp-cm-hero__row { position: relative; display: flex; align-items: flex-start; gap: 28px; min-height: 96px; padding: 20px 16px 8px 248px; }
.hp-cm-hero__logo { position: absolute; left: 68px; top: -52px; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 6px 24px rgba(16, 24, 40, .12); }
.hp-cm-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.hp-cm-hero__logo .hp-initials { font-size: 44px; }
.hp-cm-hero__info { flex: 1; min-width: 0; }
.hp-cm-hero__info h1 { margin: 12px 0 6px; font-size: 24px; font-weight: 600; line-height: 1.25; color: #101828; }
.hp-cm-hero__info p { margin: 0; font-size: 12px; color: #475467; }
.hp-cm-stats { display: flex; gap: 8px; }
.hp-cm-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; height: 48px; padding: 0 8px; border: 1px solid #e4e7ec; border-radius: 6px; }
.hp-cm-stats strong { font-size: 18px; font-weight: 600; line-height: 1.1; }
.hp-cm-stats span { font-size: 10px; color: #667085; }
.hp-cm-tabs-marker { height: 0; }
.hp-cm-tabs { position: sticky; top: 56px; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 4px 16px 0 248px; background: #fff; border-radius: 0 0 8px 8px; transition: box-shadow .2s; }
.hp-cm-tabs.is-stuck { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); padding-left: 16px; }
.hp-cm-tabs__list { display: flex; flex: 1; min-width: 0; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.hp-cm-tabs__list::-webkit-scrollbar { display: none; }
.hp-cm-tab { position: relative; display: inline-flex; align-items: center; padding: 12px 0 14px; color: #344054 !important; font-size: 14px; white-space: nowrap; text-decoration: none; }
.hp-cm-tab:hover { color: var(--hp-primary) !important; }
.hp-cm-tab.is-active { color: var(--hp-primary) !important; font-weight: 500; }
.hp-cm-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--hp-primary); }
.hp-cm-search { display: flex; align-items: center; gap: 6px; flex: none; width: 200px; height: 36px; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #98a2b3; }
.hp-cm-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 13px; color: #101828; }
.hp-cm-search input:focus { outline: 0; }
.hp-cm-search:focus-within { border-color: var(--hp-primary); }
.hp-cm-search--block { width: 100%; margin: 10px 0 6px; }
.hp-cm-body { display: grid; grid-template-columns: 276px minmax(0, 1fr) 278px; gap: 16px; align-items: start; margin-top: 16px; }
.hp-cm-body.is-wide { grid-template-columns: 276px minmax(0, 1fr); }
.hp-cm-left, .hp-cm-right { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 16px; }
.hp-channels { overflow: hidden; }
.hp-channels h2 { margin: 0; padding: 14px 10px 12px; font-size: 17px; font-weight: 600; border-bottom: 1px solid #f2f4f7; }
.hp-channels ul { margin: 0; padding: 0; list-style: none; max-height: calc(100vh - 200px); overflow-y: auto; }
.hp-channel { position: relative; display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 0 10px; border-bottom: 1px solid #f2f4f7; color: #1d2939 !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.hp-channel:hover { background: #f7f9fc; }
.hp-channel.is-active { background: #eef2f9; }
.hp-channel.is-locked { color: #667085 !important; cursor: not-allowed; }
.hp-channel__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-chbadge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 4px; background: #f97316; color: #fff; font-size: 10px; font-weight: 500; line-height: 16px; }
.hp-chbadge--lock { background: #98a2b3; }
.hp-cm-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hp-cm-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hp-cm-now h2 { margin: 0; font-size: 20px; font-weight: 500; color: #101828; overflow-wrap: anywhere; }
.hp-cm-now strong { font-weight: 700; }
.hp-cm-note { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fff; color: #667085; font-size: 13px; }
.hp-cmc { padding: 14px; }
.hp-cmc__row { display: flex; align-items: center; gap: 10px; }
.hp-cmc__fake { flex: 1; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: #f2f4f7; color: #667085; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.hp-cmc__fake:hover { background: #eaecf0; }
.hp-cmc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f2f4f7; }
.hp-cmc__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 1px solid #eaecf0; border-radius: 6px; background: #fff; color: #344054; font: inherit; font-size: 14px; cursor: pointer; }
.hp-cmc__btn:hover { background: #f9fafb; }
.hp-posts { display: flex; flex-direction: column; gap: 14px; }
.hp-cm-empty { padding: 28px 16px; text-align: center; color: #667085; }
.hp-cm-empty p { margin: 0; }
.hp-sentinel { min-height: 4px; }

/* Post card */
.hp-post { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); animation: hp-rise .25s ease both; }
.hp-post.is-hidden { outline: 2px dashed #fda29b; }
.hp-post__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; border-bottom: 1px solid #f2f4f7; }
.hp-post__who { flex: 1; min-width: 0; }
.hp-post__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hp-post__in { color: var(--hp-primary); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-post__meta { display: inline-flex; align-items: center; gap: 2px; color: #98a2b3; font-size: 11px; }
.hp-post__time { color: #98a2b3 !important; text-decoration: none; }
.hp-post__time:hover { text-decoration: underline; }
.hp-post__pin { color: #475467; }
.hp-post__flag { margin: 8px 12px 0; padding: 4px 8px; border-radius: 4px; background: #fef3f2; color: #b42318; font-size: 12px; }
.hp-post__body { padding: 12px 12px 4px; }
.hp-post__text { margin: 0; font-size: 14px; line-height: 1.6; color: #101828; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-post__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hp-post__body .hp-link { margin-top: 4px; }
.hp-post__bg { display: flex; align-items: center; justify-content: center; min-height: 260px; margin: 12px 12px 4px; padding: 24px; border-radius: 8px; }
.hp-post__bg p { margin: 0; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.35; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-post__stats { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: 8px 12px 6px; }
.hp-post__ccount { color: #475467; font-size: 13px; font-weight: 400; }
.hp-rsum { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475467; }
.hp-rsum__icons { display: inline-flex; }
.hp-rsum__i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: -4px; border: 1.5px solid #fff; border-radius: 50%; background: #fff; font-size: 12px; }
.hp-rsum__i:first-child { margin-left: 0; }
.hp-post__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px 10px; border-bottom: 1px solid #f2f4f7; }
.hp-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border: 0; border-radius: 6px; background: #f5f6f8; color: #344054; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; -webkit-touch-callout: none; }
.hp-act:hover { background: #eceef2; }
.hp-act.is-on { color: var(--hp-primary); }
.hp-act.r-love { color: #e11d48; }
.hp-act.r-haha, .hp-act.r-wow, .hp-act.r-sad { color: #d97706; }
.hp-act.r-angry { color: #ea580c; }
.hp-act.is-saved { color: var(--hp-primary); }
.hp-act__emoji { font-size: 17px; line-height: 1; }
.hp-comments { padding: 10px 12px 0; }
.hp-cbox { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 12px; }
.hp-cbox.is-reply { padding: 8px 0 4px; }
.hp-cbox__field { display: flex; flex: 1; align-items: flex-start; gap: 2px; min-width: 0; padding: 2px 4px 2px 12px; border-radius: 6px; background: #f2f4f7; }
.hp-cbox__field textarea { flex: 1; min-width: 0; min-height: 34px; max-height: 200px; padding: 7px 0; border: 0; background: none; font: inherit; font-size: 13px; resize: none; color: #101828; }
.hp-cbox__field textarea:focus { outline: 0; }
.hp-cbox .hp-send { width: 34px; height: 34px; }
.hp-cmt { display: flex; gap: 8px; margin-bottom: 10px; }
.hp-cmt.is-reply { margin: 8px 0 0; }
.hp-cmt__main { flex: 1; min-width: 0; }
.hp-cmt__bubble { display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #f2f4f7; }
.hp-cmt__bubble .hp-name strong { font-size: 13px; }
.hp-cmt__bubble p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-cmt__bar { display: flex; align-items: center; gap: 12px; margin: 3px 0 0 4px; }
.hp-cmt__ago { color: #98a2b3; font-size: 11px; }
.hp-cmt__bar .hp-link { font-size: 12px; color: #475467; }
.hp-cmt__like.is-on { color: var(--hp-primary) !important; }
.hp-cmt__more { letter-spacing: 1px; }
.hp-cmt__replies { padding-left: 4px; }
.hp-cmts__more { margin: 0 0 10px 42px; }

/* Media */
.hp-media { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 0; }
.hp-media__grid { display: grid; gap: 4px; overflow: hidden; border-radius: 8px; }
.hp-media__grid.n2, .hp-media__grid.n4 { grid-template-columns: 1fr 1fr; }
.hp-media__grid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hp-media__grid.n3 .hp-media__img:first-child { grid-row: 1 / 3; }
.hp-media__img { position: relative; display: block; padding: 0; border: 0; background: #f2f4f7; cursor: zoom-in; overflow: hidden; }
.hp-media__grid.n1 .hp-media__img img { width: 100%; max-height: 520px; object-fit: contain; background: #0b0f19; }
.hp-media__grid:not(.n1) .hp-media__img { aspect-ratio: 1 / 1; }
.hp-media__grid:not(.n1) .hp-media__img img { width: 100%; height: 100%; object-fit: cover; }
.hp-media__img img { display: block; transition: transform .2s; }
.hp-media__img:hover img { transform: scale(1.02); }
.hp-media__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); color: #fff; font-size: 26px; font-weight: 600; }
.hp-media__video { width: 100%; max-height: 520px; border-radius: 8px; background: #000; }
.hp-media__audio { width: 100%; }
.hp-media__file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eaecf0; border-radius: 8px; color: #101828 !important; font-size: 13px; text-decoration: none; }
.hp-media__file:hover { background: #f9fafb; }
.hp-media__fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hp-media__fsize { color: #667085; font-size: 12px; white-space: nowrap; }

/* Poll & meeting */
.hp-poll { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 0; }
.hp-poll__opt { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 14px; overflow: hidden; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.hp-poll__opt:hover { border-color: var(--hp-primary); }
.hp-poll__opt.is-mine { border-color: var(--hp-primary); font-weight: 600; }
.hp-poll__bar { position: absolute; inset: 0 auto 0 0; background: #e6f0fb; transition: width .4s ease; }
.hp-poll__label, .hp-poll__pct { position: relative; }
.hp-poll__pct { color: var(--hp-primary); font-weight: 600; }
.hp-poll__total { margin: 0; color: #667085; font-size: 12px; }
.hp-meeting { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; margin: 10px 12px 0; padding: 20px; border-radius: 6px; background: var(--hp-primary); color: #fff; text-align: center; }
.hp-meeting.is-live { background: linear-gradient(135deg, #16a34a, #0f7a3a); }
.hp-meeting__big { margin: 0; font-size: 22px; font-weight: 600; }
.hp-meeting__tag { padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, .2); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.hp-meeting__title { margin: 0; font-size: 18px; font-weight: 600; }
.hp-meeting__time, .hp-meeting__count { margin: 0; font-size: 13px; opacity: .92; }
.hp-meeting .hp-btn { margin-top: 6px; }

/* Right column */
.hp-chinfo { padding: 14px 16px; }
.hp-chinfo h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.hp-chinfo p { margin: 0; font-size: 13px; color: #475467; }
.hp-members-card { padding: 14px 16px; }
.hp-members-card h2 { margin: 0; font-size: 17px; font-weight: 600; }
.hp-members-card h2 span { color: #475467; font-weight: 500; }
.hp-members-list { max-height: calc(100vh - 380px); overflow-y: auto; }
.hp-mrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f4f7; }
.hp-mrow__txt { display: flex; flex-direction: column; min-width: 0; }
.hp-mrow__txt small, .hp-mcard small { color: #667085; font-size: 11px; }
.hp-members-more { display: block; margin: 8px auto 0; }

/* Wide tabs: leaderboard, courses, members, galleries */
.hp-cm-panel { padding: 16px; }
.hp-cm-panel__title { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.hp-cm-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hp-cm-panel__head .hp-cm-panel__title { margin: 0; }
.hp-cm-panel__head .hp-cm-search { width: 240px; }
.hp-cm-panel__head .hp-cm-search input { border: 0; }
.hp-table-wrap { overflow-x: auto; }
.hp-lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.hp-lb th { padding: 10px 12px; background: #f9fafb; color: #475467; font-size: 12px; font-weight: 500; text-align: left; }
.hp-lb td { padding: 8px 12px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.hp-lb tr.is-me td { background: #f3f8fd; }
.hp-lb__rank { width: 70px; }
.hp-lb__av { width: 48px; }
.hp-lb__num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 4px; background: #f2f4f7; font-size: 12px; font-weight: 600; }
.hp-lb__pts { font-weight: 600; }
.hp-lb__me { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #e6f0fb; color: #1e4f86; font-size: 13px; font-weight: 500; }
.hp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; color: #667085; font-size: 13px; }
.hp-pager__btn { min-width: 32px; height: 32px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.hp-pager__btn.is-on { border-color: var(--hp-primary); color: var(--hp-primary); font-weight: 600; }
.hp-cm-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hp-cm-course { display: flex; flex-direction: column; padding: 16px; border-radius: 10px; background: #297bc8; color: #fff; animation: hp-rise .3s ease both; }
.hp-cm-course__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px 10px 0 0; background: #1b4f86; color: #fff !important; text-decoration: none; }
.hp-cm-course__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-cm-course__thumb span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; font-weight: 600; text-align: center; }
.hp-cm-course h3 { margin: 20px 0 14px; font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.hp-cm-course__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; font-size: 14px; }
.hp-cm-course__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hp-cm-course__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 14px 0 0; }
.hp-cm-course__price del { color: #ff8d90; font-size: 16px; font-weight: 500; }
.hp-cm-course__price strong { font-size: 20px; font-weight: 600; }
.hp-cm-course__price span { font-size: 12px; font-weight: 500; }
.hp-cm-course__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: auto; padding: 10px 14px; border-radius: 8px; background: #fff; color: #475467 !important; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .15s, transform .15s; }
.hp-cm-course__price + .hp-cm-course__btn, .hp-cm-course__meta + .hp-cm-course__btn { margin-top: 26px; }
.hp-cm-course__btn:hover { background: #eef5fc; transform: translateY(-1px); }
/* "Get for free" is a small form (one click takes the course). */
.hp-cm-course .hp-free-form { display: flex; flex-direction: column; margin: auto 0 0; }
.hp-cm-course__price + .hp-free-form { margin-top: 26px; }
button.hp-cm-course__btn { width: 100%; border: 0; font-family: inherit; cursor: pointer; }
.hp-cm-course.is-locked .hp-cm-course__thumb img { filter: grayscale(.35); }
.hp-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hp-mcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 16px; overflow: hidden; border: 1px solid #eaecf0; border-radius: 8px; text-align: center; }
.hp-mcard__band { position: absolute; inset: 0 0 auto; height: 52px; background: linear-gradient(135deg, #dbe8f8, #eef4fc); }
.hp-mcard .hp-av { position: relative; border: 3px solid #fff; }
.hp-mcard .hp-name { justify-content: center; flex-wrap: wrap; }
.hp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hp-gallery__item { display: block; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: #f2f4f7; cursor: zoom-in; }
.hp-gallery__item img, .hp-gallery__item video { width: 100%; height: 100%; object-fit: cover; }
.hp-gallery__item.is-video { aspect-ratio: 16 / 10; cursor: default; background: #000; }
.hp-files { display: flex; flex-direction: column; gap: 8px; }

/* Join / locked states */
.hp-join { max-width: 560px; margin: 24px auto; padding: 36px 28px; text-align: center; }
.hp-join__icon { font-size: 40px; }
.hp-join h2 { margin: 10px 0 8px; font-size: 22px; font-weight: 600; }
.hp-join p { margin: 0 0 20px; color: #475467; }

/* ---------- Messenger ---------- */
body.hp-page-msgr { background: #fff; overflow: hidden; }
.hp-msgr { display: grid; grid-template-columns: 350px minmax(0, 1fr); height: calc(100vh - 57px); height: calc(100dvh - 57px); max-width: 1400px; margin: 0 auto; }
.hp-msgr.has-meetings { grid-template-columns: 350px minmax(0, 1fr) 300px; }
.hp-msgr__side { display: flex; flex-direction: column; min-height: 0; padding: 16px 12px; border-right: 1px solid #eaecf0; background: #f9fafb; }
.hp-msgr__tabs { display: flex; padding: 4px; border-radius: 8px; background: #eef1f6; }
.hp-msgr__tab { flex: 1; padding: 8px 0; border-radius: 5px; background: #fff; color: var(--hp-primary); font-size: 15px; font-weight: 500; text-align: center; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.hp-msgr__search { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 0 12px; height: 40px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; color: #98a2b3; }
.hp-msgr__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 13px; color: #101828; }
.hp-msgr__search input:focus { outline: 0; }
.hp-msgr__list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.hp-msgr__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #101828 !important; text-decoration: none; }
.hp-msgr__item:hover { background: #eef2f9; }
.hp-msgr__item.is-active { background: #e2e9fb; }
.hp-msgr__avatar { display: inline-flex; width: 44px; height: 44px; flex: none; overflow: hidden; border-radius: 50%; background: #dbeafe; }
.hp-msgr__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hp-msgr__avatar .hp-initials { font-size: 15px; }
.hp-msgr__item-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hp-msgr__item-txt strong { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-msgr__last { font-size: 12px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-msgr__item.is-unread .hp-msgr__last { color: var(--hp-primary); font-weight: 600; }
.hp-msgr__item-txt small { font-size: 10px; color: #98a2b3; }
.hp-msgr__unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hp-primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.hp-msgr__more { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eaecf0; }
.hp-msgr__more h3 { margin: 0 0 8px; font-size: 13px; color: #475467; font-weight: 500; }
.hp-msgr__req { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.hp-msgr__req .hp-msgr__avatar { width: 36px; height: 36px; }
.hp-msgr__req-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-msgr__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.hp-msgr__chat--empty { align-items: center; justify-content: center; padding: 16px; }
.hp-msgr__head { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid #eaecf0; }
.hp-msgr__head .hp-msgr__avatar { width: 40px; height: 40px; }
.hp-msgr__back { display: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f7; cursor: pointer; }
.hp-msgr__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.hp-msgr__title strong { font-weight: 500; color: #101828; }
.hp-msgr__title span { color: #667085; font-size: 12px; }
.hp-msgr__log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; scroll-behavior: auto; }
.hp-msgr__log:focus { outline: 0; }
.hp-msgr__empty { margin: 40px 0; text-align: center; color: #667085; }
.hp-msg { display: flex; gap: 10px; margin-bottom: 14px; animation: hp-rise .18s ease both; }
.hp-msg .hp-av { margin-top: 2px; }
.hp-msg__main { min-width: 0; max-width: min(620px, 85%); }
.hp-msg__who { display: flex; align-items: baseline; gap: 8px; }
.hp-msg__who small { color: #98a2b3; font-size: 11px; }
.hp-msg__bubble { display: inline-block; max-width: 100%; margin-top: 4px; padding: 5px 16px; border-radius: 15px 15px 15px 0; background: #f5f6fc; color: #101828; font-size: 15px; }
.hp-msg.is-mine .hp-msg__bubble { background: #e6f0fb; }
.hp-msg__bubble p { margin: 4px 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-msg__bubble .hp-media { padding: 6px 0; }
.hp-msg__quote { display: flex; flex-direction: column; margin: 6px 0 2px; padding: 4px 10px; border-left: 3px solid var(--hp-primary); border-radius: 4px; background: rgba(49, 130, 206, .07); font-size: 12px; }
.hp-msg__quote span { color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-msg__bar { display: flex; gap: 12px; margin-top: 2px; }
.hp-msg__bar .hp-link { font-size: 13px; }
.hp-msg__more { color: #98a2b3; letter-spacing: 1px; }
.hp-msgr__composer { padding: 10px 16px 14px; border-top: 1px solid #f2f4f7; }
.hp-msgr__row { display: flex; align-items: flex-end; gap: 10px; }
.hp-msgr__row textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 200px; padding: 10px; border: 0; border-radius: 5px; background: #f5f6fc; font: inherit; font-size: 16px; color: #101828; resize: none; }
.hp-msgr__row textarea:focus { outline: 2px solid rgba(49, 130, 206, .35); }
.hp-msgr__row .hp-send { width: 44px; height: 44px; }
.hp-msgr__replying { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-left: 3px solid var(--hp-primary); border-radius: 4px; background: #f3f8fd; font-size: 13px; color: #344054; }
.hp-msgr__muted { margin: 0; padding: 14px; border-top: 1px solid #f2f4f7; color: #667085; text-align: center; }
.hp-plus { position: relative; }
.hp-plus__btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 7px; padding: 0; border: 1.5px solid var(--hp-primary); border-radius: 50%; background: #fff; color: var(--hp-primary); cursor: pointer; }
.hp-plus__menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; min-width: 170px; padding: 6px; border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .16); }
.hp-plus__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13px; color: #344054; cursor: pointer; }
.hp-plus__item:hover { background: #f2f4f7; }
.hp-msgr__meet { min-height: 0; overflow-y: auto; padding: 14px; border-left: 1px solid #eaecf0; background: #f9fafb; }
.hp-msgr__meet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-msgr__meet h3 { margin: 10px 0; font-size: 15px; font-weight: 600; }
.hp-meet { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; padding: 12px; }
.hp-meet.is-ended { opacity: .7; }
.hp-meet small { color: #667085; }
.hp-meet p { margin: 0; font-size: 13px; color: #475467; white-space: pre-wrap; }
.hp-meet .hp-btn, .hp-meet .hp-badge { align-self: flex-start; }
.hp-meet-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 14px; text-align: center; }
.hp-meet-empty__i { font-size: 28px; }
.hp-meet-empty p { margin: 0; font-size: 12px; color: #667085; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hp-cm-body { grid-template-columns: 240px minmax(0, 1fr); }
	.hp-cm-right { display: none; }
	.hp-msgr.has-meetings { grid-template-columns: 300px minmax(0, 1fr); }
	.hp-msgr.has-meetings .hp-msgr__meet { position: fixed; right: 0; top: 60px; bottom: 0; z-index: 40; width: min(320px, 90vw); box-shadow: -10px 0 30px rgba(16, 24, 40, .12); }
	.hp-msgr { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.hp-cm-hero__cover { height: 150px; }
	.hp-cm-hero__row { flex-direction: column; gap: 10px; padding: 58px 16px 8px; }
	.hp-cm-hero__logo { left: 16px; top: -50px; width: 96px; height: 96px; }
	.hp-cm-hero__logo .hp-initials { font-size: 30px; }
	.hp-cm-hero__info h1 { margin-top: 0; font-size: 20px; }
	.hp-cm-tabs { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 12px 10px; }
	.hp-cm-tabs.is-stuck { padding-left: 12px; }
	.hp-cm-search { width: 100%; }
	.hp-cm-body, .hp-cm-body.is-wide { grid-template-columns: minmax(0, 1fr); }
	.hp-cm-left { position: static; }
	.hp-channels ul { display: flex; gap: 6px; max-height: none; padding: 10px; overflow-x: auto; scrollbar-width: none; }
	.hp-channels ul::-webkit-scrollbar { display: none; }
	.hp-channels h2 { display: none; }
	.hp-channel { flex: none; min-height: 36px; padding: 0 10px; border: 1px solid #eaecf0; border-radius: 18px; }
	.hp-cm-wrap { padding: 0 10px 40px; }
	.hp-msgr, .hp-msgr.has-meetings { grid-template-columns: minmax(0, 1fr); }
	.hp-msgr .hp-msgr__chat { display: none; }
	.hp-msgr.has-chat .hp-msgr__side { display: none; }
	.hp-msgr.has-chat .hp-msgr__chat { display: flex; }
	.hp-msgr__back { display: inline-flex; align-items: center; justify-content: center; }
	.hp-msgr__log { padding: 12px; }
	.hp-msg__main { max-width: 88%; }
	.hp-bell__panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
@media (max-width: 600px) {
	.hp-post__actions { gap: 4px; padding: 0 8px 8px; }
	.hp-act { gap: 5px; font-size: 13px; }
	.hp-act .hp-svg svg { width: 16px; height: 16px; }
	.hp-cm-now h2 { font-size: 17px; }
	.hp-cm-stats > div { min-width: 56px; }
	.hp-post__bg { min-height: 200px; }
	.hp-post__bg p { font-size: 20px; }
	.hp-cmodal { padding: 0; align-items: stretch; }
	.hp-cmodal__card { max-width: none; min-height: 100%; border-radius: 0; }
	.hp-hicon { width: 34px; height: 34px; }
	.hp-dhead__right { gap: 8px; }
}

/* Locked channel access requests (v0.15.0) */
.hp-channels li .hp-chreq { display: block; margin: -2px 0 6px 44px; padding: 3px 10px; border: 1px solid var(--hp-primary); border-radius: 999px; background: #fff; color: var(--hp-primary); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.hp-channels li .hp-chreq:hover { background: var(--hp-primary); color: #fff; }
.hp-channels li .hp-chreq:disabled { opacity: .6; cursor: default; }
.hp-channels li .hp-chreq { width: fit-content; }
.hp-channels li .hp-chreq.is-sent { display: block; border-color: #d0d5dd; color: #667085; cursor: default; }
.hp-channels li .hp-chreq.is-sent:hover { background: #fff; color: #667085; }

/* ---------- Community on phones (v0.25): app layout like the reference ---------- */
.hp-cm-mbar, .hp-cm-dhead, .hp-cm-dset, .hp-cm-backdrop, .hp-chread { display: none; }
.hp-chbadge .hp-ico { width: 12px; height: 12px; }
@media (max-width: 767px) {
	.hp-page-cm .hp-dhead { display: none; }
	.hp-page-cm .hp-cm-wrap { padding: 0 0 20px; }
	.hp-cm-mbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 10px; background: var(--hp-app-bg, #f7f8fc); }
	.hp-cm-mbar__btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--hp-title); cursor: pointer; }
	.hp-cm-mbar__btn--round { border-radius: 50%; background: var(--hp-gray-50); }
	.hp-cm-mbar__title { flex: 1; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 19px; font-weight: 500; color: var(--hp-title); }
	.hp-cm-mbar__title strong { font-weight: 500; }
	.hp-cm-hero { display: none; }
	.hp-cm-tabs, .hp-cm-tabs.is-stuck { position: sticky; top: 60px; z-index: 55; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; border-radius: 0; background: var(--hp-app-bg, #f7f8fc); box-shadow: none; }
	.hp-cm-tabs__list { gap: 0; padding: 0 6px; border-bottom: 1px solid var(--hp-border); }
	.hp-cm-tab { padding: 12px 12px 13px; color: var(--hp-muted-2) !important; font-size: 17px; }
	.hp-cm-tab.is-active { color: var(--hp-title) !important; font-weight: 500; }
	.hp-cm-tab.is-active::after { left: 8px; right: 8px; height: 3px; background: var(--hp-title); }
	.hp-cm-tabs .hp-cm-search { display: none; }
	body.hp-cm-searching .hp-cm-tabs .hp-cm-search { display: flex; width: auto; height: 42px; margin: 10px 12px; border-radius: 21px; background: var(--hp-surface, #fff); }
	.hp-cm-body, .hp-cm-body.is-wide { display: block; padding: 0; }
	.hp-cm-main { gap: 10px; padding-top: 10px; }
	.hp-cm-now { display: none; }
	.hp-cm-backdrop { display: block; position: fixed; inset: 0; z-index: 205; background: rgba(16, 24, 40, .45); }
	.hp-cm-left, .hp-cm-left { position: fixed; top: 0; left: 0; bottom: 0; z-index: 210; width: min(86vw, 360px); overflow-y: auto; overscroll-behavior: contain; background: var(--hp-surface, #fff); transform: translateX(-102%); transition: transform .25s ease; }
	body.hp-cm-drawer-open .hp-cm-left { transform: none; box-shadow: 12px 0 40px rgba(0, 0, 0, .22); }
	body.hp-cm-drawer-open { overflow: hidden; }
	.hp-cm-dhead { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 210px; padding: 16px 20px; background: radial-gradient(120% 140% at 10% 0%, #4b9be3 0%, #3182ce 45%, #1b4f86 100%); background-size: cover; background-position: center; color: #fff; }
	.hp-cm-dhead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .65) 100%); }
	.hp-cm-dhead > * { position: relative; }
	.hp-cm-dhead strong { font-size: 24px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
	.hp-cm-dhead span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; opacity: .9; }
	.hp-cm-dhead__initials { position: absolute !important; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 64px !important; font-weight: 700; opacity: .35 !important; text-transform: uppercase; }
	.hp-cm-dhead__x { position: absolute !important; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
	.hp-cm-left .hp-card.hp-channels { padding: 6px 10px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
	.hp-channels h2, .hp-cm-dset h2 { display: block; margin: 14px 12px 8px; padding: 0; border: 0; font-size: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--hp-title); }
	.hp-channels ul { display: block; max-height: none; overflow: visible; padding: 0; }
	.hp-channels li { position: relative; }
	.hp-channel { min-height: 58px; padding: 0 58px 0 18px; border: 0; border-radius: 10px; color: var(--hp-title) !important; font-size: 17px; font-weight: 400; }
	.hp-channel .hp-initials { display: none; }
	.hp-channel__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.hp-channel__name::before { content: "#"; }
	.hp-channel.is-active { background: var(--hp-soft, #eef1f8); }
	.hp-channel .hp-dot { width: 10px; height: 10px; }
	.hp-channel .hp-chbadge { padding: 5px 10px; border-radius: 6px; background: #f59e0b; font-size: 14px; line-height: 18px; gap: 5px; }
	.hp-channel .hp-chbadge .hp-ico { width: 14px; height: 14px; }
	.hp-channel .hp-chbadge--lock { background: #98a2b3; }
	.hp-chread { position: absolute; right: 8px; top: 29px; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--hp-primary); cursor: pointer; }
	.hp-chread:hover { background: var(--hp-gray-50); }
	.hp-chread.is-done { opacity: .45; }
	.hp-channels li .hp-chreq { margin: -6px 0 8px 18px; }
	.hp-cm-dset { display: block; padding: 4px 10px 28px; }
	.hp-cm-dset a { display: flex; align-items: center; gap: 18px; min-height: 58px; padding: 0 18px; border-radius: 10px; color: var(--hp-title) !important; font-size: 17px; text-decoration: none; }
	.hp-cm-dset a:hover { background: var(--hp-gray-50); }

	/* Posts: full-width cards */
	.hp-posts { gap: 10px; }
	.hp-post { border-radius: 0; box-shadow: none; }
	.hp-post__head { gap: 14px; padding: 16px 16px 6px; border-bottom: 0; }
	.hp-post__head .hp-av { width: 52px; height: 52px; }
	.hp-post__head .hp-name strong { font-size: 18px; font-weight: 500; }
	.hp-post__meta { font-size: 14px; }
	.hp-post__body { padding: 8px 16px 4px; }
	.hp-post__text { font-size: 16px; line-height: 1.6; }
	.hp-post__stats { padding: 8px 16px 6px; }
	.hp-post__actions { padding: 0 16px 12px; }
	.hp-cm-main > .hp-card, .hp-cm-main > form { border-radius: 0; }
}

/* Pinned posts (v0.25) */
.hp-post.is-pinned { box-shadow: 0 0 0 1px rgba(49, 130, 206, .35), 0 1px 3px rgba(16, 24, 40, .06); }
.hp-post__pinned { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; color: var(--hp-primary); font-size: 13px; font-weight: 600; }
.hp-post__pinned svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
	.hp-post.is-pinned { box-shadow: inset 3px 0 0 var(--hp-primary); }
	.hp-post__pinned { padding: 12px 16px 0; font-size: 14px; }
}

/* Polls: "Allow multiple answers" switch and multi-answer ticks (v0.25) */
.hp-pollswitch { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--hp-text-2, #344054); cursor: pointer; user-select: none; }
.hp-pollswitch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp-pollswitch__track { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; background: #d0d5dd; transition: background-color .2s; }
.hp-pollswitch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: transform .2s; }
.hp-pollswitch__input:checked + .hp-pollswitch__track { background: var(--hp-primary); }
.hp-pollswitch__input:checked + .hp-pollswitch__track::after { transform: translateX(18px); }
.hp-pollswitch__input:focus-visible + .hp-pollswitch__track { outline: 2px solid var(--hp-primary); outline-offset: 2px; }
.hp-poll__hint { margin: 0 0 8px; font-size: 13px; color: var(--hp-muted-2, #667085); }
.hp-poll__box { position: relative; z-index: 1; flex: none; width: 18px; height: 18px; margin-right: 8px; border: 2px solid #98a2b3; border-radius: 5px; background: #fff; }
.hp-poll__opt.is-mine .hp-poll__box { border-color: var(--hp-primary); background: var(--hp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hp-poll.is-multi .hp-poll__opt { justify-content: flex-start; } .hp-poll.is-multi .hp-poll__label { flex: 1; position: relative; z-index: 1; }

/* Reactions (v0.25): round icons like the reference; "haha" removed */
.hp-remo { display: inline-flex; flex: none; width: 20px; height: 20px; }
.hp-remo svg { display: block; }
.hp-reactbar { gap: 6px; padding: 6px 10px; }
.hp-reactbar__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 3px; }
.hp-reactbar__btn .hp-remo { width: 38px; height: 38px; }
.hp-reactbar__btn:hover { transform: scale(1.28) translateY(-4px); }
.hp-rsum__i.hp-remo { width: 20px; height: 20px; margin-left: -5px; padding: 0; border: 2px solid var(--hp-surface, #fff); border-radius: 50%; background: var(--hp-surface, #fff); box-sizing: content-box; }
.hp-rsum__i.hp-remo:first-child { margin-left: 0; }
.hp-act__emoji.hp-remo { width: 20px; height: 20px; }
.hp-act.r-wow, .hp-act.r-sad { color: #c28a00; }
.hp-act.r-angry { color: #e0461f; }
.hp-act.is-on.r-like { color: #1b74e4; }
.hp-act.r-love { color: #f0284a; }

/* Mentions: "@Name" in posts and comments, and the "@" picker under a text box. */
.hp-mention { color: var(--hp-primary, #3182ce); font-weight: 600; }
.hp-mpick { position: absolute; left: 0; top: 100%; z-index: 60; width: min(320px, 100%); max-height: 260px; margin: 4px 0 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid #eaecf0; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
.hp-mpick__item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.hp-mpick__item.is-on, .hp-mpick__item:hover { background: #eef5fc; }
.hp-mpick__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 500; color: #101828; }
.hp-mpick__all { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hp-primary, #3182ce); color: #fff; font-weight: 700; }
.hp-mpick__hint { font-size: 12px; color: #667085; }
.hp-cbox__field, .hp-compose__textwrap, .hp-cmodal__body { position: relative; }

/* ---------- Facebook-style composer (v0.38.0) ---------- */
.hp-fbi { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.hp-fbi svg { display: block; }
.hp-cmc--fb .hp-cmc__btns { grid-template-columns: repeat(3, 1fr); gap: 4px; border-top: 1px solid #e4e6eb; }
.hp-cmc--fb .hp-cmc__btn { height: 40px; border: 0; border-radius: 8px; background: transparent; color: #65676b; font-weight: 600; }
.hp-cmc--fb .hp-cmc__btn:hover { background: #f2f2f2; }
.hp-cmc--fb .hp-cmc__fake { background: #f0f2f5; color: #65676b; font-size: 16px; }
.hp-cmc--fb .hp-cmc__fake:hover { background: #e4e6eb; }
.hp-cmc--fb { padding: 12px 16px; border-radius: 12px; }
.hp-cmc--fb .hp-cmc__row { gap: 8px; }
.hp-cmc--fb .hp-cmc__fake { height: 40px; padding: 0 14px; border-radius: 20px; }
.hp-cmc__quicks { display: flex; flex: none; align-items: center; gap: 2px; }
.hp-cmc__quick { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background .15s; }
.hp-cmc__quick:hover { background: #f2f2f2; }
@media (max-width: 420px) { .hp-cmc__quick { width: 34px; height: 34px; } .hp-cmc--fb .hp-cmc__fake { font-size: 14px; } }
.hp-cmodal__card--fb { max-width: 500px; border-radius: 10px; overflow: hidden; }
.hp-cmodal__card--fb .hp-cmodal__head { position: relative; justify-content: center; min-height: 60px; border-bottom: 1px solid #e4e6eb; }
.hp-cmodal__card--fb .hp-cmodal__head h2 { margin: 0; font-size: 20px; font-weight: 700; text-align: center; }
.hp-cmodal__card--fb .hp-cmodal__head .hp-icon-btn { position: absolute; right: 16px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: #e4e6eb; color: #606770; transform: none; }
.hp-fbback { position: absolute; left: 16px; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%; background: #e4e6eb; color: #606770; cursor: pointer; }
.hp-fbback[hidden] { display: none; }
.hp-fbcomposer { padding: 16px; max-height: min(78vh, 720px); overflow-y: auto; }
.hp-fbview[hidden] { display: none; }
.hp-fbwho { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hp-fbwho__line { font-size: 15px; line-height: 1.35; color: #050505; }
.hp-fbwho__line strong { font-weight: 600; }
.hp-fbaud { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 8px; border: 0; border-radius: 6px; background: #e4e6eb; color: #050505; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hp-fbaud.is-static { cursor: default; }
.hp-fbaud__ic { color: #65676b; }
.hp-cmodal__card--fb .hp-compose__text { min-height: 120px; font-size: 22px; color: #050505; }
.hp-cmodal__card--fb .hp-compose__text::placeholder { color: #65676b; }
.hp-fbstyle { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.hp-fbaa { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: linear-gradient(135deg, #f8d800, #fd6e6a 40%, #c644fc 70%, #5b5bff); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.hp-fbaa[hidden] { display: none; }
.hp-fbaa.is-open { box-shadow: 0 0 0 2px #1877f2; }
.hp-fbbgs { display: flex; flex: 1; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hp-fbbgs[hidden] { display: none; }
.hp-fbbgs .hp-bgsw { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.hp-fbemoji { margin-left: auto; display: inline-flex; padding: 4px; border: 0; border-radius: 50%; background: none; color: #65676b; cursor: pointer; }
.hp-fbemoji:hover { background: #f2f2f2; }
.hp-fbadd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border: 1px solid #ced0d4; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.hp-fbadd__label { font-size: 15px; font-weight: 600; color: #050505; }
.hp-fbadd__tools { display: flex; flex-wrap: wrap; gap: 2px; }
.hp-fbtool { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background .15s, transform .15s; }
.hp-fbtool:hover { background: #f2f2f2; transform: scale(1.06); }
.hp-fbpost { display: block; width: 100%; height: 38px; margin-top: 14px; border: 0; border-radius: 6px; background: #1877f2; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hp-fbpost:hover { background: #166fe5; }
.hp-fbpost:disabled { background: #e4e6eb; color: #bcc0c4; cursor: not-allowed; }
.hp-xtra { color: #050505; font-weight: 400; }
.hp-xtra strong { font-weight: 600; }
.hp-xtra__emoji { font-size: 1.05em; }
.hp-post__line .hp-xtra { font-size: 14px; }
.hp-fbtabs { display: flex; gap: 4px; margin: -4px 0 10px; border-bottom: 1px solid #e4e6eb; }
.hp-fbtab { padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: #65676b; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hp-fbtab.is-on { border-bottom-color: #1877f2; color: #1877f2; }
.hp-fbsearch { display: flex; align-items: center; gap: 8px; flex: 1; height: 38px; margin-bottom: 10px; padding: 0 12px; border-radius: 20px; background: #f0f2f5; color: #65676b; }
.hp-fbsearch__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: #050505; }
.hp-fbsearch__input:focus { outline: 0; }
.hp-fbsearchrow { display: flex; align-items: flex-start; gap: 10px; }
.hp-fbdone { height: 38px; padding: 0 12px; border: 0; background: none; color: #1877f2; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hp-fbgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hp-fblist { display: flex; flex-direction: column; gap: 2px; }
.hp-fbopt, .hp-fbperson, .hp-fbplace, .hp-fbaudopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #050505; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.hp-fbopt:hover, .hp-fbperson:hover, .hp-fbplace:hover, .hp-fbaudopt:hover, .hp-fbopt.is-on, .hp-fbperson.is-on, .hp-fbaudopt.is-on { background: #f2f2f2; }
.hp-fbopt__emoji { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb; font-size: 20px; }
.hp-fbopt__label { flex: 1; }
.hp-fbopt__chev { color: #65676b; }
.hp-fbperson__name { flex: 1; font-weight: 600; }
.hp-fbperson__check { color: #1877f2; }
.hp-fbplace__pin { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb; color: #f5533d; flex: none; }
.hp-fbplace small { display: block; color: #65676b; font-size: 12px; }
.hp-fbaudopt strong { flex: 1; font-weight: 600; }
.hp-fbaudopt__ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb; color: #050505; }
.hp-fbradio { width: 20px; height: 20px; border: 2px solid #bcc0c4; border-radius: 50%; }
.hp-fbradio.is-on { border: 6px solid #1877f2; }
.hp-fbchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.hp-fbchips[hidden] { display: none; }
.hp-fbchips__label { width: 100%; color: #65676b; font-size: 13px; font-weight: 600; }
.hp-fbchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 16px; background: #e7f3ff; color: #1877f2; font-size: 14px; font-weight: 600; }
.hp-fbchip button { border: 0; background: none; color: #1877f2; font-size: 16px; line-height: 1; cursor: pointer; }
.hp-fbhint { margin: 6px 10px; color: #65676b; font-size: 13px; font-weight: 600; }
.hp-fbempty { margin: 18px 10px; color: #65676b; text-align: center; }
.hp-fbclear { align-self: flex-start; margin: 0 0 8px; padding: 6px 10px; border: 0; border-radius: 6px; background: #ffebe9; color: #c62828; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hp-fbrow { display: flex; align-items: center; gap: 10px; }
.hp-fbinput { flex: 1; height: 42px; padding: 0 12px; border: 1px solid #ced0d4; border-radius: 8px; font: inherit; font-size: 16px; }
.hp-fbinput:focus { outline: 0; border-color: #1877f2; box-shadow: 0 0 0 2px rgba(24, 119, 242, .2); }
@media (max-width: 560px) {
	.hp-cmc--fb .hp-cmc__btn span { font-size: 13px; }
	.hp-fbcomposer { max-height: calc(100vh - 70px); }
	.hp-fbgrid { grid-template-columns: 1fr; }
}

/* ---------- Community tabs: scroll sideways on a computer (v0.38.0) ---------- */
.hp-cm-tabs__scroller { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; }
.hp-cm-tabs__scroller .hp-cm-tabs__list { flex: 1; scroll-behavior: smooth; cursor: grab; }
.hp-cm-tabs__list.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.hp-cm-tabs__list.is-dragging .hp-cm-tab { pointer-events: none; }
.hp-cm-tabs__arrow { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-top: -15px; padding: 0 0 2px; border: 1px solid #e4e6eb; border-radius: 50%; background: #fff; color: #344054; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 40, .15); }
.hp-cm-tabs__arrow[hidden] { display: none; }
.hp-cm-tabs__arrow.is-prev { left: -4px; }
.hp-cm-tabs__arrow.is-next { right: -4px; }
.hp-cm-tabs__arrow:hover { background: #f2f4f7; color: var(--hp-primary); }
.hp-cm-tabs__scroller.has-prev .hp-cm-tabs__list { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px); mask-image: linear-gradient(90deg, transparent 0, #000 36px); }
.hp-cm-tabs__scroller.has-next .hp-cm-tabs__list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent 100%); }
.hp-cm-tabs__scroller.has-prev.has-next .hp-cm-tabs__list { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
@media (max-width: 760px) {
	.hp-cm-tabs__arrow { display: none !important; }
	.hp-cm-tabs__scroller .hp-cm-tabs__list { cursor: auto; }
}

/* Mobile polish (v0.38.1) */
/* Search boxes: the frame shows the focus; the input inside never draws its own border or ring. */
.hp-cm-search .hp-input,
.hp-cm-search .hp-input:focus,
.hp-cm-search input:focus { border: 0; outline: 0; box-shadow: none; background: none; }
/* Post bar: one line; a long name ends with "…". */
.hp-cmc--fb .hp-cmc__fake { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 768px) {
	.hp-cm-panel__head .hp-cm-search { width: 100%; }
	/* Tabs snap to whole tabs, so none is left cut in half at the edge. */
	.hp-cm-tabs__list { scroll-snap-type: x proximity; scroll-padding-inline: 8px; }
	.hp-cm-tabs__list .hp-cm-tab { scroll-snap-align: start; }
}

/* Members on phones: a list like Facebook (v0.38.2) */
@media (max-width: 768px) {
	.hp-mgrid { display: block; margin: 0 -4px; }
	.hp-mcard { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 4px; overflow: visible; border-width: 0 0 1px; border-style: solid; border-radius: 0; text-align: left; }
	.hp-mcard:last-child { border-bottom-width: 0; }
	.hp-mcard__band { display: none; }
	.hp-mcard .hp-av { grid-row: 1 / span 2; width: 48px; height: 48px; border-width: 0; }
	.hp-mcard .hp-name { grid-column: 2; align-self: end; justify-content: flex-start; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
	.hp-mcard .hp-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
	.hp-mcard small { grid-column: 2; align-self: start; font-size: 12px; }
}

/* Phones: no automatic zoom (v0.38.4). A browser zooms in when a text field under 16px gets focus and does not
   zoom back; double-tap zoom is turned off too. Pinch-zoom stays available. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: manipulation; }
@media (max-width: 767px) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
	select, textarea, [contenteditable="true"] { font-size: 16px !important; }
}

/* Group chat fits the screen (v0.39.2): the page is a column (header, chat) as tall as the window, so the composer is
   never cut off whatever the header height; the empty reply / file boxes take no room; the Meeting List opens as a
   full-height drawer on tablets and phones; admins schedule meetings from it. */
body.hp-page-msgr { box-sizing: border-box; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
body.hp-page-msgr > .hp-dhead { flex: none; }
body.hp-page-msgr > .hp-msgr { flex: 1 1 auto; width: 100%; min-height: 0; height: auto !important; }
.hp-msgr__side { overflow: hidden; }
.hp-msgr__files[hidden], .hp-msgr__replying[hidden], .hp-plus__menu[hidden] { display: none; }
.hp-msgr__composer { padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); background: #fff; }
.hp-plus__btn { margin-bottom: 7px; }
.hp-plus__menu { border: 1px solid #eaecf0; }
.hp-meet__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hp-meet__cancel { padding: 4px 0; border: 0; background: none; font: inherit; font-size: 12px; color: #d92d20; cursor: pointer; }
.hp-meet__cancel:hover { text-decoration: underline; }
.hp-meet__cancel[disabled] { opacity: .5; cursor: progress; }
.hp-meet-new { margin-bottom: 12px; }
.hp-meet-new [hidden] { display: none !important; }
.hp-meet-new__open { width: 100%; justify-content: center; }
.hp-meet-new__form { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.hp-meet-new__f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: #344054; }
.hp-meet-new__f input, .hp-meet-new__f textarea { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: #101828; resize: vertical; }
.hp-meet-new__f input:focus, .hp-meet-new__f textarea:focus { outline: 2px solid rgba(49, 130, 206, .35); border-color: #3182ce; }
.hp-meet-new__tz { font-size: 11px; color: #667085; }
.hp-meet-new__btns { display: flex; justify-content: flex-end; gap: 8px; }
.hp-meet-new__btns .hp-btn--outline { min-height: 36px; border-color: #d0d5dd; }
@media (max-width: 1100px) {
	.hp-msgr.has-meetings .hp-msgr__meet { top: 0; z-index: 150; width: min(360px, 100vw); padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 860px) {
	.hp-msgr__head { gap: 8px; padding: 8px 10px; }
	.hp-msgr__head .hp-msgr__avatar { width: 36px; height: 36px; }
	.hp-msgr__title span { display: none; }
	.hp-msgr__composer { padding-left: 10px; padding-right: 10px; }
	.hp-msgr__row { gap: 8px; }
}

/* Ubaidoo fork 0.39.10.4: Facebook-style action row, photos, comments and who-reacted list. */
.hp-post__actions { display: flex; align-items: center; gap: 2px; padding: 4px 8px 6px; }
.hp-post__actions .hp-act { flex: 0 0 auto; gap: 6px; min-width: 44px; height: 36px; padding: 0 10px; border-radius: 18px; background: transparent; font-size: 14px; font-weight: 600; }
.hp-post__actions .hp-act:hover { background: #f0f2f5; }
.hp-act__n:empty { display: none; }
.hp-post__actions .hp-rsum { margin-left: auto; padding: 4px 6px; border-radius: 14px; cursor: pointer; }
.hp-post__actions .hp-rsum:empty { display: none; }
.hp-post__actions .hp-rsum:hover span:last-child { text-decoration: underline; }
.hp-reactbar__btn:focus, .hp-reactbar__btn:focus-visible { outline: none; box-shadow: none; }
.hp-post .hp-media { padding: 8px 0 0; }
.hp-post .hp-media__grid { border-radius: 0; }
.hp-post .hp-media__grid.n1.is-sized .hp-media__img { width: 100%; background: #0b0f19; }
.hp-post .hp-media__grid.n1.is-sized .hp-media__img img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.hp-post .hp-media__grid.n1.is-sized .hp-media__img.is-tall img { object-fit: contain; }
.hp-post .hp-media__grid.n2 .hp-media__img { aspect-ratio: 4 / 5; }
.hp-post .hp-media__img:hover img { transform: none; }
.hp-post .hp-media__video { width: 100%; max-height: 80vh; background: #000; }
.hp-cmts__sort { display: flex; justify-content: flex-end; padding: 2px 12px 6px; }
.hp-cmts__sortbtn { border: 0; background: none; color: #65676b; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hp-menu--sort .hp-menu__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 240px; white-space: normal; }
.hp-menu--sort .hp-menu__item small { color: #65676b; font-weight: 400; }
.hp-menu--sort .hp-menu__item.is-on b { color: var(--hp-primary); }
.hp-rx__tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #e4e6eb; margin: -4px 0 8px; }
.hp-rx__tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: #65676b; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hp-rx__tab.is-on { color: var(--hp-primary); border-bottom-color: var(--hp-primary); }
.hp-rx__ti { width: 20px; height: 20px; }
.hp-rx__list { max-height: 60vh; overflow-y: auto; }
.hp-rx__row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.hp-rx__av { position: relative; display: inline-flex; }
.hp-rx__badge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #fff; }
.hp-rx__more { margin: 8px 0; }
@media (max-width: 767px) {
	.hp-post__actions { gap: 0; padding: 2px 4px 4px; }
	.hp-post__actions .hp-act { padding: 0 9px; font-size: 13px; }
	.hp-post .hp-media__grid.n1.is-sized .hp-media__img { max-height: none; }
}

/* Community logo fully visible (Ubaidoo fork 0.39.10.13): white frame, whole image, room below it in the header */
.hp-cm-hero__row { min-height: 116px; }
.hp-cm-hero__logo { box-sizing: border-box; padding: 4px; border: 4px solid #fff; }
.hp-cm-hero__logo img { border-radius: 8px; object-fit: contain; }
@media (max-width: 860px) { .hp-cm-hero__row { min-height: 0; } .hp-cm-hero__logo { padding: 3px; border-width: 3px; } }

/* ---------- Member profile pages (Ubaidoo fork 0.39.10.23, like a Facebook group member page) ---------- */
a.hp-mrow, a.hp-mcard { color: inherit; text-decoration: none; cursor: pointer; }
a.hp-mrow { margin-inline: -8px; padding-inline: 8px; border-radius: 6px; }
a.hp-mrow:hover, a.hp-mrow:focus-visible { background: #f2f4f7; }
a.hp-mcard { transition: border-color .15s, box-shadow .15s; }
a.hp-mcard:hover, a.hp-mcard:focus-visible { border-color: var(--hp-primary); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.hp-avlink { display: inline-flex; flex: none; border-radius: 50%; }
.hp-name__link { display: inline-flex; min-width: 0; color: inherit; text-decoration: none; }
.hp-name__link:hover strong, .hp-name__link:focus-visible strong { text-decoration: underline; }
.hp-mprof { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hp-mprof__head { overflow: hidden; padding: 0; }
.hp-mprof__cover { height: 260px; background: radial-gradient(120% 140% at 10% 0%, #4b9be3 0%, #3182ce 45%, #1b4f86 100%); background-size: cover; background-position: center; }
.hp-mprof__row { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; margin-top: -56px; padding: 0 24px 16px; }
.hp-mprof__avatar { flex: none; width: 140px; height: 140px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; background: #f2f4f7; }
.hp-mprof__id { flex: 1 1 220px; min-width: 0; padding-bottom: 6px; }
.hp-mprof__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #101828; font-size: 26px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.hp-mprof__since { margin: 4px 0 0; color: #667085; font-size: 14px; }
.hp-mprof__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.hp-mprof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #eaecf0; }
.hp-mprof__stats > div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; }
.hp-mprof__stats > div + div { border-inline-start: 1px solid #eaecf0; }
.hp-mprof__stats strong { font-size: 20px; font-weight: 700; line-height: 1.2; }
.hp-mprof__stats span { color: #667085; font-size: 12px; }
.hp-mprof__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.hp-mprof__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hp-mprof__intro, .hp-mprof__badgecard { padding: 16px; }
.hp-mprof__intro h2, .hp-mprof__badgecard h2, .hp-mprof__feedtitle { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.hp-mprof__about { margin: 0 0 14px; font-size: 14px; line-height: 1.55; text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.hp-mprof__facts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; font-size: 14px; list-style: none; }
.hp-mprof__facts li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hp-mprof__facts a { color: var(--hp-primary); text-decoration: none; overflow-wrap: anywhere; }
.hp-mprof__facts a:hover { text-decoration: underline; }
.hp-mprof__ic { display: inline-flex; flex: none; color: #667085; }
.hp-mprof__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-mprof__badges li { display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; padding-inline: 6px 10px; border: 1px solid #eaecf0; border-radius: 999px; font-size: 13px; }
.hp-mprof__badge-ic { display: inline-flex; }
.hp-mprof__feed { min-width: 0; }
@media (max-width: 860px) {
	.hp-mprof__cover { height: 160px; }
	.hp-mprof__row { gap: 12px; margin-top: -48px; padding: 0 16px 14px; }
	.hp-mprof__avatar { width: 104px; height: 104px; }
	.hp-mprof__name { font-size: 22px; }
	.hp-mprof__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.hp-mprof__row { flex-direction: column; align-items: flex-start; }
	.hp-mprof__id { flex-basis: auto; }
	.hp-mprof__stats strong { font-size: 17px; }
	.hp-mprof__feedtitle { padding-inline: 16px; }
}
