/* ============================================================
   Hustlers Crib – Community Feed (Skool-style)
   community-feed.css
   ============================================================ */

/* ── Reset ── */
.cf-body *, .cf-body *::before, .cf-body *::after { box-sizing: border-box; }
.cf-body { background: #f8f4ee !important; }

/* Hide default Sngine main-header & sidebar so our nav takes over */
.cf-body .main-header,
.cf-body .sg-offcanvas-sidebar { display: none !important; }

/* ================================================================
   TOP NAV
   ================================================================ */
.cf-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #e0dedd;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* HC Classroom Refresh */
body.hc-modal-open {
  overflow: hidden;
}

.hc-classroom,
.hc-course-view,
.hc-builder-page {
  --hc-classroom-text: #171717;
  --hc-classroom-muted: #6e6f76;
  --hc-classroom-border: #e8e2d6;
  --hc-classroom-panel: #fffdf8;
  --hc-classroom-soft: #f7f2e8;
  --hc-classroom-yellow: #f1c86d;
  --hc-classroom-yellow-dark: #d9ad49;
  --hc-classroom-green: #18a957;
  --hc-classroom-shadow: 0 24px 60px rgba(20, 15, 4, 0.08);
  color: var(--hc-classroom-text);
}

.hc-classroom {
  display: grid;
  gap: 28px;
}

.hc-classroom-top {
  position: sticky;
  top: 72px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 226, 214, 0.8);
  border-radius: 24px;
  padding: 12px 16px 16px;
  box-shadow: 0 12px 34px rgba(24, 18, 4, 0.05);
}

.hc-classroom-nav {
  gap: 20px;
}

.hc-classroom-nav-link {
  font-weight: 600;
}

.hc-classroom-hero-skoool {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
  padding: 28px;
  border: 1px solid rgba(232, 226, 214, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(241, 200, 109, 0.28), transparent 38%),
    linear-gradient(135deg, #fffef9 0%, #fbf4e4 100%);
}

.hc-classroom-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #8e6923;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hc-classroom-hero-skoool h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.06;
}

.hc-classroom-hero-skoool p {
  margin: 0;
  max-width: 720px;
  color: var(--hc-classroom-muted);
  font-size: 16px;
  line-height: 1.7;
}

.hc-classroom-hero-side {
  display: grid;
  gap: 18px;
  align-content: space-between;
}

.hc-classroom-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hc-classroom-hero-metrics div {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(232, 226, 214, 0.9);
}

.hc-classroom-hero-metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hc-classroom-hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--hc-classroom-muted);
  font-size: 13px;
}

.hc-classroom-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hc-classroom-section {
  border: 1px solid rgba(232, 226, 214, 0.9);
  border-radius: 28px;
  padding: 26px;
  background: var(--hc-classroom-panel);
  box-shadow: var(--hc-classroom-shadow);
}

.hc-section-heading {
  margin-bottom: 20px;
}

.hc-section-heading h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.hc-section-heading p {
  margin: 0;
  color: var(--hc-classroom-muted);
}

.hc-classroom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hc-course-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(232, 226, 214, 0.95);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(25, 18, 4, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hc-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px rgba(25, 18, 4, 0.1);
  border-color: rgba(217, 173, 73, 0.65);
}

.hc-course-card.is-draft {
  background: linear-gradient(180deg, #fffdfa 0%, #faf5ea 100%);
}

.hc-course-card-head {
  position: relative;
}

.hc-course-cover {
  display: block;
  aspect-ratio: 1.8 / 1;
  background: #f2ecdf;
}

.hc-course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-course-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-course-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.76);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-course-menu-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
}

.hc-course-menu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1c1b18;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 17, 3, 0.12);
}

.hc-course-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 4;
  display: none;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(232, 226, 214, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 40px rgba(20, 15, 4, 0.14);
}

.hc-course-menu-wrap.is-open .hc-course-menu {
  display: grid;
  gap: 4px;
}

.hc-course-menu a,
.hc-course-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hc-classroom-text);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.hc-course-menu a:hover,
.hc-course-menu button:hover {
  background: #f7f2e8;
}

.hc-course-menu button.is-danger {
  color: #d4432f;
}

.hc-course-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.hc-course-copy {
  display: grid;
  gap: 10px;
}

.hc-course-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.hc-course-title,
.hc-course-title:hover {
  color: var(--hc-classroom-text);
  text-decoration: none;
}

.hc-course-desc {
  margin: 0;
  color: var(--hc-classroom-muted);
  line-height: 1.65;
}

.hc-course-progress-meta {
  display: grid;
  gap: 10px;
}

.hc-course-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.hc-course-progress-row strong {
  font-size: 14px;
}

.hc-course-progress-row span {
  color: var(--hc-classroom-muted);
}

.hc-course-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #ece8de;
  overflow: hidden;
}

.hc-course-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2c766 0%, #df9a2f 100%);
}

.hc-course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hc-course-meta-item {
  padding: 12px;
  border-radius: 16px;
  background: #fcf8ef;
}

.hc-course-meta-item dt {
  margin: 0 0 4px;
  color: var(--hc-classroom-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-course-meta-item dd {
  margin: 0;
  font-weight: 700;
}

.hc-course-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hc-course-level {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f4efe4;
  color: #74581f;
  font-size: 12px;
  font-weight: 700;
}

.hc-course-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hc-course-card-create {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed #d7cba9;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffefb 0%, #fbf5e7 100%);
  color: #6f6757;
  text-align: center;
  cursor: pointer;
}

.hc-course-card-create-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff;
  color: #c48f23;
  font-size: 34px;
  box-shadow: 0 16px 24px rgba(30, 22, 5, 0.08);
}

.hc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 16, 12, 0.55);
  backdrop-filter: blur(6px);
}

.hc-modal.open {
  display: flex;
}

.hc-modal-card,
.hc-modal-card-course {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(16, 13, 6, 0.24);
}

.hc-modal-head {
  margin-bottom: 18px;
}

.hc-modal-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.hc-modal-head p {
  margin: 0;
  color: var(--hc-classroom-muted);
  line-height: 1.65;
}

.hc-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f6f0e5;
  color: var(--hc-classroom-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hc-course-setup-form,
.hc-builder-form {
  display: grid;
  gap: 22px;
}

.hc-course-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hc-field {
  display: grid;
  gap: 8px;
}

.hc-field-full {
  grid-column: 1 / -1;
}

.hc-field span {
  font-size: 13px;
  font-weight: 700;
}

.hc-field input,
.hc-field select,
.hc-field textarea,
.hc-payment-settings-form input,
.hc-payment-settings-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd3bf;
  border-radius: 16px;
  background: #fffefb;
  color: var(--hc-classroom-text);
}

.hc-field textarea {
  resize: vertical;
}

.hc-access-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hc-access-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e2dac8;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

.hc-access-card.is-active {
  border-color: #dca63c;
  background: #fff7e7;
  box-shadow: inset 0 0 0 1px rgba(220, 166, 60, 0.25);
}

.hc-access-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hc-access-card strong {
  font-size: 17px;
}

.hc-access-card span {
  color: var(--hc-classroom-muted);
  line-height: 1.55;
}

.hc-switch-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #fbf5e7;
}

.hc-switch-row strong,
.hc-switch-row small {
  display: block;
}

.hc-switch-row small {
  margin-top: 4px;
  color: var(--hc-classroom-muted);
  line-height: 1.55;
}

.hc-switch-row input[type='checkbox'] {
  width: 52px;
  height: 30px;
  accent-color: var(--hc-classroom-green);
}

.hc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.hc-course-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 0.88fr) minmax(0, 1.42fr);
  gap: 24px;
}

.hc-course-sidebar,
.hc-course-stage {
  min-width: 0;
}

.hc-course-sidebar-card,
.hc-course-stage-panel,
.hc-builder-card {
  border: 1px solid rgba(232, 226, 214, 0.95);
  border-radius: 28px;
  background: #fffef9;
  box-shadow: var(--hc-classroom-shadow);
}

.hc-course-sidebar-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.hc-course-sidebar-cover {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2ecdf;
}

.hc-course-sidebar-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-course-sidebar-copy {
  display: grid;
  gap: 12px;
}

.hc-course-sidebar-copy p {
  margin: 0;
  color: var(--hc-classroom-muted);
  line-height: 1.7;
}

.hc-course-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hc-course-detail-grid div {
  padding: 14px;
  border-radius: 18px;
  background: #fcf8ef;
}

.hc-course-detail-grid dt {
  margin: 0 0 6px;
  color: var(--hc-classroom-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-course-detail-grid dd {
  margin: 0;
  font-weight: 700;
}

.hc-course-access-box,
.hc-course-stage-banner,
.hc-course-resource-card,
.hc-builder-empty,
.hc-classroom-empty {
  padding: 18px;
  border-radius: 22px;
  background: #fcf6ea;
}

.hc-course-outline {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(232, 226, 214, 0.95);
  border-radius: 28px;
  background: #fff;
}

.hc-course-outline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hc-course-outline-head h2 {
  margin: 0;
  font-size: 22px;
}

.hc-course-outline-head span {
  color: var(--hc-classroom-muted);
  font-size: 13px;
}

.hc-course-outline-section {
  margin: 18px 0 10px;
  color: #8a6a2b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-course-lesson-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hc-course-lesson-link:hover {
  background: #fbf5e9;
}

.hc-course-lesson-link.is-active {
  border-color: rgba(220, 166, 60, 0.6);
  background: #fff4d8;
}

.hc-course-lesson-link.is-complete {
  background: #effaf3;
}

.hc-course-lesson-link-main {
  display: grid;
  gap: 4px;
}

.hc-course-lesson-link-main strong {
  font-size: 15px;
}

.hc-course-lesson-link-main small,
.hc-course-lesson-link-state {
  color: var(--hc-classroom-muted);
  font-size: 12px;
}

.hc-course-stage {
  display: grid;
  gap: 18px;
}

.hc-course-stage-banner strong,
.hc-course-resource-card strong,
.hc-classroom-empty h3 {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hc-course-stage-banner span,
.hc-course-resource-card p,
.hc-classroom-empty p {
  margin: 0;
  color: var(--hc-classroom-muted);
  line-height: 1.65;
}

.hc-course-stage-panel {
  display: none;
  gap: 18px;
  padding: 24px;
}

.hc-course-stage-panel.is-active {
  display: grid;
}

.hc-course-stage-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hc-course-stage-top h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.1;
}

.hc-course-media-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #111;
}

.hc-course-media-frame video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #111;
}

.hc-course-text-block {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(232, 226, 214, 0.95);
  color: #1d1d1d;
  line-height: 1.8;
  white-space: normal;
}

.hc-course-text-block > :first-child {
  margin-top: 0;
}

.hc-course-text-block > :last-child {
  margin-bottom: 0;
}

.hc-course-text-block-preview {
  color: #4c5567;
}

.hc-course-resource-card-locked {
  border: 1px dashed rgba(232, 226, 214, 0.95);
  background: #f8f9fb;
}

.hc-course-stage-actions,
.hc-builder-header-actions,
.hc-curriculum-row-foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hc-builder-page {
  display: grid;
  gap: 24px;
}

.hc-builder-header,
.hc-course-view-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: 28px;
  border: 1px solid rgba(232, 226, 214, 0.95);
  background: linear-gradient(135deg, #fffef8 0%, #fbf4e5 100%);
  box-shadow: var(--hc-classroom-shadow);
}

.hc-course-view-header h1,
.hc-builder-header h2 {
  margin: 8px 0 0;
}

.hc-course-header-progress {
  display: grid;
  gap: 4px;
  min-width: 160px;
  text-align: right;
}

.hc-course-header-progress strong {
  font-size: 28px;
  line-height: 1;
}

.hc-course-header-progress span {
  color: var(--hc-classroom-muted);
  font-size: 13px;
}

.hc-builder-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.hc-builder-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hc-builder-title-row h2,
.hc-builder-title-row h3 {
  margin: 0 0 6px;
}

.hc-builder-title-row p,
.hc-builder-empty p {
  margin: 0;
  color: var(--hc-classroom-muted);
  line-height: 1.65;
}

.hc-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hc-curriculum-rows {
  display: grid;
  gap: 18px;
}

.hc-curriculum-row {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(232, 226, 214, 0.95);
  background: #fff;
}

.hc-curriculum-remove {
  border: 0;
  background: transparent;
  color: #ce4a34;
  font-weight: 700;
  cursor: pointer;
}

.hc-builder-empty {
  text-align: center;
}

.hc-builder-empty-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #fff;
  color: #cb9526;
  font-size: 30px;
  box-shadow: 0 12px 24px rgba(31, 20, 4, 0.08);
}

.hc-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.hc-course-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hc-course-btn-dark {
  background: #151515;
  color: #fff;
}

.hc-course-btn-dark:hover {
  color: #fff;
  background: #292929;
}

.hc-course-btn-light {
  background: #f7f2e8;
  border-color: #e5dac2;
  color: #252525;
}

.hc-course-btn-yellow {
  background: var(--hc-classroom-yellow);
  border-color: var(--hc-classroom-yellow);
  color: #251700;
}

.hc-course-btn-yellow:hover {
  background: var(--hc-classroom-yellow-dark);
  border-color: var(--hc-classroom-yellow-dark);
  color: #251700;
}

.hc-course-btn-danger {
  background: #fff1ee;
  border-color: #f2c0b7;
  color: #c83d28;
}

.hc-course-proof-link,
.hc-course-back {
  color: #70521c;
  font-weight: 700;
  text-decoration: none;
}

.hc-classroom-payment .hc-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hc-payment-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(232, 226, 214, 0.95);
  background: #fff;
}

.hc-payment-card-head h3 {
  margin: 0 0 8px;
}

.hc-payment-card-head p,
.hc-payment-course-summary span,
.hc-payment-form-empty span {
  color: var(--hc-classroom-muted);
  line-height: 1.65;
}

.hc-bank-details,
.hc-payment-course-summary,
.hc-payment-form-empty {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #fcf7eb;
}

.hc-payment-admin-hint {
  margin-top: 16px;
}

.hc-approvals-list {
  display: grid;
  gap: 16px;
}

.hc-approval-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(232, 226, 214, 0.95);
  background: #fff;
}

.hc-approval-card-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hc-approval-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hc-approval-user img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.hc-approval-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hc-approval-meta label {
  display: block;
  margin-bottom: 4px;
  color: var(--hc-classroom-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-approval-meta span,
.hc-approval-meta a {
  color: var(--hc-classroom-text);
  line-height: 1.55;
}

.hc-approval-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1199.98px) {
  .hc-classroom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991.98px) {
  .hc-classroom-hero-skoool,
  .hc-classroom-payment .hc-payment-grid,
  .hc-course-setup-grid,
  .hc-builder-grid,
  .hc-access-picker,
  .hc-approval-meta,
  .hc-course-detail-grid {
    grid-template-columns: 1fr;
  }

  .hc-builder-header,
  .hc-course-view-header,
  .hc-course-stage-top,
  .hc-approval-card {
    flex-direction: column;
    align-items: stretch;
  }

  .hc-course-header-progress {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .hc-classroom-shell {
    padding: 16px;
  }

  .hc-classroom-section,
  .hc-builder-card,
  .hc-course-stage-panel,
  .hc-modal-card,
  .hc-modal-card-course {
    padding: 18px;
  }

  .hc-classroom-grid {
    grid-template-columns: 1fr;
  }

  .hc-classroom-hero-skoool h1,
  .hc-course-stage-top h2 {
    font-size: 28px;
  }

  .hc-course-meta {
    grid-template-columns: 1fr;
  }
}
.cf-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

/* Left: community brand */
.cf-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
}
.cf-nav-brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0dedd;
  flex-shrink: 0;
}
.cf-nav-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-nav-brand-chevron {
  width: 16px;
  height: 16px;
  color: #888;
  flex-shrink: 0;
  transition: transform .2s;
}
.cf-nav-brand-chevron.open { transform: rotate(180deg); }

