:root {
  --bg: #070707;
  --panel: #101010;
  --panel-2: #171717;
  --panel-3: #202020;
  --text: #f6f2ea;
  --soft: #d6cfc3;
  --muted: #a19a90;
  --faint: #716b64;
  --line: rgba(255, 255, 255, 0.12);
  --red: #df3d2f;
  --orange: #ef8d32;
  --blue: #3d7dff;
  --green: #84c56e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 260px),
    radial-gradient(circle at 68% 0%, rgba(239, 141, 50, 0.12), transparent 360px),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

p,
li,
small,
span {
  overflow-wrap: break-word;
}

.community-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto minmax(11rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: rgba(7, 7, 7, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.community-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.community-brand strong,
.community-brand small {
  display: block;
}

.community-brand small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.community-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.community-nav a,
.nav-tab {
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.55rem 0.78rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-tab.active,
.community-nav a:hover,
.nav-tab:hover {
  background: var(--panel-3);
  color: var(--text);
}

.account-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 800;
}

.account-avatar,
.mini-avatar,
.member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.account-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.8rem;
}

.community-shell {
  width: min(100%, 1500px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.15rem;
  min-width: 0;
  overflow-x: hidden;
}

.group-panel,
.workspace,
.account-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  box-shadow: var(--shadow);
}

.group-panel {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  overflow: hidden;
}

.group-cover {
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(223, 61, 47, 0.28), transparent 45%),
    linear-gradient(180deg, #1d1d1d, #0f0f0f);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.blue {
  color: var(--blue);
}

.group-cover h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 0.96;
  max-width: 100%;
}

.group-cover p,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}

.group-cover p {
  margin: 1rem 0 0;
}

.group-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.group-stats div {
  min-height: 5rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.85rem;
  border-right: 1px solid var(--line);
}

.group-stats div:last-child {
  border-right: 0;
}

.group-stats strong {
  font-size: 1.15rem;
}

.group-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.join-button,
.primary-action {
  min-height: 2.8rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.join-button {
  width: calc(100% - 2rem);
  margin: 1rem 1rem 0.5rem;
}

.fine-print {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.82rem;
}

.side-section {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.side-section h2 {
  margin: 0 0 0.75rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: var(--faint);
}

.space-chip {
  width: 100%;
  min-height: 2.55rem;
  margin-bottom: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--soft);
  text-align: left;
  padding: 0.55rem 0.7rem;
}

.space-chip:hover,
.space-chip.active {
  border-color: var(--line);
  background: var(--panel-2);
}

.starter-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--soft);
}

.starter-list li {
  margin: 0.35rem 0;
  line-height: 1.45;
}

.starter-list a {
  color: var(--soft);
  font-weight: 850;
}

.starter-list a:hover {
  color: var(--orange);
}

.starter-list .path-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.onboarding-mini {
  display: grid;
  gap: 0.7rem;
}

.onboarding-mini label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.route-buttons {
  display: grid;
  gap: 0.45rem;
}

.route-buttons a {
  min-height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}

.workspace {
  min-width: 0;
  overflow: hidden;
}

.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.workspace-top h2,
.classroom-hero h2,
.members-toolbar h2,
.chat-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.workspace-actions button,
.feed-actions button,
.reply-box button,
.resource-row button,
.resource-row a,
.member-card button,
.profile-snapshot button,
.proof-template-card button,
.chat-title button,
.modal-actions button,
.icon-button {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.42rem;
  background: var(--panel-2);
  color: var(--text);
  padding: 0.52rem 0.78rem;
  font-weight: 800;
}

.tab-panel {
  display: none;
  padding: 1.25rem;
}

.tab-panel.active {
  display: block;
}

.composer,
.feed-card,
.course-theater,
.classroom-hero,
.sprint-outcomes article,
.module-card,
.workflow-preview,
.workflow-card,
.support-stack article,
.resource-row article,
.member-readiness article,
.member-card,
.member-empty,
.progress-snapshot article,
.proof-rules article,
.support-brief,
.support-cards article,
.chat-window,
.thread-list,
.thread-note,
.chat-template-row,
.community-pulse,
.portal-brief,
.portal-ladder article,
.launch-board,
.first-post-kit,
.template-card,
.event-card,
.milestone-card,
.empty-board,
.about-card {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.045);
}

