:root {
  --hub-ink: #161617;
  --hub-ink-soft: #303033;
  --hub-blue: #0071e3;
  --hub-blue-deep: #004eaf;
  --hub-mint: #00a878;
  --hub-violet: #7456e8;
  --hub-surface: rgba(255,255,255,.9);
  --hub-surface-solid: #fff;
  --hub-surface-muted: #f5f5f7;
  --hub-line: rgba(29,29,31,.1);
  --hub-line-strong: rgba(29,29,31,.16);
  --hub-shadow: 0 24px 70px rgba(20,28,44,.07), 0 2px 10px rgba(20,28,44,.035);
  --hub-shadow-soft: 0 12px 36px rgba(20,28,44,.055);
}

body.hub-active {
  background: #fff;
  color: var(--hub-ink);
}

.sr-only {
  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;
}

@media (min-width: 1051px) {
  body.app-active.hub-active:not(.schedule-active) {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }
}

.final-timetable-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.member-hub {
  min-height: calc(100vh - 104px);
  padding: clamp(16px, 2.6vw, 38px);
}

.hub-shell {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.hub-sidebar {
  position: sticky;
  top: 90px;
  height: calc(100svh - 112px);
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--hub-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.hub-member-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 5px 5px 18px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #111217, #424853);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 12px 28px rgba(17,18,23,.18);
  overflow: hidden;
}

.hub-avatar-inline-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub-avatar.has-photo { color: transparent; font-size: 0; }
.hub-avatar.has-photo .hub-avatar-inline-image { display: block !important; }

.hub-avatar img,
.hub-profile-preview-avatar img,
.hub-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hub-avatar-button {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  padding: 2px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}
.hub-avatar-button .hub-avatar { width: 48px; height: 48px; }
.hub-avatar-button .hub-avatar-image {
  position: absolute;
  inset: 2px;
  z-index: 2;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(17,18,23,.18);
}
.hub-avatar-button:hover { background: rgba(0,113,227,.07); filter: none; transform: none; }
.hub-avatar-button:focus-visible { outline: 3px solid rgba(0,113,227,.24); outline-offset: 2px; }
.hub-avatar-edit-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--hub-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,113,227,.25);
  font-size: 9px;
  line-height: 1;
  z-index: 3;
}
.hub-avatar-edit-badge svg { width: 10px; height: 10px; fill: currentColor; }