/* Center: search */
.cf-nav-search {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
.cf-nav-search-input {
  width: 100%;
  height: 38px;
  border: 1.5px solid #e0dedd;
  border-radius: 20px;
  padding: 0 16px 0 40px;
  font-size: 14px;
  color: #1a1a1a;
  background: #f8f7f5;
  outline: none;
  transition: border-color .2s;
}
.cf-nav-search-input:focus { border-color: #e6b541; background: #fff; }
.cf-nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aaa;
  pointer-events: none;
}

/* Right: icons + avatar */
.cf-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.cf-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444;
  transition: background .15s;
  text-decoration: none;
}
.cf-icon-btn:hover { background: #f5f5f5; }
.cf-icon-btn svg { width: 20px; height: 20px; }

.cf-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: #e6b541;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.cf-badge-red { background: #e53e3e; }

.cf-user-menu { position: relative; }
.cf-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #f5f5f5;
}
.cf-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nav Dropdown */
.cf-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e0dedd;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 220px;
  z-index: 300;
  display: none;
  padding: 6px 0;
  animation: cfDdIn .15s ease;
}
.cf-dd-menu.open { display: block; }
@keyframes cfDdIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cf-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.cf-dd-item:hover { background: #f8f7f5; color: #1a1a1a; }
.cf-dd-divider { height: 1px; background: #f5f5f5; margin: 6px 0; }
.cf-dd-user-header { padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.cf-dd-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cf-dd-user-name { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.cf-dd-user-email { font-size: 12px; color: #888; }

/* Brand dropdown */
.cf-brand-dd {
  left: 0;
  right: auto;
  min-width: 200px;
}

/* ================================================================
   TABS
   ================================================================ */
.cf-tabs {
  background: #ffffff;
  border-bottom: 1px solid #e0dedd;
  position: sticky;
  top: 60px;
  z-index: 190;
}
.cf-tabs-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cf-tabs-inner::-webkit-scrollbar { display: none; }
.cf-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.cf-tab:hover { color: #1a1a1a; }
.cf-tab.active {
  color: #1a1a1a;
  font-weight: 700;
  border-bottom-color: #1a1a1a;
}
.cf-tab svg { width: 15px; height: 15px; }
.cf-tab-dim { opacity: .45; cursor: default; }
.cf-tab-dim:hover { color: #666; }

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.cf-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Two-column feed layout */
.cf-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cf-feed { flex: 1; min-width: 0; }
.cf-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}

/* Generic card */
.cf-card {
  background: #ffffff;
  border: 1px solid #e0dedd;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* ================================================================
   WRITE POST BAR
   ================================================================ */
.cf-write-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e0dedd;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.cf-write-bar:hover {
  border-color: #e6b541;
  box-shadow: 0 2px 8px rgba(230,181,65,.15);
}
.cf-write-bar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e0dedd;
}
.cf-write-bar-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6b541;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cf-write-bar-prompt {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  background: #f8f7f5;
  border: 1.5px solid #e0dedd;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 14px;
  color: #aaa;
  pointer-events: none;
}

/* ================================================================
   FILTER PILLS
   ================================================================ */
.cf-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  background: #fff;
  border: 1.5px solid #e0dedd;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.cf-pill:hover { border-color: #1a1a1a; color: #1a1a1a; }
.cf-pill.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.cf-pill svg { width: 13px; height: 13px; }

/* ================================================================
   SIDEBAR CARDS
   ================================================================ */
.cf-sidebar-cover {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.cf-sidebar-cover-placeholder {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #e6b541 0%, #c49330 100%);
}
.cf-sidebar-body { padding: 16px; }
.cf-sidebar-avatar-wrap {
  margin-top: -28px;
  margin-bottom: 12px;
}
.cf-sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.cf-sidebar-group-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  text-decoration: none;
  display: block;
}
.cf-sidebar-group-name:hover { color: #e6b541; }
.cf-sidebar-url {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.cf-sidebar-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf-sidebar-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}
.cf-stat { text-align: center; }
.cf-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
}
.cf-stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; }

.cf-member-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.cf-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-right: -8px;
  flex-shrink: 0;
}
.cf-member-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  margin-right: -8px;
  flex-shrink: 0;
}

.cf-invite-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #e6b541;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.cf-invite-btn:hover { background: #c49330; color: #fff; }

/* Join button */
.cf-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.cf-join-btn:hover { background: #333; color: #fff; }
.cf-joined-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #f5f5f5;
  color: #1a1a1a;
  border: 1.5px solid #e0dedd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.cf-joined-btn:hover { background: #e0dedd; }

/* Privacy badge */
.cf-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 12px;
}
.cf-privacy-badge svg { width: 11px; height: 11px; }

/* Status card */
.cf-status-card { padding: 16px; }
.cf-status-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.cf-status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #444;
}
.cf-status-emoji { font-size: 18px; width: 28px; text-align: center; }
.cf-status-user { font-weight: 500; color: #1a1a1a; }
.cf-status-text { color: #666; font-size: 12px; }

/* Powered by footer */
.cf-powered {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  padding: 12px 0 0;
}
.cf-powered a { color: #e6b541; text-decoration: none; font-weight: 600; }
.cf-powered a:hover { text-decoration: underline; }

/* ================================================================
   POSTS WRAPPER  (keep Sngine's post cards, just tweak spacing)
   ================================================================ */
.cf-feed .alert-post,
.cf-feed .post-wrapper {
  border-radius: 12px !important;
  border: 1px solid #e0dedd !important;
  margin-bottom: 16px !important;
}

/* ================================================================
   ADMIN QUICK ACTIONS (small strip above sidebar)
   ================================================================ */
.cf-admin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e0dedd;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cf-admin-bar a, .cf-admin-bar button {
  font-size: 12px;
  color: #555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e0dedd;
  background: #fff;
  cursor: pointer;
  transition: background .12s;
}
.cf-admin-bar a:hover, .cf-admin-bar button:hover { background: #f5f5f5; }
.cf-admin-bar svg { width: 13px; height: 13px; }

/* ================================================================
   PENDING POSTS ALERT
   ================================================================ */
.cf-pending-alert {
  background: #fff8e6;
  border: 1px solid #e6b541;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #7a5a00;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.cf-pending-alert:hover { background: #fff3cc; }
.cf-pending-alert svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================================
   OTHER VIEWS (members, settings, photos, etc.) — full-width
   ================================================================ */
.cf-full-content {
  background: #fff;
  border: 1px solid #e0dedd;
  border-radius: 12px;
  overflow: hidden;
}

/* ================================================================
   COMMUNITY FEED REDESIGN
   ================================================================ */
.cf-feed-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-discovery-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid #ece7da;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(230, 181, 65, 0.2), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, #ffffff 62%);
  box-shadow: 0 22px 44px rgba(17, 17, 17, 0.05);
}

.cf-discovery-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4cd;
  color: #7a5a00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-discovery-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #111111;
}

.cf-discovery-hero p {
  margin: 8px 0 0;
  max-width: 620px;
  color: #5e5a53;
  font-size: 18px;
  line-height: 1.6;
}

.cf-discovery-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.cf-discovery-search-field {
  flex: 1;
  position: relative;
}

.cf-discovery-search-field svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  color: #9a9389;
  transform: translateY(-50%);
  pointer-events: none;
}

.cf-discovery-search-field input {
  width: 100%;
  height: 56px;
  border: 1px solid #dfd7ca;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 22px 0 50px;
  color: #111111;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cf-discovery-search-field input:focus {
  border-color: #e6b541;
  box-shadow: 0 0 0 4px rgba(230, 181, 65, 0.15);
}

.cf-discovery-search-btn {
  height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #e6b541;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.cf-discovery-search-btn:hover {
  background: #d7a437;
  transform: translateY(-1px);
}

.cf-discovery-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cf-discovery-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #dfd7ca;
  border-radius: 999px;
  background: #ffffff;
  color: #413c35;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.cf-discovery-chip:hover {
  color: #111111;
  border-color: #111111;
  transform: translateY(-1px);
}

.cf-discovery-chip.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.cf-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 24px;
  align-items: start;
}

.cf-content-grid.has-left-rail {
  grid-template-columns: 270px minmax(0, 1fr) 316px;
}

.cf-content-main,
.cf-content-left,
.cf-content-sidebar {
  min-width: 0;
}

.cf-side-panel {
  display: block;
}

.cf-side-panel > summary {
  display: none;
}

.cf-content-left .cf-side-panel,
.cf-content-sidebar .cf-side-panel {
  position: sticky;
  top: 132px;
}

.cf-checklist-card,
.cf-auth-card,
.cf-composer,
.cf-community-card,
.cf-suggested-card,
.cf-build-card {
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(17, 17, 17, 0.06);
}

.cf-checklist-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #ece7da;
}

.cf-checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cf-checklist-kicker {
  display: block;
  margin-bottom: 6px;
  color: #84796a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cf-checklist-head h2 {
  margin: 0;
  color: #111111;
  font-size: 24px;
  line-height: 1.1;
}

.cf-checklist-progress-copy {
  color: #111111;
  font-size: 13px;
  font-weight: 800;
}

.cf-checklist-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.cf-checklist-progress-step {
  height: 10px;
  border-radius: 999px;
  background: #eee9df;
}

.cf-checklist-progress-step.is-complete {
  background: linear-gradient(90deg, #e6b541 0%, #f1cd68 100%);
}

.cf-checklist-subtext {
  margin: 0 0 18px;
  color: #6b645b;
  font-size: 14px;
  line-height: 1.65;
}

.cf-checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1b1b1b;
}

.cf-checklist-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d9d2c6;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
}

.cf-checklist-item.is-complete .cf-checklist-mark {
  background: #179d49;
  border-color: #179d49;
  color: #ffffff;
}

.cf-checklist-mark svg {
  width: 12px;
  height: 12px;
}

.cf-checklist-link,
.cf-checklist-text {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cf-checklist-link:hover {
  color: #e6b541;
}

.cf-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #ece7da;
}

.cf-composer-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.cf-composer-avatar,
.cf-composer-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cf-composer-avatar {
  object-fit: cover;
}

.cf-composer-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.cf-composer-input {
  width: 100%;
  height: 46px;
  border: 1px solid #ece7da;
  border-radius: 999px;
  background: #faf7f0;
  padding: 0 18px;
  color: #8a857d;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.cf-composer-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid #ece7da;
  border-radius: 999px;
  background: #ffffff;
  color: #5d5750;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cf-composer-live:hover {
  color: #111111;
  border-color: #111111;
  transform: translateY(-1px);
}

.cf-composer-live svg {
  width: 16px;
  height: 16px;
}

.cf-auth-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #ece7da;
  text-align: center;
}

.cf-auth-card h2,
.cf-suggested-card h2,
.cf-build-card h2,
.cf-upload-card h2,
.cf-community-card h2 {
  margin: 0;
  color: #111111;
  font-size: 24px;
  line-height: 1.1;
}

.cf-auth-card p,
.cf-suggested-empty,
.cf-build-card p,
.cf-upload-card p,
.cf-community-card p {
  color: #645d54;
  font-size: 14px;
  line-height: 1.7;
}

.cf-auth-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cf-feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 16px;
}

.cf-feed-toolbar-link {
  color: #7a6d5b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cf-feed-toolbar-link:hover {
  color: #111111;
}

.cf-post-stream .alert-post,
.cf-post-stream .post-wrapper {
  border-radius: 16px !important;
  border: 1px solid #e8e1d6 !important;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.05);
  margin-bottom: 18px !important;
}

.cf-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-side-stack > .cf-card,
.cf-side-stack > .cf-upload-card {
  margin-bottom: 0;
}

.cf-upload-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #b35be4 0%, #8f49e0 100%);
  min-height: 182px;
  color: #ffffff;
}

.cf-upload-card-ribbon {
  position: absolute;
  top: 14px;
  right: -42px;
  transform: rotate(42deg);
  background: #ffd875;
  color: #7a4c00;
  padding: 7px 48px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cf-upload-card-body {
  height: 100%;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.cf-upload-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.cf-upload-card-action,
.cf-sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cf-upload-card-action:hover,
.cf-sidebar-cta:hover {
  transform: translateY(-1px);
}

.cf-upload-card-action {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.cf-upload-card-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cf-community-card {
  overflow: hidden;
}

.cf-community-card-cover img,
.cf-community-card-cover-placeholder {
  width: 100%;
  height: 132px;
  display: block;
}

.cf-community-card-cover img {
  object-fit: cover;
}

.cf-community-card-cover-placeholder {
  background: linear-gradient(135deg, #111111 0%, #3f3f3f 100%);
}

.cf-community-card-body,
.cf-suggested-card,
.cf-build-card {
  padding: 22px;
}

.cf-community-card-url {
  margin: 8px 0 12px;
  color: #8d857a;
  font-size: 12px;
}

.cf-community-card p {
  margin: 0 0 18px;
}

.cf-community-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 18px;
  border-top: 1px solid #f0ebe3;
  border-bottom: 1px solid #f0ebe3;
  margin-bottom: 18px;
}

.cf-community-card-stats strong {
  display: block;
  color: #111111;
  font-size: 20px;
  line-height: 1;
}

.cf-community-card-stats span {
  display: block;
  margin-top: 6px;
  color: #8a8177;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cf-sidebar-cta-dark {
  background: #111111;
  color: #ffffff;
}

.cf-sidebar-cta-dark:hover {
  background: #272727;
  color: #ffffff;
}

.cf-sidebar-cta-muted {
  background: #ffffff;
  border-color: #ddd4c8;
  color: #4d473f;
}

.cf-sidebar-cta-muted:hover {
  background: #faf7f1;
  color: #111111;
}

.cf-suggested-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cf-suggested-card-head h2 {
  font-size: 22px;
}

.cf-suggested-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-suggested-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111111;
  text-decoration: none;
  padding: 8px 0;
}

.cf-suggested-link:hover strong {
  color: #e6b541;
}

.cf-suggested-link img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cf-suggested-link strong {
  display: block;
  color: inherit;
  font-size: 14px;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.cf-suggested-link span {
  display: block;
  margin-top: 4px;
  color: #867d71;
  font-size: 12px;
}

.cf-suggested-empty,
.cf-build-card p {
  margin: 12px 0 0;
}

.cf-build-card .cf-sidebar-cta {
  margin-top: 18px;
}

.cf-feed-shell-simple {
  gap: 18px;
}

.cf-content-grid-simple {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}

.cf-feed-shell-simple .cf-composer {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ddd8cf;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.05);
  margin-bottom: 18px;
}

.cf-feed-shell-simple .cf-composer-input {
  background: #ffffff;
  border-color: transparent;
  color: #7e7a73;
  font-size: 15px;
  font-weight: 400;
}

.cf-feed-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 2px;
  color: #4e4a43;
  font-size: 15px;
  font-weight: 600;
}

.cf-feed-note svg {
  width: 17px;
  height: 17px;
  color: #111111;
  flex-shrink: 0;
}

.cf-feed-shell-simple .cf-feed-toolbar {
  margin: 10px 0 18px;
  align-items: center;
}

.cf-feed-shell-simple .cf-pill {
  background: #ffffff;
  border-color: #ddd8cf;
  color: #787168;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}

.cf-feed-shell-simple .cf-pill.active {
  background: #9a9893;
  border-color: #9a9893;
  color: #ffffff;
}

.cf-feed-shell-simple .cf-feed-toolbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #ddd8cf;
  border-radius: 999px;
  background: #ffffff;
  color: #6a645c;
  font-size: 13px;
  font-weight: 700;
}

.cf-feed-shell-simple .cf-feed-toolbar-link:hover {
  background: #f5f2ed;
}

.cf-feed-shell-simple .cf-post-stream .post-wrapper,
.cf-feed-shell-simple .cf-post-stream .alert-post {
  border-radius: 14px !important;
  border: 1px solid #ddd8cf !important;
  box-shadow: none;
}

.cf-feed-shell-simple .cf-post-stream .post-wrapper:hover {
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
}

.cf-feed-shell-simple .cf-post-stream .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-feed-shell-simple .cf-post-stream .js_posts_stream > ul > li {
  margin: 0;
  padding: 0;
}

.cf-feed-shell-simple .cf-post-stream .post {
  margin-bottom: 18px;
  border: 1px solid #e7dfd3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.04);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cf-feed-shell-simple .cf-post-stream .post:hover {
  border-color: #e6b541;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.08);
  transform: translateY(-1px);
}

.cf-feed-shell-simple .cf-post-stream .post-body {
  padding: 18px 18px 16px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0px;
  grid-template-areas:
    "header media"
    "content media"
    "stats media"
    "actions media";
  column-gap: 18px;
  row-gap: 0;
  align-items: start;
}

.cf-feed-shell-simple .cf-post-stream .post-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
  margin-bottom: 10px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-header,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-header {
  grid-area: header;
  margin-bottom: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.cf-feed-shell-simple .cf-post-stream .post-avatar-picture {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: block;
}

.cf-feed-shell-simple .cf-post-stream .post-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: center;
}

.cf-feed-shell-simple .cf-post-stream .post-author {
  color: #111111;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cf-feed-shell-simple .cf-post-stream .post-author:hover {
  color: #111111;
}

.cf-feed-shell-simple .cf-post-stream .post-title {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7f786d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.cf-feed-shell-simple .cf-post-stream .post-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3e6cf4;
  margin-right: 6px;
  flex-shrink: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-time {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #80776d;
  font-size: 12px;
  font-weight: 600;
}

.cf-feed-shell-simple .cf-post-stream .post-time a {
  color: inherit;
  text-decoration: none;
}

.cf-feed-shell-simple .cf-post-stream .post-time a:hover {
  color: #111111;
}

.cf-feed-shell-simple .cf-post-stream .post-time .post-title {
  order: 3;
}

.cf-feed-shell-simple .cf-post-stream .post-replace {
  margin: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-replace,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-replace {
  grid-area: content;
}

.cf-feed-shell-simple .cf-post-stream .post-text,
.cf-feed-shell-simple .cf-post-stream .post-text-translation {
  color: #2e2a24;
  font-size: 15px;
  line-height: 1.65;
}

.cf-feed-shell-simple .cf-post-stream .post-text.cf-feed-excerpt,
.cf-feed-shell-simple .cf-post-stream .post-text-translation.cf-feed-excerpt {
  display: block;
  text-align: left;
}

.cf-feed-shell-simple .cf-post-stream .post-replace .see-more,
.cf-feed-shell-simple .cf-post-stream .post-replace .js_readmore + a,
.cf-feed-shell-simple .cf-post-stream .post-replace .js_readmore + span {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .post-body > .mt10 {
  margin-top: 14px !important;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > .mt10,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > .mt10,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > .mt10 {
  grid-area: media;
  width: 132px;
  margin-top: 0 !important;
}

.cf-feed-shell-simple .cf-post-stream .pg_wrapper,
.cf-feed-shell-simple .cf-post-stream .pg_1x {
  width: 100%;
}

.cf-feed-shell-simple .cf-post-stream .pg_1x a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f4efe6;
}

.cf-feed-shell-simple .cf-post-stream .pg_1x img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-feed-shell-simple .cf-post-stream .post-stats {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0ebe3;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-stats,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-stats {
  grid-area: stats;
  margin-top: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-stats .float-end {
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cf-feed-shell-simple .cf-post-stream .post-stats .pointer,
.cf-feed-shell-simple .cf-post-stream .post-stats span {
  color: #6f665b;
  font-size: 13px;
  font-weight: 600;
}

.cf-feed-shell-simple .cf-post-stream .post-stats .pointer:hover {
  color: #111111;
}

.cf-feed-shell-simple .cf-post-stream .post-stats i {
  color: #e6b541;
  margin-right: 6px;
}

.cf-feed-shell-simple .cf-post-stream .post-stats span:has(.fa-share),
.cf-feed-shell-simple .cf-post-stream .post-stats span:has(.fa-eye),
.cf-feed-shell-simple .cf-post-stream .post-stats span:has(.fa-star) {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .post-actions {
  margin-top: 12px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-actions,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-actions {
  grid-area: actions;
  margin-top: 0;
}

.cf-feed-shell-simple .cf-post-stream .posts-filter {
  margin-bottom: 16px;
  padding: 0 4px;
  color: #6e655b;
  font-size: 13px;
  font-weight: 700;
}

.cf-feed-shell-simple .cf-post-stream .posts-filter span {
  color: #111111;
}

.cf-side-stack-simple {
  gap: 14px;
}

.cf-community-card-simple {
  border-radius: 14px;
  box-shadow: none;
  border: 1px solid #ddd8cf;
}

.cf-community-card-simple .cf-community-card-cover img,
.cf-community-card-simple .cf-community-card-cover-placeholder {
  height: 116px;
}

.cf-community-card-simple .cf-community-card-body {
  padding: 16px;
}

.cf-community-card-simple h2 {
  font-size: 16px;
}

.cf-community-card-simple .cf-community-card-url {
  margin: 6px 0 10px;
}

.cf-community-card-simple p {
  margin: 0 0 14px;
  font-size: 13px;
}

.cf-community-card-simple .cf-community-card-stats {
  margin-bottom: 14px;
  padding: 12px 0 14px;
}

.cf-member-preview {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.cf-member-preview img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-right: -7px;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
}

.cf-sidebar-cta-soft {
  background: #ffffff;
  border-color: #f1c9b4;
  color: #8d5f43;
}

.cf-sidebar-cta-soft:hover {
  background: #fff8f3;
  color: #774f36;
}

.cf-status-panel {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #ddd8cf;
  box-shadow: none;
}

.cf-status-panel h3 {
  margin: 0 0 14px;
  color: #111111;
  font-size: 18px;
  line-height: 1.1;
}

.cf-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-status-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #5c554d;
  font-size: 13px;
}

.cf-status-list strong {
  color: #111111;
  font-size: 13px;
}

.cf-status-list span,
.cf-status-list a {
  color: #6d665d;
  text-decoration: none;
  text-align: right;
}

.cf-status-list a:hover {
  color: #111111;
}

.cf-compose-open {
  overflow: hidden;
}

.cf-compose-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.cf-compose-overlay.is-open {
  display: block;
}

.cf-compose-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
  backdrop-filter: blur(4px);
}

.cf-compose-modal {
  position: relative;
  z-index: 1;
  width: min(770px, calc(100vw - 32px));
  max-height: calc(100vh - 56px);
  margin: 28px auto;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid #ddd8cf;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.24);
}

.cf-compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 8px;
}

.cf-compose-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-compose-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f1eb;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.cf-compose-author-name {
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.cf-compose-author-meta {
  color: #756d63;
  font-size: 13px;
  line-height: 1.4;
}

.cf-compose-close,
.cf-compose-panel-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f5f2ed;
  color: #6b655d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cf-compose-close:hover,
.cf-compose-panel-close:hover {
  background: #ece6dd;
  color: #111111;
}

.cf-compose-form {
  padding: 0 16px 8px;
}

.cf-compose-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f1df9d;
  background: #fff8db;
  color: #6d5200;
  font-size: 14px;
  line-height: 1.5;
}

.cf-compose-alert.is-warning {
  border-color: #f4d0bc;
  background: #fff5ef;
  color: #8d5f43;
}

.cf-compose-field + .cf-compose-field {
  margin-top: 12px;
}

.cf-compose-label {
  display: block;
  margin-bottom: 6px;
  color: #90867a;
  font-size: 14px;
  font-weight: 700;
}

.cf-compose-title-input,
.cf-compose-textarea,
.cf-compose-inline-input,
.cf-compose-select {
  width: 100%;
  border: 1px solid #ddd8cf;
  border-radius: 16px;
  background: #ffffff;
  color: #111111;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cf-compose-title-input:focus,
.cf-compose-textarea:focus,
.cf-compose-inline-input:focus,
.cf-compose-select:focus {
  outline: none;
  border-color: #e6b541;
  box-shadow: 0 0 0 4px rgba(230, 181, 65, 0.16);
}

.cf-compose-title-input {
  padding: 10px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.cf-compose-title-input::placeholder {
  color: #a89f94;
}

.cf-compose-textarea {
  min-height: 116px;
  resize: vertical;
  padding: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.cf-compose-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #ece6dd;
  border-radius: 14px;
  background: #faf8f4;
}

.cf-compose-panel.is-hidden {
  display: none;
}

.cf-compose-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cf-compose-panel-head h3 {
  margin: 0;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
}

.cf-compose-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.cf-compose-inline-input {
  min-height: 46px;
  padding: 0 15px;
  font-size: 14px;
}

.cf-compose-inline-button {
  min-height: 46px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cf-compose-inline-button:hover {
  background: #222222;
  transform: translateY(-1px);
}

.cf-compose-inline-button-light {
  margin-top: 12px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #ddd8cf;
}

.cf-compose-inline-button-light:hover {
  background: #f6f2ec;
}

.cf-compose-link-preview {
  margin-top: 14px;
}

.cf-compose-link-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #ddd8cf;
  background: #ffffff;
}

.cf-compose-link-thumb img {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.cf-compose-link-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-compose-link-copy strong {
  color: #111111;
  font-size: 15px;
  line-height: 1.4;
}

.cf-compose-link-copy span,
.cf-compose-link-copy small {
  color: #7c746b;
  font-size: 13px;
  line-height: 1.5;
}

.cf-compose-poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-compose-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cf-compose-emoji {
  min-height: 48px;
  border: 1px solid #ddd8cf;
  border-radius: 14px;
  background: #ffffff;
  font-size: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cf-compose-emoji:hover {
  transform: translateY(-1px);
  border-color: #e6b541;
}

.cf-compose-upload-note {
  color: #6f675e;
  font-size: 14px;
  line-height: 1.6;
}

.cf-compose-media {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ece6dd;
  background: #faf8f4;
}

.cf-compose-media.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cf-compose-media-title {
  margin-bottom: 10px;
  color: #5f584f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-compose-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-compose-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ddd8cf;
  color: #111111;
  font-size: 13px;
  line-height: 1.3;
}

.cf-compose-chip button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #f1ede7;
  color: #6b655d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cf-compose-empty-inline {
  color: #958b7e;
  font-size: 13px;
  line-height: 1.5;
}

.cf-compose-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ece6dd;
}

.cf-compose-tools,
.cf-compose-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-compose-tool {
  min-width: 42px;
  height: 42px;
  border: 1px solid #ddd8cf;
  border-radius: 999px;
  background: #ffffff;
  color: #6f675e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cf-compose-tool:hover {
  border-color: #e6b541;
  color: #111111;
  transform: translateY(-1px);
}

.cf-compose-tool span {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.cf-compose-select-wrap {
  position: relative;
  min-width: 194px;
}

.cf-compose-select {
  min-height: 42px;
  padding: 0 42px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #5f584f;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f675e 50%),
    linear-gradient(135deg, #6f675e 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.cf-compose-action {
  min-width: 108px;
  min-height: 42px;
  border: none;
  border-radius: 14px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.cf-compose-action:hover {
  transform: translateY(-1px);
}

.cf-compose-action-muted {
  background: transparent;
  color: #8a8176;
}

.cf-compose-action-primary {
  background: #111111;
  color: #ffffff;
}

.cf-compose-action-primary:hover {
  background: #242424;
}

.cf-compose-action:disabled,
.cf-compose-inline-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.cf-compose-email-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 8px;
}

.cf-compose-email-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7b7268;
  font-size: 13px;
  font-weight: 600;
}

.cf-compose-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.cf-compose-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.cf-compose-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ddd8cf;
  transition: background 0.18s ease;
}

.cf-compose-switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.18);
  transition: transform 0.18s ease;
}

.cf-compose-switch input:checked + .cf-compose-switch-slider {
  background: #e6b541;
}

.cf-compose-switch input:checked + .cf-compose-switch-slider::before {
  transform: translateX(22px);
}

@media (max-width: 820px) {
  .cf-compose-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 14px;
  }

  .cf-compose-header,
  .cf-compose-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cf-compose-title-input {
    font-size: 18px;
  }

  .cf-compose-media.is-active,
  .cf-compose-toolbar,
  .cf-compose-link-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cf-compose-toolbar {
    gap: 14px;
  }

  .cf-compose-tools,
  .cf-compose-actions {
    width: 100%;
  }

  .cf-compose-action,
  .cf-compose-select-wrap {
    flex: 1 1 100%;
    width: 100%;
  }

  .cf-compose-email-row {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .cf-compose-emoji-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cf-compose-textarea {
    min-height: 108px;
  }
}

/* ================================================================
   CLASSROOM (Course Creation + Feed)
   ================================================================ */
.hc-classroom,
.hc-community-settings,
.hc-course-view,
.hc-builder-page {
  --hc-classroom-text: #111111;
  --hc-classroom-muted: #69707d;
  --hc-classroom-border: #e8e8e8;
  --hc-classroom-panel: #fbfaf7;
  --hc-classroom-yellow: #e6b541;
  --hc-classroom-yellow-dark: #cd9c2f;
  --hc-classroom-green: #1f9d41;
}

.hc-classroom {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--hc-classroom-text);
}

.hc-classroom-shell {
  padding: 18px 28px 28px;
  background: #ffffff;
}

.hc-classroom-top {
  position: sticky;
  top: 60px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding-bottom: 6px;
}

.hc-classroom-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--hc-classroom-border);
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hc-classroom-nav::-webkit-scrollbar {
  display: none;
}

.hc-classroom-nav-link {
  color: var(--hc-classroom-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hc-classroom-nav-link.active {
  color: var(--hc-classroom-text);
  border-color: var(--hc-classroom-text);
  font-weight: 800;
}

.hc-classroom-nav-link.muted {
  color: #a1a6b0;
  cursor: not-allowed;
}

.hc-classroom-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.hc-classroom-hero-copy {
  max-width: 620px;
}

.hc-classroom-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hc-classroom-text);
}

.hc-classroom-hero p {
  margin: 8px 0 0;
  color: var(--hc-classroom-muted);
  font-size: 17px;
  line-height: 1.6;
}

.hc-classroom-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hc-classroom-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hc-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hc-section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hc-classroom-text);
}

.hc-section-heading p {
  margin: 6px 0 0;
  max-width: 720px;
  color: var(--hc-classroom-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hc-classroom-empty-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.hc-admin-panel {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, var(--hc-classroom-panel) 100%);
  padding: 24px;
  display: none;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.06);
}

.hc-admin-panel.open {
  display: block;
}

.hc-admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.hc-admin-panel-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hc-classroom-text);
}