.course-theater {
  margin-bottom: 1.25rem;
  padding: clamp(1rem, 2.4vw, 1.45rem);
  background:
    radial-gradient(circle at 82% 0%, rgba(37, 99, 235, 0.28), transparent 30rem),
    radial-gradient(circle at 12% 18%, rgba(240, 120, 34, 0.2), transparent 26rem),
    linear-gradient(180deg, #111827, #07090e 70%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(5, 8, 14, 0.28);
}

.course-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.8fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.course-spotlight h2 {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.course-spotlight p {
  max-width: 39rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.course-actions button {
  min-height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.course-actions .primary-action {
  border-color: var(--field-orange);
  background: var(--field-orange);
}

.spotlight-player {
  position: relative;
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  padding: 1.2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.05), rgba(4, 8, 16, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 72% 25%, rgba(37, 99, 235, 0.9), transparent 28%),
    linear-gradient(135deg, #08354b, #101827 58%, #030508);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.spotlight-player strong {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 950;
}

.spotlight-player small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.28rem;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1rem solid #161616;
}

.play-button.small {
  width: 2.7rem;
  height: 2.7rem;
}

.play-button.small::before {
  border-top-width: 0.45rem;
  border-bottom-width: 0.45rem;
  border-left-width: 0.64rem;
}

.continue-strip {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) minmax(8rem, 14rem) auto;
  gap: 0.85rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  padding: 0.78rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
}

.continue-strip span,
.continue-strip small,
.rail-head span,
.theater-note {
  color: rgba(255, 255, 255, 0.62);
}

.continue-strip strong,
.rail-head h3,
.lesson-poster h4 {
  color: #fff;
}

.mini-progress {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--field-orange);
}

.lesson-rail {
  margin-top: 1.2rem;
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rail-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.lesson-row {
  display: grid;
  grid-auto-columns: minmax(14.5rem, 1fr);
  grid-auto-flow: column;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.lesson-poster {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.poster-art {
  position: relative;
  min-height: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.72rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.02), rgba(4, 8, 16, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 25% 18%, rgba(37, 99, 235, 0.85), transparent 28%),
    linear-gradient(135deg, #0b4251, #111827 58%, #030508);
  transition: transform 180ms ease, border-color 180ms ease;
}

.lesson-poster:nth-child(2) .poster-art {
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.02), rgba(4, 8, 16, 0.84)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 72% 18%, rgba(240, 120, 34, 0.88), transparent 29%),
    linear-gradient(135deg, #47340d, #12314a 58%, #030508);
}

.lesson-poster:nth-child(3) .poster-art {
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.02), rgba(4, 8, 16, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 52% 20%, rgba(22, 160, 93, 0.82), transparent 30%),
    linear-gradient(135deg, #0f3b2c, #102235 58%, #030508);
}

.poster-art::before {
  content: attr(data-poster);
  position: absolute;
  left: 0.75rem;
  top: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.lesson-poster:hover .poster-art {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.01);
}

.lesson-poster h4 {
  margin: 0;
  font-size: 1rem;
}

.lesson-poster p {
  min-height: 2.7rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lock-dot {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.32rem 0.58rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.theater-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.upgrade-box p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.plain-rules-box {
  background: rgba(239, 141, 50, 0.06);
}

.plain-rules-box li::marker {
  color: var(--orange);
  font-weight: 900;
}

.portal-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  margin: 1.25rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(223, 61, 47, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.portal-copy h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

.portal-copy p {
  max-width: 44rem;
  color: var(--soft);
  line-height: 1.58;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.portal-actions a,
.portal-actions button {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel-2);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  font-weight: 900;
}

.portal-actions .portal-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.portal-ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.portal-ladder article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 11.5rem;
  padding: 0.85rem;
}

.portal-ladder span,
.launch-board span {
  width: fit-content;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-ladder strong {
  color: #fff;
  line-height: 1.15;
}

.portal-ladder p,
.launch-board p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.launch-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.16);
}

.launch-board div {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
}

.community-pulse {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(135deg, rgba(223, 61, 47, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.community-pulse h3,
.community-pulse p {
  margin: 0;
}

.community-pulse p {
  max-width: 48rem;
  color: var(--soft);
  line-height: 1.55;
}

.first-post-kit {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.first-post-kit h3,
.first-post-kit p {
  margin: 0;
}

.first-post-kit p {
  color: var(--soft);
  line-height: 1.55;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.template-card {
  display: grid;
  min-height: 11rem;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem;
  color: var(--text);
  text-align: left;
}

.template-card:hover {
  border-color: rgba(239, 141, 50, 0.65);
}

.template-card span {
  width: fit-content;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-card strong {
  line-height: 1.15;
}

.template-card small {
  color: var(--muted);
  line-height: 1.45;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.category-chip {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.category-chip.active,
.category-chip:hover {
  border-color: rgba(239, 141, 50, 0.65);
  color: var(--text);
}

.feed-card.pinned {
  border-color: rgba(239, 141, 50, 0.35);
}

.empty-state-card {
  border-style: dashed;
}

.composer {
  padding: 1rem;
  margin-bottom: 1rem;
}

.composer-head,
.feed-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.composer-head span:not(.account-avatar),
.feed-meta span:not(.mini-avatar) {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #090909;
  color: var(--text);
  padding: 0.75rem 0.85rem;
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: color-mix(in srgb, var(--orange) 70%, white 30%);
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.composer-actions select {
  max-width: 15rem;
}

.composer-actions .primary-action,
.message-composer .primary-action {
  padding: 0 1rem;
}

.feed {
  display: grid;
  gap: 0.9rem;
}

.feed-card {
  padding: 1rem;
}

.mini-avatar {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 0.78rem;
}

.mini-avatar.blue {
  background: var(--blue);
}

.mini-avatar.orange {
  background: var(--orange);
  color: #191006;
}

.feed-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.feed-card p {
  color: var(--soft);
  line-height: 1.6;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.feed-actions button.liked {
  border-color: rgba(132, 197, 110, 0.6);
  color: var(--green);
}

.reply-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.reply-box[hidden] {
  display: none;
}

.classroom-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(61, 125, 255, 0.15), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.classroom-hero p {
  max-width: 54rem;
  color: var(--soft);
  line-height: 1.6;
}

.sprint-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.sprint-outcomes article {
  min-height: 9rem;
  padding: 1rem;
}

.sprint-outcomes span,
.workflow-preview span,
.support-stack span {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sprint-outcomes strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.sprint-outcomes p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.module-card {
  min-height: 20rem;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.72rem;
}

.module-card.unlocked {
  border-color: rgba(61, 125, 255, 0.45);
}

.module-card.foundation {
  background:
    linear-gradient(135deg, rgba(132, 197, 110, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.module-card.focus {
  border-color: rgba(61, 125, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(61, 125, 255, 0.15), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.module-card span {
  color: var(--blue);
  font-weight: 950;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.module-card h3 {
  margin: 0;
  line-height: 1.1;
}

.module-card p,
.resource-row p,
.member-card p {
  color: var(--muted);
  line-height: 1.55;
}

.module-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.module-card label {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--soft);
  font-size: 0.9rem;
}

.workflow-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(61, 125, 255, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.workflow-preview h3,
.workflow-preview p,
.workflow-card h4 {
  margin: 0;
}

.workflow-preview p {
  margin-top: 0.55rem;
  color: var(--soft);
  line-height: 1.58;
}

.workflow-preview button {
  margin-top: 0.9rem;
  border-color: rgba(61, 125, 255, 0.55);
}

.workflow-card {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.workflow-card dl {
  display: grid;
  gap: 0.6rem;
  margin: 0.85rem 0 0;
}

.workflow-card div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.workflow-card dt {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.workflow-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.support-stack article {
  min-height: 11.5rem;
  padding: 1rem;
}

.support-stack h3 {
  margin: 0.55rem 0 0.45rem;
}

.support-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.calendar-head,
.progress-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.calendar-head h2,
.progress-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.calendar-head p,
.progress-hero p {
  max-width: 52rem;
  color: var(--soft);
  line-height: 1.6;
}

.event-list {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.event-card {
  min-height: 12rem;
  padding: 1rem;
}

.event-card.featured {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(61, 125, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.event-card span,
.milestone-card span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-card h3,
.milestone-card h3,
.about-card h3 {
  margin: 0.7rem 0 0.45rem;
}

.event-card p,
.event-card small,
.milestone-card p,
.empty-board p,
.about-card p {
  color: var(--muted);
  line-height: 1.55;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.milestone-card {
  min-height: 11rem;
  padding: 1rem;
}

.milestone-card.active {
  border-color: rgba(132, 197, 110, 0.5);
}

.empty-board {
  margin-top: 0.9rem;
  padding: 1rem;
}

.empty-board h3 {
  margin: 0 0 0.45rem;
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-card {
  padding: 1.1rem;
}

.about-card.large {
  grid-column: 1 / -1;
}

.about-card.large h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 3.5vw, 4rem);
}

.about-ladder,
.about-rule-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-ladder article,
.about-rule-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.045);
}

.about-ladder span,
.about-rule-grid span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.about-ladder h3,
.about-rule-grid h3 {
  margin: 0.55rem 0 0.45rem;
}

.about-ladder p,
.about-rule-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.about-ladder a {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--text);
  font-weight: 900;
}

.module-card input {
  width: auto;
}

.resource-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.resource-row article {
  padding: 1rem;
}

.resource-row a {
  display: inline-flex;
  align-items: center;
}

.members-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.members-toolbar p {
  max-width: 52rem;
  color: var(--soft);
  line-height: 1.55;
}

.members-toolbar input {
  max-width: 20rem;
}

.member-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.profile-snapshot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.profile-snapshot h3,
.member-proof-note h3 {
  margin: 0.25rem 0 0.75rem;
}

.profile-snapshot dl {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.profile-snapshot dl div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.profile-snapshot dt {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-snapshot dd {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.profile-snapshot button {
  margin-top: 0.85rem;
}

.member-proof-note {
  padding: 1rem;
}

.member-proof-note p {
  color: var(--muted);
  line-height: 1.55;
}

.member-proof-note ul,
.member-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--soft);
  line-height: 1.4;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.member-empty {
  margin-bottom: 0.9rem;
  padding: 1rem;
  color: var(--soft);
  border-style: dashed;
}

.member-card {
  padding: 1rem;
}

.placeholder-member small {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.member-avatar {
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 1rem;
}

.member-avatar.orange {
  background: var(--orange);
}

.member-avatar.blue {
  background: var(--blue);
}

.member-avatar.green {
  background: var(--green);
  color: #0d170a;
}

.member-card h3 {
  margin: 0 0 0.45rem;
}

.member-card.is-hidden {
  display: none;
}

.progress-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.progress-meter-card,
.proof-template-card {
  padding: 1rem;
}

.progress-meter-card h3,
.proof-template-card h3 {
  margin: 0.25rem 0 0.75rem;
}

.progress-meter-card p,
.proof-template-card p,
.proof-rules p {
  color: var(--muted);
  line-height: 1.55;
}

.progress-meter {
  height: 0.72rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.progress-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 180ms ease;
}

.proof-template-card button {
  margin-top: 0.8rem;
  border-color: rgba(239, 141, 50, 0.55);
}

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

.proof-rules article {
  min-height: 9.5rem;
  padding: 1rem;
}

.proof-rules span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.support-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(135deg, rgba(239, 141, 50, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.support-brief h2,
.support-brief p {
  margin: 0;
}

.support-brief p {
  color: var(--soft);
  line-height: 1.58;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.support-cards article {
  min-height: 8.5rem;
  padding: 0.85rem;
}

.support-cards span,
.thread-note h3 {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.support-cards p,
.thread-note p {
  color: var(--muted);
  line-height: 1.45;
}

.chat-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0.9rem;
}

.thread-list {
  padding: 0.55rem;
}

.thread {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text);
  padding: 0.75rem;
  text-align: left;
}

.thread strong,
.thread span {
  display: block;
}

.thread span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.thread.active,
.thread:hover {
  border-color: var(--line);
  background: var(--panel-2);
}

.thread-note {
  margin-top: 0.65rem;
  padding: 0.85rem;
}

.thread-note h3,
.thread-note p {
  margin: 0;
}

.thread-note p {
  margin-top: 0.45rem;
}

.chat-window {
  min-height: 35rem;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}

.chat-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.messages {
  min-height: 22rem;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.message {
  max-width: 72%;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  background: var(--panel-2);
  color: var(--soft);
  line-height: 1.5;
}

.message.mine {
  justify-self: end;
  background: rgba(223, 61, 47, 0.22);
  color: #fff;
}

.message strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.chat-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.chat-template-row button {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-weight: 900;
}

.chat-template-row button:hover {
  border-color: rgba(239, 141, 50, 0.65);
}

.message-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.account-modal[hidden] {
  display: none;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.account-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 1.2rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0;
  font-size: 2.1rem;
}

.icon-button {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
}

.account-card label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--soft);
  font-weight: 800;
}

.account-card .fine-print {
  padding: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

@media (max-width: 1120px) {
  .community-header {
    grid-template-columns: 1fr auto;
  }

  .community-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
  }

  .community-shell {
    grid-template-columns: 1fr;
  }

  .group-panel {
    position: static;
  }

  .sprint-outcomes,
  .module-grid,
  .support-stack,
  .member-readiness,
  .progress-snapshot,
  .proof-rules,
  .support-brief,
  .support-cards,
  .about-ladder,
  .about-rule-grid,
  .member-grid,
  .milestone-grid,
  .event-list,
  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card.featured,
  .about-card.large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .community-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem;
    overflow-x: hidden;
  }

  .community-brand {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }

  .community-brand strong,
  .community-brand small {
    overflow-wrap: anywhere;
  }

  .account-button {
    flex: 0 0 2.65rem;
    min-width: 2.65rem;
    padding: 0.35rem;
    justify-self: auto;
  }

  .community-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .community-shell {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .group-panel {
    order: 1;
  }

  .workspace {
    order: 2;
  }

  .group-panel,
  .workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .group-cover,
  .side-section,
  .tab-panel,
  .workspace-top,
  .portal-brief,
  .first-post-kit,
  .sprint-outcomes article,
  .composer,
  .feed-card,
  .classroom-hero,
  .workflow-preview,
  .workflow-card,
  .support-stack article,
  .member-readiness article,
  .progress-snapshot article,
  .proof-rules article,
  .support-brief,
  .support-cards article,
  .calendar-head,
  .progress-hero,
  .about-card,
  .about-ladder article,
  .about-rule-grid article,
  .event-card,
  .milestone-card,
  .empty-board,
  .chat-window,
  .thread-list,
  .thread-note,
  .chat-template-row,
  .account-card {
    min-width: 0;
  }

  .community-nav a,
  .nav-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }

  .group-cover h1 {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .group-cover p,
  .fine-print,
  .upgrade-box p {
    overflow-wrap: anywhere;
  }

  .account-button span:last-child {
    display: none;
  }

  .workspace-top,
  .classroom-hero,
  .members-toolbar,
  .chat-title {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .workspace-actions,
  .portal-brief,
  .portal-ladder,
  .launch-board,
  .first-post-kit,
  .sprint-outcomes,
  .template-grid,
  .composer-actions,
  .message-composer,
  .reply-box,
  .chat-layout,
  .support-brief,
  .support-cards,
  .workflow-preview,
  .support-stack,
  .member-readiness,
  .progress-snapshot,
  .proof-rules,
  .resource-row,
  .module-grid,
  .member-grid,
  .event-list,
  .milestone-grid,
  .about-layout,
  .about-ladder,
  .about-rule-grid,
  .community-pulse {
    grid-template-columns: 1fr;
  }

  .calendar-head,
  .progress-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-actions {
    display: grid;
  }

  .composer-actions select,
  .members-toolbar input {
    max-width: none;
  }

  .community-pulse .primary-action,
  .classroom-hero .primary-action,
  .calendar-head .primary-action {
    width: 100%;
  }

  .portal-actions {
    display: grid;
  }

  .portal-actions a,
  .portal-actions button {
    width: 100%;
    text-align: center;
  }

  .portal-ladder article,
  .sprint-outcomes article,
  .module-card,
  .support-stack article,
  .member-readiness article,
  .progress-snapshot article,
  .proof-rules article,
  .support-cards article,
  .about-ladder article,
  .about-rule-grid article,
  .template-card {
    min-height: auto;
  }

  .profile-snapshot,
  .profile-snapshot dl div {
    grid-template-columns: 1fr;
  }

  .workflow-card div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .message {
    max-width: 92%;
  }
}

@media (max-width: 430px) {
  .community-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-stats {
    grid-template-columns: 1fr;
  }

  .group-stats div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .group-stats div:last-child {
    border-bottom: 0;
  }
}

/* NEW V2 visual facelift: reference-led app shell, original branding/content. */
:root {
  --app-bg: #f5f5f3;
  --app-card: #ffffff;
  --app-card-soft: #fafafa;
  --app-text: #242426;
  --app-muted: #787878;
  --app-faint: #a8a8a8;
  --app-line: #dfdfdc;
  --app-line-strong: #cecec8;
  --app-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
  --field-orange: #f07822;
  --field-orange-soft: #fff1e7;
  --classroom-blue: #2563eb;
  --classroom-blue-soft: #eaf1ff;
  --success: #16a05d;
  color-scheme: light;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
}

h1,
h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.08;
}

.community-header {
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--app-line);
  color: var(--app-text);
  backdrop-filter: blur(18px);
}

.community-topbar {
  width: min(100%, 1220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(18rem, 36rem) minmax(12rem, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem 1.15rem 0.55rem;
}

.community-brand {
  color: var(--app-text);
}

.community-brand small {
  color: var(--app-muted);
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(135deg, #101010, #26333f 48%, var(--field-orange));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.community-search {
  position: relative;
  display: block;
}

.community-search span {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  overflow: hidden;
  color: transparent;
  transform: translateY(-50%);
}

.community-search span::before {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border: 2px solid #8f8f8d;
  border-radius: 50%;
}

.community-search span::after {
  content: "";
  position: absolute;
  right: 0.02rem;
  bottom: 0.05rem;
  width: 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: #8f8f8d;
  transform: rotate(45deg);
}

.community-search input {
  width: 100%;
  height: 3rem;
  border: 0;
  border-radius: 0.62rem;
  padding: 0 1rem 0 2.85rem;
  background: #e8e8e7;
  color: var(--app-text);
  outline: none;
}

.community-search input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.community-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.community-actions > button:not(.account-button) {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777;
}

.community-actions > button:not(.account-button)::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 2px solid currentColor;
  border-radius: 0.45rem;
}

.community-actions > button:nth-child(2)::before {
  border-radius: 50% 50% 45% 45%;
}

.community-actions > button span {
  position: absolute;
  right: -0.1rem;
  top: -0.15rem;
  display: grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: #ef4d3d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.account-button {
  border: 0;
  background: transparent;
  color: var(--app-text);
  padding: 0;
}

.account-button [data-profile-label] {
  display: none;
}

.account-avatar,
.mini-avatar,
.member-avatar {
  background: linear-gradient(135deg, #191919, var(--field-orange));
}

.community-nav {
  width: min(100%, 1220px);
  margin: 0 auto;
  justify-content: flex-start;
  gap: 0;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: thin;
}

.community-nav a,
.nav-tab {
  position: relative;
  min-height: 3rem;
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  color: #858585;
  font-size: 1rem;
  font-weight: 760;
  white-space: nowrap;
}

.nav-tab.active,
.community-nav a:hover,
.nav-tab:hover {
  background: transparent;
  color: var(--app-text);
}

.nav-tab::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 0.2rem;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.nav-tab.active::after {
  background: var(--app-text);
}

.community-shell {
  width: min(100%, 1220px);
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  padding: 1.9rem 1.15rem 3rem;
}

.group-panel {
  order: 2;
  top: 7.2rem;
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  background: var(--app-card);
  box-shadow: none;
}

.workspace {
  order: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-top {
  display: none;
}

.group-cover {
  min-height: 11rem;
  padding: 0;
  border-bottom: 1px solid var(--app-line);
  background:
    linear-gradient(180deg, rgba(8, 25, 36, 0.2), rgba(8, 25, 36, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, #103e4e, #071017 55%, #0f1720);
}

.group-cover::before {
  content: "AI FIELD GUIDE";
  display: flex;
  align-items: flex-end;
  min-height: 11rem;
  padding: 1rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 950;
  letter-spacing: 0;
}

.group-cover > * {
  display: none;
}

.group-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-card);
}

.group-stats div {
  min-height: auto;
  border-right: 1px solid var(--app-line);
  background: transparent;
  padding: 0.45rem 0.4rem;
}

.group-stats div:last-child {
  border-right: 0;
}

.group-stats strong {
  color: var(--app-text);
  font-size: 1.08rem;
}

.group-stats span,
.fine-print {
  color: var(--app-muted);
}

.join-button {
  width: calc(100% - 2rem);
  margin: 1rem;
  border: 1px solid var(--app-line);
  border-radius: 0.42rem;
  background: #fff;
  color: var(--app-text);
  font-weight: 850;
}

.side-section {
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--app-line);
  border-bottom: 0;
  background: transparent;
}

.side-section h2 {
  color: var(--app-text);
  font-size: 1rem;
}

.side-section p,
.side-section li,
.path-note {
  color: #555;
}

.founding-room-box,
.upgrade-box,
.plain-rules-box {
  background: #fff;
}

.space-chip,
.route-buttons a {
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: #f7f7f6;
  color: var(--app-text);
}

.space-chip.active {
  background: var(--app-text);
  color: #fff;
}

.portal-brief {
  display: none;
}

.tab-panel {
  animation: tabFade 260ms ease both;
}

@keyframes tabFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.community-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.3rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--app-line);
  border-radius: 0.75rem;
  background: var(--app-card);
  box-shadow: var(--app-shadow);
}

.community-pulse h3 {
  font-size: 1.35rem;
}

.community-pulse p {
  display: none;
}

.first-post-kit {
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  background: var(--app-card);
  box-shadow: var(--app-shadow);
}

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

.template-card {
  border: 1px solid var(--app-line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--app-text);
}

.template-card:hover,
.feed-card:hover,
.module-card:hover,
.event-card:hover,
.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 20, 20, 0.1);
}

.category-row {
  position: sticky;
  top: 6.85rem;
  z-index: 5;
  display: flex;
  gap: 0.65rem;
  margin: 1.35rem 0;
  padding: 0.35rem 0;
  background: color-mix(in srgb, var(--app-bg) 94%, transparent);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: #fff;
  color: #8a8a8a;
  padding: 0.72rem 1.15rem;
  font-weight: 760;
}

.category-chip.active {
  background: #8f8f8f;
  color: #fff;
  border-color: #8f8f8f;
}

.composer,
.feed-card,
.classroom-hero,
.sprint-outcomes article,
.workflow-preview,
.support-stack article,
.resource-row article,
.calendar-head,
.event-card,
.members-toolbar,
.member-readiness article,
.member-card,
.progress-hero,
.progress-snapshot article,
.milestone-card,
.empty-board,
.proof-rules article,
.support-brief,
.chat-window,
.thread-list,
.about-card,
.about-ladder article,
.about-rule-grid article {
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  background: var(--app-card);
  color: var(--app-text);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.composer {
  margin-bottom: 1.15rem;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--app-shadow);
}

.composer-head {
  padding: 1rem 1.1rem 0;
}

.composer-head strong,
.feed-meta strong {
  color: var(--app-text);
}

.composer-head span,
.feed-meta span,
.event-card small,
.member-card small {
  color: var(--app-muted);
}

.composer textarea {
  border: 0;
  min-height: 5.2rem;
  background: #fff;
  color: var(--app-text);
  font-size: 1.05rem;
}

.composer textarea::placeholder {
  color: #9c9c9c;
}

.composer-actions {
  border-top: 1px solid var(--app-line);
  background: #fafafa;
}

.composer-actions select,
.members-toolbar input,
.message-composer input {
  border: 1px solid var(--app-line);
  background: #fff;
  color: var(--app-text);
}

.primary-action,
.portal-primary,
.workflow-preview button,
.resource-row button,
.proof-template-card button,
.chat-template-row button,
.message-composer button,
.profile-snapshot button {
  border: 0;
  border-radius: 0.55rem;
  background: var(--field-orange);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(240, 120, 34, 0.22);
}

.primary-action:hover,
.workflow-preview button:hover,
.resource-row button:hover,
.proof-template-card button:hover,
.message-composer button:hover,
.profile-snapshot button:hover {
  transform: translateY(-1px);
  background: #db6519;
}

.feed {
  gap: 1.05rem;
}

.feed-card {
  padding: 1rem 1.15rem;
}

.feed-card.pinned {
  border-color: #ffd46c;
  box-shadow: 0 8px 22px rgba(214, 151, 24, 0.14);
}

.feed-card h3 {
  color: var(--app-text);
  font-size: 1.35rem;
}

.feed-card p {
  color: #444;
}

.feed-actions button,
.reply-box button {
  border: 0;
  background: transparent;
  color: #777;
  font-weight: 780;
}

.reply-box input {
  border: 1px solid var(--app-line);
  background: #fff;
  color: var(--app-text);
}

.classroom-hero,
.calendar-head,
.progress-hero,
.support-brief {
  margin-bottom: 1.25rem;
  padding: 1.3rem;
}

.classroom-hero h2,
.calendar-head h2,
.progress-hero h2,
.support-brief h2,
.about-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  color: var(--app-text);
}

.classroom-hero p,
.calendar-head p,
.progress-hero p,
.support-brief p,
.about-card p,
.sprint-outcomes p,
.module-card p,
.workflow-preview p,
.support-stack p,
.resource-row p,
.event-card p,
.member-readiness p,
.member-card p,
.milestone-card p,
.empty-board p,
.proof-rules p,
.about-ladder p,
.about-rule-grid p {
  color: #4d4d4d;
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.module-card {
  position: relative;
  min-height: 24rem;
  padding: 13.5rem 1rem 1rem;
  overflow: hidden;
}

.module-card::before {
  content: attr(data-cover);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  min-height: 12.1rem;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(6, 18, 28, 0.08), rgba(6, 18, 28, 0.82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 28% 18%, rgba(37, 99, 235, 0.9), transparent 26%),
    linear-gradient(135deg, #093342, #111827 58%, #0b0b0b);
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.module-card:nth-child(2)::before {
  background:
    linear-gradient(180deg, rgba(6, 18, 28, 0.04), rgba(6, 18, 28, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 72% 22%, rgba(240, 120, 34, 0.84), transparent 24%),
    linear-gradient(135deg, #0b4a59, #10213a 56%, #090909);
}

.module-card:nth-child(3)::before {
  background:
    linear-gradient(180deg, rgba(6, 18, 28, 0.04), rgba(6, 18, 28, 0.82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 42% 20%, rgba(22, 160, 93, 0.8), transparent 26%),
    linear-gradient(135deg, #083b2d, #0e3445 56%, #090909);
}

.module-card span,
.module-card h3 {
  color: var(--app-text);
}

.module-card label {
  border-top: 1px solid var(--app-line);
  color: #555;
}

.module-card input {
  accent-color: var(--field-orange);
}

.workflow-preview {
  margin-top: 1.3rem;
}

.workflow-card {
  border: 1px solid var(--app-line);
  background: #fbfbfb;
  color: var(--app-text);
}

.workflow-card dd,
.workflow-card dt {
  color: #4d4d4d;
}

.event-list {
  gap: 1rem;
}

.event-card.featured {
  border-color: #ffd46c;
  background: #fffdf7;
}

.members-toolbar {
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.member-readiness {
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-empty {
  border: 1px dashed var(--app-line-strong);
  background: #fff;
  color: #777;
}

.member-grid {
  display: block;
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  background: #fff;
  overflow: hidden;
}

.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  border-radius: 0;
  padding: 1.05rem;
}

.member-card:last-child {
  border-bottom: 0;
}

.member-card .member-avatar {
  grid-row: span 3;
}

.member-card h3 {
  margin: 0;
}

.member-card p {
  margin: 0;
}

.member-card ul {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-card li {
  border-radius: 999px;
  background: #f3f3f2;
  padding: 0.28rem 0.55rem;
  color: #666;
  font-size: 0.82rem;
}

.member-card small {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: start;
  border: 1px solid var(--app-line);
  border-radius: 0.42rem;
  padding: 0.55rem 0.8rem;
  color: #777;
  font-weight: 850;
  text-transform: uppercase;
}

.progress-meter,
.progress-meter span {
  background: #dededb;
}

.progress-meter span {
  background: var(--field-orange);
}

.milestone-card.active {
  border-color: var(--field-orange);
  background: var(--field-orange-soft);
}

.chat-layout {
  align-items: start;
}

.thread {
  border: 1px solid var(--app-line);
  background: #fff;
  color: var(--app-text);
}

.thread.active {
  background: var(--app-text);
  color: #fff;
}

.messages {
  background: #f8f8f7;
}

.message {
  background: #fff;
  color: var(--app-text);
}

.message.user {
  background: var(--classroom-blue);
  color: #fff;
}

.eyebrow,
.eyebrow.blue {
  color: var(--field-orange);
  letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
  .community-topbar {
    grid-template-columns: 1fr auto;
  }

  .community-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .community-shell {
    grid-template-columns: 1fr;
  }

  .group-panel {
    position: static;
    order: 2;
  }

  .workspace {
    order: 1;
  }
}

@media (max-width: 760px) {
  .community-topbar {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .community-brand small,
  .community-actions > button:not(.account-button) {
    display: none;
  }

  .community-nav {
    padding: 0 0.75rem;
  }

  .community-shell {
    padding: 1rem 0.75rem 2rem;
  }

  .community-pulse,
  .classroom-hero,
  .calendar-head,
  .progress-hero {
    grid-template-columns: 1fr;
  }

  .template-grid,
  .module-grid,
  .sprint-outcomes,
  .support-stack,
  .event-list,
  .proof-rules {
    grid-template-columns: 1fr;
  }

  .category-row {
    top: 6.3rem;
  }

  .course-spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight-player {
    min-height: 17rem;
  }

  .continue-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .continue-strip .mini-progress,
  .continue-strip small {
    width: 100%;
    min-width: 0;
  }

  .lesson-row {
    grid-auto-columns: minmax(13.5rem, 82%);
  }

  .member-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .member-card small {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }
}

.members-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18rem),
    radial-gradient(circle at 78% 4%, rgba(61, 125, 255, 0.22), transparent 33rem),
    radial-gradient(circle at 15% 12%, rgba(239, 141, 50, 0.22), transparent 31rem),
    radial-gradient(circle at 55% 82%, rgba(223, 61, 47, 0.16), transparent 34rem),
    #070707;
  color: var(--text);
}

.members-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

.members-page .community-header {
  background: rgba(7, 7, 7, 0.9);
  color: var(--text);
}

.members-page .community-brand strong {
  color: var(--text);
}

.members-page .community-brand small,
.members-page .community-nav a {
  color: var(--muted);
}

.members-page .community-nav a[aria-current="page"],
.members-page .community-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.members-page .community-actions .account-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.38rem 0.8rem 0.38rem 0.38rem;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.members-page .community-actions .account-button span:last-child {
  display: inline;
  color: var(--text);
}

.members-page-shell {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 1.15rem 4rem;
}

.members-hero-panel,
.member-grid-panel,
.account-later-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.members-hero-panel,
.member-role-section,
.progress-page-section,
.account-later-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 12, 0.84);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.members-hero-panel {
  position: relative;
  align-items: end;
  min-height: clamp(33rem, 64vh, 47rem);
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.98), rgba(7, 7, 7, 0.72) 54%, rgba(7, 7, 7, 0.36)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 78% 24%, rgba(61, 125, 255, 0.62), transparent 26rem),
    radial-gradient(circle at 88% 72%, rgba(239, 141, 50, 0.44), transparent 27rem),
    #070707;
}

.members-hero-panel::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  top: clamp(5rem, 10vw, 7rem);
  width: clamp(15rem, 28vw, 28rem);
  aspect-ratio: 0.72;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 50% 16%, rgba(61, 125, 255, 0.7), transparent 35%),
    linear-gradient(180deg, #172033, #090b10);
  box-shadow:
    -30px 36px 82px rgba(0, 0, 0, 0.42),
    inset 0 0 0 0.7rem rgba(0, 0, 0, 0.34);
  transform: rotate(7deg);
  opacity: 0.72;
}

.members-hero-panel > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.members-hero-panel h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.86;
}

.members-hero-panel p {
  max-width: 50rem;
  color: rgba(246, 242, 234, 0.72);
  font-size: 1.12rem;
  line-height: 1.65;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.member-hero-actions a,
.progress-page-section a,
.profile-snapshot button,
.account-card button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
}

.member-hero-actions a:first-child {
  border-color: var(--orange);
  background: var(--orange);
  color: #111;
}

.member-status-card,
.member-grid-panel > article,
.member-role-section,
.progress-page-section,
.account-later-section > article,
.account-later-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.055);
}

.member-status-card {
  align-self: end;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(8, 10, 14, 0.82);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.member-status-card h2,
.member-grid-panel h2,
.account-later-section h2 {
  margin: 0.3rem 0 0.75rem;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
}

.member-status-card p,
.member-grid-panel p,
.account-later-section p {
  color: var(--soft);
  line-height: 1.58;
}

.member-status-pills {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.member-status-pills span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 900;
}

.member-status-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.member-status-mini div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  padding: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.member-status-mini span {
  display: block;
  color: rgba(246, 242, 234, 0.55);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-status-mini strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1.18rem;
}

.member-command-center {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.05fr) minmax(18rem, 0.52fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.95rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  background:
    radial-gradient(circle at 76% 0%, rgba(61, 125, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 12% 30%, rgba(239, 141, 50, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.032)),
    rgba(9, 10, 13, 0.84);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.member-command-copy,
.member-command-board article,
.member-launch-rail {
  min-width: 0;
}

.member-command-copy {
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.member-command-copy h2 {
  max-width: 11ch;
  color: var(--text);
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 0.94;
}

.member-command-copy p {
  margin: 0;
  color: var(--soft);
  line-height: 1.58;
}

.member-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.member-command-actions a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0.62rem 0.86rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
}

.member-command-actions a:first-child {
  border-color: rgba(61, 125, 255, 0.48);
  background: rgba(61, 125, 255, 0.2);
}

.member-command-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.member-command-board article,
.member-launch-rail {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.member-command-board article {
  display: grid;
  align-content: space-between;
  min-height: 15rem;
  padding: 0.95rem;
}

.member-command-board article:nth-child(2) {
  border-color: rgba(239, 141, 50, 0.3);
  background:
    radial-gradient(circle at 88% 10%, rgba(239, 141, 50, 0.22), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.096), rgba(255, 255, 255, 0.038)),
    rgba(255, 255, 255, 0.05);
}

.member-command-board span {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.58rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 234, 0.7);
  font-size: 0.76rem;
  font-weight: 950;
}

.member-command-board h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.05;
}

.member-command-board p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.member-launch-rail {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 0.95rem;
}

.launch-rail-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.8rem;
}

.launch-rail-head span {
  display: block;
  color: rgba(246, 242, 234, 0.55);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.launch-rail-head strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.1;
}

.launch-rail-list {
  display: grid;
  gap: 0.62rem;
}

.launch-rail-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  color: var(--soft);
  line-height: 1.35;
}

.launch-rail-list span {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 0.24rem rgba(61, 125, 255, 0.14);
}

.member-grid-panel {
  align-items: stretch;
}

.member-grid-panel .profile-snapshot,
.member-grid-panel .member-proof-note {
  padding: 1rem;
}

.members-page .profile-snapshot dl div {
  border-color: rgba(255, 255, 255, 0.12);
}

.members-page .profile-snapshot dd,
.members-page .member-proof-note li {
  color: var(--soft);
}

.member-role-section,
.progress-page-section {
  padding: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
}

.members-page .members-toolbar h2,
.members-page .progress-hero h2 {
  color: var(--text);
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 0.92;
}

.members-page .members-toolbar p,
.members-page .progress-hero p {
  color: var(--soft);
}

.members-page .member-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.members-page .member-card,
.members-page .progress-meter-card,
.members-page .proof-template-card,
.members-page .milestone-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.038)),
    rgba(10, 11, 13, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.members-page .member-card {
  position: relative;
  overflow: hidden;
  min-height: 21rem;
}

.members-page .member-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8.5rem;
  background:
    radial-gradient(circle at 22% 18%, rgba(239, 141, 50, 0.75), transparent 34%),
    linear-gradient(135deg, #1c293d, #08090d);
  opacity: 0.92;
}

.members-page .member-card:nth-child(2)::before {
  background:
    radial-gradient(circle at 68% 20%, rgba(61, 125, 255, 0.72), transparent 35%),
    linear-gradient(135deg, #122343, #08090d);
}

.members-page .member-card:nth-child(3)::before {
  background:
    radial-gradient(circle at 52% 20%, rgba(132, 197, 110, 0.68), transparent 34%),
    linear-gradient(135deg, #112b25, #08090d);
}

.members-page .member-card:nth-child(4)::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(223, 61, 47, 0.68), transparent 34%),
    linear-gradient(135deg, #321616, #08090d);
}

.members-page .member-card > * {
  position: relative;
  z-index: 1;
}

.members-page .member-card .member-avatar {
  margin-top: 5.7rem;
}

.members-page .member-card p,
.members-page .member-card li,
.members-page .progress-meter-card p,
.members-page .proof-template-card p,
.members-page .milestone-card p {
  color: var(--soft);
}

.members-page .member-card h3,
.members-page .progress-meter-card h3,
.members-page .proof-template-card h3,
.members-page .milestone-card h3 {
  color: var(--text);
}

.members-page .progress-snapshot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.sprint-checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.sprint-checklist label {
  display: grid;
  gap: 0.55rem;
  min-height: 11rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
}

.sprint-checklist input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--blue);
}

.sprint-checklist span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sprint-checklist strong {
  color: var(--text);
  line-height: 1.25;
}

.account-later-section {
  align-items: start;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.account-later-section > article {
  padding: 1rem;
}

.account-later-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-later-grid > div {
  padding: 0.9rem;
}

.account-later-grid span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.members-page .account-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  color: var(--text);
}

/* Shared compact community header: brand bubble left, tabs centered, action bubbles right. */
body {
  font-family: Aptos, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
.group-cover h1,
.course-spotlight h2,
.portal-copy h2,
.members-hero-panel h1 {
  font-family: "Avenir Next", Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.community-header {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, auto) minmax(8rem, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.68rem clamp(0.85rem, 2.5vw, 1.6rem);
  background: rgba(7, 7, 7, 0.9);
  color: var(--text);
}

.community-topbar {
  display: contents;
}

.community-brand {
  grid-column: 1;
  min-width: 0;
}

.community-brand strong {
  color: var(--text);
}

.community-brand small {
  color: var(--muted);
}

.community-search {
  display: none;
}

.community-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: auto;
  max-width: min(100%, 66vw);
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow-x: auto;
}

.community-nav a,
.community-nav .nav-tab {
  min-height: 2.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.62rem 0.82rem;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}

.community-nav a[aria-current="page"],
.community-nav .nav-tab.active,
.community-nav a:hover,
.community-nav .nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.community-actions {
  grid-column: 3;
  justify-self: end;
}

.community-actions .account-button {
  min-height: 2.45rem;
  border-radius: 999px;
  background: var(--classroom-blue, #2563eb);
  color: #fff;
}

.community-actions .account-button span:last-child,
.members-page .community-actions .account-button span:last-child {
  color: #fff;
}

@media (max-width: 1100px) {
  .members-hero-panel,
  .member-grid-panel,
  .member-command-center,
  .account-later-section {
    grid-template-columns: 1fr;
  }

  .members-page .member-grid,
  .sprint-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .community-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.62rem 0.75rem;
  }

  .community-brand small {
    display: none;
  }

  .community-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    max-width: 100%;
    border-radius: 0.8rem;
    scroll-snap-type: x proximity;
  }

  .community-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .members-page-shell {
    padding: 1rem 0.75rem 3rem;
  }

  .members-hero-panel {
    min-height: auto;
    padding: 1.2rem;
  }

  .members-hero-panel::after {
    right: -5rem;
    top: 5.5rem;
    width: 14rem;
    opacity: 0.24;
  }

  .members-page .community-actions .account-button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
  }

  .members-page .community-actions .account-button span:last-child {
    display: none;
  }

  .members-hero-panel h1 {
    max-width: 8.8ch;
    font-size: clamp(2.3rem, 11vw, 3.05rem);
    line-height: 0.92;
    overflow-wrap: normal;
  }

  .members-hero-panel p {
    max-width: calc(100vw - 4rem);
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .member-hero-actions,
  .member-hero-actions a {
    width: 100%;
  }

  .members-page .member-grid,
  .members-page .progress-snapshot,
  .members-page .milestone-grid,
  .sprint-checklist,
  .account-later-grid {
    grid-template-columns: 1fr;
  }

  .sprint-checklist label {
    min-height: auto;
  }
}

/* Final members-page authority: keep this screen in the dark NEW V2 product system. */
.members-page {
  color-scheme: dark;
  overflow-x: hidden;
}

.members-page .community-topbar,
.members-page .members-page-shell,
.members-page .members-hero-panel,
.members-page .member-command-center,
.members-page .member-grid-panel,
.members-page .member-role-section,
.members-page .progress-page-section,
.members-page .account-later-section {
  max-width: 100%;
  min-width: 0;
}

.members-page .community-search input {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.members-page .community-search input::placeholder {
  color: rgba(246, 242, 234, 0.58);
}

.members-page .members-hero-panel::after {
  z-index: 0;
}

.members-page .members-hero-panel > div,
.members-page .members-hero-panel > aside {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 760px) {
  .members-page .community-topbar {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .members-page .community-actions {
    position: absolute;
    display: flex !important;
    top: 0.62rem;
    right: 0.75rem;
    z-index: 3;
  }

  .members-page .community-actions .account-button {
    display: grid !important;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--classroom-blue, #2563eb);
  }

  .members-page .community-actions .account-avatar {
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
  }

  .members-page .community-search {
    width: 100%;
    min-width: 0;
  }

  .members-page .members-page-shell {
    width: 100%;
    overflow-x: hidden;
  }

  .members-page .members-hero-panel,
  .members-page .member-command-center,
  .members-page .member-grid-panel,
  .members-page .member-role-section,
  .members-page .progress-page-section,
  .members-page .account-later-section {
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    overflow: hidden;
  }

  .members-page .members-hero-panel > div,
  .members-page .member-status-card,
  .members-page .member-command-center > *,
  .members-page .member-grid-panel > article,
  .members-page .member-role-section > *,
  .members-page .progress-page-section > *,
  .members-page .account-later-section > * {
    width: 100%;
    max-width: calc(100vw - 4rem);
  }

  .members-page .members-hero-panel h1 {
    max-width: 7.6ch;
    font-size: clamp(2.2rem, 10vw, 2.85rem);
  }

  .members-page .members-hero-panel p,
  .members-page .member-status-card p,
  .members-page .member-grid-panel p,
  .members-page .account-later-section p {
    max-width: 27ch;
    overflow-wrap: break-word;
  }

  .members-page .member-hero-actions,
  .members-page .member-hero-actions a,
  .member-command-actions,
  .member-command-actions a {
    max-width: calc(100vw - 4rem);
  }

  .member-command-center {
    padding: 1rem;
  }

  .member-command-copy h2 {
    max-width: 9.5ch;
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .member-command-board {
    grid-template-columns: 1fr;
  }

  .member-command-board article {
    min-height: auto;
  }
}

.members-page .member-role-section .members-toolbar,
.members-page .progress-page-section .progress-hero {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 0;
}

.members-page .member-role-section .members-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 0.38fr);
  align-items: end;
}

.members-page .member-role-section .members-toolbar > div {
  min-width: 0;
}

.members-page .member-role-section .members-toolbar h2 {
  max-width: 11ch;
}

.members-page .member-role-section .members-toolbar p {
  max-width: 44rem;
}

@media (max-width: 760px) {
  .members-page .member-role-section .members-toolbar {
    grid-template-columns: 1fr;
  }

  .members-page .member-role-section .members-toolbar h2 {
    max-width: 9.5ch;
  }
}

.members-page .member-role-section .member-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  background: transparent !important;
}

.members-page .member-role-section .member-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.72rem;
  align-content: start;
  width: auto;
  min-height: 21rem;
  padding: 1rem !important;
  overflow: hidden;
}

.members-page .member-role-section .member-card .member-avatar,
.members-page .member-role-section .member-card h3,
.members-page .member-role-section .member-card p,
.members-page .member-role-section .member-card ul,
.members-page .member-role-section .member-card small {
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: start;
}

.members-page .member-role-section .member-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.08;
}

.members-page .member-role-section .member-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 0;
}

.members-page .member-role-section .member-card li {
  width: fit-content;
  max-width: 100%;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.38rem 0.56rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 234, 0.78);
  font-size: 0.82rem;
  line-height: 1.35;
}

.members-page .member-role-section .member-card small {
  width: fit-content;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0.5rem 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 234, 0.72);
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .members-page .member-role-section .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .members-page .member-role-section .member-grid {
    grid-template-columns: 1fr;
  }

  .members-page .member-role-section .member-card {
    min-height: 19rem;
  }
}

/* Direct header markup pass: action bubbles are first-class, not inherited search-shell leftovers. */
.community-header {
  position: sticky;
  top: 0;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, auto) minmax(8rem, 1fr);
  overflow: visible;
}

.community-header > .community-brand {
  grid-column: 1;
  grid-row: 1;
}

.community-header > .community-nav {
  grid-column: 2;
  grid-row: 1;
}

.community-header > .community-actions {
  position: static !important;
  grid-column: 3;
  grid-row: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.community-actions .header-bubble,
.community-actions .account-button {
  display: inline-grid !important;
  min-width: 2.42rem;
  min-height: 2.42rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.community-actions .account-button {
  grid-auto-flow: column;
  gap: 0.55rem;
  padding: 0.28rem;
  background: var(--classroom-blue, #2563eb);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.community-actions .account-button [data-profile-label] {
  display: none !important;
}

.community-actions .account-avatar {
  position: static !important;
  inset: auto !important;
  width: 1.8rem;
  height: 1.8rem;
}

.community-actions .header-bubble span {
  position: static;
  display: grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: #ef4d3d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.community-actions .member-join-bubble {
  background: var(--classroom-blue, #2563eb);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.community-actions .member-join-bubble span {
  min-width: 0;
  height: auto;
  background: transparent;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .community-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.58rem;
    overflow-x: hidden;
  }

  .community-header > .community-brand {
    grid-column: 1;
    max-width: calc(100vw - 5rem);
  }

  .community-header > .community-brand strong {
    display: block;
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-header > .community-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .community-header > .community-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .community-actions .header-bubble,
  .community-actions .account-button,
  .members-page .community-actions .account-button {
    display: inline-grid !important;
    width: 2.42rem;
    height: 2.42rem;
    min-width: 2.42rem;
    min-height: 2.42rem;
    padding: 0;
    place-items: center;
  }

  .community-actions .account-button span:last-child,
  .members-page .community-actions .account-button span:last-child {
    display: none !important;
  }

  .community-actions .account-avatar {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* Community room body polish: dark private-room surface with a clearer first-post flow. */
.community-page {
  --app-bg: #05070a;
  --app-card: rgba(14, 18, 25, 0.92);
  --app-card-soft: rgba(20, 26, 36, 0.94);
  --app-text: #f8fafc;
  --app-muted: #a9b1bd;
  --app-faint: #6f7b8b;
  --app-line: rgba(255, 255, 255, 0.12);
  --app-line-strong: rgba(255, 255, 255, 0.22);
  --app-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  background:
    radial-gradient(circle at 74% 0%, rgba(37, 99, 235, 0.24), transparent 31rem),
    radial-gradient(circle at 18% 16%, rgba(240, 120, 34, 0.16), transparent 24rem),
    linear-gradient(180deg, #071019 0%, #05070a 34rem, #05070a 100%);
  color: var(--app-text);
  color-scheme: dark;
}

.community-page .community-shell {
  width: min(100%, 1360px);
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1rem, 2vw, 1.35rem);
  padding: clamp(0.85rem, 2vw, 1.4rem);
}

.community-page .workspace {
  min-height: calc(100vh - 6rem);
}

.community-page .group-panel {
  top: 5.4rem;
  border-color: var(--app-line);
  background:
    linear-gradient(180deg, rgba(17, 24, 35, 0.94), rgba(9, 12, 17, 0.96)),
    var(--app-card);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(16px);
}

.community-page .group-cover {
  min-height: auto;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(240, 120, 34, 0.18), transparent 48%),
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.28), transparent 13rem),
    linear-gradient(160deg, #111827, #070b11 72%);
}

.community-page .group-cover::before {
  display: none;
}

.community-page .group-cover > * {
  display: block;
}

.community-page .group-cover h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.03;
}

.community-page .group-cover p,
.community-page .fine-print,
.community-page .side-section p,
.community-page .side-section li,
.community-page .path-note {
  color: var(--app-muted);
}

.community-page .group-stats,
.community-page .side-section,
.community-page .founding-room-box,
.community-page .upgrade-box,
.community-page .plain-rules-box {
  background: transparent;
  border-color: var(--app-line);
}

.community-page .group-stats strong,
.community-page .side-section h2 {
  color: var(--app-text);
}

.community-page .join-button {
  border: 0;
  background: var(--field-orange);
  color: #120904;
  box-shadow: 0 16px 34px rgba(240, 120, 34, 0.2);
}

.community-page .space-chip,
.community-page .route-buttons a {
  border-color: var(--app-line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--app-text);
}

.community-page .space-chip.active,
.community-page .space-chip:hover,
.community-page .route-buttons a:hover {
  border-color: rgba(240, 120, 34, 0.52);
  background: rgba(240, 120, 34, 0.14);
  color: #fff;
}

.community-page .workspace-top {
  display: flex;
  margin-bottom: 0.85rem;
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.community-page .portal-brief {
  display: grid;
  margin: 0 0 1rem;
  border-color: var(--app-line);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.15), transparent 42%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--app-shadow);
}

.community-page .portal-actions a,
.community-page .portal-actions button {
  border-color: var(--app-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--app-text);
}

.community-page .portal-actions .portal-primary {
  border-color: transparent;
  background: var(--field-orange);
  color: #120904;
}

.community-page .community-pulse {
  position: relative;
  overflow: hidden;
  border-color: rgba(240, 120, 34, 0.28);
  background:
    radial-gradient(circle at 90% 0%, rgba(240, 120, 34, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--app-shadow);
}

.community-page .community-pulse::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 120, 34, 0.6), transparent);
}

.community-page .community-pulse p {
  display: block;
}

.room-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 0 0 1rem;
}

.room-command-grid article {
  display: grid;
  gap: 0.55rem;
  min-height: 10.5rem;
  padding: 0.95rem;
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.room-command-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 120, 34, 0.46);
  background: rgba(240, 120, 34, 0.095);
}

.room-command-grid span,
.community-page .template-card span,
.community-page .portal-ladder span,
.community-page .launch-board span {
  color: var(--field-orange);
}

.room-command-grid strong {
  color: #fff;
  line-height: 1.12;
}

.room-command-grid p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.community-page .first-post-kit,
.community-page .composer,
.community-page .feed-card,
.community-page .portal-ladder article,
.community-page .launch-board,
.community-page .launch-board div,
.community-page .template-card {
  border-color: var(--app-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.032)),
    var(--app-card);
  color: var(--app-text);
  box-shadow: none;
}

.community-page .first-post-kit {
  box-shadow: var(--app-shadow);
}

.community-page .template-card:hover,
.community-page .feed-card:hover {
  border-color: rgba(240, 120, 34, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.community-page .category-row {
  top: 5rem;
  background: rgba(5, 7, 10, 0.82);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.community-page .category-chip {
  border-color: var(--app-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-muted);
}

.community-page .category-chip.active,
.community-page .category-chip:hover {
  border-color: rgba(240, 120, 34, 0.55);
  background: rgba(240, 120, 34, 0.16);
  color: #fff;
}

.community-page .composer textarea,
.community-page .composer-actions,
.community-page .composer-actions select,
.community-page textarea,
.community-page input,
.community-page select {
  border-color: var(--app-line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--app-text);
}

.community-page .composer textarea {
  min-height: 7rem;
}

.community-page .composer textarea::placeholder {
  color: var(--app-faint);
}

.community-page .feed-card.pinned {
  border-color: rgba(240, 120, 34, 0.48);
  background:
    linear-gradient(135deg, rgba(240, 120, 34, 0.13), transparent 48%),
    var(--app-card);
}

.community-page .feed-card h3,
.community-page .feed-meta strong,
.community-page .composer-head strong,
.community-page .portal-ladder strong {
  color: #fff;
}

.community-page .feed-card p,
.community-page .portal-ladder p,
.community-page .launch-board p,
.community-page .first-post-kit p,
.community-page .template-card small {
  color: var(--app-muted);
}

.community-page .feed-actions button,
.community-page .reply-box button {
  color: var(--app-muted);
}

.community-page .feed-actions button:hover,
.community-page .reply-box button:hover {
  color: var(--field-orange);
}

@media (max-width: 1040px) {
  .community-page .community-shell {
    grid-template-columns: 1fr;
  }

  .community-page .group-panel {
    position: static;
    order: 2;
  }

  .community-page .workspace {
    order: 1;
  }

  .room-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .community-page {
    overflow-x: hidden;
  }

  .community-page .community-shell,
  .community-page .workspace,
  .community-page .tab-panel {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .community-page .community-shell {
    padding: 0.75rem;
  }

  .community-page .tab-panel {
    padding: 0.75rem 0;
  }

  .community-page .workspace > .workspace-top,
  .community-page .portal-brief,
  .community-page .tab-panel > .community-pulse,
  .community-page .tab-panel > .room-command-grid,
  .community-page .tab-panel > .first-post-kit,
  .community-page .tab-panel > .category-row,
  .community-page .tab-panel > .composer,
  .community-page .tab-panel > .feed {
    max-width: min(100%, 360px);
    margin-left: 0;
    margin-right: 0;
  }

  .community-page .workspace-top,
  .community-page .portal-brief,
  .community-page .community-pulse,
  .community-page .first-post-kit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .community-page .workspace-top,
  .community-page .community-pulse,
  .community-page .first-post-kit {
    display: grid;
    grid-template-columns: 1fr;
  }

  .community-page .portal-ladder,
  .community-page .launch-board,
  .room-command-grid,
  .community-page .template-grid {
    grid-template-columns: 1fr;
  }

  .community-page .portal-copy,
  .community-page .portal-copy h2,
  .community-page .portal-copy p,
  .community-page .community-pulse h3,
  .community-page .community-pulse p,
  .room-command-grid article,
  .community-page .template-card,
  .community-page .feed-card {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .community-page .portal-copy h2 {
    max-width: 8.4ch;
    font-size: clamp(2.35rem, 10vw, 2.85rem);
    line-height: 0.98;
    word-break: normal;
  }

  .community-page .portal-copy p {
    max-width: 29ch;
  }

  .community-page .workspace-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .community-page .workspace-actions button,
  .community-page .community-pulse .primary-action,
  .community-page .portal-actions a,
  .community-page .portal-actions button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .community-page .category-row {
    top: 6.65rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  .community-page .composer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .community-page .composer-actions select,
  .community-page .composer-actions .primary-action {
    max-width: none;
    width: 100%;
  }
}
