/* ══════════════════════════════════════════════════════════════
   KONYCT CLUBS UI — shared design system for all club surfaces
   (clubs list, club home, corners, contributions, proposals,
   activity, leaderboard, gaps)
   Built on the platform tokens in public_theme.css so light and
   dark mode both work without page-specific overrides.
   ══════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────── */
.cl-wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 24px 96px;
}

@media (max-width: 600px) {
  .cl-wrap { padding: 0 16px 88px; }
}

.cl-narrow { max-width: 780px; }

/* ── Page header ────────────────────────────────────────────── */
.cl-hero {
  padding: 36px 0 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cl-hero-bare { padding-top: 28px; }

.cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cl-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--premium-accent);
  flex-shrink: 0;
}

.cl-title {
  margin: 8px 0 6px;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text);
}

.cl-sub {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.cl-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Monogram tile (club identity when no image exists) ─────── */
.cl-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  user-select: none;
  overflow: hidden;
}

.cl-mono img { width: 100%; height: 100%; object-fit: cover; }
.cl-mono-sm { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
.cl-mono-md { width: 56px; height: 56px; font-size: 20px; }
.cl-mono-lg { width: 72px; height: 72px; font-size: 26px; border-radius: 20px; }

/* Category tints — soft tonal washes that hold up in dark mode */
.cl-tint-technology      { background: color-mix(in srgb, #64748b 14%, var(--surface)); color: #475569; }
.cl-tint-fashion         { background: color-mix(in srgb, #ec4899 12%, var(--surface)); color: #be185d; }
.cl-tint-food_beverage   { background: color-mix(in srgb, #f59e0b 15%, var(--surface)); color: #b45309; }
.cl-tint-beauty_wellness { background: color-mix(in srgb, #a855f7 12%, var(--surface)); color: #7e22ce; }
.cl-tint-coffee          { background: color-mix(in srgb, #a3794a 16%, var(--surface)); color: var(--premium-accent); }
.cl-tint-healthcare      { background: color-mix(in srgb, #14b8a6 13%, var(--surface)); color: #0f766e; }
.cl-tint-finance         { background: color-mix(in srgb, #3b82f6 12%, var(--surface)); color: #1d4ed8; }
.cl-tint-education       { background: color-mix(in srgb, #6366f1 12%, var(--surface)); color: #4338ca; }
.cl-tint-entertainment   { background: color-mix(in srgb, #f43f5e 12%, var(--surface)); color: #be123c; }
.cl-tint-automotive      { background: color-mix(in srgb, #78716c 15%, var(--surface)); color: #57534e; }
.cl-tint-real_estate     { background: color-mix(in srgb, #059669 12%, var(--surface)); color: #047857; }
.cl-tint-travel          { background: color-mix(in srgb, #0ea5e9 13%, var(--surface)); color: #0369a1; }
.cl-tint-default         { background: color-mix(in srgb, var(--premium-accent) 12%, var(--surface)); color: var(--premium-accent); }

html[data-theme="dark"] .cl-tint-technology      { color: #94a3b8; }
html[data-theme="dark"] .cl-tint-fashion         { color: #f472b6; }
html[data-theme="dark"] .cl-tint-food_beverage   { color: #fbbf24; }
html[data-theme="dark"] .cl-tint-beauty_wellness { color: #c084fc; }
html[data-theme="dark"] .cl-tint-coffee          { color: var(--premium-accent); }
html[data-theme="dark"] .cl-tint-healthcare      { color: #2dd4bf; }
html[data-theme="dark"] .cl-tint-finance         { color: #60a5fa; }
html[data-theme="dark"] .cl-tint-education       { color: #818cf8; }
html[data-theme="dark"] .cl-tint-entertainment   { color: #fb7185; }
html[data-theme="dark"] .cl-tint-automotive      { color: #a8a29e; }
html[data-theme="dark"] .cl-tint-real_estate     { color: #34d399; }
html[data-theme="dark"] .cl-tint-travel          { color: #38bdf8; }

/* ── Cards & grid ───────────────────────────────────────────── */
.cl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .cl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cl-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cl-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.cl-card-static:hover { transform: none; }

/* ── Stat row ───────────────────────────────────────────────── */
.cl-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.cl-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cl-stat svg { width: 13px; height: 13px; opacity: 0.75; flex-shrink: 0; }

.cl-stat-strong { color: var(--text); font-weight: 800; }

/* ── Pills / badges ─────────────────────────────────────────── */
.cl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--muted);
}

.cl-pill-gold {
  background: color-mix(in srgb, var(--premium-accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--premium-accent) 35%, transparent);
  color: var(--premium-accent);
}

.cl-pill-green {
  background: color-mix(in srgb, #10b981 10%, transparent);
  border-color: color-mix(in srgb, #10b981 30%, transparent);
  color: #059669;
}

html[data-theme="dark"] .cl-pill-green { color: #34d399; }

.cl-pill-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--premium-accent) 55%, transparent);
  color: var(--premium-accent);
}

.cl-pill svg { width: 11px; height: 11px; }

/* Perspective-type badge on contribution cards */
.cl-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--premium-accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--premium-accent) 45%, transparent);
  color: var(--premium-accent);
}

/* ── Buttons ────────────────────────────────────────────────── */
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.cl-btn:hover { border-color: var(--border-hover); background: var(--surface); }

.cl-btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.cl-btn-primary:hover { opacity: 0.86; background: var(--text); }

.cl-btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.cl-btn-ghost:hover { color: var(--text); background: var(--surface-muted); border-color: transparent; }

.cl-btn-sm { min-height: 32px; padding: 0 14px; font-size: 0.78rem; }

.cl-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.cl-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Avatar stack ───────────────────────────────────────────── */
.cl-avatars { display: flex; align-items: center; }

.cl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--surface-muted);
  margin-left: -8px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  overflow: hidden;
  flex-shrink: 0;
}

.cl-avatar:first-child { margin-left: 0; }
.cl-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cl-avatar-more {
  background: var(--text);
  color: var(--bg);
}

/* Single round avatar */
.cl-face {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  overflow: hidden;
}

.cl-face img { width: 100%; height: 100%; object-fit: cover; }

/* ── Filter chip row ────────────────────────────────────────── */
.industry-filter-strip,
.cl-chiprow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.industry-chip,
.cl-chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--muted);
  background: var(--surface);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.industry-chip:hover,
.cl-chip:hover { background: var(--surface-hover, var(--surface-muted)); color: var(--text); }

.industry-chip.active,
.cl-chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.chip-count {
  opacity: 0.55;
  font-weight: 700;
  font-size: 0.72rem;
}

/* ── Section headers ────────────────────────────────────────── */
.cl-sect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cl-sect-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cl-sect-title svg { width: 16px; height: 16px; color: var(--premium-accent); }

.cl-sect-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.cl-sect-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none !important;
  white-space: nowrap;
}

.cl-sect-link:hover { color: var(--text); }

/* ── Progress ───────────────────────────────────────────────── */
.cl-progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--premium-accent), color-mix(in srgb, var(--premium-accent) 70%, #d2a034));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── Tabs (sticky segmented control) ───────────────────────── */
.cl-tabs {
  position: sticky;
  top: 52px;
  z-index: 15;
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 0 0 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cl-tabs::-webkit-scrollbar { display: none; }

.cl-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cl-tab svg { width: 14px; height: 14px; }
.cl-tab:hover { color: var(--text); }

.cl-tab.active {
  background: var(--text);
  color: var(--bg);
}

.cl-tab .cl-tab-count {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
}

.cl-tab.active .cl-tab-count { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 600px) {
  .cl-tabs { top: 48px; }
  .cl-tab span.cl-tab-label-long { display: none; }
}

/* Tab panels */
.cl-panel[hidden] { display: none; }

/* ── Contribution card ─────────────────────────────────────── */
.cl-post {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cl-post:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.cl-post-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.cl-post-author { flex: 1; min-width: 0; }
.cl-post-name { font-size: 13px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-post-handle { font-size: 11px; color: var(--muted); margin-top: 1px; }

.cl-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.cl-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
}

.cl-post-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

.cl-post-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 4px;
  letter-spacing: -0.01em;
}

.cl-post-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  flex-wrap: wrap;
}

.cl-post-foot-item { display: inline-flex; align-items: center; gap: 5px; }
.cl-post-foot-item svg { width: 13px; height: 13px; }
.cl-post-time { margin-left: auto; }

/* ── Journal / stories timeline ─────────────────────────────── */
.cl-story {
  position: relative;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
}

.cl-story-kept { border-left: 3px solid #10b981; }

.cl-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cl-story-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.cl-story-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.cl-story-body { font-size: 14px; line-height: 1.6; color: var(--text-secondary); white-space: pre-wrap; }

.cl-story-anchor {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px dashed var(--border-hover);
  border-radius: 9px;
  padding: 7px 11px;
  display: inline-block;
}

.cl-story-foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cl-story-author { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }

.cl-keep-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.cl-keep-btn:hover { border-color: #10b981; color: #059669; }
.cl-keep-btn-active { color: #059669; border-color: #10b981; background: color-mix(in srgb, #10b981 8%, transparent); }
.cl-keep-btn svg { width: 11px; height: 11px; }

/* ── Corner tiles ───────────────────────────────────────────── */
.cl-corner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none !important;
  color: inherit;
  margin-bottom: 10px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.cl-corner:hover { border-color: var(--border-hover); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.cl-corner-label { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.cl-corner-stats { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── Timeline (activity feed) ───────────────────────────────── */
.cl-timeline { display: flex; flex-direction: column; }

.cl-event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 4px;
}

.cl-event + .cl-event { border-top: 1px solid var(--border); }

.cl-event-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--premium-accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--premium-accent) 25%, transparent);
  color: var(--premium-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cl-event-icon svg { width: 15px; height: 15px; }
.cl-event-body { flex: 1; min-width: 0; }
.cl-event-title { font-size: 13.5px; font-weight: 800; color: var(--text); }
.cl-event-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.cl-event-side { flex-shrink: 0; text-align: right; }

/* ── Leaderboard ────────────────────────────────────────────── */
.cl-lb-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 12px;
}

.cl-lb-row + .cl-lb-row { border-top: 1px solid var(--border); }
.cl-lb-row.is-me { background: color-mix(in srgb, var(--premium-accent) 7%, transparent); }
.cl-lb-rank { width: 34px; font-weight: 900; font-size: 13px; color: var(--muted); text-align: center; flex-shrink: 0; }
.cl-lb-rank.top3 { color: var(--premium-accent); }
.cl-lb-name { flex: 1; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-lb-bes { font-weight: 900; font-size: 13.5px; color: var(--text); flex-shrink: 0; text-align: right; }
.cl-lb-bes-label { font-size: 10px; color: var(--muted); font-weight: 700; }

/* ── Empty state ────────────────────────────────────────────── */
.cl-empty {
  border: 1px dashed var(--border-hover);
  border-radius: 16px;
  background: var(--surface-muted);
  padding: 36px 24px;
  text-align: center;
}

.cl-empty svg { width: 26px; height: 26px; color: var(--muted); opacity: 0.7; }
.cl-empty-title { font-weight: 800; font-size: 14.5px; margin: 10px 0 4px; color: var(--text); }
.cl-empty-body { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 44ch; margin: 0 auto; }
.cl-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* ── Forms ──────────────────────────────────────────────────── */
.cl-field { margin-bottom: 18px; }

.cl-field label,
.cl-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 7px;
}

.cl-field input,
.cl-field textarea,
.cl-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font: inherit;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.cl-field textarea { min-height: 110px; resize: vertical; }

.cl-field input:focus,
.cl-field textarea:focus,
.cl-field select:focus {
  border-color: var(--premium-accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--premium-accent) 12%, transparent);
}

.cl-help { font-size: 12px; color: var(--muted); font-weight: 500; margin: 6px 0 0; line-height: 1.55; }

.cl-error {
  padding: 11px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cl-success {
  padding: 11px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #10b981 8%, var(--surface));
  border: 1px solid color-mix(in srgb, #10b981 25%, transparent);
  color: #047857;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

html[data-theme="dark"] .cl-error { background: rgba(239, 68, 68, 0.08); }
html[data-theme="dark"] .cl-success { color: #34d399; }

/* ── Panel (inline card sections on detail pages) ───────────── */
.cl-panel-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

/* ── Composer ───────────────────────────────────────────────── */
.cl-composer-trigger {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  margin-bottom: 16px;
}

.cl-composer-trigger:hover { border-color: var(--border-hover); background: var(--surface); color: var(--text); }

.cl-composer-inner {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.cl-composer-textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  font-family: inherit;
  outline: none;
  font-weight: 500;
  resize: none;
  min-height: 76px;
}

.cl-composer-textarea::placeholder { color: var(--muted); font-weight: 600; }

.cl-chips-row { display: flex; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; align-items: center; }

.cl-select-chip {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.cl-select-chip:hover { border-color: var(--text); color: var(--text); }
.cl-select-chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.cl-composer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cl-media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.cl-media-btn:hover { border-color: var(--text); color: var(--text); }
.cl-media-btn svg { width: 17px; height: 17px; }

.hidden-input { display: none; }

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.media-preview-item {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-muted);
  position: relative;
  border: 1px solid var(--border);
}

.media-preview-item img,
.media-preview-item video { width: 100%; height: 100%; object-fit: cover; }

.media-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.media-remove-btn:hover { background: rgba(220, 38, 38, 0.85); }
.media-remove-btn svg { width: 12px; height: 12px; }

/* ── Misc ───────────────────────────────────────────────────── */
.cl-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none !important;
  transition: color 0.15s;
}

.cl-back:hover { color: var(--text); }
.cl-back svg { width: 13px; height: 13px; }

.cl-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

.cl-belief-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--premium-accent);
  font-style: italic;
  font-weight: 500;
  max-width: 62ch;
}