.hc-admin-panel-head p {
  margin: 0;
  max-width: 720px;
  color: var(--hc-classroom-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hc-admin-close {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  color: #7f8593;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}

.hc-builder-form,
.hc-payment-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-builder-card {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
}

.hc-builder-card h2,
.hc-builder-card h3 {
  margin: 0 0 8px;
  color: var(--hc-classroom-text);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hc-builder-card p {
  margin: 0 0 14px;
  color: var(--hc-classroom-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hc-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hc-builder-form label,
.hc-payment-settings-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #303744;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hc-builder-form input,
.hc-builder-form select,
.hc-builder-form textarea,
.hc-payment-settings-form input,
.hc-payment-settings-form textarea {
  min-height: 50px;
  border: 1px solid #d8dde6;
  border-radius: 14px;
  font-size: 14px;
  color: var(--hc-classroom-text);
  padding: 12px 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-builder-form textarea,
.hc-payment-settings-form textarea {
  min-height: 120px;
  resize: vertical;
}

.hc-builder-form input:focus,
.hc-builder-form select:focus,
.hc-builder-form textarea:focus,
.hc-payment-settings-form input:focus,
.hc-payment-settings-form textarea:focus {
  border-color: var(--hc-classroom-yellow);
  box-shadow: 0 0 0 4px rgba(230, 181, 65, 0.16);
}

.hc-builder-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hc-curriculum-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-curriculum-row {
  border: 1px solid #eceef3;
  border-radius: 16px;
  padding: 16px;
  background: #fafbfc;
}

.hc-rte {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  border: 1px solid #ddd3bf;
  border-radius: 16px;
  overflow: hidden;
  background: #fffefb;
}

.hc-rte:focus-within {
  border-color: #c5b89e;
  box-shadow: 0 0 0 3px rgba(221, 211, 191, 0.25);
}

.hc-rte-toolbar {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid #e8dfd0;
  background: transparent;
}

.hc-rte-button {
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #7a6e5f;
  min-width: 30px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  outline: none;
}

.hc-rte-button:hover {
  background: #ede8df;
  color: #3a2f1e;
}

.hc-rte-button.is-active {
  background: #e6ddd0;
  color: #3a2f1e;
}

.hc-rte-editor {
  flex: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 130px;
  border: none;
  font-size: 14px;
  color: var(--hc-classroom-text);
  padding: 14px 16px;
  outline: none;
  background: transparent;
  line-height: 1.65;
  cursor: text;
  word-break: break-word;
  overflow-y: auto;
}

.hc-rte-editor[data-empty="1"]::before {
  content: attr(data-placeholder);
  color: #b8ae9e;
  pointer-events: none;
  display: block;
}

.hc-rte-input {
  flex: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 130px;
  border: none;
  border-top: 1px solid #e8dfd0;
  border-radius: 0;
  padding: 14px 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  background: transparent;
}

.hc-rte-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  min-height: 24px;
  padding: 2px 12px;
  border-top: 1px solid #e8dfd0;
}

.hc-rte-button.is-active {
  background: #edf0f8;
  color: #1a2035;
}

.hc-rte-color-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.hc-rte-color-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
}

.hc-rte-color-bar {
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #000;
}

.js-hc-rte-color-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}

.hc-rte-autosave {
  font-size: 11px;
  font-weight: 500;
  color: #99a1b2;
  transition: color 0.2s ease;
}

.hc-rte-autosave.is-saving {
  color: #99a1b2;
}

.hc-rte-autosave.is-saved {
  color: #34a853;
}

.hc-rte-autosave.is-error {
  color: #d93025;
}

@media (max-width: 640px) {
  .hc-rte-toolbar {
    gap: 0;
  }
  .hc-rte-button {
    min-width: 36px;
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
  }
  .hc-rte-color-btn {
    padding: 0 8px;
  }
}

.hc-check-inline {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  color: #596070 !important;
  font-size: 13px !important;
  margin-top: 8px;
}

.hc-check-inline input {
  width: auto;
  margin: 0;
}

.hc-curriculum-remove {
  border: none;
  background: transparent;
  color: #ce2f2f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  padding: 0;
}

.hc-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hc-builder-empty {
  border: 1px dashed #d7dbe4;
  border-radius: 18px;
  padding: 34px 24px;
  text-align: center;
  background: #ffffff;
}

.hc-builder-empty.is-hidden {
  display: none;
}

.hc-builder-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef0f4;
  color: #5d6472;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 12px;
}

.hc-classroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.hc-course-card {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hc-course-card:hover {
  transform: translateY(-4px);
  border-color: #dcdcdc;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.1);
}

.hc-course-cover {
  display: block;
  position: relative;
  height: 188px;
  background: #f2f2f2;
}

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

.hc-course-level {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: #1a1d24;
  font-size: 11px;
  padding: 6px 10px;
  font-weight: 800;
}

.hc-course-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 99px;
  padding: 6px 10px;
}

.hc-course-status-purchased {
  background: #e9f9ef;
  color: var(--hc-classroom-green);
}

.hc-course-status-pending {
  background: #fff7e6;
  color: #a26b00;
}

.hc-course-status-unpaid {
  background: rgba(16, 18, 24, 0.78);
  color: #ffffff;
}

.hc-course-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.hc-course-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hc-classroom-text);
  text-decoration: none;
}

.hc-course-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hc-classroom-muted);
  min-height: 72px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hc-course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hc-course-meta-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f7f9;
}

.hc-course-meta-item dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #858c98;
}

.hc-course-meta-item dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #232833;
  font-weight: 700;
}

.hc-course-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.hc-course-price {
  color: var(--hc-classroom-text);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.hc-course-price-free {
  color: var(--hc-classroom-green);
  font-weight: 800;
}

.hc-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.hc-course-actions .hc-course-btn {
  width: 100%;
  justify-content: center;
}

.hc-classroom-payment,
.hc-classroom-approvals {
  scroll-margin-top: 132px;
}

.hc-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}

.hc-payment-grid-admin {
  grid-template-columns: minmax(0, 1fr);
}

.hc-payment-card {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 22px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.04);
}

.hc-payment-card-head {
  margin-bottom: 16px;
}

.hc-payment-card-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--hc-classroom-text);
}

.hc-payment-card-head p,
.hc-payment-admin-hint p,
.hc-payment-form-empty span {
  margin: 0;
  color: var(--hc-classroom-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hc-payment-admin-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.hc-payment-course-summary,
.hc-payment-form-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #eceef3;
  border-radius: 16px;
  background: #f8f9fb;
  margin-bottom: 16px;
}

.hc-payment-course-summary strong,
.hc-payment-form-empty strong {
  font-size: 15px;
  color: var(--hc-classroom-text);
}

.hc-payment-course-summary span {
  color: var(--hc-classroom-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hc-approvals-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-approval-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--hc-classroom-border);
  border-radius: 22px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.04);
}

.hc-approval-card-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.hc-approval-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hc-approval-user img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.hc-approval-user strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: var(--hc-classroom-text);
}

.hc-approval-user span {
  display: block;
  margin-top: 4px;
  color: var(--hc-classroom-muted);
  font-size: 13px;
}

.hc-approval-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hc-approval-meta div {
  padding: 14px;
  border-radius: 16px;
  background: #f7f8fa;
}

.hc-approval-meta label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #848c98;
}

.hc-approval-meta span,
.hc-approval-meta a {
  font-size: 14px;
  line-height: 1.7;
  color: #1f2530;
  text-decoration: none;
  word-break: break-word;
}

.hc-approval-meta a {
  color: #2754db;
  font-weight: 700;
}

.hc-approval-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.hc-approvals-empty {
  padding-top: 34px;
  padding-bottom: 34px;
}

.hc-course-btn {
  border: 1px solid #e0dedd;
  background: #fff;
  color: #1a1a1a;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hc-course-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.hc-course-btn-dark {
  background: #111111;
  border-color: #111111;
  color: #fff;
}

.hc-course-btn-dark:hover {
  background: #222222;
  color: #fff;
  transform: translateY(-1px);
}

.hc-course-btn-light {
  background: #f5f6f8;
  border-color: #dfe2ea;
  color: #202531;
}

.hc-course-btn-yellow {
  background: var(--hc-classroom-yellow);
  border-color: var(--hc-classroom-yellow);
  color: #111111;
}

.hc-course-btn-yellow:hover {
  background: var(--hc-classroom-yellow-dark);
  border-color: var(--hc-classroom-yellow-dark);
}

.hc-course-btn-danger {
  border-color: #e53e3e;
  color: #e53e3e;
}

.hc-course-btn-danger:hover {
  background: #fff5f5;
}

.hc-classroom-empty {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
}

.hc-classroom-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--hc-classroom-text);
}

.hc-classroom-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--hc-classroom-muted);
  line-height: 1.7;
}

.hc-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hc-modal.open {
  display: flex;
}

.hc-modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--hc-classroom-border);
  padding: 24px;
  position: relative;
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.2);
}

.hc-modal-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hc-classroom-text);
}

.hc-modal-note {
  margin: 0 0 12px;
  color: var(--hc-classroom-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hc-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.hc-bank-details {
  border: 1px dashed #d4d8e2;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #2f3545;
  font-size: 14px;
  background: #fafbfc;
}

.hc-enroll-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-enroll-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #3b4250;
  font-weight: 700;
}

.hc-enroll-form input,
.hc-enroll-form textarea {
  min-height: 50px;
  border: 1px solid #dfe2ea;
  border-radius: 14px;
  padding: 12px 14px;
}

.hc-enroll-form textarea {
  min-height: 120px;
  resize: vertical;
}

.hc-pending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-pending-item {
  border: 1px solid #f0eeeb;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}

.hc-pending-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-pending-user img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.hc-pending-user strong {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
}

.hc-pending-user span,
.hc-pending-user small {
  font-size: 12px;
  color: #6b7280;
  display: block;
}

.hc-pending-user a {
  font-size: 12px;
  color: #1e4ddb;
  text-decoration: none;
  font-weight: 700;
}

.hc-pending-empty {
  margin: 0;
  font-size: 14px;
  color: var(--hc-classroom-muted);
}

.hc-course-view,
.hc-builder-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hc-course-view-header,
.hc-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hc-course-back {
  color: #202531;
  text-decoration: none;
  font-weight: 700;
}

.hc-course-view-header .hc-course-btn,
.hc-builder-header .hc-course-btn {
  white-space: nowrap;
}

.hc-builder-header p {
  margin: 4px 0 0;
  color: var(--hc-classroom-muted);
  font-size: 14px;
}

.hc-builder-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hc-course-hero-card {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.05);
}

.hc-course-hero-cover {
  height: 320px;
}

.hc-course-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-course-hero-content {
  padding: 28px;
}

.hc-course-hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hc-course-hero-tags span {
  background: #f1f3f7;
  color: #353c4d;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 700;
}

.hc-course-hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--hc-classroom-text);
}

.hc-course-hero-content p {
  margin: 0;
  color: #5e6575;
  font-size: 18px;
  line-height: 1.55;
}

.hc-course-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.hc-course-hero-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--hc-classroom-text);
}

.hc-course-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hc-course-detail-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f7f8fa;
}

.hc-course-detail-grid dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #848c98;
}

.hc-course-detail-grid dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2530;
  font-weight: 700;
}

.hc-course-curriculum-view,
.hc-course-enroll-box {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
}

.hc-course-curriculum-view h2,
.hc-course-enroll-box h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hc-classroom-text);
}

.hc-course-curriculum-view h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--hc-classroom-text);
}

.hc-course-curriculum-item {
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  background: #fff;
}

.hc-course-curriculum-item strong {
  color: #14181f;
  font-size: 15px;
}

.hc-course-curriculum-item span {
  display: inline-block;
  margin-left: 8px;
  background: #fff7e6;
  color: #a26b00;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 7px;
}

.hc-course-curriculum-item p {
  margin: 8px 0 0;
  color: #61697a;
  line-height: 1.7;
}

.hc-course-curriculum-item a,
.hc-course-proof-link {
  color: #2754db;
  text-decoration: none;
  font-weight: 700;
}

.hc-course-enroll-box p {
  margin: 0 0 12px;
  color: var(--hc-classroom-muted);
  font-size: 15px;
  line-height: 1.7;
}

.hc-course-inline-note {
  color: #6d7482;
  margin: 0;
}

.hc-course-pending-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
  text-align: center;
  padding: 12px;
}

.hc-course-pending-state h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hc-classroom-text);
}

.hc-course-pending-state p {
  max-width: 460px;
  margin: 0;
}

.hc-course-pending-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f3f7;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.hc-community-settings {
  margin-top: 28px;
}

.hc-settings-card {
  border: 1px solid var(--hc-classroom-border);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.05);
}

.hc-settings-card-head {
  margin-bottom: 18px;
}

.hc-settings-card-head h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hc-classroom-text);
}