.hub-member-copy { min-width: 0; flex: 1; }
.hub-member-copy b,
.hub-member-copy span,
.hub-member-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-member-copy b { color: var(--hub-ink); font-size: 14px; letter-spacing: -.01em; }
.hub-member-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.hub-membership-status { width: max-content; max-width: 100%; margin-top: 6px; padding: 2px 6px; color: #936000; background: #fff3d5; border-radius: 999px; font-size: 8px; font-weight: 800; }
.hub-membership-status.verified { color: #087a57; background: #e3f7ef; }
.hub-membership-status.rejected,
.hub-membership-status.revoked { color: #ae2732; background: #fdebed; }
.hub-profile-shortcut {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  margin-top: 7px;
  padding: 0;
  color: var(--hub-blue);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 9.5px;
  font-weight: 750;
}
.hub-profile-shortcut:hover { color: var(--hub-blue-deep); background: transparent; filter: none; transform: none; text-decoration: underline; text-underline-offset: 3px; }
.hub-profile-shortcut:focus-visible { outline: 3px solid rgba(0,113,227,.2); outline-offset: 3px; }

.hub-navigation {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.hub-nav-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: left;
  color: #55565b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hub-nav-button span {
  color: #9b9ba1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hub-nav-button b { font-size: 13px; }
.hub-nav-button:hover { color: var(--hub-ink); background: rgba(0,0,0,.035); filter: none; transform: none; }
.hub-nav-button.active {
  color: #fff;
  background: linear-gradient(145deg, #1d1d1f, #2b2b2f);
  border-color: #1d1d1f;
  box-shadow: 0 12px 25px rgba(17,18,23,.14);
}
.hub-nav-button.active span { color: rgba(255,255,255,.6); }

.hub-sidebar-note {
  margin-top: auto;
  padding: 16px;
  color: #e9f4ff;
  background:
    radial-gradient(circle at 92% 8%, rgba(84,187,255,.55), transparent 48%),
    linear-gradient(145deg, #064a90, #072b52);
  border-radius: 18px;
}
.hub-sidebar-note b,
.hub-sidebar-note span { display: block; }
.hub-sidebar-note b { font-size: 12px; line-height: 1.35; }
.hub-sidebar-note span { margin-top: 7px; color: rgba(233,244,255,.72); font-size: 10.5px; line-height: 1.5; }
.hub-back-button { width: 100%; margin-top: auto; }

.hub-main { min-width: 0; }
.hub-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(10px, 1.6vw, 20px) 6px clamp(22px, 2.5vw, 34px);
  border: 0;
  background: transparent;
}
.hub-page-header h1 {
  max-width: 800px;
  margin: 4px 0 10px;
  color: var(--hub-ink);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: .99;
  letter-spacing: -.052em;
}
.hub-page-header p:not(.hub-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.55;
}
.hub-kicker {
  margin: 0;
  color: var(--hub-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hub-live-badge {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 12px;
  color: #38524a;
  background: rgba(238,250,245,.88);
  border: 1px solid rgba(0,168,120,.15);
  border-radius: 999px;
  font-size: 11px;
}
.hub-live-badge > span {
  width: 7px;
  height: 7px;
  background: var(--hub-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0,168,120,.1);
}

.hub-view { animation: hub-view-in .35s ease both; }
@keyframes hub-view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hub-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.hub-metric-card {
  min-height: 160px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  background: var(--hub-surface);
  border: 1px solid var(--hub-line);
  border-radius: 23px;
  box-shadow: 0 12px 38px rgba(17,24,39,.045);
}
.hub-metric-card::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -25px;
  bottom: -30px;
  background: linear-gradient(140deg, rgba(0,113,227,.14), transparent);
  border-radius: 30px;
  transform: rotate(18deg);
}
.hub-metric-card > span,
.hub-metric-card > small { display: block; }
.hub-metric-card > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.hub-metric-card > b { display: block; margin: 18px 0 9px; color: var(--hub-ink); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.hub-metric-card > small { color: #9a9aa0; font-size: 10.5px; line-height: 1.4; }

.hub-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: 18px;
}
.hub-card {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 30px);
  background: var(--hub-surface);
  border: 1px solid var(--hub-line);
  border-radius: 26px;
  box-shadow: var(--hub-shadow);
}
.hub-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.hub-card-heading > div { display: flex; align-items: center; gap: 11px; }
.hub-card-heading h2 { margin: 0; color: var(--hub-ink); font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.02em; }
.hub-card-heading p { max-width: 260px; margin: 2px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; text-align: right; }
.hub-card-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--hub-blue);
  background: #eaf4ff;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.hub-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .55fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 24px;
  padding: 12px;
  background: #f6f6f8;
  border: 1px solid var(--hub-line);
  border-radius: 18px;
}
.hub-filter-row label { margin: 0; }
.hub-filter-row label > span { display: block; margin: 0 0 6px 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.hub-filter-row select { min-height: 42px; background: #fff; }

.hub-chart { min-height: 250px; display: grid; align-content: center; gap: 17px; }
.hub-chart-empty { max-width: 430px; margin: auto; padding: 26px; color: var(--muted); text-align: center; }
.hub-chart-empty b { display: block; margin-bottom: 7px; color: var(--hub-ink); font-size: 17px; }
.hub-chart-empty span { font-size: 12px; line-height: 1.5; }
.hub-chart-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(170px, 2.2fr) 48px; gap: 13px; align-items: center; }
.hub-chart-label { min-width: 0; }
.hub-chart-label b,
.hub-chart-label span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-chart-label b { color: var(--hub-ink); font-size: 12px; }
.hub-chart-label span { color: var(--muted); font-size: 10px; }
.hub-chart-track { height: 10px; overflow: hidden; background: #ececef; border-radius: 999px; }
.hub-chart-fill { height: 100%; min-width: 6px; background: linear-gradient(90deg, var(--hub-blue), #5aaeff); border-radius: inherit; transform-origin: left; animation: hub-grow .65s ease both; }
@keyframes hub-grow { from { transform: scaleX(.08); } }
.hub-chart-value { color: var(--hub-ink); font-size: 12px; font-weight: 800; text-align: right; }

.hub-inline-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.hub-inline-status.error { color: var(--danger); }
.hub-inline-status.success { color: #087a57; }

.hub-final-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.hub-final-stat { padding: 13px; background: #f6f6f8; border-radius: 14px; }
.hub-final-stat b,
.hub-final-stat span { display: block; }
.hub-final-stat b { color: var(--hub-ink); font-size: 18px; }
.hub-final-stat span { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.hub-final-courses { display: grid; gap: 8px; margin-bottom: 18px; }
.hub-final-course { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hub-line); }
.hub-final-course:last-child { border-bottom: 0; }
.hub-final-course b,
.hub-final-course small { display: block; }
.hub-final-course b { color: var(--hub-ink); font-size: 12px; }
.hub-final-course small { color: var(--muted); font-size: 10px; }
.hub-final-course > span { flex: none; color: var(--hub-blue); font-size: 10px; font-weight: 800; }

.hub-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 8px 6px 22px;
}
.hub-section-heading h2 { margin: 5px 0 0; color: var(--hub-ink); font-size: clamp(30px, 3.5vw, 50px); line-height: 1.02; letter-spacing: -.045em; }
.hub-section-heading > p { max-width: 510px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.hub-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(250px, 304px);
  gap: clamp(20px, 2.4vw, 28px);
  align-items: start;
  justify-content: center;
  max-width: 1032px;
  margin: 0 auto;
}
.hub-community-stream { min-width: 0; }
.hub-community-discovery { min-width: 0; }
.hub-community-rail {
  position: sticky;
  top: 90px;
  min-width: 0;
  display: grid;
  gap: 14px;
  align-self: start;
}
.hub-community-rail[hidden] { display: none; }

.hub-community-search {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 7px 9px 7px 14px;
  color: var(--muted);
  background: #f5f5f7;
  border: 1px solid var(--hub-line);
  border-radius: 17px;
  box-shadow: none;
}
.hub-community-search > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.hub-community-search input,
input.hub-community-search {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--hub-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
}
input.hub-community-search {
  min-height: 50px;
  padding: 12px 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--hub-line);
  border-radius: 17px;
}
.hub-community-search input:focus { outline: none; box-shadow: none; }
.hub-community-search:focus-within { border-color: rgba(0,113,227,.44); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }
input.hub-community-search:focus { outline: none; border-color: rgba(0,113,227,.44); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }

.hub-topic-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hub-topic-chips::-webkit-scrollbar { display: none; }
.hub-topic-chip {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #5a5d64;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.hub-topic-chip:hover { color: var(--hub-blue-deep); background: #fff; border-color: rgba(0,113,227,.2); filter: none; transform: none; }
.hub-topic-chip.active,
.hub-topic-chip[aria-pressed="true"] { color: #fff; background: #1d1d1f; border-color: #1d1d1f; }
.hub-topic-chip:focus-visible { outline: 3px solid rgba(0,113,227,.2); outline-offset: 2px; }

.hub-rail-card {
  min-width: 0;
  padding: 18px;
  color: var(--hub-ink);
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 22px;
  box-shadow: none;
}
.hub-rail-card > header,
.hub-rail-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.hub-rail-card h2,
.hub-rail-card h3,
.hub-rail-card-heading b { margin: 0; color: var(--hub-ink); font-size: 13px; letter-spacing: -.015em; }
.hub-rail-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.hub-rail-card button:not(.btn-primary) { padding: 6px 8px; color: var(--hub-blue); background: transparent; border: 0; font-size: 10px; }
.hub-rail-profile-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; align-items: center; margin: 13px 0 16px; }
.hub-rail-profile-row .hub-avatar { width: 48px; height: 48px; border-radius: 16px; font-size: 11px; }
.hub-rail-profile-row b,
.hub-rail-profile-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-rail-profile-row b { color: var(--hub-ink); font-size: 12px; }
.hub-rail-profile-row span { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.hub-profile-progress { margin-bottom: 14px; }
.hub-profile-progress > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #676b73; font-size: 9.5px; }
.hub-profile-progress strong { color: var(--hub-ink); font-size: 10px; }
.hub-profile-progress > div { height: 6px; overflow: hidden; background: #e8e9ed; border-radius: 999px; }
.hub-profile-progress i { width: 0; height: 100%; display: block; background: linear-gradient(90deg, #0071e3, #5aa8f5); border-radius: inherit; transition: width .35s ease; }
.hub-rail-profile > button { width: 100%; min-height: 38px; background: #f1f6fc !important; border-radius: 12px !important; font-weight: 750; }
.hub-rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hub-rail-heading h3 { margin-top: 4px; }
.hub-rail-icon-button { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; padding: 0 !important; background: #f1f6fc !important; border-radius: 50% !important; font-size: 16px !important; }
.hub-conversation-preview { display: grid; gap: 3px; margin: 0 -6px 12px; }
.hub-conversation-preview-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }
.hub-conversation-preview-button { width: 100%; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 6px !important; color: var(--hub-ink) !important; border-radius: 12px !important; text-align: left; }
.hub-conversation-preview-button:hover { background: #f5f7fa !important; filter: none; transform: none; }
.hub-conversation-preview-button .hub-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 8px; }
.hub-conversation-preview-button b,
.hub-conversation-preview-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-conversation-preview-button b { font-size: 10.5px; }
.hub-conversation-preview-button small { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.hub-conversation-preview-button i { color: #92969f; font-size: 12px; font-style: normal; }
.hub-rail-action { width: 100%; min-height: 40px; }
.hub-rail-safety { background: linear-gradient(145deg, rgba(237,246,255,.96), rgba(255,255,255,.92)); border-color: rgba(0,113,227,.13); }
.hub-rail-safety h3 { margin: 6px 0 8px; font-size: 14px; line-height: 1.25; }
.hub-rail-list { display: grid; gap: 2px; margin: 0 -7px; }
.hub-rail-link,
.hub-rail-conversation {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  color: var(--hub-ink);
  background: transparent;
  border: 0;
  border-radius: 13px;
  text-align: left;
}
.hub-rail-link:hover,
.hub-rail-link.active,
.hub-rail-conversation:hover { background: #f5f7fa; filter: none; transform: none; }
.hub-rail-link b,
.hub-rail-link span,
.hub-rail-conversation b,
.hub-rail-conversation span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-rail-link b,
.hub-rail-conversation b { font-size: 11px; }
.hub-rail-link span,
.hub-rail-conversation span { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.hub-rail-link time,
.hub-rail-conversation time { color: #8a8d94; font-size: 8.5px; white-space: nowrap; }
.hub-rail-links { display: grid; gap: 2px; padding: 7px; }
.hub-rail-links .hub-rail-link { grid-template-columns: minmax(0, 1fr) auto; padding: 11px; }
.hub-rail-links .hub-rail-link > span { min-width: 0; }
.hub-rail-links .hub-rail-link b,
.hub-rail-links .hub-rail-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-rail-links .hub-rail-link b { font-size: 11px; }
.hub-rail-links .hub-rail-link small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.hub-rail-links .hub-rail-link i { color: #90939a; font-size: 12px; font-style: normal; }

.member-hub[data-active-view="community"] .hub-page-header { padding-bottom: 24px; }
.member-hub[data-active-view="community"] .hub-page-header {
  align-items: center;
  max-width: 1032px;
  margin: 0 auto;
  padding: 6px 0 17px;
  border-bottom: 1px solid var(--hub-line);
}
.member-hub[data-active-view="community"] .hub-page-header h1 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -.04em;
}
.member-hub[data-active-view="community"] .hub-page-header .hub-kicker,
.member-hub[data-active-view="community"] .hub-page-header p:not(.hub-kicker),
.member-hub[data-active-view="community"] .hub-live-badge { display: none; }

.hub-compose-card {
  padding: 16px 18px;
  border-color: var(--hub-line);
  border-radius: 20px;
  box-shadow: none;
}
.hub-compose-shell { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; }
.hub-compose-shell .hub-avatar { width: 42px; height: 42px; border-radius: 50%; font-size: 10px; }
.hub-compose-content { min-width: 0; }
.hub-compose-card textarea,
.hub-form-grid textarea {
  width: 100%;
  resize: vertical;
  color: var(--hub-ink);
  background: #f7f7f9;
  border: 1px solid var(--hub-line);
  border-radius: 18px;
  font: inherit;
}
.hub-compose-card textarea {
  min-height: 88px;
  padding: 6px 2px 12px;
  resize: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.55;
}
.hub-compose-card textarea:focus,
.hub-form-grid textarea:focus { outline: none; border-color: var(--hub-blue); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }
.hub-compose-card textarea:focus { box-shadow: none; }
.hub-compose-meta { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hub-line); }
.hub-compose-meta input { min-width: 0; min-height: 34px; flex: 1; padding: 6px 9px; background: #f5f5f7; border-color: transparent; border-radius: 10px; font-size: 10.5px; }
.hub-compose-meta span { flex: none; color: #8b8e95; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.hub-compose-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.hub-compose-tools { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.hub-tool-button,
.hub-poll-add-option,
.hub-poll-builder-heading button {
  min-height: 40px;
  padding: 6px 10px;
  color: var(--hub-blue);
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 750;
}
.hub-tool-button:hover,
.hub-poll-add-option:hover,
.hub-poll-builder-heading button:hover { background: #eef6ff; filter: none; transform: none; }
.hub-compose-toolbar .btn-primary { min-width: 82px; min-height: 40px; padding: 8px 15px; border-radius: 999px; }
.hub-media-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 10px; }
.hub-media-preview:empty { display: none; }
.hub-media-preview-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #f2f2f4;
  border: 1px solid var(--hub-line);
  border-radius: 14px;
}
.hub-media-preview-item img,
.hub-media-preview-item video { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: #111; }
.hub-media-preview-remove { position: absolute; top: 7px; right: 7px; width: 40px; height: 40px; min-height: 40px; padding: 0; color: #fff; background: rgba(17,17,19,.76); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: none; font-size: 18px; line-height: 1; }
.hub-media-preview-remove:hover { background: #111; filter: none; transform: none; }
.hub-media-alt { width: 100%; min-height: 34px; padding: 7px 10px; background: #fff; border: 0; border-top: 1px solid var(--hub-line); border-radius: 0; font-size: 10px; }
.hub-poll-builder { margin: 2px 0 10px; padding: 13px; background: #f7f7f9; border: 1px solid var(--hub-line); border-radius: 15px; }
.hub-poll-builder-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.hub-poll-builder-heading b { font-size: 11.5px; }
.hub-poll-builder-heading button { color: #b42331; }
.hub-poll-builder > input,
.hub-poll-option-list input { width: 100%; min-height: 38px; margin: 0; padding: 8px 11px; background: #fff; border-color: var(--hub-line); border-radius: 10px; font-size: 11px; }
.hub-poll-option-list { display: grid; gap: 6px; margin-top: 7px; }
.hub-poll-add-option { margin-top: 5px; padding-left: 2px; }
.hub-feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 4px 12px; }
.hub-feed-toolbar b { color: var(--hub-ink); font-size: 15px; letter-spacing: -.02em; }
.hub-feed-toolbar button { min-height: 34px; padding: 7px 10px; background: transparent; border-color: transparent; box-shadow: none; }
.hub-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-community-stream .hub-feed { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hub-feed-load-more { width: min(100%, 220px); min-height: 42px; display: block; margin: 16px auto 0; border-radius: 999px; }
.hub-feed-load-more[hidden] { display: none; }
.hub-feed-empty { grid-column: 1 / -1; padding: 60px 20px; color: var(--muted); text-align: center; }
.hub-post-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 20px;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.hub-community-stream .hub-post-card { min-height: 0; }
.hub-post-card:hover { border-color: var(--hub-line-strong); box-shadow: none; transform: none; }
.hub-post-card:target,
.hub-post-card.hub-post-highlight { border-color: rgba(0,113,227,.42); background: #fbfdff; box-shadow: 0 0 0 4px rgba(0,113,227,.07); }
.hub-post-author { display: flex; align-items: center; gap: 10px; }
.hub-post-author .hub-avatar { width: 40px; height: 40px; border-radius: 50%; font-size: 11px; box-shadow: 0 7px 18px rgba(17,18,23,.12); }
.hub-post-author b,
.hub-post-author span { display: block; }
.hub-post-author > div { min-width: 0; flex: 1; }
.hub-post-author b { color: var(--hub-ink); font-size: 12.5px; }
.hub-post-author span { color: var(--muted); font-size: 9.5px; }
.hub-post-author-button { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; color: inherit; background: transparent; border: 0; border-radius: 12px; box-shadow: none; text-align: left; }
.hub-post-author-button:hover { background: transparent; filter: none; transform: none; }
.hub-post-body { flex: 1; margin: 14px 0; color: var(--hub-ink-soft); font-size: 14px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.hub-post-body:empty { display: none; }
.hub-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -5px 0 15px; }
.hub-post-tag { padding: 2px 0; color: var(--hub-blue-deep); background: transparent; border-radius: 0; font-size: 9.5px; font-weight: 700; }
.hub-post-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; overflow: hidden; margin: 2px 0 14px; background: #f1f1f3; border: 1px solid var(--hub-line); border-radius: 15px; }
.hub-post-media[data-count="1"] { grid-template-columns: 1fr; }
.hub-post-media-item { min-width: 0; min-height: 180px; display: grid; place-items: center; overflow: hidden; background: #ececef; }
.hub-post-media img,
.hub-post-media video { width: 100%; height: 100%; max-height: 560px; display: block; object-fit: cover; background: #111; }
.hub-post-media[data-count="1"] .hub-post-media-item { min-height: 260px; max-height: 620px; }
.hub-media-loading { color: #81848b; font-size: 10px; }
.hub-post-poll { display: grid; gap: 7px; margin: 4px 0 14px; padding: 13px; background: #f7f7f9; border: 1px solid var(--hub-line); border-radius: 15px; }
.hub-post-poll > b { font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.hub-poll-choice { position: relative; min-height: 40px; overflow: hidden; padding: 9px 11px; color: var(--hub-ink); background: #fff; border: 1px solid var(--hub-line); border-radius: 11px; box-shadow: none; text-align: left; }
.hub-poll-choice:hover { border-color: rgba(0,113,227,.3); background: #fff; filter: none; transform: none; }
.hub-poll-choice.selected { border-color: rgba(0,113,227,.42); }
.hub-poll-choice-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; background: #e5f2ff; pointer-events: none; }
.hub-poll-choice-copy { position: relative; z-index: 1; min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 10.5px; }
.hub-poll-choice-copy > span { min-width: 0; overflow-wrap: anywhere; }
.hub-poll-choice-copy > b { flex: none; }
.hub-poll-summary { color: var(--muted); font-size: 9.5px; }
.hub-post-actions { display: flex; align-items: center; justify-content: space-between; gap: 2px; flex-wrap: nowrap; padding-top: 9px; border-top: 1px solid var(--hub-line); }
.hub-post-actions > button { min-width: 0; flex: 1; padding: 8px 6px; color: #686b72; background: transparent; border: 0; border-radius: 10px; font-size: 10px; white-space: nowrap; }
.hub-post-actions > button:hover,
.hub-post-actions > button.active { color: var(--hub-blue); background: #f1f6fc; filter: none; }
.hub-post-actions > button.liked { color: #c7254e; }
.hub-post-actions > button.bookmarked { color: var(--hub-blue-deep); }
.hub-post-menu { position: relative; flex: 0 0 auto; }
.hub-post-menu > summary { min-width: 40px; min-height: 40px; display: grid; place-items: center; padding: 7px 9px; cursor: pointer; color: #73767d; border-radius: 9px; font-size: 13px; list-style: none; text-align: center; }
.hub-post-menu > summary::-webkit-details-marker { display: none; }
.hub-post-menu[open] > summary,
.hub-post-menu > summary:hover { background: #f1f3f5; }
.hub-post-menu-list { position: absolute; z-index: 20; right: 0; top: calc(100% + 5px); min-width: 126px; display: grid; padding: 5px; background: #fff; border: 1px solid var(--hub-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20,28,44,.14); }
.hub-post-menu-list button { padding: 8px 9px; color: #4a4d53; background: transparent; border: 0; border-radius: 8px; box-shadow: none; font-size: 10px; text-align: left; }
.hub-post-menu-list button:hover { background: #f4f5f7; filter: none; transform: none; }
.hub-post-menu-list button.danger { color: #b42331; }
.hub-comments { display: grid; gap: 8px; margin-top: 13px; }
.hub-comment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; color: #3d3e43; background: #f6f6f8; border-radius: 12px; font-size: 11px; line-height: 1.45; }
.hub-comment-copy { min-width: 0; }
.hub-comment-copy b,
.hub-comment-copy span,
.hub-comment-copy time { display: block; overflow-wrap: anywhere; }
.hub-comment-copy b { color: var(--hub-ink); }
.hub-comment-copy span { margin-top: 3px; white-space: pre-wrap; }
.hub-comment-copy time { margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.hub-comment-actions { display: flex; align-items: flex-start; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.hub-comment-actions button { padding: 4px 6px; color: var(--muted); background: transparent; border: 0; font-size: 8.5px; }
.hub-comment-actions button:hover { color: var(--hub-blue); background: #eaf3ff; filter: none; }
.hub-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.hub-comment-form input { min-height: 36px; font-size: 11px; }
.hub-comment-form button { padding: 7px 10px; font-size: 10px; }

.hub-chat-card {
  padding: 16px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 68px rgba(20,28,44,.075);
}
.hub-chat-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  max-width: 680px;
  padding: 2px;
}
.hub-chat-start input { min-height: 46px; background: #f5f5f7; border-color: transparent; }
.hub-chat-start input:focus { background: #fff; border-color: rgba(0,113,227,.4); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }
.hub-chat-layout {
  height: min(670px, calc(100svh - 230px));
  min-height: 540px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 24px;
  background: rgba(250,250,252,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.hub-conversation-list {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border-right: 1px solid var(--hub-line);
  background: rgba(244,244,247,.72);
  scrollbar-color: rgba(29,29,31,.18) transparent;
}
.hub-conversation-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  margin-bottom: 2px;
  padding: 10px;
  color: var(--hub-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 15px;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hub-conversation-button:hover,
.hub-conversation-button.active { background: rgba(255,255,255,.94); border-color: rgba(29,29,31,.07); filter: none; transform: none; }
.hub-conversation-button.active { box-shadow: 0 6px 18px rgba(20,28,44,.055); }
.hub-conversation-button .hub-avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 15px rgba(17,18,23,.11); }
.hub-conversation-button b,
.hub-conversation-button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-conversation-button b { font-size: 11.5px; }
.hub-conversation-button span { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.hub-message-pane { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(255,255,255,.82); }
.hub-message-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 17px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--hub-line); }
.hub-message-heading b,
.hub-message-heading span { display: block; }
.hub-message-heading b { color: var(--hub-ink); font-size: 13px; letter-spacing: -.01em; }
.hub-message-heading span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.hub-message-safety { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.hub-message-safety button { padding: 7px 9px; font-size: 9px; }
.hub-message-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 95% 5%, rgba(0,113,227,.035), transparent 18rem),
    linear-gradient(180deg, #fafbfc, #f7f8fa);
  scrollbar-color: rgba(29,29,31,.18) transparent;
}
.hub-message-empty { margin: auto; color: var(--muted); font-size: 12px; text-align: center; }
.hub-message {
  max-width: min(76%, 520px);
  align-self: flex-start;
  padding: 10px 14px;
  color: #2e3035;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 17px 17px 17px 5px;
  box-shadow: 0 4px 15px rgba(20,28,44,.035);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hub-message.mine { align-self: flex-end; color: #fff; background: linear-gradient(145deg, #0a7aec, var(--hub-blue)); border-color: var(--hub-blue); border-radius: 17px 17px 5px 17px; box-shadow: 0 7px 18px rgba(0,113,227,.16); }
.hub-message time { display: block; margin-top: 5px; color: inherit; opacity: .58; font-size: 8px; }
.hub-message-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; background: rgba(255,255,255,.96); border-top: 1px solid var(--hub-line); }
.hub-message-compose input { min-height: 44px; padding-inline: 15px; background: #f4f4f6; border-color: transparent; border-radius: 14px; }
.hub-message-compose input:focus { background: #fff; border-color: rgba(0,113,227,.38); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }
.hub-message-compose button { min-width: 76px; border-radius: 13px; }

.hub-profile-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.hub-profile-controls-card { grid-column: 1 / -1; }
.hub-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.hub-form-grid label { margin: 0; }
.hub-form-grid label > span,
.hub-social-list label > span { display: block; margin: 0 0 6px 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.hub-form-wide { grid-column: 1 / -1; }
.hub-form-grid textarea { min-height: 110px; padding: 12px; }

.hub-avatar-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  background: linear-gradient(145deg, #f7f8fa, #f2f3f6);
  border: 1px solid var(--hub-line);
  border-radius: 21px;
}
.hub-avatar-preview {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #16171b, #4a505b);
  border: 4px solid #fff;
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(17,18,23,.16);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .02em;
}
.hub-avatar-preview-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 8px 4px 7px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.76));
  font-size: 9px;
  font-weight: 750;
  transform: translateY(100%);
  transition: transform .2s ease;
}
.hub-avatar-preview:hover .hub-avatar-preview-overlay,
.hub-avatar-preview:focus-visible .hub-avatar-preview-overlay { transform: translateY(0); }
.hub-avatar-preview:focus-visible { outline: 4px solid rgba(0,113,227,.2); outline-offset: 3px; }
.hub-avatar-editor-copy { min-width: 0; grid-column: 2; }
.hub-avatar-editor-copy > b { display: block; margin-bottom: 5px; color: var(--hub-ink); font-size: 14px; }
.hub-avatar-editor-copy > p,
.hub-avatar-editor-copy > small,
.hub-avatar-editor-copy > span { display: block; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.hub-avatar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hub-avatar-actions button { min-height: 38px; padding: 8px 11px; font-size: 10px; }
.hub-avatar-editor input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hub-avatar-editor .hub-inline-status { grid-column: 2; min-height: 0; margin: -8px 0 0; }

.hub-connections-shell {
  overflow: hidden;
  background: #f4f4f6;
  border: 1px solid var(--hub-line);
  border-radius: 23px;
}
.hub-connection-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: 5px;
  padding: 3px;
  background: rgba(118,118,128,.12);
  border-radius: 13px;
}
.hub-connection-tab {
  min-height: 38px;
  padding: 8px 12px;
  color: #62646a;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 700;
}
.hub-connection-tab:hover { color: var(--hub-ink); background: rgba(255,255,255,.5); filter: none; transform: none; }
.hub-connection-tab.active,
.hub-connection-tab[aria-selected="true"] {
  color: var(--hub-ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,28,44,.08), 0 0 0 .5px rgba(29,29,31,.08);
}
.hub-connection-tab:focus-visible { outline: 3px solid rgba(0,113,227,.2); outline-offset: 1px; }
.hub-connection-panel { padding: 14px; }
.hub-connection-panel[hidden] { display: none !important; }
.hub-connection-panel > :first-child { margin-top: 0; }
.hub-connection-panel > :last-child { margin-bottom: 0; }

.hub-provider-grid { display: grid; gap: 10px; margin-bottom: 12px; }
.hub-provider-connection {
  --provider-color: #0a66c2;
  --provider-color-deep: #084f96;
  --provider-rgb: 10,102,194;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  margin: 0;
  padding: 13px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(29,29,31,.09);
  border-radius: 17px;
  box-shadow: 0 5px 18px rgba(20,28,44,.035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hub-provider-connection::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -38px;
  width: 116px;
  height: 116px;
  background: radial-gradient(circle, rgba(var(--provider-rgb),.09), transparent 68%);
  pointer-events: none;
}
.hub-provider-connection.connected {
  border-color: rgba(var(--provider-rgb),.36);
  box-shadow: 0 10px 28px rgba(var(--provider-rgb),.075);
}
.hub-provider-connection.provider-google { --provider-color: #4285f4; --provider-color-deep: #246bd4; --provider-rgb: 66,133,244; }
.hub-provider-connection.provider-github { --provider-color: #24292f; --provider-color-deep: #0f1419; --provider-rgb: 36,41,47; }
.hub-provider-connection.provider-linkedin { --provider-color: #0a66c2; --provider-color-deep: #084f96; --provider-rgb: 10,102,194; }
.hub-provider-mark {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--provider-color), var(--provider-color-deep));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(var(--provider-rgb),.18);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.06em;
}
.hub-provider-copy { position: relative; z-index: 1; min-width: 0; }
.hub-provider-copy > span { display: block; margin-bottom: 2px; color: #565b64; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.hub-provider-copy b { display: inline-flex; align-items: center; gap: 6px; color: var(--hub-ink); font-size: 13px; }
.hub-provider-copy b::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; background: #a8adb6; border-radius: 50%; box-shadow: 0 0 0 4px rgba(168,173,182,.12); }
.hub-provider-connection.connected .hub-provider-copy b::before { background: #1e9b62; box-shadow: 0 0 0 4px rgba(30,155,98,.12); }
.hub-provider-copy small { display: block; margin-top: 4px; color: #626975; font-size: 11px; line-height: 1.45; }
.hub-provider-actions { position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; }
.hub-connect-button { min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: 10.5px; white-space: nowrap; }
.hub-connect-button:disabled {
  cursor: wait;
  opacity: .52;
  filter: saturate(.45);
  box-shadow: none;
  transform: none;
}
.hub-connect-button:disabled:hover,
.hub-connect-button:disabled:active { filter: saturate(.45); transform: none; box-shadow: none; }
.hub-provider-disclosure { margin: 0 2px 12px !important; color: #666d78 !important; font-size: 10.5px !important; line-height: 1.55 !important; }
#socialConnectionStatus { min-height: 0; margin: 0 2px 10px; }
.hub-social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hub-social-list label {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--hub-line);
  border-radius: 15px;
}
.hub-social-list input { min-height: 42px; background: #f7f7f9; border-color: transparent; }
.hub-social-list input:focus { background: #fff; border-color: rgba(0,113,227,.38); box-shadow: 0 0 0 4px rgba(0,113,227,.07); }
.hub-social-list small { display: block; margin: 5px 0 0 3px; color: #737984; font-size: 10.5px; }

.hub-wechat-row {
  --wechat: #07c160;
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 11px;
  align-items: start;
  padding: 13px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(7,193,96,.18);
  border-radius: 16px;
}
.hub-wechat-row::before {
  content: "We";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wechat);
  border-radius: 12px;
  box-shadow: 0 7px 17px rgba(7,193,96,.17);
  font-size: 10px;
  font-weight: 850;
}
.hub-wechat-row > label { min-width: 0; margin: 0; padding: 0; background: transparent; border: 0; }
.hub-wechat-row > label:first-of-type { grid-column: 2; }
.hub-wechat-row > label > span,
.hub-wechat-copy b { display: block; margin: 0 0 5px; color: var(--hub-ink); font-size: 11px; font-weight: 750; }
.hub-wechat-row small,
.hub-wechat-copy span { display: block; margin: 4px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.hub-wechat-row > label:first-of-type > input { width: 100%; min-height: 40px; }
.hub-wechat-row > .hub-inline-toggle { display: flex; align-items: flex-start; gap: 8px; margin-top: 5px; padding-top: 10px; border-top: 1px solid rgba(7,193,96,.12); }
.hub-wechat-row > .hub-inline-toggle input { width: 17px; height: 17px; min-height: 0; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--wechat); }
.hub-wechat-row > .hub-inline-toggle em { color: #5e666f; font-size: 9.5px; font-style: normal; line-height: 1.45; }
.hub-wechat-row .hub-toggle-label { min-height: 38px; margin: 0 !important; padding: 7px 9px; background: #f6f7f8; border-radius: 11px; }
.hub-toggle-label { display: flex !important; align-items: center; gap: 10px; min-height: 44px; margin-top: 19px !important; }
.hub-toggle-label input { width: 18px; height: 18px; accent-color: var(--hub-blue); }
.hub-toggle-label span { margin: 0 !important; color: var(--hub-ink) !important; font-size: 11px !important; }
.hub-profile-save { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 20px; }
.hub-profile-save .hub-inline-status { flex: 1; margin: 0; }

.hub-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(20,22,28,.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hub-profile-preview {
  position: relative;
  width: min(540px, 100%);
  padding: 34px;
  color: var(--hub-ink);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 30px;
  box-shadow: 0 32px 100px rgba(7,14,28,.26);
}
.hub-profile-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #0a2742;
  background: rgba(235,246,253,.92);
  border: 1px solid rgba(10,39,66,.16);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(6,26,48,.08), inset 0 1px 0 rgba(255,255,255,.92);
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hub-profile-preview-close svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  pointer-events: none;
}
.hub-profile-preview-close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hub-profile-preview-close:hover {
  color: #fff;
  background: #0a2742;
  border-color: #0a2742;
  box-shadow: 0 10px 26px rgba(6,26,48,.2);
  transform: translateY(-1px);
}
.hub-profile-preview-close:active { transform: scale(.96); }
.hub-profile-preview-close:focus-visible {
  outline: 3px solid rgba(97,201,234,.58);
  outline-offset: 3px;
}
.hub-profile-preview-avatar { position: relative; width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; margin-bottom: 20px; color: #fff; background: linear-gradient(145deg, #101114, #4c5665); border-radius: 21px; font-size: 18px; font-weight: 800; }
.hub-profile-preview h2 { margin: 5px 0 4px; font-size: 30px; letter-spacing: -.04em; }
.hub-profile-preview-meta { margin: 0; color: var(--muted); font-size: 12px; }
.hub-profile-preview-bio { margin: 22px 0; color: #36373c; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.hub-profile-preview-interests,
.hub-profile-preview-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-profile-preview-interests span { padding: 6px 9px; color: #30557a; background: #edf5fc; border-radius: 999px; font-size: 10px; font-weight: 700; }
.hub-profile-preview-section { margin-top: 20px; }
.hub-profile-preview-label { margin: 0; color: #686e78; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.hub-profile-preview-connections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hub-profile-connection-badge { --badge-color: #0a66c2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #07539c; background: #eaf4ff; border: 1px solid #cfe5fa; border-radius: 11px; font-size: 11px; font-weight: 750; }
.hub-profile-connection-badge::before { content: attr(data-mark); width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: var(--badge-color); border-radius: 5px; font-size: 8px; font-weight: 850; letter-spacing: -.05em; }
.hub-profile-connection-badge[data-provider="google"] { --badge-color: #4285f4; }
.hub-profile-connection-badge[data-provider="github"] { --badge-color: #24292f; }
.hub-profile-connection-badge[data-provider="linkedin_oidc"] { --badge-color: #0a66c2; }
.hub-profile-preview-links { margin-top: 8px; }
.hub-profile-preview-links a,
.hub-profile-wechat-copy { min-height: 36px; display: inline-flex; align-items: center; padding: 8px 11px; color: var(--hub-blue); background: #f1f6fc; border: 0; border-radius: 11px; box-shadow: none; font-size: 11px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.hub-profile-preview-links a:hover { color: var(--hub-blue-deep); background: #e8f2fd; }
.hub-profile-wechat-copy { color: #087841; background: #ebf9f2; }
.hub-profile-wechat-copy:hover { color: #056a38; background: #dff5e9; filter: none; transform: none; }
.hub-profile-preview-avatar > span { position: relative; z-index: 0; }
.hub-profile-preview-avatar > img { position: absolute; inset: 0; z-index: 1; }
.hub-profile-preview-note { margin: 20px 0 0; color: #6d737d; font-size: 11px; line-height: 1.55; }
.hub-profile-message-button { min-height: 42px; margin-top: 22px; }
.hub-action-dialog {
  width: min(470px, 100%);
  padding: 30px;
  color: var(--hub-ink);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 28px;
  box-shadow: 0 32px 100px rgba(7,14,28,.28);
}
.hub-action-dialog h2 { margin: 6px 0 10px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.hub-action-dialog > p:not(.hub-kicker) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hub-action-dialog textarea { width: 100%; min-height: 115px; margin-top: 18px; padding: 13px; resize: vertical; color: var(--hub-ink); background: #f6f6f8; border: 1px solid var(--hub-line); border-radius: 15px; font: inherit; }
.hub-action-dialog textarea:focus { outline: none; border-color: var(--hub-blue); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }
.hub-action-buttons { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.hub-action-buttons .danger { background: #c93442; }

@media (max-width: 1180px) {
  .hub-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-overview-grid { grid-template-columns: 1fr; }
  .hub-final-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 18px; align-items: start; }
  .hub-final-card .hub-card-heading { grid-column: 1 / -1; }
  .hub-community-layout { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hub-community-stream { display: contents; }
  .hub-community-discovery { order: 1; }
  .hub-compose-card { order: 2; }
  .hub-community-rail { position: static; order: 3; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .hub-community-rail > :not(.hub-rail-links) { display: none; }
  .hub-community-rail > .hub-rail-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-feed-toolbar { order: 4; }
  .hub-feed { order: 5; }
  .hub-feed-load-more { order: 6; }
  .hub-profile-grid { grid-template-columns: 1fr; }
  .hub-profile-controls-card { grid-column: auto; }
}

@media (max-width: 960px) {
  .member-hub { padding: 16px; }
  .hub-shell { grid-template-columns: 1fr; }
  .hub-sidebar { position: relative; top: auto; height: auto; min-height: 0; overflow: visible; padding: 12px; border-radius: 22px; }
  .hub-member-card { padding: 4px 160px 12px 5px; }
  .hub-navigation { grid-template-columns: repeat(3, minmax(132px, 1fr)); overflow-x: auto; margin: 12px 0 4px; padding-bottom: 4px; }
  .hub-sidebar-note { display: none; }
  .hub-back-button { width: auto; position: absolute; right: 30px; top: 30px; margin: 0; }
  .hub-page-header { padding-top: 12px; }
  .hub-feed { grid-template-columns: 1fr; }
  .hub-chat-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .hub-profile-grid { grid-template-columns: 1fr; }
  .hub-profile-controls-card { grid-column: auto; }
}

@media (max-width: 700px) {
  .member-hub { padding: 10px; }
  .hub-sidebar { border-radius: 20px; }
  .hub-member-card { padding-right: 118px; }
  .hub-back-button { right: 22px; top: 22px; padding: 8px 10px; font-size: 11px; }
  .hub-page-header { display: block; padding: 14px 5px 24px; }
  .member-hub[data-active-view="community"] .hub-page-header h1 { font-size: clamp(26px, 8vw, 34px); }
  .hub-live-badge { width: max-content; margin-top: 14px; }
  .hub-metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hub-metric-card { min-height: 135px; padding: 16px; border-radius: 19px; }
  .hub-metric-card > b { margin-top: 15px; font-size: 28px; }
  .hub-card { padding: 18px; border-radius: 22px; }
  .hub-card-heading { display: block; }
  .hub-card-heading p { max-width: none; margin: 9px 0 0 39px; text-align: left; }
  .hub-filter-row { grid-template-columns: 1fr; }
  .hub-chart-row { grid-template-columns: 105px 1fr 42px; gap: 8px; }
  .hub-final-card { display: block; }
  .hub-section-heading { display: block; padding: 12px 5px 20px; }
  .hub-section-heading > p { margin-top: 12px; }
  .hub-compose-actions,
  .hub-chat-start,
  .hub-comment-form { grid-template-columns: 1fr; }
  .hub-community-rail { grid-template-columns: 1fr; }
  .hub-compose-card { padding: 14px; }
  .hub-compose-shell { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .hub-compose-shell .hub-avatar { width: 36px; height: 36px; }
  .hub-compose-toolbar { align-items: flex-end; }
  .hub-compose-tools { gap: 1px; }
  .hub-tool-button,
  .hub-poll-add-option,
  .hub-poll-builder-heading button,
  .hub-compose-toolbar .btn-primary { min-height: 42px; }
  .hub-tool-button { padding-inline: 8px; }
  .hub-media-preview-remove { width: 42px; height: 42px; min-height: 42px; }
  .hub-post-card { padding: 15px; border-radius: 17px; }
  .hub-post-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 42px; overflow: visible; }
  .hub-post-actions > button { width: 100%; min-width: 0; min-height: 42px; overflow: hidden; text-overflow: ellipsis; }
  .hub-post-menu { width: 42px; }
  .hub-post-menu > summary { width: 42px; min-width: 42px; min-height: 42px; }
  .hub-post-media-item { min-height: 130px; }
  .hub-post-media[data-count="1"] .hub-post-media-item { min-height: 210px; }
  .hub-community-search { margin-bottom: 10px; }
  .hub-topic-chips { margin-inline: -2px; padding-bottom: 3px; }
  .hub-rail-card { padding: 16px; border-radius: 19px; }
  .hub-comment { grid-template-columns: 1fr; }
  .hub-comment-actions { justify-content: flex-start; }
  .hub-post-actions .hub-post-report { margin-left: 0; }
  .hub-chat-card { padding: 10px; border-radius: 22px; }
  .hub-chat-layout { height: auto; min-height: 680px; grid-template-columns: 1fr; grid-template-rows: 170px minmax(0, 1fr); border-radius: 19px; }
  .hub-conversation-list { display: flex; gap: 5px; padding: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hub-line); }
  .hub-conversation-button { width: min(230px, 78vw); min-width: min(230px, 78vw); margin: 0; }
  .hub-message-list { min-height: 360px; padding: 15px; }
  .hub-message { max-width: 88%; }
  .hub-form-grid { grid-template-columns: 1fr; }
  .hub-form-wide { grid-column: auto; }
  .hub-avatar-editor { grid-template-columns: 86px minmax(0, 1fr); padding: 14px; }
  .hub-avatar-preview { width: 80px; height: 80px; border-radius: 25px; }
  .hub-avatar-editor-copy { grid-column: 2; }
  .hub-avatar-editor .hub-inline-status { grid-column: 2; margin-top: -5px; }
  .hub-message-heading { align-items: flex-start; }
  .hub-message-safety { flex-wrap: wrap; }
  .hub-profile-save { align-items: stretch; flex-direction: column; }
  .hub-profile-save button { width: 100%; }
  .hub-provider-connection { grid-template-columns: 44px minmax(0, 1fr); }
  .hub-provider-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .hub-provider-actions button { width: 100%; }
  .hub-social-list { grid-template-columns: 1fr; }
  .hub-wechat-row { grid-template-columns: 40px minmax(0, 1fr); }
  .hub-wechat-row > .hub-inline-toggle { grid-column: 2; }
}

@media (max-width: 430px) {
  .hub-navigation { grid-template-columns: repeat(3, 116px); }
  .hub-nav-button { grid-template-columns: 24px 1fr; padding-inline: 9px; }
  .hub-avatar-button { width: 48px; height: 48px; flex-basis: 48px; }
  .hub-avatar-button .hub-avatar { width: 44px; height: 44px; }
  .hub-metric-grid { grid-template-columns: 1fr; }
  .hub-metric-card { min-height: 116px; }
  .hub-final-summary { grid-template-columns: 1fr; }
  .hub-chart-row { grid-template-columns: 1fr 45px; }
  .hub-chart-label { grid-column: 1 / -1; }
  .hub-avatar-editor { grid-template-columns: 1fr; text-align: center; }
  .hub-avatar-preview { margin: 0 auto; }
  .hub-avatar-editor-copy,
  .hub-avatar-editor .hub-inline-status { grid-column: 1; }
  .hub-avatar-actions { justify-content: center; }
  .hub-connection-tabs { grid-template-columns: 1fr; }
  .hub-provider-connection { padding: 12px; }
  .hub-message-heading { display: grid; }
  .hub-message-safety { justify-content: flex-start; }
  .hub-message-compose { grid-template-columns: 1fr; }
  .hub-message-compose button { width: 100%; }
  .hub-media-preview { grid-template-columns: 1fr; }
  .hub-compose-meta { align-items: flex-end; }
  .hub-compose-meta span { font-size: 8.5px; }
  .hub-post-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) 42px; }
  .hub-post-actions > button:nth-child(1) { grid-column: 1; grid-row: 1; }
  .hub-post-actions > button:nth-child(2) { grid-column: 2; grid-row: 1; }
  .hub-post-actions > button:nth-child(3) { grid-column: 1; grid-row: 2; }
  .hub-post-actions > button:nth-child(4) { grid-column: 2; grid-row: 2; }
  .hub-post-actions > .hub-post-menu { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-view,
  .hub-chart-fill { animation: none !important; }
  .hub-post-card,
  .hub-nav-button,
  .hub-topic-chip,
  .hub-conversation-button { transition: none !important; }
}

@media print {
  #memberHub { display: none !important; }
}

/* --------------------------------------------------------------------------
   Cinematic information landscape
   The Hub reads as one continuous scene.  Light, type and quiet rules group
   information; hard containers remain only where they communicate an action,
   editable field, message, or modal boundary.
   -------------------------------------------------------------------------- */

body.hub-active .member-hub {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

body.hub-active .member-hub::before,
body.hub-active .member-hub::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: min(62vw, 880px);
  aspect-ratio: 1.6;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .2;
  pointer-events: none;
}

body.hub-active .member-hub::before {
  top: 18vh;
  right: -18vw;
  background: radial-gradient(ellipse, rgba(57, 120, 212, .72), transparent 70%);
}

body.hub-active .member-hub::after {
  bottom: -22vh;
  left: -20vw;
  background: radial-gradient(ellipse, rgba(233, 184, 76, .42), transparent 72%);
}

/* The account and destination rail belongs to the navy field, not a capsule. */
.member-hub .hub-sidebar {
  padding: 8px 2px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(139, 216, 255, .18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.member-hub .hub-navigation {
  border-bottom-color: transparent;
  background: transparent;
}

.member-hub .hub-nav-button {
  background: transparent;
  border-radius: 0;
}

.member-hub .hub-nav-button:hover,
.member-hub .hub-nav-button.active,
.member-hub .hub-nav-button[aria-current="page"] {
  background: transparent;
  box-shadow: none;
}

/* Hero photography dissolves into the night field instead of ending at a
   visible crop.  The mask is intentionally asymmetric, like a film dissolve. */
.member-hub .hub-hero-art {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: auto;
  -webkit-mask-image: radial-gradient(ellipse 94% 90% at 54% 48%, #000 48%, rgba(0, 0, 0, .96) 62%, rgba(0, 0, 0, .52) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 90% at 54% 48%, #000 48%, rgba(0, 0, 0, .96) 62%, rgba(0, 0, 0, .52) 80%, transparent 100%);
  animation: hub-cinema-drift 14s ease-in-out infinite alternate;
}

.member-hub .hub-hero-art::after {
  inset: -2%;
  background:
    linear-gradient(108deg, rgba(4, 17, 31, .42), transparent 35% 72%, rgba(4, 17, 31, .35)),
    radial-gradient(circle at 75% 28%, rgba(139, 216, 255, .16), transparent 36%);
}

.member-hub .hub-hero-art img {
  transform: scale(1.035);
  animation: hub-cinema-image 18s cubic-bezier(.42, 0, .24, 1) infinite alternate;
}

@keyframes hub-cinema-drift {
  from { transform: translate3d(-5px, 4px, 0) rotate(-.25deg); }
  to { transform: translate3d(8px, -7px, 0) rotate(.3deg); }
}

@keyframes hub-cinema-image {
  from { transform: scale(1.035) translate3d(-.7%, .3%, 0); }
  to { transform: scale(1.075) translate3d(.9%, -.6%, 0); }
}

/* Cream light washes replace the remaining large page cards. */
.member-hub .hub-view[data-hub-view="overview"],
.member-hub .hub-view[data-hub-view="messages"],
.member-hub .hub-view[data-hub-view="profile"] {
  padding: clamp(34px, 5vw, 72px) clamp(28px, 5.5vw, 76px);
  background: linear-gradient(90deg,
    transparent 0,
    rgba(248, 245, 237, .72) 3%,
    rgba(255, 253, 248, .985) 10%,
    rgba(255, 253, 248, .985) 90%,
    rgba(248, 245, 237, .72) 97%,
    transparent 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-hub .hub-view[data-hub-view="overview"] :is(.hub-card, .hub-metric-card),
.member-hub .hub-view[data-hub-view="profile"] .hub-card,
.member-hub .hub-view[data-hub-view="messages"] .hub-chat-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Community is a journal laid over a broad pool of light. */
.member-hub[data-active-view="community"] .hub-community-stream {
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(28px, 4vw, 54px) clamp(26px, 5vw, 66px);
  overflow: visible;
  color: var(--hub-editorial-ink, #071a2e);
  background: linear-gradient(90deg,
    transparent 0,
    rgba(248, 245, 237, .78) 4%,
    rgba(255, 253, 248, .985) 12%,
    rgba(255, 253, 248, .985) 88%,
    rgba(248, 245, 237, .76) 96%,
    transparent 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-hub[data-active-view="community"] .hub-community-discovery,
.member-hub[data-active-view="community"] .hub-compose-card,
.member-hub[data-active-view="community"] .hub-feed-toolbar,
.member-hub[data-active-view="community"] .hub-post-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-hub[data-active-view="community"] .hub-community-discovery {
  padding: 0 0 clamp(18px, 2vw, 26px);
  overflow: visible;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
}

.member-hub[data-active-view="community"] .hub-community-search {
  min-height: 54px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(7, 29, 50, .15);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(7, 29, 50, .045);
}

.member-hub[data-active-view="community"] .hub-topic-chips {
  gap: clamp(18px, 2.5vw, 32px);
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.member-hub[data-active-view="community"] .hub-topic-chip {
  min-height: 40px;
  padding: 8px 0;
  color: #667583;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.member-hub[data-active-view="community"] .hub-topic-chip:hover,
.member-hub[data-active-view="community"] .hub-topic-chip.active,
.member-hub[data-active-view="community"] .hub-topic-chip[aria-pressed="true"] {
  color: var(--hub-editorial-ink, #071a2e);
  background: transparent;
  border-color: var(--hub-editorial-gold, #e9b84c);
  box-shadow: none;
}

.member-hub[data-active-view="community"] .hub-compose-card {
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
}

.member-hub[data-active-view="community"] .hub-compose-card::before { display: none; }

.member-hub[data-active-view="community"] .hub-feed-toolbar {
  min-height: 0;
  margin: 0;
  padding: 6px 0 15px;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
}

.member-hub[data-active-view="community"] .hub-feed-toolbar b {
  font-size: clamp(21px, 2.3vw, 30px);
  letter-spacing: -.04em;
}

.member-hub[data-active-view="community"] .hub-feed-toolbar button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.member-hub[data-active-view="community"] .hub-post-card {
  padding: clamp(24px, 3.2vw, 42px) 0;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
}

.member-hub[data-active-view="community"] .hub-post-card:hover {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38) 16% 84%, transparent);
  border-color: var(--hub-editorial-line, rgba(7, 29, 50, .13));
}

.member-hub[data-active-view="community"] .hub-post-card:target,
.member-hub[data-active-view="community"] .hub-post-card.hub-post-highlight {
  background: linear-gradient(90deg, transparent, rgba(225, 240, 255, .78) 12% 88%, transparent);
  box-shadow: none;
}

.member-hub[data-active-view="community"] .hub-post-media {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 98% 94% at center, #000 68%, rgba(0, 0, 0, .92) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 98% 94% at center, #000 68%, rgba(0, 0, 0, .92) 82%, transparent 100%);
}

.member-hub[data-active-view="community"] .hub-post-media-item {
  background: transparent;
}

.member-hub[data-active-view="community"] .hub-community-rail {
  padding: clamp(24px, 3vw, 38px);
  color: var(--hub-editorial-ink, #071a2e);
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 253, 248, .94) 12%,
    rgba(255, 253, 248, .98) 86%,
    transparent);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-hub[data-active-view="community"] .hub-rail-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Messages use a split editorial column.  Only message bubbles and the input
   remain enclosed because those boundaries communicate authorship and action. */
.member-hub .hub-chat-card {
  padding: 0;
  overflow: visible;
}

.member-hub .hub-chat-layout {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-hub .hub-conversation-list,
.member-hub .hub-message-pane,
.member-hub .hub-message-heading,
.member-hub .hub-message-compose {
  background: transparent;
}

.member-hub .hub-conversation-list {
  padding: 8px clamp(14px, 2vw, 24px) 8px 0;
  border-right: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
}

.member-hub .hub-conversation-button {
  border: 0;
  border-radius: 0;
}

.member-hub .hub-conversation-button:hover,
.member-hub .hub-conversation-button.active {
  background: linear-gradient(90deg, rgba(226, 239, 250, .72), transparent);
  border: 0;
  box-shadow: inset 3px 0 0 #2f6df6;
}

.member-hub .hub-message-heading { padding-inline: clamp(18px, 3vw, 32px); }

.member-hub .hub-message-list {
  padding-inline: clamp(18px, 3vw, 36px);
  background:
    radial-gradient(circle at 92% 8%, rgba(47, 109, 246, .06), transparent 19rem),
    transparent;
}

.member-hub .hub-message-compose {
  padding: 14px clamp(18px, 3vw, 32px) 4px;
}

/* Profile information becomes a sequence of editorial rows. */
.member-hub .hub-avatar-editor {
  margin-bottom: clamp(26px, 4vw, 42px);
  padding: 0 0 clamp(24px, 3vw, 34px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
  border-radius: 0;
}

.member-hub .hub-connections-shell,
.member-hub .hub-connection-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.member-hub .hub-connection-tabs {
  gap: clamp(22px, 3vw, 40px);
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
  border-radius: 0;
}

.member-hub .hub-connection-tab {
  position: relative;
  padding-inline: 0;
  background: transparent;
  border-radius: 0;
}

.member-hub .hub-connection-tab.active,
.member-hub .hub-connection-tab[aria-selected="true"] {
  color: var(--hub-editorial-ink, #071a2e);
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--hub-editorial-gold, #e9b84c);
}

.member-hub .hub-provider-grid { gap: 0; }

.member-hub .hub-provider-connection {
  padding: 18px 2px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
  border-radius: 0;
  box-shadow: none;
}

.member-hub .hub-provider-connection::after { display: none; }

.member-hub .hub-social-list label,
.member-hub .hub-wechat-row {
  padding: 14px 0 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
  border-radius: 0;
}

/* Dark insight blocks lose their perimeter and read as pools of night. */
.member-hub .hub-insight-controls,
.member-hub .hub-final-overview {
  padding: clamp(36px, 4vw, 52px) clamp(28px, 3.5vw, 44px);
  background: radial-gradient(ellipse 94% 88% at 45% 46%,
    rgba(10, 40, 67, .99) 0 56%,
    rgba(6, 25, 43, .94) 72%,
    rgba(6, 25, 43, .28) 91%,
    transparent 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 960px) {
  .member-hub .hub-sidebar {
    padding: 8px 0 14px;
    box-shadow: inset 0 -1px 0 rgba(139, 216, 255, .18);
  }

  .member-hub[data-active-view="community"] .hub-community-stream,
  .member-hub .hub-view[data-hub-view="overview"],
  .member-hub .hub-view[data-hub-view="messages"],
  .member-hub .hub-view[data-hub-view="profile"] {
    padding-inline: clamp(20px, 5vw, 46px);
  }
}

@media (max-width: 700px) {
  .member-hub .hub-hero-art {
    -webkit-mask-image: radial-gradient(ellipse 98% 92% at center, #000 48%, rgba(0, 0, 0, .9) 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 98% 92% at center, #000 48%, rgba(0, 0, 0, .9) 70%, transparent 100%);
  }

  .member-hub[data-active-view="community"] .hub-community-stream,
  .member-hub .hub-view[data-hub-view="overview"],
  .member-hub .hub-view[data-hub-view="messages"],
  .member-hub .hub-view[data-hub-view="profile"] {
    padding: 24px 18px;
    background: linear-gradient(90deg,
      rgba(248, 245, 237, .78),
      rgba(255, 253, 248, .99) 5% 95%,
      rgba(248, 245, 237, .78));
  }

  .member-hub .hub-conversation-list {
    padding: 6px 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--hub-editorial-line, rgba(7, 29, 50, .13));
  }

  .member-hub .hub-insight-controls,
  .member-hub .hub-final-overview {
    padding: 34px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-hub .hub-hero-art,
  .member-hub .hub-hero-art img {
    animation: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .member-hub .hub-hero-art {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .member-hub .hub-sidebar,
  .member-hub .hub-view,
  .member-hub .hub-community-stream,
  .member-hub .hub-post-card,
  .member-hub .hub-provider-connection {
    border-color: CanvasText;
  }
}