.hc-settings-card-head p,
.hc-settings-card-foot p {
  margin: 0;
  color: var(--hc-classroom-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hc-settings-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .cf-content-grid,
  .cf-content-grid.has-left-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-content-left .cf-side-panel,
  .cf-content-sidebar .cf-side-panel {
    position: static;
  }

  .cf-side-panel {
    border: 1px solid #ece7da;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
  }

  .cf-side-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

  .cf-side-panel > summary::-webkit-details-marker {
    display: none;
  }

  .cf-side-panel > summary::after {
    content: "+";
    color: #7d756b;
    font-size: 18px;
    line-height: 1;
  }

  .cf-side-panel[open] > summary::after {
    content: "-";
  }

  .cf-side-panel:not([open]) > :not(summary) {
    display: none;
  }
}

@media (max-width: 900px) {
  .cf-layout { flex-direction: column; }
  .cf-sidebar { width: 100%; position: static; }
  .cf-nav-search { max-width: 200px; }
  .cf-nav-brand-name { max-width: 120px; }
  .cf-content-grid-simple { grid-template-columns: 1fr; }
  .cf-content-grid-simple .cf-content-sidebar { display: none; }
  .cf-feed-note { justify-content: flex-start; }
  .cf-feed-shell-simple .cf-post-stream .post-body,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cf-feed-shell-simple .cf-post-stream .post-body > .mt10,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > .mt10,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > .mt10 {
    width: 100%;
    margin-top: 0 !important;
  }
  .cf-feed-shell-simple .cf-post-stream .pg_1x a {
    width: min(180px, 100%);
  }
  .cf-discovery-hero { padding: 24px 20px; }
  .cf-discovery-hero h1 { font-size: 42px; }
  .cf-discovery-search { max-width: none; }
  .cf-composer,
  .cf-feed-toolbar,
  .cf-auth-actions { flex-direction: column; align-items: stretch; }
  .cf-composer-live,
  .cf-auth-actions .cf-sidebar-cta { width: 100%; }
  .hc-classroom-shell { padding: 18px 16px; }
  .hc-classroom-hero { flex-direction: column; }
  .hc-classroom-hero h1 { font-size: 34px; }
  .hc-admin-panel,
  .hc-settings-card { padding: 20px; }
  .hc-payment-grid,
  .hc-approval-meta { grid-template-columns: 1fr; }
  .hc-approval-card { flex-direction: column; }
  .hc-approval-actions { flex-direction: row; flex-wrap: wrap; }
  .hc-classroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-course-title { font-size: 22px; }
  .hc-course-hero-content h1 { font-size: 38px; }
  .hc-course-hero-cover { height: 250px; }
  .hc-course-detail-grid { grid-template-columns: 1fr; }
  .hc-settings-card-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .cf-nav { padding: 0 12px; }
  .cf-page { padding: 16px 12px; }
  .cf-tabs-inner { padding: 0 12px; }
  .cf-tab { padding: 12px 12px 10px; }
  .cf-nav-search { display: none; }
  .cf-feed-note { font-size: 14px; }
  .cf-feed-shell-simple .cf-feed-toolbar-link { width: 100%; }
  .cf-feed-shell-simple .cf-post-stream .post { border-radius: 16px; }
  .cf-feed-shell-simple .cf-post-stream .post-body,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) { padding: 16px; }
  .cf-feed-shell-simple .cf-post-stream .post-author { font-size: 16px; }
  .cf-feed-shell-simple .cf-post-stream .post-text,
  .cf-feed-shell-simple .cf-post-stream .post-text-translation { font-size: 14px; line-height: 1.7; }
  .cf-feed-shell-simple .cf-post-stream .post-stats { margin-top: 0; padding-top: 12px; }
  .cf-feed-shell-simple .cf-post-stream .post-stats .float-end { gap: 12px; }
  .cf-member-preview img { width: 26px; height: 26px; }
  .cf-discovery-hero { padding: 22px 18px; border-radius: 18px; }
  .cf-discovery-hero h1 { font-size: 34px; }
  .cf-discovery-hero p { font-size: 16px; }
  .cf-discovery-search { flex-direction: column; }
  .cf-discovery-search-btn { width: 100%; }
  .cf-discovery-categories { justify-content: flex-start; }
  .cf-checklist-card,
  .cf-auth-card,
  .cf-community-card-body,
  .cf-suggested-card,
  .cf-build-card { padding: 18px; }
  .cf-upload-card-body { padding: 24px 18px 18px; }
  .cf-community-card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cf-pending-alert { padding: 12px 14px; }
  .hc-classroom-shell { padding: 16px; }
  .hc-classroom-grid { grid-template-columns: 1fr; }
  .hc-builder-grid { grid-template-columns: 1fr; }
  .hc-classroom-nav { gap: 14px; }
  .hc-section-heading,
  .hc-builder-title-row,
  .hc-admin-panel-head { flex-direction: column; align-items: flex-start; }
  .hc-classroom-hero-actions,
  .hc-builder-header-actions,
  .hc-approval-actions { width: 100%; }
  .hc-classroom-hero-actions .hc-course-btn,
  .hc-builder-actions .hc-course-btn,
  .hc-builder-header-actions .hc-course-btn,
  .hc-course-actions .hc-course-btn,
  .hc-settings-card-foot .hc-course-btn,
  .hc-approval-actions .hc-course-btn { width: 100%; }
  .hc-classroom-hero h1 { font-size: 30px; }
  .hc-classroom-hero-metrics strong {
    font-size: clamp(18px, 5.7vw, 28px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
  .hc-classroom-hero-metrics span {
    font-size: 12px;
  }
  .hc-course-hero-cover { height: 190px; }
  .hc-course-hero-content h1 { font-size: 30px; }
  .hc-course-hero-content p { font-size: 16px; }
  .hc-builder-header,
  .hc-course-view-header,
  .hc-pending-item { flex-direction: column; align-items: flex-start; }
  .hc-payment-card,
  .hc-approval-card { padding: 18px; }
  .hc-course-meta { grid-template-columns: 1fr; }
  .hc-course-title { font-size: 20px; }
  .hc-course-hero-content { padding: 20px; }
  .hc-course-curriculum-view,
  .hc-course-enroll-box,
  .hc-modal-card { padding: 18px; }
  .hc-course-pending-state { min-height: 220px; }
}

/* ================================================================
   SINGLE POST FEED + OVERLAY
   ================================================================ */
.cf-feed-shell-simple .cf-post-stream .post.cf-feed-card {
  position: relative;
  overflow: visible;
}

.cf-feed-shell-simple .cf-post-stream .post-header {
  align-items: start;
  gap: 0;
}

.cf-feed-card-actions,
.cf-overlay-post-actions {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cf-feed-card-menu-button {
  width: 38px;
  height: 38px;
  border: 1px solid #ebe4d3;
  border-radius: 50%;
  background: #ffffff;
  color: #5d5547;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cf-feed-card-menu-button:hover {
  border-color: #e0b63b;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  color: #111111;
  transform: translateY(-1px);
}

.cf-feed-card-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  border: 1px solid #ece4d6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 44px rgba(17, 17, 17, 0.14);
  padding: 10px;
  z-index: 30;
}

.cf-feed-card-menu button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #151515;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cf-feed-card-menu button:hover {
  background: #fff7dd;
  color: #111111;
}

.cf-feed-card-menu button.is-danger {
  color: #e03a2f;
}

.cf-feed-card-menu button.is-danger:hover {
  background: #fff1ef;
  color: #d12d21;
}

.cf-feed-shell-simple .cf-post-stream .post.is-pinned {
  border-color: rgba(228, 181, 55, 0.82);
  box-shadow: 0 18px 38px rgba(228, 181, 55, 0.18);
}

.cf-feed-shell-simple .cf-post-stream .post.is-pinned::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  border: 1px solid rgba(228, 181, 55, 0.35);
}

.cf-feed-shell-simple .cf-post-stream .post-author,
.cf-overlay-post-author-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cf-feed-shell-simple .cf-post-stream .post-author::after,
.cf-overlay-post-author-name::after {
  content: "★";
  font-size: 14px;
  line-height: 1;
  color: #d39c00;
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time a,
.cf-feed-shell-simple .cf-post-stream .post-header .post-time .js_moment {
  color: #8d8373;
  font-size: 13px;
  font-weight: 600;
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time::after,
.cf-overlay-post-meta-row span:first-child::after {
  content: "";
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time {
  color: #8d8373;
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time i {
  color: #b59022;
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time,
.cf-overlay-post-meta-row {
  font-size: 13px;
}

.cf-feed-shell-simple .cf-post-stream .post-title {
  margin: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) {
  grid-template-columns: minmax(0, 1fr) 0px;
  align-items: start;
}

.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > .mt10 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > :not(.mt10),
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > :not(.mt10) {
  grid-column: 1;
}

.cf-feed-shell-simple .cf-post-stream .pg_1x a,
.cf-feed-shell-simple .cf-post-stream .pg_2x a,
.cf-feed-shell-simple .cf-post-stream .pg_3x a {
  width: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ece4d6;
  background: #f5f2ea;
}

.cf-feed-shell-simple .cf-post-stream .pg_1x img,
.cf-feed-shell-simple .cf-post-stream .pg_2x img,
.cf-feed-shell-simple .cf-post-stream .pg_3x img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-feed-shell-simple .cf-post-stream .post-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cf-feed-shell-simple .cf-post-stream .post-stats .float-start,
.cf-feed-shell-simple .cf-post-stream .post-stats .float-end {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  float: none !important;
  margin: 0 !important;
}

.cf-feed-shell-simple .cf-post-stream .post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #776d5f;
  font-size: 13px;
  font-weight: 700;
}

.cf-feed-shell-simple .cf-post-stream .post-stats img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-left: -8px;
  box-shadow: 0 3px 8px rgba(17, 17, 17, 0.12);
}

.cf-feed-shell-simple .cf-post-stream .post-stats img:first-child {
  margin-left: 0;
}

.cf-feed-hidden-control {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .post-header .dropdown-toggle:not(.cf-feed-card-menu-button):not(.js_moment),
.cf-feed-shell-simple .cf-post-stream .post-header .post-menu,
.cf-feed-shell-simple .cf-post-stream .post-header .dropdown:not(.cf-feed-card-actions) {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .post-meta > .js_user-popover {
  display: inline-flex;
  align-items: center;
}

.cf-feed-shell-simple .cf-post-stream .post-header .post-time {
  margin-top: 0;
}

.cf-feed-card-heading {
  margin: 2px 0 12px;
  color: #121212;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .cf-feed-card-heading,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .cf-feed-card-heading {
  grid-column: 1;
  margin-top: 4px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-replace,
.cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-replace {
  grid-column: 1;
}

.cf-post-overlay-open {
  overflow: hidden;
}

.cf-post-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  padding: 24px 12px;
}

.cf-post-overlay.is-open {
  display: block;
}

.cf-post-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.58);
  backdrop-filter: blur(2px);
}

.cf-post-overlay-modal {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(231, 222, 208, 0.95);
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(17, 17, 17, 0.28);
  display: flex;
  flex-direction: column;
}

.cf-post-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid #ece5d8;
  border-radius: 50%;
  background: #ffffff;
  color: #544d42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cf-post-overlay-close:hover {
  border-color: #d8cdb8;
  transform: scale(1.03);
}

.cf-community-settings-modal-open {
  overflow: hidden;
}

.cf-community-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
  padding: 18px;
}

.cf-community-settings-modal.is-open {
  display: block;
}

.cf-community-settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 14, 0.56);
  backdrop-filter: blur(3px);
}

.cf-community-settings-modal__dialog {
  position: relative;
  width: min(1240px, 100%);
  height: min(720px, calc(100vh - 36px));
  margin: 0 auto;
  border: 1px solid #dfd8cf;
  border-radius: 20px;
  background: #fcfbf9;
  box-shadow: 0 34px 90px rgba(16, 16, 16, 0.28);
  overflow: hidden;
}

.cf-community-settings-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8a847a;
  font-size: 20px;
}

.cf-community-settings-modal__shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: 100%;
}

.cf-community-settings-modal__sidebar {
  border-right: 1px solid #e4ddd3;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cf-community-settings-modal__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 22px 20px;
  border-bottom: 1px solid #efe8dc;
}

.cf-community-settings-modal__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b169ff 0%, #db8cff 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cf-community-settings-modal__brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cf-community-settings-modal__brand-copy strong {
  color: #191714;
  font-size: 16px;
  font-weight: 800;
}

.cf-community-settings-modal__brand-copy span {
  color: #8e867b;
  font-size: 12px;
  font-weight: 600;
}

.cf-community-settings-modal__nav {
  display: grid;
  gap: 4px;
  padding: 18px 14px 22px;
  overflow-y: auto;
}

.cf-community-settings-modal__nav button {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #23211d;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.cf-community-settings-modal__nav button.is-active {
  background: #f8dd95;
}

.cf-community-settings-modal__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fcfbf9;
}

.cf-community-settings-modal__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px 18px;
  border-bottom: 1px solid #efe8dc;
}

.cf-community-settings-modal__headline {
  margin: 0;
  color: #1f1c18;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cf-community-settings-modal__subline {
  margin: 8px 0 0;
  color: #8d8477;
  font-size: 14px;
  font-weight: 600;
}

.cf-community-settings-modal__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #8f877a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cf-community-settings-modal__panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 32px 32px;
}

.cf-community-settings-modal__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.cf-community-settings-modal__metric {
  min-height: 96px;
  padding: 18px 14px;
  border: 1px solid #e2dbd1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  display: grid;
  place-items: center;
  text-align: center;
}

.cf-community-settings-modal__metric strong {
  color: #23201c;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.cf-community-settings-modal__metric span {
  color: #8c8578;
  font-size: 13px;
  font-weight: 700;
}

.cf-csm-dashboard {
  display: grid;
  gap: 28px;
}

.cf-csm-dashboard__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cf-csm-dashboard__eyebrow {
  margin: 0 0 6px;
  color: #a28f6c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-csm-dashboard__hero h4 {
  margin: 0;
  color: #1f1c18;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cf-csm-dashboard__hero span {
  display: block;
  margin-top: 8px;
  color: #8d8477;
  font-size: 13px;
  font-weight: 600;
}

.cf-csm-dashboard__copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e5ddcf;
  border-radius: 999px;
  background: #ffffff;
  color: #766d63;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cf-csm-dashboard__copy-link:hover {
  border-color: #d8c9b1;
  color: #1f1c18;
}

.cf-csm-block {
  display: grid;
  gap: 16px;
}

.cf-csm-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cf-csm-block__head h5 {
  margin: 0;
  color: #1f1c18;
  font-size: 18px;
  font-weight: 800;
}

.cf-csm-block__head p {
  margin: 6px 0 0;
  color: #8d8477;
  font-size: 13px;
  line-height: 1.6;
}

.cf-csm-block__meta {
  color: #8d8477;
  font-size: 13px;
  font-weight: 700;
}

.cf-csm-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cf-csm-stat-grid--growth {
  margin-bottom: 4px;
}

.cf-csm-stat-card {
  min-height: 96px;
  padding: 18px 16px;
  border: 1px solid #e2dbd1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  display: grid;
  place-items: center;
  text-align: center;
}

.cf-csm-stat-card--toggle {
  width: 100%;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cf-csm-stat-card--toggle:hover {
  border-color: #d8c9b1;
  transform: translateY(-1px);
}

.cf-csm-stat-card--toggle:focus-visible {
  outline: 2px solid #1f1c18;
  outline-offset: 2px;
}

.cf-csm-stat-card.is-active {
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.cf-csm-detail-block[hidden] {
  display: none !important;
}

.cf-csm-stat-card strong {
  color: #23201c;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
}

.cf-csm-stat-card span {
  color: #8c8578;
  font-size: 13px;
  font-weight: 700;
}

.cf-csm-pill-tabs {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4ddd3;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.cf-csm-pill-tabs span {
  padding: 9px 14px;
  color: #8d8477;
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid #ece5d9;
}

.cf-csm-pill-tabs span:last-child {
  border-right: none;
}

.cf-csm-pill-tabs .is-active {
  background: #f1efec;
  color: #1f1c18;
}

.cf-csm-chart-card,
.cf-csm-heatmap-card,
.cf-csm-info-card,
.cf-csm-share-card {
  border: 1px solid #e2dbd1;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.cf-csm-line-chart {
  width: 100%;
  height: 300px;
  display: block;
}

.cf-csm-line-chart__area {
  fill: rgba(57, 167, 112, 0.12);
}

.cf-csm-line-chart__path {
  fill: none;
  stroke: #39a770;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cf-csm-line-chart__dot {
  fill: #1f1c18;
  stroke: #ffffff;
  stroke-width: 0.9;
}

.cf-csm-line-chart.is-money .cf-csm-line-chart__area {
  fill: rgba(116, 196, 181, 0.14);
}

.cf-csm-line-chart.is-money .cf-csm-line-chart__path {
  stroke: #49b5a0;
}

.cf-csm-line-chart.is-blue .cf-csm-line-chart__area {
  fill: rgba(49, 130, 246, 0.12);
}

.cf-csm-line-chart.is-blue .cf-csm-line-chart__path {
  stroke: #3182f6;
}

.cf-csm-line-chart.is-retention .cf-csm-line-chart__area {
  fill: rgba(254, 193, 107, 0.13);
}

.cf-csm-line-chart.is-retention .cf-csm-line-chart__path {
  stroke: #e7a73c;
}

.cf-csm-chart-axis {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cf-csm-chart-axis span {
  color: #938a7d;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.cf-csm-chart-axis span.is-muted {
  opacity: 0.5;
}

.cf-csm-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cf-csm-breakdown div {
  border: 1px solid #ece4d8;
  border-radius: 14px;
  background: #fcfbf9;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.cf-csm-breakdown span {
  color: #8d8477;
  font-size: 12px;
  font-weight: 700;
}

.cf-csm-breakdown strong {
  color: #1f1c18;
  font-size: 16px;
  font-weight: 800;
}

.cf-csm-heatmap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cf-csm-heatmap-head h6 {
  margin: 0;
  color: #1f1c18;
  font-size: 16px;
  font-weight: 800;
}

.cf-csm-heatmap-head span {
  color: #8d8477;
  font-size: 12px;
  font-weight: 600;
}

.cf-csm-heatmap {
  display: flex;
  gap: 4px;
}

.cf-csm-heatmap__week {
  display: grid;
  gap: 4px;
}

.cf-csm-heatmap__cell {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #eef0f3;
}

.cf-csm-heatmap__cell.level-1 {
  background: #d5eee0;
}

.cf-csm-heatmap__cell.level-2 {
  background: #a7dcc1;
}

.cf-csm-heatmap__cell.level-3 {
  background: #63be8c;
}

.cf-csm-heatmap__cell.level-4 {
  background: #238955;
}

.cf-csm-heatmap__cell.is-future {
  opacity: 0.22;
}

.cf-csm-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: #8d8477;
  font-size: 12px;
  font-weight: 700;
}

.cf-csm-heatmap-legend div {
  display: inline-flex;
  gap: 4px;
}

.cf-csm-heatmap-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #eef0f3;
}

.cf-csm-heatmap-legend .level-1 {
  background: #d5eee0;
}

.cf-csm-heatmap-legend .level-2 {
  background: #a7dcc1;
}

.cf-csm-heatmap-legend .level-3 {
  background: #63be8c;
}

.cf-csm-heatmap-legend .level-4 {
  background: #238955;
}

.cf-csm-growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
}

.cf-csm-info-card__head {
  margin-bottom: 14px;
}

.cf-csm-info-card__head h6,
.cf-csm-share-card strong {
  margin: 0;
  color: #1f1c18;
  font-size: 18px;
  font-weight: 800;
}

.cf-csm-info-card__head span,
.cf-csm-share-card p,
.cf-csm-empty-state p {
  color: #8d8477;
  font-size: 13px;
  line-height: 1.7;
}

.cf-csm-share-card p {
  margin: 10px 0 18px;
}

.cf-csm-source-list {
  display: grid;
  gap: 10px;
}

.cf-csm-source-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #efe8dc;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fcfbf9;
}

.cf-csm-source-list span {
  color: #4b443b;
  font-size: 13px;
  font-weight: 700;
}

.cf-csm-source-list strong {
  color: #1f1c18;
  font-size: 15px;
  font-weight: 800;
}

.cf-csm-empty-state {
  display: grid;
  gap: 8px;
  min-height: 180px;
  align-content: center;
  text-align: center;
}

.cf-csm-empty-state strong {
  color: #1f1c18;
  font-size: 18px;
  font-weight: 800;
}

.cf-csm-empty-state p {
  margin: 0;
}

.cf-csm-share-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cf-csm-share-card__row input {
  min-width: 0;
  height: 44px;
  border: 1px solid #e6dfd5;
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: #2754db;
  font-size: 14px;
  font-weight: 700;
}

.cf-csm-share-card__row button {
  min-width: 98px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #f6d473;
  color: #2a2111;
  font-size: 13px;
  font-weight: 800;
}

/* ── Nav badge (e.g. UNLISTED on Discovery) ── */
.cf-csm-nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #e53e3e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: middle;
  line-height: 1.6;
}

/* ── Section panels ── */
.cf-csm-section-panel {
  display: block;
}

.cf-csm-section-panel[hidden] {
  display: none;
}

/* ── Coming Soon placeholder ── */
.cf-csm-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
}

.cf-csm-coming-soon__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f4efe6;
  color: #c9ab6e;
}

.cf-csm-coming-soon__icon svg {
  width: 30px;
  height: 30px;
}

.cf-csm-coming-soon h4 {
  margin: 0;
  color: #1f1c18;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cf-csm-coming-soon p {
  margin: 0;
  color: #8d8477;
  font-size: 14px;
  font-weight: 500;
  max-width: 340px;
  line-height: 1.6;
}

.cf-csg {
  display: grid;
  gap: 16px;
}

.cf-csg__status {
  color: #8f877a;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.cf-csg__status.is-error {
  color: #c2410c;
}

.cf-csg__status.is-saving {
  color: #8f877a;
}

.cf-csg__status.is-success {
  color: #166534;
}

.cf-csg-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 18px;
}

.cf-csg-media-card {
  border: 1px solid #e3dccf;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.cf-csg-media-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cf-csg-media-card__head h5 {
  margin: 0;
  color: #1f1c18;
  font-size: 16px;
  font-weight: 800;
}

.cf-csg-media-card__head p {
  margin: 4px 0 0;
  color: #8d8477;
  font-size: 12px;
  line-height: 1.5;
}

.cf-csg-media-card__preview {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f0ec;
  border: 1px solid #ede7dc;
}

.cf-csg-media-card__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cf-csg-media-card__preview--logo {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
}

.cf-csg-media-card__preview--cover {
  width: 100%;
  aspect-ratio: 1084 / 576;
}

.cf-csg-media-card__fallback,
.cf-csg-media-card__cover-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #2754db;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cf-csg-media-card__fallback {
  background: linear-gradient(135deg, #b169ff 0%, #db8cff 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.cf-csg-media-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-csg-upload-btn,
.cf-csg-change-btn {
  min-width: 100px;
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.cf-csg-upload-btn {
  border: none;
  background: #f1f1f3;
  color: #2754db;
}

.cf-csg-change-btn {
  border: 1px solid #ddd6cb;
  background: #ffffff;
  color: #7a7267;
}

.cf-csg-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.cf-csg-field > span:first-child {
  color: #7f776b;
  font-size: 12px;
  font-weight: 700;
}

.cf-csg-field__counter {
  position: absolute;
  right: 0;
  top: 0;
  color: #a0988b;
  font-size: 11px;
  font-weight: 700;
}

.cf-csg-field input,
.cf-csg-field textarea {
  width: 100%;
  border: 1px solid #dfd8cf;
  border-radius: 14px;
  background: #ffffff;
  color: #1f1c18;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
}

.cf-csg-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cf-csg-field input:focus,
.cf-csg-field textarea:focus,
.cf-csm-dialog__field input:focus,
.cf-csm-dialog__url-input input:focus {
  outline: 2px solid rgba(246, 212, 115, 0.55);
  outline-offset: 1px;
  border-color: #e6c778;
}

.cf-csg-url-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #efd8a4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff3cf 0%, #ffe8ab 100%);
  padding: 16px 18px;
}

.cf-csg-url-card__copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cf-csg-url-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f2718;
}

.cf-csg-url-card__icon svg {
  width: 24px;
  height: 24px;
}

.cf-csg-url-card__copy strong {
  display: block;
  color: #2f2718;
  font-size: 20px;
  font-weight: 800;
}

.cf-csg-url-card__copy span {
  display: block;
  margin-top: 6px;
  color: #2754db;
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}

.cf-csg-url-card__button,
.cf-csm-dialog__cta,
.cf-csm-dialog__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #f4c85a;
  color: #2a2111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cf-csg-visibility {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e2dbd1;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.cf-csg-visibility__option {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 16px 16px;
  cursor: pointer;
  border-right: 1px solid #eae3d8;
}

.cf-csg-visibility__option:last-child {
  border-right: none;
}

.cf-csg-visibility__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cf-csg-visibility__option.is-active {
  background: #fffaf0;
}

.cf-csg-visibility__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f1c18;
}

.cf-csg-visibility__label strong {
  font-size: 14px;
  font-weight: 800;
}

.cf-csg-visibility__label i {
  color: #6b7280;
}

.cf-csg-visibility__option.is-active .cf-csg-visibility__label i {
  color: #2754db;
}

.cf-csg-visibility__option p {
  margin: 0;
  color: #8d8477;
  font-size: 12px;
  line-height: 1.6;
}

.cf-csg-support {
  color: #1f1c18;
  font-size: 15px;
  font-weight: 700;
}

.cf-csg-support span {
  color: #5b5448;
  font-weight: 600;
}

.cf-csg-support button {
  border: none;
  background: transparent;
  color: #2754db;
  font-size: 14px;
  font-weight: 700;
}

.cf-cspo {
  display: grid;
  gap: 18px;
}

.cf-cspo__status {
  color: #8f877a;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.cf-cspo__status.is-error {
  color: #c2410c;
}

.cf-cspo__status.is-saving {
  color: #8f877a;
}

.cf-cspo__status.is-success {
  color: #166534;
}

.cf-cspo__hero,
.cf-cspo__form-card,
.cf-cspo__summary-card {
  border: 1px solid #e3dccf;
  border-radius: 18px;
  background: #ffffff;
}

.cf-cspo__hero {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cf-cspo__hero-copy h4,
.cf-cspo__summary-head h5 {
  margin: 0;
  color: #1f1c18;
  font-size: 18px;
  font-weight: 800;
}

.cf-cspo__hero-copy p,
.cf-cspo__summary-head p {
  margin: 8px 0 0;
  color: #8d8477;
  font-size: 13px;
  line-height: 1.6;
}

.cf-cspo__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cf-cspo__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #faf4e3;
  color: #7c5a10;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cf-cspo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.cf-cspo__form-card {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
}

.cf-cspo__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cf-cspo__field > span:first-child {
  display: block;
  color: #4f463d;
  font-size: 12px;
  font-weight: 700;
}

.cf-cspo__field input,
.cf-cspo__field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ddd3c4;
  border-radius: 14px;
  background: #fffdf9;
  color: #1f1c18;
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cf-cspo__field textarea {
  min-height: 112px;
  resize: vertical;
}

.cf-cspo__field--full {
  grid-column: 1 / -1;
}

.cf-cspo__field input:focus,
.cf-cspo__field textarea:focus {
  border-color: #c89b2c;
  box-shadow: 0 0 0 3px rgba(230, 181, 65, 0.18);
  background: #ffffff;
  outline: none;
}

.cf-cspo__summary-card {
  padding: 18px 20px;
  display: grid;
  gap: 16px;
}

.cf-cspo__summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cf-cspo__copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d7c9ae;
  border-radius: 999px;
  background: #fff8ea;
  color: #6a4d0f;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}

.cf-cspo__copy-btn:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.cf-cspo__summary {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #15120d;
  color: #f8efe1;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.cf-csm-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cf-csm-overlay-layer.is-open {
  display: flex;
}

.cf-csm-overlay-layer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 14, 0.5);
}

.cf-csm-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 15, 15, 0.24);
  padding: 26px 22px 22px;
  display: grid;
  gap: 16px;
}

.cf-csm-dialog--compact {
  width: min(360px, 100%);
}

.cf-csm-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8a847a;
}

.cf-csm-dialog__icon {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f877a;
  background: #f4f1eb;
}

.cf-csm-dialog h4 {
  margin: 0;
  color: #1f1c18;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
}

.cf-csm-dialog p {
  margin: 0;
  color: #6f675c;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.cf-csm-plan-compare {
  border-top: 1px solid #ece5d9;
  border-bottom: 1px solid #ece5d9;
  padding: 14px 0;
  display: grid;
  gap: 10px;
}

.cf-csm-plan-compare__head,
.cf-csm-plan-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  align-items: center;
  gap: 12px;
}

.cf-csm-plan-compare__head strong,
.cf-csm-plan-compare__row em,
.cf-csm-plan-compare__row i {
  text-align: center;
  font-style: normal;
}

.cf-csm-plan-compare__head strong {
  color: #1f1c18;
  font-size: 13px;
  font-weight: 800;
}

.cf-csm-plan-compare__row span {
  color: #2e2a25;
  font-size: 13px;
  font-weight: 700;
}

.cf-csm-plan-compare__row em,
.cf-csm-plan-compare__row i {
  color: #8d8477;
  font-size: 13px;
  font-weight: 700;
}

.cf-csm-plan-compare__row .is-on {
  color: #16a34a;
}

.cf-csm-plan-compare__row .is-off {
  color: #c5bfb5;
}

.cf-csm-dialog__field {
  display: grid;
  gap: 8px;
}

.cf-csm-dialog__field span {
  color: #7f776b;
  font-size: 12px;
  font-weight: 700;
}

.cf-csm-dialog__field input {
  width: 100%;
  height: 44px;
  border: 1px solid #dfd8cf;
  border-radius: 12px;
  padding: 0 14px;
  color: #1f1c18;
  font-size: 14px;
  font-weight: 600;
}

.cf-csm-dialog__url-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #dfd8cf;
  border-radius: 12px;
  overflow: hidden;
}

.cf-csm-dialog__url-input span {
  padding: 0 14px;
  color: #8d8477;
  font-size: 13px;
  font-weight: 700;
  background: #faf8f4;
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.cf-csm-dialog__url-input input {
  border: none;
  border-radius: 0;
}

.cf-csm-dialog__actions,
.cf-csm-dialog__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cf-csm-dialog__foot {
  justify-content: stretch;
}

.cf-csm-dialog__foot .cf-csm-dialog__cta {
  width: 100%;
}

.cf-csm-dialog__ghost {
  border: none;
  background: transparent;
  color: #7d7569;
  font-size: 13px;
  font-weight: 800;
}

/* Hidden on desktop, shown on mobile header */
.cf-csm-mobile-title {
  display: none;
}

/* ── Mobile modal (≤ 980px): bottom-sheet layout ── */
@media (max-width: 980px) {
  .cf-community-settings-modal {
    padding: 0;
  }

  .cf-community-settings-modal.is-open {
    display: flex;
    align-items: flex-end;
  }

  .cf-community-settings-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 92vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  /* Pull-to-dismiss handle */
  .cf-community-settings-modal__dialog::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d4cfc9;
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  /* Close button → top-left */
  .cf-community-settings-modal__close {
    top: 12px;
    right: auto;
    left: 12px;
  }

  /* Shell: single column, sidebar auto-height + content fills rest */
  .cf-community-settings-modal__shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
  }

  /* Sidebar → compact header + scrollable tab strip */
  .cf-community-settings-modal__sidebar {
    border-right: none;
    border-bottom: 1px solid #e8e2d6;
    display: block;
    overflow: hidden;
  }

  /* Brand → centred pill with WF mark + "Settings" label */
  .cf-community-settings-modal__brand {
    padding: 14px 52px 10px;
    border-bottom: none;
    justify-content: center;
  }

  .cf-community-settings-modal__brand-copy {
    display: none;
  }

  .cf-csm-mobile-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1f1c18;
  }

  /* Nav → horizontal scrollable tab strip */
  .cf-community-settings-modal__nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 6px;
    gap: 0;
    grid-template-columns: unset;
  }

  .cf-community-settings-modal__nav::-webkit-scrollbar {
    display: none;
  }

  .cf-community-settings-modal__nav button {
    flex-shrink: 0;
    width: auto;
    padding: 10px 14px 9px;
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: #8c8478;
    white-space: nowrap;
    text-align: center;
  }

  .cf-community-settings-modal__nav button.is-active {
    background: transparent;
    color: #1f1c18;
    border-bottom-color: #1f1c18;
  }

  /* Discovery badge → replace UNLISTED text with ⚠ warning icon */
  .cf-csm-nav-badge {
    font-size: 0;
    background: transparent;
    padding: 0;
    margin-left: 2px;
    vertical-align: middle;
  }

  .cf-csm-nav-badge::after {
    content: '\26A0';
    font-size: 11px;
    color: #d97706;
    display: inline;
  }

  /* Content area */
  .cf-community-settings-modal__content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  /* Topbar hidden on mobile — tab strip already indicates current section */
  .cf-community-settings-modal__topbar {
    display: none;
  }

  .cf-community-settings-modal__panel {
    padding: 22px 18px 32px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
  }

  .cf-community-settings-modal__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cf-csm-dashboard__hero,
  .cf-csm-block__head,
  .cf-csm-heatmap-head,
  .cf-csg-url-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cf-csm-stat-grid,
  .cf-csm-breakdown,
  .cf-csm-growth-grid,
  .cf-csg-media-grid,
  .cf-cspo__grid,
  .cf-csg-visibility {
    grid-template-columns: 1fr;
  }

  .cf-csm-chart-axis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cf-csm-dashboard__copy-link {
    width: 100%;
    justify-content: center;
  }

  .cf-csm-line-chart {
    height: 220px;
  }

  .cf-csm-heatmap {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .cf-csg-url-card__button,
  .cf-csm-dialog__primary,
  .cf-csm-dialog__cta {
    width: 100%;
  }

  .cf-csm-dialog {
    padding: 24px 18px 18px;
  }
}

/* ── Small mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .cf-community-settings-modal__dialog {
    height: 94vh;
    border-radius: 16px 16px 0 0;
  }

  .cf-community-settings-modal__nav button {
    padding: 10px 12px 9px;
    font-size: 12.5px;
  }

  .cf-community-settings-modal__brand {
    padding: 12px 48px 8px;
  }

  .cf-community-settings-modal__metrics {
    grid-template-columns: 1fr;
  }

  .cf-csm-dashboard {
    gap: 22px;
  }

  .cf-csm-stat-grid,
  .cf-csm-breakdown,
  .cf-csm-growth-grid,
  .cf-csg-media-grid,
  .cf-cspo__grid,
  .cf-csg-visibility {
    grid-template-columns: 1fr;
  }

  .cf-csg-media-card__actions,
  .cf-cspo__summary-head,
  .cf-csm-dialog__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cf-csm-dialog__url-input {
    grid-template-columns: 1fr;
  }

  .cf-csm-dialog__url-input span {
    justify-content: flex-start;
  }

  .cf-csm-chart-card,
  .cf-csm-heatmap-card,
  .cf-csm-info-card,
  .cf-csm-share-card {
    padding: 16px;
  }

  .cf-csm-chart-axis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cf-csm-line-chart {
    height: 190px;
  }

  .cf-csm-stat-card strong {
    font-size: 28px;
  }

  .cf-csm-coming-soon {
    min-height: 240px;
    padding: 28px 14px;
  }

  .cf-csm-coming-soon h4 {
    font-size: 19px;
  }
}

.cf-post-overlay-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.cf-post-overlay-primary {
  min-height: 0;
  padding: 24px 24px 18px;
  overflow-y: auto;
  border-bottom: 1px solid #ece5d8;
}

.cf-post-overlay-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cf-overlay-post-card {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
  box-shadow: none;
}

.cf-overlay-post-card.is-pinned {
  box-shadow: none;
}

.cf-overlay-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: 44px;
}

.cf-overlay-post-author {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cf-overlay-post-avatar,
.cf-post-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #efeae0;
  flex: 0 0 auto;
}

.cf-overlay-post-avatar img,
.cf-post-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-post-card-avatar-fallback,
.cf-post-comment-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.cf-overlay-post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cf-overlay-post-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #8a8276;
  font-size: 13px;
  font-weight: 700;
}

.cf-overlay-post-author-name {
  color: #1b1b1b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.cf-overlay-post-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8a8276;
  font-size: 13px;
  font-weight: 700;
}

.cf-overlay-post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a6611;
  font-size: 13px;
  font-weight: 800;
}

.cf-overlay-post-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cf-overlay-post-utility,
.cf-overlay-post-actions .cf-feed-card-menu-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f584d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cf-overlay-post-title {
  margin: 18px 0 14px;
  color: #111111;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cf-overlay-post-body {
  color: #302c25;
  font-size: 16px;
  line-height: 1.7;
}

.cf-overlay-post-body ul,
.cf-overlay-post-body ol {
  padding-left: 20px;
  margin: 10px 0;
}

.cf-overlay-post-body a {
  color: #2754db;
  text-decoration: none;
  font-weight: 700;
}

.cf-overlay-post-media {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eee2c6;
  background: #f7f2e8;
}

.cf-overlay-post-media img {
  width: 100%;
  height: auto;
  display: block;
}

.cf-overlay-post-engagement {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #ece5d8;
}

.cf-overlay-post-stat-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cf-overlay-post-stat-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e1d9cb;
  border-radius: 6px;
  background: #ffffff;
  color: #7a7366;
  font-size: 14px;
  font-weight: 700;
}

.cf-overlay-post-stat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e1d9cb;
  border-radius: 6px;
  color: #8a8276;
  font-size: 13px;
  font-weight: 700;
}

.cf-overlay-post-comment-link {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7a7366;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cf-overlay-post-comment-link:hover {
  color: #2e2a23;
}

.cf-post-comments-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
}

.cf-post-comments-head {
  padding: 0;
  border: 0;
}

.cf-post-comments-head h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cf-post-comments-head p {
  margin: 0;
  color: #7f7668;
  font-size: 14px;
}

.cf-post-comments-typing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 24px 0;
  color: #6f6657;
  font-size: 13px;
  font-weight: 700;
}

.cf-post-comments-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cf-post-comments-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0a62e;
  animation: cfTypingBounce 0.9s infinite ease-in-out;
}

.cf-post-comments-typing-dots span:nth-child(2) {
  animation-delay: 0.1s;
}

.cf-post-comments-typing-dots span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes cfTypingBounce {
  0%,
  80%,
  100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.cf-post-comments-stream {
  max-height: 220px;
  overflow-y: auto;
  padding: 0 24px 8px;
}

.cf-post-comments-empty,
.cf-post-comments-state {
  padding: 10px 0 4px;
  color: #8c8579;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.cf-post-comments-stream .comment,
.cf-overlay-comment-item {
  position: relative;
  margin-bottom: 12px;
  border: 1px solid #eee6da;
  border-radius: 16px;
  background: #fbfaf8;
  padding: 14px 14px 12px 54px;
  box-shadow: none;
}

.cf-post-comments-stream .comment .comment-avatar {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
}

.cf-post-comments-stream .comment .comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-post-comments-stream .comment .comment-name,
.cf-post-comments-stream .comment .comment-author {
  color: #111111;
  font-size: 15px;
  font-weight: 800;
}

.cf-post-comments-stream .comment .comment-time,
.cf-post-comments-stream .comment time {
  color: #918775;
  font-size: 12px;
  font-weight: 600;
}

.cf-post-comments-stream .comment .comment-text,
.cf-post-comments-stream .comment p {
  margin-top: 6px;
  color: #2f2a23;
  font-size: 14px;
  line-height: 1.6;
}

.cf-post-comments-stream .comment .comment-image img,
.cf-post-comments-stream .comment .comment-attachments img,
.cf-post-comments-stream .comment img:not(.comment-avatar img) {
  max-width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 10px;
}

.cf-post-comments-stream .comment .comment-actions,
.cf-post-comments-stream .comment .x-form-tools,
.cf-post-comments-stream .comment .comment-footer {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #857b6c;
  font-size: 13px;
  font-weight: 700;
}

.cf-post-comments-stream .comment .comment-actions a,
.cf-post-comments-stream .comment .comment-footer a {
  color: inherit;
  text-decoration: none;
}

.cf-post-comment-composer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 24px 24px;
  border-top: 1px solid #ece5d8;
  background: #ffffff;
}

.cf-post-comment-editor {
  min-width: 0;
}

.cf-post-comment-box {
  border: 1px solid #cfc8ba;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.cf-post-comment-attachments {
  padding: 10px 14px 0;
}

.cf-post-comment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid #eadfca;
  border-radius: 999px;
  background: #fff9ed;
  padding: 8px 10px;
  color: #5f5549;
  font-size: 12px;
  font-weight: 700;
}

.cf-post-comment-chip button {
  border: 0;
  background: transparent;
  color: #5f5549;
  cursor: pointer;
}

.cf-post-comment-input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 12px 0 14px;
}

.cf-post-comment-input {
  flex: 1 1 auto;
  border: 0;
  resize: none;
  outline: 0;
  min-height: 46px;
  max-height: 120px;
  padding: 12px 0 10px;
  color: #151515;
  font-size: 15px;
  line-height: 1.5;
  background: transparent;
}

.cf-post-comment-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
}

.cf-post-comment-tools {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-bottom: 8px;
}

.cf-post-comment-tool {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8d877c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cf-post-comment-tool span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cf-post-comment-tool:hover {
  background: #f4f1eb;
  color: #111111;
}

.cf-post-comment-tool-gif {
  width: auto;
  padding: 0 6px;
  border-radius: 8px;
}

.cf-post-comment-cancel {
  border: 0;
  background: transparent;
  color: #8d877c;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cf-post-comment-submit {
  border: 0;
  border-radius: 8px;
  background: #f3cd6a;
  color: #231d11;
  min-width: 140px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cf-post-comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(243, 205, 106, 0.36);
}

.cf-post-comment-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.cf-post-comment-emoji-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.cf-post-comment-emoji-panel button {
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: #fffdf8;
  font-size: 20px;
  padding: 10px 0;
  cursor: pointer;
}

.cf-post-comment-auth {
  padding: 18px 24px 24px;
  border-top: 1px solid #ece5d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cf-post-comment-auth p {
  margin: 0;
  color: #746b5d;
  font-size: 14px;
}

@media (max-width: 900px) {
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) {
    grid-template-columns: 1fr;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > .mt10,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > :not(.mt10),
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > .mt10,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > :not(.mt10) {
    grid-column: auto;
    grid-row: auto;
  }

  .cf-feed-shell-simple .cf-post-stream .pg_1x a,
  .cf-feed-shell-simple .cf-post-stream .pg_2x a,
  .cf-feed-shell-simple .cf-post-stream .pg_3x a {
    width: min(100%, 220px);
  }

  .cf-post-overlay-modal {
    width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .cf-feed-card-actions,
  .cf-overlay-post-actions {
    gap: 8px;
  }

  .cf-feed-card-menu {
    min-width: 170px;
    z-index: 120;
  }

  .cf-post-overlay {
    padding: 14px 18px;
  }

  .cf-post-overlay-modal {
    width: min(390px, calc(100% - 12px));
    max-height: calc(100vh - 28px);
    border-radius: 20px;
  }

  .cf-post-comment-composer,
  .cf-post-comment-auth {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cf-post-overlay-primary {
    padding: 16px;
  }

  .cf-post-comments-stream {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cf-overlay-post-title {
    font-size: 28px;
  }

  .cf-overlay-post-body {
    font-size: 16px;
  }

  .cf-post-comment-composer {
    grid-template-columns: 1fr;
  }

  .cf-post-comment-avatar {
    width: 42px;
    height: 42px;
  }

  .cf-post-comment-input-row {
    flex-direction: column;
    align-items: stretch;
    padding-right: 14px;
  }

  .cf-post-comment-toolbar {
    justify-content: space-between;
  }

  .cf-post-comment-tools {
    justify-content: space-between;
    width: 100%;
  }

  .cf-post-comment-submit {
    min-width: 126px;
  }

  .cf-feed-shell-simple .cf-feed-toolbar {
    align-items: stretch;
  }

  .cf-feed-shell-simple .cf-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .cf-feed-shell-simple .cf-filters::-webkit-scrollbar {
    display: none;
  }

  .cf-feed-shell-simple .cf-pill {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .cf-feed-shell-simple .cf-post-stream .post {
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: visible;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) {
    padding: 14px 14px 12px;
    gap: 10px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px;
    grid-template-areas:
      "header header"
      "heading media"
      "content media"
      "actions media"
      "stats stats";
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media.cf-feed-no-copy,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-no-copy:has(.pg_wrapper img) {
    grid-template-areas:
      "header header"
      "heading media"
      "actions media"
      "stats stats";
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-header,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-header {
    grid-area: header;
    margin-bottom: 0;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .cf-feed-card-heading,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .cf-feed-card-heading {
    grid-area: heading;
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media .post-replace,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) .post-replace {
    grid-area: content;
    min-width: 0;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-has-media > .mt10,
  .cf-feed-shell-simple .cf-post-stream .post-body:has(.pg_wrapper img) > .mt10 {
    grid-area: media;
    grid-column: auto;
    grid-row: auto;
    width: 84px;
    margin-top: 0 !important;
    align-self: center;
  }

  .cf-feed-shell-simple .cf-post-stream .pg_1x a,
  .cf-feed-shell-simple .cf-post-stream .pg_2x a,
  .cf-feed-shell-simple .cf-post-stream .pg_3x a {
    width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-header {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
    margin-bottom: 0;
  }

  .cf-feed-shell-simple .cf-post-stream .post-avatar {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-avatar-picture {
    width: 36px;
    height: 36px;
  }

  .cf-feed-shell-simple .cf-post-stream .online-dot {
    font-size: 10px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-meta {
    gap: 2px;
    align-self: center;
  }

  .cf-feed-shell-simple .cf-post-stream .post-author {
    font-size: 15px;
    line-height: 1.12;
  }

  .cf-feed-shell-simple .cf-post-stream .post-time,
  .cf-feed-shell-simple .cf-post-stream .post-header .post-time {
    gap: 4px 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .cf-feed-shell-simple .cf-post-stream .post-header .post-time a,
  .cf-feed-shell-simple .cf-post-stream .post-header .post-time .js_moment {
    font-size: 11px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-header .post-time i.fa-cog {
    display: none;
  }

  .cf-feed-shell-simple .cf-post-stream .post-title {
    font-size: 11px;
    line-height: 1.2;
  }

  .cf-feed-shell-simple .cf-post-stream .post-title::before {
    width: 7px;
    height: 7px;
    margin-right: 5px;
  }

  .cf-feed-card-heading {
    font-size: 15px;
    line-height: 1.35;
    margin: 2px 0 6px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-replace.cf-feed-empty-copy {
    display: none;
  }

  .cf-feed-shell-simple .cf-post-stream .post-text,
  .cf-feed-shell-simple .cf-post-stream .post-text-translation {
    font-size: 13px;
    line-height: 1.55;
  }

  .cf-feed-shell-simple .cf-post-stream .post-actions {
    grid-area: actions;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 2px;
    padding-top: 0;
    border-top: 0;
  }

  .cf-feed-shell-simple .cf-post-stream .post-actions > * {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .cf-feed-shell-simple .cf-post-stream .post-actions a,
  .cf-feed-shell-simple .cf-post-stream .post-actions button,
  .cf-feed-shell-simple .cf-post-stream .post-actions .btn,
  .cf-feed-shell-simple .cf-post-stream .post-actions span {
    width: auto !important;
    min-width: 0 !important;
  }

  .cf-feed-shell-simple .cf-post-stream .post-stats {
    grid-area: stats;
    border-top: 0;
    margin-top: 0;
    padding-top: 8px;
    gap: 12px;
    justify-content: flex-start;
  }

  .cf-feed-shell-simple .cf-post-stream .post-stats .float-start,
  .cf-feed-shell-simple .cf-post-stream .post-stats .float-end {
    gap: 12px;
    justify-content: flex-start;
  }

  .cf-feed-shell-simple .cf-post-stream .post-stats span {
    font-size: 12px;
    font-weight: 700;
  }

  .cf-feed-card-menu-button {
    width: 34px;
    height: 34px;
  }
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed {
  display: block;
  padding: 22px 22px 18px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: start;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed:not(.cf-feed-has-media) .cf-feed-card-layout {
  grid-template-columns: minmax(0, 1fr);
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-main {
  min-width: 0;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media {
  width: 150px;
  align-self: start;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media-thumb {
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ece4d6;
  background: #f5f2ea;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media[hidden] {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-native-media,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed > .mt10 {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media > .mt10 {
  margin: 0 !important;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_wrapper,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_1x,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_2x,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_3x {
  width: 100%;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_1x a,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_2x a,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_3x a {
  display: block;
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ece4d6;
  background: #f5f2ea;
}

.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_1x img,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_2x img,
.cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_3x img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: start;
  margin: 0 0 12px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-avatar {
  width: 48px;
  min-width: 48px;
  height: 48px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-avatar-picture {
  width: 48px;
  height: 48px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-meta-line .js_user-popover {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-author {
  color: #141414;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-author:hover {
  color: #141414;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-time,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  color: #7b7268;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time a,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time .js_moment {
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time i.fa-cog {
  color: #c39222;
  font-size: 12px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-title {
  display: inline-flex;
  align-items: center;
  color: #6c655b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-title::before {
  width: 8px;
  height: 8px;
  margin-right: 6px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-heading {
  padding-left: 62px;
  margin: 0 0 12px;
  color: #141414;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-replace {
  padding-left: 62px;
  margin: 0;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-text,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-text-translation {
  margin: 0;
  color: #55504a;
  font-size: 14px;
  line-height: 1.65;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-action-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ece4d6;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 28px;
  padding: 0 8px;
  color: #403b35;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-action i {
  color: #1d1c1a;
  font-size: 20px;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-native-stats,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-native-actions,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-stats,
.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-actions {
  display: none !important;
}

.cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-actions {
  align-self: start;
}

@media (max-width: 600px) {
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed {
    padding: 16px 16px 14px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-layout {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
  }

  .cf-feed-shell-simple .cf-post-stream .cf-feed-card-media {
    width: 96px;
  }

  .cf-feed-shell-simple .cf-post-stream .cf-feed-card-media-thumb {
    width: 96px;
    border-radius: 14px;
  }

  .cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_1x a,
  .cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_2x a,
  .cf-feed-shell-simple .cf-post-stream .cf-feed-card-media .pg_3x a {
    width: 96px;
    border-radius: 14px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    column-gap: 10px;
    margin-bottom: 10px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-avatar,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-avatar-picture {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-meta {
    gap: 6px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-meta-line {
    gap: 4px 8px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-author {
    font-size: 15px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-time,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time a,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-header .post-time .js_moment,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-title {
    font-size: 11px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-heading {
    padding-left: 0;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.3;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-replace {
    padding-left: 0;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-text,
  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .post-text-translation {
    font-size: 13px;
    line-height: 1.55;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-action-bar {
    margin-top: 14px;
    padding-top: 12px;
    gap: 4px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-action {
    gap: 8px;
    min-height: 24px;
    padding: 0 4px;
    font-size: 13px;
  }

  .cf-feed-shell-simple .cf-post-stream .post-body.cf-feed-card-composed .cf-feed-card-action i {
    font-size: 18px;
  }
}

.cf-mobile-post-page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 0 144px;
}

.cf-mobile-post-page-header {
  display: none;
}

.cf-mobile-post-card {
  border: 1px solid #ece3d5;
  border-radius: 24px;
  background: #fffdfa;
  padding: 24px 24px 18px;
  box-shadow: 0 20px 46px rgba(36, 25, 8, 0.08);
}

.cf-mobile-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cf-mobile-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cf-mobile-post-avatar-wrap {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.cf-mobile-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd1c1;
}

.cf-mobile-post-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #3f5dbb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fffdfa;
}

.cf-mobile-post-meta {
  min-width: 0;
}

.cf-mobile-post-author-name {
  color: #151515;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.cf-mobile-post-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #847867;
  font-size: 14px;
  font-weight: 600;
}

.cf-mobile-post-title {
  margin: 18px 0 12px;
  color: #171513;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
}

.cf-mobile-post-copy {
  color: #1f1b17;
  font-size: 17px;
  line-height: 1.68;
}

.cf-mobile-post-copy > :first-child {
  margin-top: 0;
}

.cf-mobile-post-copy > :last-child {
  margin-bottom: 0;
}

.cf-mobile-post-copy p,
.cf-mobile-post-copy ul,
.cf-mobile-post-copy ol {
  margin-bottom: 12px;
}

.cf-mobile-post-copy ul,
.cf-mobile-post-copy ol {
  padding-left: 22px;
}

.cf-mobile-post-copy a {
  color: #2f67f5;
  font-weight: 700;
  text-decoration: none;
}

.cf-mobile-post-media {
  margin-top: 18px;
  border: 1px solid #ece3d5;
  border-radius: 18px;
  overflow: hidden;
  background: #f4efe6;
}

.cf-mobile-post-media img {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
}

.cf-mobile-post-link-cta-wrap {
  margin-top: 14px;
}

.cf-mobile-post-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}

.cf-mobile-post-link-cta:hover,
.cf-mobile-post-link-cta:focus {
  color: #ffffff;
  text-decoration: none;
}

.cf-mobile-post-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ece3d5;
}

.cf-mobile-post-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #e7dccd;
  border-radius: 10px;
  background: #fff;
  color: #857765;
  font-size: 16px;
  font-weight: 700;
}

.cf-mobile-post-action.is-active {
  color: #2c61ef;
  border-color: #cfdcff;
  background: #f4f7ff;
}

.cf-mobile-post-action:disabled {
  opacity: 0.65;
}

.cf-mobile-post-action-count,
.cf-mobile-post-comments-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a7d6b;
  font-size: 16px;
  font-weight: 700;
}

.cf-mobile-post-comments-count {
  border: none;
  padding: 0;
  background: transparent;
}

.cf-mobile-post-comments-panel {
  min-height: 320px;
  padding: 18px 0 0;
}

.cf-mobile-post-comments-list {
  display: grid;
  gap: 14px;
}

.cf-mobile-post-comments-list .comment {
  margin-bottom: 0;
}

.cf-mobile-post-comments-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e6dccc;
  border-radius: 18px;
  background: #fffdfa;
  color: #a2927e;
  font-size: 15px;
  font-weight: 600;
}

.cf-mobile-post-composer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 32;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 760px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid #ebe1d4;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 -10px 32px rgba(33, 24, 10, 0.08);
  backdrop-filter: blur(10px);
}

.cf-mobile-post-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 15px;
  border: 1px solid #ddd1c1;
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: #171513;
  font-size: 16px;
}

.cf-mobile-post-input:focus {
  border-color: #c7b79d;
  box-shadow: 0 0 0 4px rgba(236, 220, 196, 0.42);
}

.cf-mobile-post-composer-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cf-mobile-post-tool,
.cf-mobile-post-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #918371;
  font-size: 20px;
}

.cf-mobile-post-tool-gif {
  width: auto;
  min-width: 0;
  padding: 0 4px;
  border-radius: 0;
  color: #95887a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cf-mobile-post-send {
  color: #3d73f6;
  font-size: 22px;
}

.cf-mobile-post-tool:disabled,
.cf-mobile-post-send:disabled {
  opacity: 0.45;
}

.cf-mobile-post-attachments {
  grid-column: 1 / -1;
}

.cf-mobile-post-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3ede4;
  color: #5f5447;
  font-size: 13px;
  font-weight: 700;
}

.cf-mobile-post-attachment-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-mobile-post-attachment-chip button {
  border: none;
  background: transparent;
  color: inherit;
}

.cf-mobile-post-auth {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 32;
  width: min(100%, 760px);
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid #ebe1d4;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 -10px 32px rgba(33, 24, 10, 0.08);
  text-align: center;
}

@media (max-width: 600px) {
  .cf-mobile-post-page .hc-hb,
  .cf-mobile-post-page .cf-tabs {
    display: none;
  }

  .cf-mobile-post-page .cf-page {
    max-width: none;
    padding: 0;
  }

  .cf-mobile-post-page-shell {
    width: min(100%, 420px);
    min-height: 100vh;
    padding: 0 0 212px;
    background: #fff;
  }

  .cf-mobile-post-page-header {
    position: sticky;
    top: 0;
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 10px;
    border-bottom: 1px solid #ece5d8;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  .cf-mobile-post-page-back,
  .cf-mobile-post-page-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #625b52;
    font-size: 16px;
    text-decoration: none;
  }

  .cf-mobile-post-page-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-right: auto;
    color: #151515;
    text-decoration: none;
  }

  .cf-mobile-post-page-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d56cff 0%, #8f61ff 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .cf-mobile-post-page-brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
  }

  .cf-mobile-post-page-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .cf-mobile-post-page-menu-wrap {
    position: relative;
  }

  .cf-mobile-post-page-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    border: 1px solid #ece5d8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(23, 18, 12, 0.12);
    overflow: hidden;
  }

  .cf-mobile-post-page-menu button,
  .cf-mobile-post-page-menu a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: #fff;
    color: #1c1a17;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
  }

  .cf-mobile-post-page-menu button + a,
  .cf-mobile-post-page-menu a + button,
  .cf-mobile-post-page-menu a + a,
  .cf-mobile-post-page-menu button + button {
    border-top: 1px solid #f2ece1;
  }

  .cf-mobile-post-page-menu button.is-danger {
    color: #c53b2f;
  }

  .cf-mobile-post-card {
    border: 1px solid #ece3d5;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    padding: 14px 10px 16px;
    box-shadow: none;
  }

  .cf-mobile-post-author {
    gap: 10px;
  }

  .cf-mobile-post-avatar-wrap,
  .cf-mobile-post-avatar {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .cf-mobile-post-avatar-badge {
    min-width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .cf-mobile-post-author-name {
    font-size: 16px;
  }

  .cf-mobile-post-meta-line {
    margin-top: 2px;
    gap: 4px;
    font-size: 12px;
  }

  .cf-mobile-post-title {
    margin: 14px 0 10px;
    font-size: 17px;
    line-height: 1.34;
  }

  .cf-mobile-post-copy {
    font-size: 15px;
    line-height: 1.56;
  }

  .cf-mobile-post-media {
    margin-top: 14px;
    border-radius: 14px;
  }

  .cf-mobile-post-media img {
    max-height: 320px;
  }

  .cf-mobile-post-link-cta-wrap {
    margin-top: 12px;
  }

  .cf-mobile-post-link-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .cf-mobile-post-copy p,
  .cf-mobile-post-copy ul,
  .cf-mobile-post-copy ol {
    margin-bottom: 8px;
  }

  .cf-mobile-post-actions-bar {
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .cf-mobile-post-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }

  .cf-mobile-post-action-count,
  .cf-mobile-post-comments-count {
    font-size: 14px;
  }

  .cf-mobile-post-comments-panel {
    min-height: calc(100vh - 332px);
    padding: 0 8px 148px;
  }

  .cf-mobile-post-comments-list {
    gap: 10px;
    padding-top: 10px;
  }

  .cf-mobile-post-comments-empty {
    min-height: 220px;
    border: none;
    border-radius: 0;
    background: transparent;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 16px;
  }

  .cf-mobile-post-composer,
  .cf-mobile-post-auth {
    bottom: var(--hc-mobile-nav-safe);
    width: min(100%, 420px);
    padding-left: 8px;
    padding-right: 8px;
  }

  .cf-mobile-post-composer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cf-mobile-post-input {
    height: 40px;
    font-size: 15px;
  }

  .cf-mobile-post-composer-tools {
    gap: 8px;
  }

  .cf-mobile-post-tool,
  .cf-mobile-post-send {
    width: 32px;
    min-width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .cf-mobile-post-tool-gif {
    font-size: 16px;
    letter-spacing: 0;
  }

  .cf-mobile-post-send {
    font-size: 20px;
  }
}

@media (min-width: 901px) {
  .cf-body {
    background: #f8f4ee !important;
  }

  .cf-tabs {
    background: #fbfaf8;
    border-bottom-color: #e7e0d5;
  }

  .cf-tabs-inner {
    max-width: 1140px;
    padding: 0 22px;
    gap: 10px;
  }

  .cf-tab {
    padding: 15px 4px 13px;
    color: #726c64;
    font-size: 15px;
    font-weight: 500;
  }

  .cf-tab svg {
    display: none;
  }

  .cf-tab.active {
    border-bottom-width: 1.5px;
    font-weight: 600;
  }

  .cf-page {
    max-width: 1140px;
    padding: 26px 22px 48px;
  }

  .cf-feed-shell-simple {
    gap: 0;
  }

  .cf-content-grid-simple {
    grid-template-columns: minmax(0, 1fr) 276px;
    gap: 26px;
    align-items: start;
  }

  .cf-feed-shell-simple .cf-feed-toolbar {
    margin: 0 0 24px;
    justify-content: flex-start;
    align-items: center;
  }

  .cf-feed-shell-simple .cf-filters {
    gap: 10px;
    margin-bottom: 0;
  }

  .cf-feed-shell-simple .cf-pill {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5ddd0;
    color: #666057;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 1px rgba(17, 17, 17, 0.02);
  }

  .cf-feed-shell-simple .cf-pill.active {
    min-width: 40px;
    justify-content: center;
    padding: 0 12px;
    background: #19181d;
    border-color: #19181d;
    color: #fff;
    font-weight: 700;
  }

  .cf-feed-shell-simple .cf-post-stream .post {
    margin-bottom: 22px;
    border: 1px solid #ded7ca;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(23, 19, 14, 0.05);
  }

  .cf-feed-shell-simple .cf-post-stream .post:hover {
    border-color: #d9d0c2;
    box-shadow: 0 8px 22px rgba(23, 19, 14, 0.06);
    transform: none;
  }

  .cf-feed-shell-simple .cf-post-stream .post.is-pinned::before {
    display: none;
  }

  .cf-side-stack-simple {
    gap: 18px;
  }

  .cf-community-card-showcase,
  .cf-community-builder-card {
    border: 1px solid #e1d9cc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 19, 14, 0.05);
    overflow: hidden;
  }

  .cf-community-card-showcase .cf-community-card-cover img,
  .cf-community-card-showcase .cf-community-card-cover-placeholder {
    width: 100%;
    height: 110px;
  }

  .cf-community-card-showcase .cf-community-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px;
    background: linear-gradient(135deg, #10292c 0%, #0f5564 42%, #071316 100%);
    color: #61fff5;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .cf-community-card-showcase .cf-community-card-body {
    padding: 18px 18px 16px;
    text-align: center;
  }

  .cf-community-card-showcase h2 {
    margin: 0;
    color: #19171a;
    font-size: 17px;
    font-weight: 700;
  }

  .cf-community-card-showcase .cf-community-card-url {
    margin: 8px 0 10px;
    color: #8f8679;
    font-size: 12px;
    line-height: 1.3;
  }

  .cf-community-card-showcase p {
    margin: 0 auto 12px;
    max-width: 210px;
    color: #7e7468;
    font-size: 13px;
    line-height: 1.55;
  }

  .cf-community-card-inline-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    color: #6e665c;
    font-size: 12px;
    line-height: 1.4;
  }

  .cf-community-card-inline-stats span + span::before {
    content: "|";
    margin: 0 6px;
    color: #b1a898;
  }

  .cf-community-card-showcase .cf-sidebar-cta,
  .cf-community-builder-card .cf-sidebar-cta {
    width: 100%;
    margin-top: 16px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .cf-community-builder-card {
    padding: 18px;
    text-align: center;
  }

  .cf-community-builder-card h3 {
    margin: 0;
    color: #19171a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
  }

  .cf-community-builder-card p {
    margin: 10px auto 0;
    max-width: 206px;
    color: #84796d;
    font-size: 14px;
    line-height: 1.5;
  }

  .cf-powered {
    margin-top: -2px;
    text-align: center;
    color: #b0a79a;
    font-size: 11px;
  }
}

/* Admin setup checklist */
.cf-setup-card {
  position: relative;
  margin: 0 0 22px;
  border: 1px solid #e6e7ec;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.cf-setup-card[open] {
  padding-bottom: 8px;
}

.cf-setup-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.cf-setup-summary::-webkit-details-marker {
  display: none;
}

.cf-setup-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e4f9ec 0%, #c7f0d7 100%);
  color: #0f8c4f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.cf-setup-summary-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cf-setup-summary-title {
  color: #111111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.cf-setup-summary-subtitle {
  color: #6f7280;
  font-size: 13px;
  line-height: 1.45;
}

.cf-setup-summary-chevron {
  margin-left: auto;
  width: 26px;
  height: 26px;
  color: #7f8491;
  transition: transform 0.2s ease;
}

.cf-setup-card:not([open]) .cf-setup-summary-chevron {
  transform: rotate(180deg);
}

.cf-setup-body {
  padding: 0 22px 18px;
  border-top: 1px solid #eff0f4;
}

.cf-setup-feedback {
  margin: 16px 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.cf-setup-feedback.is-info {
  background: #f6f7fb;
  color: #4a4f5c;
}

.cf-setup-feedback.is-success {
  background: #edf9f1;
  color: #0f8c4f;
}

.cf-setup-feedback.is-error {
  background: #fff1f1;
  color: #cf3d3d;
}

.cf-setup-list {
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.cf-setup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.cf-setup-item + .cf-setup-item {
  border-top: 1px solid #f2f3f6;
}

.cf-setup-item-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.6px solid #b8bcc8;
  border-radius: 50%;
  color: transparent;
  flex: 0 0 auto;
  transition: all 0.2s ease;
}

.cf-setup-item-mark svg {
  width: 14px;
  height: 14px;
}

.cf-setup-item.is-complete .cf-setup-item-mark {
  border-color: #18a05f;
  background: #18a05f;
  color: #ffffff;
}

.cf-setup-item-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.cf-setup-item.is-complete .cf-setup-item-trigger {
  color: #1d2433;
}

.cf-setup-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.cf-setup-modal-layer.is-open {
  display: flex;
}

.cf-setup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 29, 0.55);
  backdrop-filter: blur(3px);
}

.cf-setup-modal {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(12, 18, 28, 0.24);
  z-index: 1;
}

.cf-setup-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
}

.cf-setup-modal-head h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.cf-setup-modal-head p {
  margin: 0;
  color: #69707d;
  font-size: 14px;
  line-height: 1.5;
}

.cf-setup-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f5f8;
  color: #1d2433;
  font-size: 15px;
  flex: 0 0 auto;
}

.cf-setup-video-frame {
  position: relative;
  margin: 0 24px;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
}

.cf-setup-video {
  display: block;
  width: 100%;
  max-height: 410px;
  background: #0f172a;
}

.cf-setup-video-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.cf-setup-video-pill,
.cf-setup-video-overlay strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cf-setup-progress-rail {
  height: 8px;
  margin: 18px 24px 24px;
  border-radius: 999px;
  background: #eff1f5;
  overflow: hidden;
}

.cf-setup-progress-rail span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4c74f 0%, #edae1e 100%);
  transition: width 0.2s linear;
}

.cf-setup-invite-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 24px;
}

.cf-setup-invite-box + .cf-setup-invite-box {
  margin-top: 18px;
  padding-bottom: 24px;
}

.cf-setup-muted {
  margin: 20px 24px 14px;
  color: #5f6572;
  font-size: 14px;
  line-height: 1.5;
}

.cf-setup-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #dedfe5;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  outline: none;
}

.cf-setup-input:focus {
  border-color: #e6b541;
  box-shadow: 0 0 0 4px rgba(230, 181, 65, 0.12);
}

.cf-setup-primary-button,
.cf-setup-secondary-button,
.cf-setup-text-button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cf-setup-primary-button {
  border: 0;
  background: #e6b541;
  color: #111111;
}

.cf-setup-secondary-button {
  border: 0;
  background: #eff1f5;
  color: #6a707c;
}

.cf-setup-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 14px;
}

.cf-setup-editor-button {
  width: 38px;
  height: 38px;
  border: 1px solid #dcdee5;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
}

.cf-setup-editor {
  min-height: 172px;
  margin: 0 24px;
  padding: 18px 18px 24px;
  border: 1px solid #ebb53f;
  border-radius: 16px;
  color: #111111;
  font-size: 16px;
  line-height: 1.65;
  outline: none;
}

.cf-setup-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
}

.cf-setup-text-button {
  border: 1px solid #dcdee5;
  background: #ffffff;
  color: #636976;
}

.cf-setup-confetti {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

.cf-setup-confetti.is-active {
  display: block;
}

.cf-setup-confetti-piece {
  position: absolute;
  width: 9px;
  height: 15px;
  border-radius: 2px;
  opacity: 0.92;
  animation-name: cf-setup-confetti-drop;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

body.cf-setup-modal-open {
  overflow: hidden;
}

@keyframes cf-setup-confetti-drop {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, calc(100vh + 40px), 0) rotate(540deg);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .cf-setup-summary-title {
    font-size: 19px;
  }

  .cf-setup-item-trigger {
    font-size: 15px;
  }

  .cf-setup-modal-head h3 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .cf-feed-shell-simple .cf-composer {
    margin-bottom: 14px;
  }

  .cf-setup-card {
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .cf-setup-summary {
    gap: 12px;
    padding: 15px 16px;
  }

  .cf-setup-summary-badge {
    width: 38px;
    height: 38px;
  }

  .cf-setup-summary-subtitle {
    display: none;
  }

  .cf-setup-body {
    padding: 0 16px 14px;
  }

  .cf-setup-item {
    padding: 10px 0;
  }

  .cf-setup-item-trigger {
    font-size: 14px;
  }

  .cf-setup-modal-layer {
    padding: 12px;
    align-items: flex-end;
  }

  .cf-setup-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 20px 20px 16px 16px;
  }

  .cf-setup-modal-head {
    padding: 18px 16px 14px;
  }

  .cf-setup-modal-head h3 {
    font-size: 21px;
  }

  .cf-setup-video-frame,
  .cf-setup-progress-rail,
  .cf-setup-invite-box,
  .cf-setup-editor {
    margin-left: 16px;
    margin-right: 16px;
  }

  .cf-setup-progress-rail {
    margin-bottom: 18px;
  }

  .cf-setup-invite-box {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .cf-setup-invite-box + .cf-setup-invite-box {
    padding-bottom: 18px;
  }

  .cf-setup-muted,
  .cf-setup-editor-toolbar,
  .cf-setup-modal-actions {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .cf-setup-editor {
    min-height: 150px;
    padding: 16px;
    font-size: 15px;
  }

  .cf-setup-modal-actions {
    justify-content: stretch;
  }

  .cf-setup-modal-actions .cf-setup-text-button,
  .cf-setup-modal-actions .cf-setup-primary-button {
    flex: 1 1 0;
  }
}

/* ================================================================
   Community Settings — Pricing Panel (cf-csp)
   ================================================================ */

.cf-csp {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-csp__topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 24px;
}

.cf-csp__save-state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5f6368;
  transition: color 0.2s;
}
.cf-csp__save-state.is-saved { color: #1a73e8; }
.cf-csp__save-state.is-saving { color: #9b9b9b; }
.cf-csp__save-state.is-error { color: #d93025; }

/* ── Model selector grid ── */
.cf-csp-model-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 780px) {
  .cf-csp-model-grid { grid-template-columns: repeat(3, 1fr); }
}

.cf-csp-model-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px 14px;
  border: 1.5px solid #e0dedd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
  position: relative;
  user-select: none;
}
.cf-csp-model-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}
.cf-csp-model-card:hover { border-color: #bbb; background: #fafafa; }
.cf-csp-model-card.is-active { border-color: #1a73e8; background: #f0f5ff; }

/* radio ring indicator */
.cf-csp-model-card::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.cf-csp-model-card.is-active::before {
  border-color: #1a73e8;
  background: #1a73e8;
  box-shadow: inset 0 0 0 3px #fff;
}

.cf-csp-model-card__label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
  pointer-events: none;
}
.cf-csp-model-card__desc {
  font-size: 12px;
  color: #6e6f76;
  line-height: 1.35;
  pointer-events: none;
}

/* ── Body area ── */
.cf-csp-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Tiers grid ── */
.cf-csp-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}
@media (max-width: 680px) {
  .cf-csp-tiers-grid { grid-template-columns: 1fr; }
}

/* ── Tier card ── */
.cf-csp-tier-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid #e0dedd;
  border-radius: 10px;
  background: #fafafa;
  min-height: 120px;
  transition: opacity 0.2s;
}
.cf-csp-tier-card.is-disabled { opacity: 0.45; pointer-events: none; }
.cf-csp-tier-card.is-disabled:not(.cf-csp-tier-card--optional) { pointer-events: auto; }

.cf-csp-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cf-csp-tier-card h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cf-csp-tier-name--premium { color: #7c3aed; }

.cf-csp-tier-price--free {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}
.cf-csp-tier-price--free svg { width: 15px; height: 15px; }

/* ── Set price button ── */
.cf-csp-set-price-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}
.cf-csp-set-price-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.cf-csp-set-price-btn:hover { color: #1558b0; }
.cf-csp-set-price-btn:disabled { color: #aaa; cursor: default; }

/* ── Add benefit button ── */
.cf-csp-add-benefit {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #6e6f76;
  cursor: pointer;
  text-align: left;
  margin-top: auto;
}
.cf-csp-add-benefit:hover { color: #1a73e8; }
.cf-csp-add-benefit:disabled { color: #ccc; cursor: default; }

/* ── Trial toggle ── */
.cf-csp-trial-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #3c3c3c;
}

.cf-csp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.cf-csp-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.cf-csp-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}
.cf-csp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.cf-csp-toggle-switch input:checked + .cf-csp-toggle-slider { background: #1a73e8; }
.cf-csp-toggle-switch input:checked + .cf-csp-toggle-slider::before { transform: translateX(16px); }

/* mini toggle for VIP */
.cf-csp-toggle-mini {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}
.cf-csp-toggle-mini input { opacity: 0; width: 0; height: 0; position: absolute; }
.cf-csp-toggle-mini .cf-csp-toggle-slider::before {
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
}
.cf-csp-toggle-mini input:checked + .cf-csp-toggle-slider::before { transform: translateX(14px); }

/* ── Price-set dialog: price input ── */
.cf-csm-dialog__price-input {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0dedd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cf-csm-dialog__price-input span {
  padding: 0 10px;
  font-size: 14px;
  color: #6e6f76;
  background: #f7f7f7;
  border-right: 1px solid #e0dedd;
  line-height: 40px;
  flex-shrink: 0;
}
.cf-csm-dialog__price-input span:last-child {
  border-right: none;
  border-left: 1px solid #e0dedd;
}
.cf-csm-dialog__price-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  height: 40px;
  background: transparent;
  width: 100%;
}
.cf-csm-dialog__field small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9b9b9b;
}

/* ── Billing options ── */
.cf-csp-billing-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.cf-csp-billing-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #3c3c3c;
  user-select: none;
}
.cf-csp-billing-opt input[type="radio"] { cursor: pointer; accent-color: #1a73e8; }

/* ================================================================
   Community Settings — Plugins Panel (cf-csp-plug)
   ================================================================ */

/* ── Plugin list rows ── */
.cf-csp-plug-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 6px;
  padding-left: 6px;
  padding-right: 6px;
}
.cf-csp-plug-row:first-child { padding-top: 0; }
.cf-csp-plug-row:last-child { border-bottom: none; }
.cf-csp-plug-row:hover { background: #fafafa; }
.cf-csp-plug-row:focus { outline: 2px solid #1a73e8; outline-offset: 2px; }

.cf-csp-plug-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf-csp-plug-icon svg { width: 20px; height: 20px; }

.cf-csp-plug-info { flex: 1; min-width: 0; }
.cf-csp-plug-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.cf-csp-plug-status {
  font-weight: 500;
  color: #9b9b9b;
  font-size: 13px;
}
.cf-csp-plug-status.is-on { color: #16a34a; }
.cf-csp-plug-desc {
  font-size: 12px;
  color: #6e6f76;
  margin-top: 2px;
  line-height: 1.4;
}
.cf-csp-plug-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #ccc;
}
.cf-csp-plug-pro-badge {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Plugin detail view ── */
.cf-csp-plug-back {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cf-csp-plug-back:hover { text-decoration: underline; }

.cf-csp-plug-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cf-csp-plug-detail-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cf-csp-plug-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  min-width: 22px;
  text-align: right;
}

.cf-csp-plug-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cf-csp-plug-detail-desc {
  font-size: 14px;
  color: #4b4f5a;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ── ADD QUESTION button in detail ── */
.cf-csp-plug-add-btn {
  background: #f5c842;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.cf-csp-plug-add-btn:hover { background: #eab308; }

/* ── Question list ── */
.cf-csp-plug-q-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cf-csp-plug-q-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.cf-csp-plug-q-item-left { flex: 1; min-width: 0; }
.cf-csp-plug-q-rtype {
  font-size: 11px;
  font-weight: 600;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}
.cf-csp-plug-q-text {
  font-size: 13px;
  color: #1a1a1a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-csp-plug-q-del {
  background: none;
  border: none;
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.12s;
  flex-shrink: 0;
}
.cf-csp-plug-q-del:hover { color: #ef4444; }

/* ── Add question form ── */
.cf-csp-plug-addq-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 14px 0 18px;
}
.cf-csp-plug-addq-field {
  position: relative;
  margin-bottom: 16px;
}
.cf-csp-plug-addq-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px 22px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s;
}
.cf-csp-plug-addq-input:focus { border-color: #1a73e8; }
.cf-csp-plug-addq-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: #9b9b9b;
}
.cf-csp-plug-addq-select-wrap { margin-bottom: 16px; }
.cf-csp-plug-addq-select-label {
  font-size: 11px;
  font-weight: 600;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.cf-csp-plug-addq-select-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  cursor: pointer;
}
.cf-csp-plug-addq-select-box svg { width: 16px; height: 16px; color: #6b7280; pointer-events: none; }
.cf-csp-plug-addq-select-box select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 14px;
}
.cf-csp-plug-addq-error {
  font-size: 13px;
  color: #ef4444;
  margin-bottom: 10px;
}
.cf-csp-plug-addq-actions { margin-top: 4px; }
.cf-csp-plug-addq-save {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s;
}
.cf-csp-plug-addq-save:hover { background: #1558b0; }

/* ── Pro upgrade dialog ── */
.cf-csp-pro-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 20px;
  text-align: center;
}
.cf-csp-pro-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cf-csp-pro-icon svg { width: 24px; height: 24px; color: #6b7280; }
.cf-csp-pro-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; }
.cf-csp-pro-sub { font-size: 13px; color: #6b7280; margin: 0 0 18px; }
.cf-csp-pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.cf-csp-pro-table th {
  font-weight: 700;
  color: #9b9b9b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  text-align: center;
}
.cf-csp-pro-table th:first-child { text-align: left; }
.cf-csp-pro-table td {
  padding: 7px 8px;
  color: #1a1a1a;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}
.cf-csp-pro-table td:first-child { text-align: left; font-weight: 500; }
.cf-csp-pro-x { color: #d1d5db; font-size: 16px; }
.cf-csp-pro-check {
  color: #fff;
  background: #16a34a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.cf-csp-pro-dim { color: #9b9b9b; }
.cf-csp-pro-pct { color: #16a34a; font-weight: 700; }
.cf-csp-pro-cta {
  display: block;
  width: 100%;
  background: #f5c842;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.cf-csp-pro-cta:hover { background: #eab308; }

/* Billing */
.cf-csb {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
}
.cf-csb__view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-csb__summary h4,
.cf-csb__subhead h4 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #171717;
}
.cf-csb__summary-copy,
.cf-csb__subhead p,
.cf-csb__footnote,
.cf-csb__delete-note,
.cf-csb__empty {
  margin: 0;
  color: #52525b;
  font-size: 15px;
  line-height: 1.65;
}
.cf-csb__action-row,
.cf-csb__actions,
.cf-csb__plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cf-csb__link-btn,
.cf-csb__menu-link,
.cf-csb__back,
.cf-csb__danger-link {
  border: none;
  background: none;
  padding: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cf-csb__link-btn:hover,
.cf-csb__menu-link:hover,
.cf-csb__back:hover {
  color: #1f2937;
}
.cf-csb__danger-link,
.cf-csb__menu-link.is-danger {
  color: #dc2626;
}
.cf-csb__danger-zone {
  padding-top: 4px;
}
.cf-csb__card {
  background: #fffdf7;
  border: 1px solid #f1e3b2;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-csb__status {
  font-size: 13px;
  font-weight: 600;
  color: #71717a;
}
.cf-csb__status.is-error {
  color: #dc2626;
}
.cf-csb__status.is-saving {
  color: #a16207;
}
.cf-csb__status.is-success {
  color: #15803d;
}
.cf-csb__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cf-csb__field {
  display: block;
}
.cf-csb__field span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #27272a;
}
.cf-csb__field input,
.cf-csb__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  color: #18181b;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cf-csb__field input:focus,
.cf-csb__field textarea:focus {
  border-color: #f5c842;
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2);
}
.cf-csb__field--full {
  grid-column: 1 / -1;
}
.cf-csb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.cf-csb__btn--primary {
  background: #f5c842;
  color: #18181b;
}
.cf-csb__btn--primary:hover {
  background: #eab308;
}
.cf-csb__btn--muted {
  background: #fff;
  color: #71717a;
  border-color: #d4d4d8;
}
.cf-csb__btn--danger {
  background: #dc2626;
  color: #fff;
}
.cf-csb__btn[disabled] {
  opacity: 0.65;
  cursor: default;
}
.cf-csb__menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cf-csb__plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.cf-csb__plan-card {
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}
.cf-csb__plan-card.is-current {
  border-color: #f5c842;
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.18);
}
.cf-csb__plan-price {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 12px;
}
.cf-csb__plan-price span {
  font-size: 20px;
  font-weight: 700;
}
.cf-csb__plan-card h5 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #18181b;
}
.cf-csb__plan-card p {
  margin: 0 0 20px;
  color: #52525b;
  font-size: 14px;
  line-height: 1.6;
}
.cf-csb__history {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cf-csb__history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.cf-csb__history-date {
  color: #2563eb;
  font-size: 15px;
}
.cf-csb__history-meta {
  color: #3f3f46;
  font-size: 15px;
}
.cf-csb__checklist {
  margin: 0;
  padding-left: 20px;
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.7;
}
.cf-csb__delete-state {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cf-csb__delete-state span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 13px;
  font-weight: 600;
}
.cf-csb__delete-state.is-ready span {
  background: #ecfdf5;
  color: #166534;
}

@media (max-width: 767px) {
  .cf-csb__summary h4,
  .cf-csb__subhead h4 {
    font-size: 24px;
  }
  .cf-csb__grid {
    grid-template-columns: 1fr;
  }
  .cf-csb__card {
    padding: 18px;
  }
  .cf-csb__btn {
    width: 100%;
  }
}

/* ================================================================
   FEED ALERT
   ================================================================ */
.cf-feed-alert-list {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.cf-feed-alert {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  background: #18140f;
  border: 1px solid rgba(244, 170, 28, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 12, 8, 0.12);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.cf-feed-alert-bell {
  position: relative;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cf-feed-alert-bell-icon {
  display: block;
  width: 34px !important;
  min-width: 34px;
  max-width: 34px;
  height: 34px !important;
  min-height: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M32 10c-3.6 0-6.5 2.9-6.5 6.5v2.1C17.2 21.4 11 29.3 11 38.6v10.1c0 1.7-.7 3.3-1.9 4.5L6 56.4h20.1c.3 6.2 2.6 10.1 5.9 10.1 3.3 0 5.6-3.9 5.9-10.1H58l-3.1-3.2c-1.2-1.2-1.9-2.8-1.9-4.5V38.6c0-9.3-6.2-17.2-14.5-20V16.5C38.5 12.9 35.6 10 32 10Z' stroke='%23FFFFFF' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px;
}

.cf-feed-alert-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f4aa1c;
  color: #211c16;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid #18140f;
}

.cf-feed-alert-body {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.cf-feed-alert-title {
  display: block;
  margin: 0 0 2px;
  color: #f4aa1c;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cf-feed-alert-text {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: clamp(12px, 0.88vw, 14px);
  line-height: 1.35;
  font-weight: 700;
}

.cf-feed-alert-text-main,
.cf-feed-alert-meta,
.cf-feed-alert-link,
.cf-feed-alert-separator {
  display: inline;
}

.cf-feed-alert-link {
  color: #f4aa1c;
  text-decoration: none;
  white-space: nowrap;
}

.cf-feed-alert-link:hover {
  color: #ffc44f;
  text-decoration: none;
}

.cf-feed-alert-close {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 0;
}

.cf-feed-alert-close span {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.cf-feed-alert-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cf-feed-alert[hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  .cf-feed-alert {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 14px;
  }

  .cf-feed-alert-bell {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
  }

  .cf-feed-alert-bell-icon {
    width: 28px !important;
    min-width: 28px;
    max-width: 28px;
    height: 28px !important;
    min-height: 28px;
    max-height: 28px;
    flex-basis: 28px;
    background-size: 28px 28px;
  }

  .cf-feed-alert-badge {
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .cf-feed-alert-title {
    font-size: 15px;
  }

  .cf-feed-alert-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .cf-feed-alert-close {
    flex-basis: 28px;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    align-self: start;
  }

  .cf-feed-alert-close span {
    font-size: 20px;
  }
}

.cf-overlay-post-poll,
.cf-mobile-post-poll {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.cf-overlay-post-poll-head,
.cf-mobile-post-poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}

.cf-overlay-post-poll-options,
.cf-mobile-post-poll-options {
  display: grid;
  gap: 10px;
}

.cf-overlay-post-poll-option,
.cf-mobile-post-poll-option {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.cf-overlay-post-poll-option-fill,
.cf-mobile-post-poll-option-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(244, 170, 28, 0.2);
  pointer-events: none;
}

.cf-overlay-post-poll-option-copy,
.cf-mobile-post-poll-option-copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cf-overlay-post-poll-option-copy strong,
.cf-mobile-post-poll-option-copy strong {
  font-size: 14px;
  color: #111827;
}

.cf-overlay-post-poll-option-copy small,
.cf-mobile-post-poll-option-copy small {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
}

.cf-overlay-post-poll-option.is-selected,
.cf-mobile-post-poll-option.is-selected {
  border-color: rgba(244, 170, 28, 0.7);
  background: #fffaf0;
}

/* ================================================================
   Community Feed Redesign
   ================================================================ */
.cf-view-feed {
  background:
    radial-gradient(circle at top center, rgba(231, 193, 117, 0.18), transparent 30%),
    linear-gradient(180deg, #faf7f1 0%, #f8f4ed 100%) !important;
}

.cf-view-feed .cf-tabs {
  display: none;
}

.cf-view-feed .cf-page {
  max-width: 1280px;
  padding: 30px 24px 56px;
}

.cf-view-feed .cf-content-grid-simple {
  grid-template-columns: 1fr;
  gap: 24px;
}

.cf-view-feed .cf-content-main {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.cf-view-feed .cf-content-sidebar {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.cf-view-feed .cf-community-hero {
  margin-bottom: 28px;
}

.cf-community-hero-cover {
  position: relative;
  min-height: 320px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(38, 28, 19, 0.28), rgba(38, 28, 19, 0.06)),
    linear-gradient(135deg, #dfd3bd 0%, #baa184 46%, #7c634b 100%);
  box-shadow: 0 22px 48px rgba(53, 37, 16, 0.12);
}

.cf-community-hero-cover-image,
.cf-community-hero-cover-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cf-community-hero-cover-image {
  object-fit: cover;
}

.cf-community-hero-cover-placeholder {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.5), transparent 20%),
    linear-gradient(135deg, #ddd0b9 0%, #c9b498 44%, #8d7358 100%);
}

.cf-community-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 19, 15, 0.08) 0%, rgba(25, 19, 15, 0.58) 100%),
    linear-gradient(90deg, rgba(15, 11, 9, 0.5) 0%, rgba(15, 11, 9, 0.16) 58%, rgba(15, 11, 9, 0) 100%);
}

.cf-community-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 28px 34px 40px;
}

.cf-community-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cf-community-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff8ee;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.cf-community-hero-brand {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.cf-community-hero-logo {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #191816 0%, #2b1f12 100%);
  box-shadow: 0 14px 36px rgba(14, 10, 8, 0.28);
}

.cf-community-hero-logo img,
.cf-community-hero-logo span {
  display: block;
  width: 100%;
  height: 100%;
}

.cf-community-hero-logo img {
  object-fit: cover;
}

.cf-community-hero-logo span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #efc157;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cf-community-hero-copy {
  min-width: 0;
  max-width: 720px;
}

.cf-community-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 4.8vw, 62px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: Georgia, "Times New Roman", serif;
}

.cf-community-hero-copy p {
  margin: 14px 0 0;
  color: rgba(255, 250, 243, 0.92);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
}

.cf-community-summary-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: calc(100% - 140px);
  margin: -34px auto 0;
  padding: 22px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(221, 208, 186, 0.9);
  box-shadow: 0 18px 40px rgba(57, 41, 17, 0.12);
}

.cf-community-summary-stats,
.cf-community-summary-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cf-community-summary-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f665d;
  font-size: 18px;
  line-height: 1.2;
}

.cf-community-summary-stat svg {
  width: 18px;
  height: 18px;
  color: #211d18;
  flex-shrink: 0;
}

.cf-community-summary-stat strong {
  color: #171412;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.cf-community-summary-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #29bf74;
  box-shadow: 0 0 0 4px rgba(41, 191, 116, 0.14);
  flex-shrink: 0;
}

.cf-community-summary-avatars {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.cf-community-summary-avatars img,
.cf-community-summary-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(23, 16, 10, 0.08);
}

.cf-community-summary-avatars img + img,
.cf-community-summary-avatar-placeholder + img,
.cf-community-summary-avatars img + .cf-community-summary-avatar-placeholder {
  margin-left: -10px;
}

.cf-community-summary-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d5a850 0%, #8f76b5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cf-community-summary-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cf-community-summary-chip,
.cf-community-summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cf-community-summary-chip {
  background: #f8f1df;
  border-color: #ead9ad;
  color: #bf9540;
  text-transform: uppercase;
}

.cf-community-summary-btn {
  cursor: pointer;
}

.cf-community-summary-btn-primary {
  background: linear-gradient(135deg, #f1c458 0%, #e6ab30 100%);
  border-color: #e6ab30;
  color: #2a1c08;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cf-community-summary-btn-secondary {
  background: #f6f2ea;
  border-color: #e5d9c7;
  color: #5f564d;
}

.cf-community-section-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 8px;
  border: 1px solid #ddd1c0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(48, 35, 17, 0.06);
}

.cf-community-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: #70675e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cf-community-section-link.active {
  background: #21234f;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cf-view-feed .cf-composer {
  display: block;
  padding: 20px 20px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ddd1c0;
  box-shadow: 0 12px 30px rgba(45, 33, 17, 0.07);
}

.cf-view-feed .cf-composer-main {
  gap: 14px;
}

.cf-view-feed .cf-composer-avatar,
.cf-view-feed .cf-composer-avatar-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d7a945 0%, #8f76b5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cf-view-feed .cf-composer-input {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d9cfbf;
  background: #ffffff;
  color: #82796e;
  font-size: 15px;
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cf-composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #ece3d4;
}

.cf-composer-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #70675f;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.cf-composer-tool svg {
  width: 18px;
  height: 18px;
  color: #595149;
}

.cf-composer-tools-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.cf-composer-submit {
  margin-left: auto;
  min-width: 74px;
  min-height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0c356 0%, #e7ad33 100%);
  color: #2a1c08;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cf-view-feed .cf-pending-alert,
.cf-view-feed .cf-feed-alert-list {
  margin-top: 18px;
}

.cf-view-feed .cf-feed-toolbar {
  display: flex;
  justify-content: flex-start;
  margin: 14px 0 18px;
}

.cf-view-feed .cf-filters {
  gap: 10px;
  margin-bottom: 0;
}

.cf-view-feed .cf-pill {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #ddd1c0;
  background: rgba(255, 255, 255, 0.92);
  color: #756b61;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(44, 32, 18, 0.04);
}

.cf-view-feed .cf-pill.active {
  background: #1e244f;
  border-color: #1e244f;
  color: #fff;
}

.cf-view-feed .cf-post-stream .post,
.cf-view-feed .cf-post-stream .post-wrapper,
.cf-view-feed .cf-post-stream .alert-post {
  border: 1px solid #ddd1c0 !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(42, 31, 18, 0.06);
  overflow: hidden;
}

.cf-view-feed .cf-post-stream .post {
  margin-bottom: 22px;
}

.cf-view-feed .cf-post-stream .post:hover {
  border-color: #d7c6ad !important;
  box-shadow: 0 16px 32px rgba(42, 31, 18, 0.08);
  transform: none;
}

.cf-view-feed .cf-post-stream .post-body {
  padding: 24px 24px 18px;
}

.cf-view-feed .cf-post-stream .post-header {
  margin-bottom: 14px;
}

.cf-view-feed .cf-post-stream .post-author {
  color: #171412;
  font-size: 18px;
  font-weight: 700;
}

.cf-view-feed .cf-post-stream .post-time,
.cf-view-feed .cf-post-stream .post-time a {
  color: #93897d;
  font-size: 14px;
}

.cf-view-feed .cf-post-stream .post-text,
.cf-view-feed .cf-post-stream .post-text-translation {
  color: #2b2621;
  font-size: 17px;
  line-height: 1.75;
}

.cf-view-feed .cf-post-stream .post-stats {
  border-top: 1px solid #eee4d6;
  margin-top: 18px;
  padding-top: 14px;
}

.cf-view-feed .cf-post-stream .post-stats .pointer,
.cf-view-feed .cf-post-stream .post-actions .btn,
.cf-view-feed .cf-post-stream .post-footer-action {
  color: #696058;
}

.cf-view-feed .cf-content-sidebar .cf-side-stack-simple {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase,
.cf-view-feed .cf-side-stack-simple .cf-community-builder-card {
  min-width: 0;
  border-radius: 28px;
  border: 1px solid #ddd1c0;
  box-shadow: 0 12px 28px rgba(42, 31, 18, 0.06);
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase .cf-community-card-cover img,
.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase .cf-community-card-cover-placeholder {
  height: 168px;
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase .cf-community-card-body {
  padding: 24px;
  text-align: left;
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase h2 {
  font-size: 26px;
  line-height: 1.1;
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase p {
  max-width: none;
  margin: 0 0 14px;
  font-size: 15px;
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-inline-stats {
  justify-content: flex-start;
  font-size: 13px;
}

.cf-view-feed .cf-side-stack-simple .cf-community-card-showcase .cf-sidebar-cta,
.cf-view-feed .cf-side-stack-simple .cf-community-builder-card .cf-sidebar-cta {
  width: auto;
  min-width: 180px;
  padding: 0 20px;
}

.cf-view-feed .cf-side-stack-simple .cf-community-builder-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(240, 195, 86, 0.24), transparent 34%),
    #fffdf9;
}

.cf-view-feed .cf-side-stack-simple .cf-community-builder-card h3 {
  font-size: 28px;
  line-height: 1.08;
}

.cf-view-feed .cf-side-stack-simple .cf-community-builder-card p {
  max-width: 280px;
  margin: 12px 0 0;
  font-size: 15px;
}

.cf-view-feed .cf-powered {
  grid-column: 1 / -1;
  text-align: center;
  color: #897e71;
}

.cf-view-feed .cf-tab:focus-visible,
.cf-community-section-link:focus-visible,
.cf-view-feed .cf-composer-input:focus-visible,
.cf-view-feed .cf-pill:focus-visible,
.cf-view-feed .cf-community-summary-btn:focus-visible,
.cf-view-feed .cf-sidebar-cta:focus-visible,
.cf-view-feed .cf-feed-alert-close:focus-visible,
.cf-view-feed .cf-feed-alert-link:focus-visible {
  outline: 2px solid #1e244f;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .cf-view-feed .cf-page {
    padding: 0px 18px 42px;
  }

  .cf-community-summary-card {
    width: calc(100% - 48px);
    padding: 18px 20px;
  }

  .cf-community-summary-stats,
  .cf-community-summary-actions {
    gap: 12px;
  }

  .cf-view-feed .cf-content-sidebar .cf-side-stack-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cf-view-feed .cf-page {
    padding: 18px 14px 34px;
  }

  .cf-community-hero-cover {
    min-height: 270px;
    border-radius: 26px;
  }

  .cf-community-hero-content {
    min-height: 270px;
    padding: 20px 20px 28px;
  }

  .cf-community-hero-brand {
    align-items: center;
  }

  .cf-community-hero-logo {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .cf-community-hero-copy h1 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .cf-community-hero-copy p {
    font-size: 16px;
  }

  .cf-community-summary-card {
    width: calc(100% - 28px);
    margin-top: -24px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 22px;
  }

  .cf-community-summary-stats,
  .cf-community-summary-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cf-community-summary-actions {
    justify-content: flex-start;
  }

  .cf-community-summary-stat {
    font-size: 15px;
  }

  .cf-community-summary-stat strong {
    font-size: 22px;
  }

  .cf-community-section-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .cf-community-section-nav::-webkit-scrollbar {
    display: none;
  }

  .cf-community-section-link {
    white-space: nowrap;
  }

  .cf-view-feed .cf-composer {
    padding: 16px;
    border-radius: 22px;
  }

  .cf-view-feed .cf-composer-input {
    font-size: 16px;
    height: 48px;
  }

  .cf-composer-tools {
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
  }

  .cf-composer-tools-left {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .cf-composer-submit {
    width: auto;
    margin-left: 0;
    flex-shrink: 0;
    align-self: flex-start;
  }

  .cf-view-feed .cf-post-stream .post,
  .cf-view-feed .cf-post-stream .post-wrapper,
  .cf-view-feed .cf-post-stream .alert-post {
    border-radius: 22px !important;
  }

  .cf-view-feed .cf-post-stream .post-body {
    padding: 18px 18px 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMMUNITY MEMBERS PAGE
   ═══════════════════════════════════════════════════════════════ */

.cf-members-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.cf-members-header {
  text-align: center;
  margin-bottom: 32px;
}

.cf-members-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #171412;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}

.cf-members-subtitle {
  font-size: 16px;
  color: #7a7066;
  margin: 0;
  font-weight: 500;
}

.cf-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.cf-member-card {
  background: #ffffff;
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cf-member-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #d4c4b5;
}

.cf-member-avatar {
  position: relative;
  margin-bottom: 16px;
}

.cf-member-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cf-member-online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.cf-member-last-seen {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-member-info {
  flex: 1;
  margin-bottom: 16px;
}

.cf-member-name {
  font-size: 18px;
  font-weight: 700;
  color: #171412;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.cf-member-username {
  font-size: 14px;
  color: #7a7066;
  margin: 0 0 12px;
  font-weight: 500;
}

.cf-member-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.cf-member-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f0ede8;
  color: #7a7066;
}

.cf-member-role--admin {
  background: linear-gradient(135deg, #f4aa1c, #d4880a);
  color: #ffffff;
}

.cf-member-role svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cf-member-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cf-member-plan svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cf-member-level {
  font-size: 12px;
  color: #9a9088;
  font-weight: 500;
}

.cf-member-actions {
  width: 100%;
}

.cf-member-message-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  background: #ffffff;
  color: #3d3730;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cf-member-message-btn:hover {
  background: #f8f4ee;
  border-color: #d4c4b5;
  color: #171412;
}

.cf-member-message-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cf-members-empty {
  text-align: center;
  padding: 80px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.cf-members-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.cf-members-empty h3 {
  font-size: 20px;
  font-weight: 700;
  color: #171412;
  margin: 0 0 8px;
}

.cf-members-empty p {
  font-size: 16px;
  color: #7a7066;
  margin: 0;
  line-height: 1.5;
}

/* ── Tablet and Mobile ── */
@media (max-width: 768px) {
  .cf-members-shell {
    padding: 16px;
  }

  .cf-members-header h2 {
    font-size: 24px;
  }

  .cf-members-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cf-member-card {
    padding: 16px;
    flex-direction: row;
    text-align: left;
  }

  .cf-member-avatar {
    margin-bottom: 0;
    margin-right: 16px;
    flex-shrink: 0;
  }

  .cf-member-avatar img {
    width: 60px;
    height: 60px;
  }

  .cf-member-info {
    flex: 1;
    margin-bottom: 0;
  }

  .cf-member-meta {
    align-items: flex-start;
    margin-top: 8px;
  }

  .cf-member-actions {
    margin-top: 16px;
  }
}
