@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Baloo+2:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=M+PLUS+Rounded+1c:wght@700;800;900&family=Varela+Round&family=Poppins:wght@600;700;800;900&display=swap');

:root {
  /* ── Typography ──
     Display = rounded bold sans (VAG/Arial-Rounded style), replacing the old serif. */
  --font-display: 'Baloo 2', 'Varela Round', 'M PLUS Rounded 1c', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Earth-tone system: warm forest green + warm cream paper ── */
  --green-900:  #21301C;   /* darkest green     — body text on cream    */
  --green-700:  #3E6B45;   /* primary warm green— buttons, accents      */
  --green-500:  #5C8A4F;   /* mid green         — hover, secondary      */
  --green-300:  #9CB892;   /* soft green        — disabled, subtle      */
  --green-100:  #CBDDBF;   /* pale green        — tag/badge fills       */
  --green-50:   #E7EFDD;   /* whisper green     — hover bg on cream     */

  --cream-900:  #C9B79A;   /* dark cream        — strong borders        */
  --cream-600:  #DCCDB2;   /* medium cream      — default borders       */
  --cream-300:  #EFE6D2;   /* cream tint        — light fills           */
  --cream-100:  #F3EAD7;   /* warm cream        — page background       */
  --cream-50:   #FBF5E8;   /* light cream       — card backgrounds      */

  /* ── Sidebar / right-rail panel (warm forest green) ── */
  --sidebar:    #2E4A34;   /* warm forest green panel                   */
  --sidebar-2:  #284029;   /* slightly deeper for the panel view        */

  /* ── Semantic aliases (keep existing var names working) ── */
  --primary:       var(--green-700);
  --primary-dark:  var(--green-900);
  --primary-light: var(--green-50);
  --accent:        var(--green-700);
  --accent-dark:   var(--green-900);
  --text:          var(--green-900);
  --text-secondary:var(--green-500);
  --border:        var(--cream-600);
  --bg:            var(--cream-100);
  --white:         var(--cream-50);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
}

/* ── Rounded display headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.14;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-300); }
::-webkit-scrollbar-thumb { background: var(--green-500); border-radius: 4px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.fade-up { animation: fadeUp 0.45s ease both; }

/* ── Navbar ── */
.navbar {
  background: var(--cream-100);
  border-bottom: 1px solid var(--cream-600);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  color: var(--green-900);
  flex-shrink: 0;
}
.logo span { color: var(--green-500); font-style: italic; }
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-500);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--green-900); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.notif-wrap { position: relative; cursor: pointer; font-size: 20px; line-height: 1; }
.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--green-700);
  border-radius: 50%;
  border: 1.5px solid var(--cream-50);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover  { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #9ca3af; }
.btn-white {
  background: var(--cream-50);
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }

/* ── Input / Form ── */
.input, .textarea, .select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cream-600);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--green-900);
  background: var(--cream-50);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.12);
}
.textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.form-group { margin-bottom: 14px; }

/* ── Cards ── */
.card {
  background: var(--cream-50);
  border: 1px solid var(--cream-600);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.10);
}
.card-clickable { cursor: pointer; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-idea      { background: var(--cream-300); color: var(--green-700); border: 1px solid var(--cream-600); }
.badge-prelaunch { background: var(--green-100);  color: var(--green-900); }
.badge-mvp         { background: var(--cream-600); color: var(--green-700); }
.badge-established { background: var(--green-100); color: var(--green-900); }
.badge-growing     { background: var(--green-100); color: var(--green-900); }
.badge-scaling     { background: var(--green-700); color: var(--cream-50);  }
.badge-equity    { background: var(--cream-300); color: var(--green-700); border: 1px solid var(--cream-600); }
.badge-paid      { background: var(--green-100);  color: var(--green-900); }
.badge-unpaid    { background: var(--cream-300); color: var(--green-500); border: 1px solid var(--cream-600); }
.badge-mixed     { background: var(--green-500); color: var(--cream-50);  }
.badge-avail     { background: var(--green-100);  color: var(--green-700); }
.badge-open      { background: var(--green-700);  color: var(--cream-50);  }

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--cream-300);
  color: var(--green-700);
  border: 1px solid var(--cream-600);
}
.tag-skill {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.tag-role {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
}

/* ── Avatar ── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 38px; height: 38px; font-size: 14px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }
.logo-mark {
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-sm { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
.logo-md { width: 48px; height: 48px; font-size: 16px; }
.logo-lg { width: 64px; height: 64px; font-size: 22px; border-radius: 14px; }
.logo-xl { width: 80px; height: 80px; font-size: 28px; border-radius: 18px; }

/* ── Filter chips ── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
  gap: 4px;
}
.chip:hover, .chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Section labels ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: block;
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Role card ── */
.role-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.role-card:hover { border-color: #86efac; background: #f0fdf4; }

/* ── Messages ── */
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.msg-sent {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg-received {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

/* ── Step wizard ── */
.step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-active   { background: var(--primary); color: #fff; }
.step-done     { background: var(--accent);  color: #fff; }
.step-inactive { background: #E0D8C6; color: var(--text-secondary); }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done { background: var(--accent); }

/* ── Progress bar ── */
.progress-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s ease; }

/* ── Toggle ── */
.toggle { position: relative; width: 42px; height: 23px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--cream-600);
  border-radius: 23px;
  transition: background 0.15s;
}
.toggle-track::before {
  content: '';
  position: absolute;
  height: 17px; width: 17px;
  left: 3px; top: 3px;
  background: var(--cream-50);
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle input:checked ~ .toggle-track { background: var(--primary); }
.toggle input:checked ~ .toggle-track::before { transform: translateX(19px); }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--cream-300) 25%, var(--cream-600) 50%, var(--cream-300) 75%);
  background-size: 400px;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ── Map placeholder ── */
.map-area {
  background: linear-gradient(135deg, #D4E0CC 0%, #C0D4B8 60%, #A8C4A0 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 40px);
}
.map-pin-icon {
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--green-700);
  position: absolute;
  box-shadow: 2px 2px 0 var(--green-900);
}
.map-pin-icon::after {
  content: '';
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Interest card (onboarding) ── */
.interest-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  background: #fff;
}
.interest-card:hover, .interest-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.interest-card.selected .interest-label { color: var(--primary); }

/* ── Profile availability ── */
.avail-looking { background: var(--green-700); color: var(--cream-50); }
.avail-open    { background: var(--green-100);  color: var(--green-900); }
.avail-busy    { background: var(--cream-300); color: var(--green-500); border: 1px solid var(--cream-600); }

/* ── Conversation item ── */
.convo-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.12s;
  align-items: flex-start;
}
.convo-item:hover, .convo-item.active { background: #EDE5D0; }
.convo-unread .convo-name { font-weight: 700; }

/* ── FAB (floating action button) ── */
#fab-wrap {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.fab-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--white); border: none;
  font-size: 26px; font-weight: 300; cursor: pointer; line-height: 1;
  box-shadow: 3px 3px 0 var(--primary-dark);
  transition: transform 0.2s, background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.fab-btn:hover { background: var(--primary-dark); }
.fab-menu {
  display: none; flex-direction: column; gap: 8px; align-items: flex-end;
}
.fab-option {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-50); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 10px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--border);
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.fab-option:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── Quick post modal ── */
.qp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.qp-card {
  background: var(--white); border-radius: 16px; padding: 28px;
  width: 100%; max-width: 480px;
  border: 2px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
}

/* ── Feed post ── */
.feed-post {
  background: var(--cream-50); border: 2px solid var(--green-900); border-radius: 14px; padding: 20px;
  margin-bottom: 16px; box-shadow: 4px 4px 0 var(--green-900);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feed-post:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--green-900); }
.feed-post-header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.feed-post-body { font-size: 14px; color: var(--green-900); line-height: 1.7; margin-bottom: 16px; }
.feed-post-actions { display: flex; gap: 16px; align-items: center; }
.post-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; padding: 4px 8px;
  border-radius: 8px; transition: all 0.15s; font-family: inherit;
}
.post-action-btn:hover { color: var(--primary); background: var(--primary-light); }
.post-action-btn.liked { color: var(--green-700); font-weight: 800; }
.post-type-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 2px 8px; border-radius: 100px;
}
.type-milestone { background: var(--green-700); color: var(--cream-50); }
.type-hiring    { background: var(--green-500); color: var(--cream-50); }
.type-update    { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-100); }
.type-question  { background: var(--cream-300); color: var(--green-700); border: 1px solid var(--cream-600); }

/* ── Forum ── */
.forum-cat-card {
  background: var(--cream-50); border: 2px solid var(--green-900); border-radius: 14px;
  padding: 20px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--green-900);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 6px;
}
.forum-cat-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--green-900); }
.forum-cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 4px;
}
.forum-thread {
  background: var(--cream-50); border: 2px solid var(--green-900); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; box-shadow: 3px 3px 0 var(--green-900);
  margin-bottom: 10px; transition: transform 0.15s, box-shadow 0.15s;
}
.forum-thread:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--green-900); }
.forum-thread.pinned { border-left: 4px solid var(--green-700); }
.thread-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.thread-preview { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 10px; }
.thread-meta { display: flex; gap: 14px; font-size: 12px; color: var(--green-500); flex-wrap: wrap; align-items: center; }
.thread-stat { display: flex; align-items: center; gap: 4px; }

/* ── Team / People directory ── */
.team-startup-section { margin-bottom: 32px; }
.team-startup-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--green-50); border: 2px solid var(--green-900);
  border-radius: 12px; margin-bottom: 12px; cursor: pointer;
}
.team-startup-header:hover { background: var(--green-100); }
.person-card {
  background: var(--cream-50); border: 2px solid var(--green-900); border-radius: 14px;
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer; box-shadow: 3px 3px 0 var(--green-900);
  margin-bottom: 10px; transition: transform 0.15s, box-shadow 0.15s;
}
.person-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--green-900); }
.person-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.contact-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.contact-row a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-row a:hover { text-decoration: underline; }

/* ── Person modal ── */
.person-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.person-modal-card {
  background: var(--white); border-radius: 16px; padding: 32px;
  width: 100%; max-width: 420px;
  border: 2px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
}

/* ── Project cards (Your Projects section) ── */
.project-card {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 18px;
  margin-bottom: 12px; transition: border-color 0.15s, box-shadow 0.15s; background: var(--white);
}
.project-card:hover { border-color: var(--primary); box-shadow: 2px 2px 0 var(--border); }
.project-stat-row {
  display: flex; gap: 16px; font-size: 12px; color: var(--green-500);
  flex-wrap: wrap; margin: 10px 0 12px;
}
.project-stat-row strong { color: var(--green-900); }

/* ── Invite flow ── */
.invite-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary);
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.15s, transform 0.15s;
  box-shadow: 2px 2px 0 var(--primary-dark);
}
.invite-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.invite-btn.sent { background: var(--green-300); box-shadow: 2px 2px 0 var(--green-100); cursor: default; color: var(--green-900); }

/* ── Idea comments ── */
.idea-comments {
  border-top: 1px solid #F3F4F6; margin-top: 14px; padding-top: 14px; display: none;
}
.idea-comments.open { display: block; }
.idea-comment-item { display: flex; gap: 10px; margin-bottom: 12px; }
.idea-comment-item:last-of-type { margin-bottom: 14px; }
.idea-comment-text {
  background: var(--cream-300); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; color: var(--green-900); line-height: 1.55; flex: 1;
  border: 1px solid var(--cream-600);
}
.idea-comment-author { font-weight: 700; font-size: 12px; margin-bottom: 3px; }
.idea-comment-time { font-size: 11px; color: var(--green-500); }
.comment-input-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.comment-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-family: inherit;
  outline: none; resize: none; line-height: 1.5;
  transition: border-color 0.15s;
}
.comment-input:focus { border-color: var(--primary); }
.comment-submit {
  width: 34px; height: 34px; border-radius: 9px; border: none;
  background: var(--primary); color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.comment-submit:hover { background: var(--primary-dark); }
.comment-toggle-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; padding: 4px 8px;
  border-radius: 8px; transition: all 0.15s; font-family: inherit;
}
.comment-toggle-btn:hover { color: var(--primary); background: var(--primary-light); }

/* ── Clickable author on ideas ── */
.idea-author-link {
  text-decoration: none; cursor: pointer;
  transition: opacity 0.15s;
}
.idea-author-link:hover { opacity: 0.75; }

/* ── Other-user profile ── */
.other-profile-contact {
  background: var(--cream-300); border: 1px solid var(--cream-600); border-radius: 12px; padding: 16px; margin-bottom: 16px;
}

/* ── Ideas Board ── */
.ideas-grid { display: flex; flex-direction: column; gap: 14px; }
.idea-card {
  background: var(--cream-50); border: 2px solid var(--green-900); border-radius: 14px; padding: 20px;
  box-shadow: 4px 4px 0 var(--green-900);
  transition: transform 0.15s, box-shadow 0.15s;
}
.idea-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--green-900); }
.idea-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 10px 0 8px; line-height: 1.4;
}
.idea-desc {
  font-size: 14px; color: var(--green-700); line-height: 1.65; margin: 0 0 14px;
}
.idea-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.start-it-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 2px solid var(--border); border-radius: 12px;
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
  font-family: inherit; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--border);
}
.start-it-btn:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-light);
  box-shadow: 2px 2px 0 var(--primary);
}
.start-it-btn.voted {
  border-color: var(--primary); color: var(--white); background: var(--primary);
  box-shadow: 2px 2px 0 var(--primary-dark);
}
.start-it-count { font-size: 15px; font-weight: 800; }
.startup-connected-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); border-radius: 100px;
  padding: 2px 8px; text-decoration: none;
}
/* Ideas sort & input */
.ideas-sort-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ── Owner controls ── */
.owner-panel {
  background: var(--primary-light); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.owner-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px; letter-spacing: 0.03em; margin-bottom: 10px;
}
.pending-req-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  background: var(--white); transition: border-color 0.15s;
}
.pending-req-card:hover { border-color: var(--primary); }
.req-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-accept {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary); color: var(--white); border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
  box-shadow: 1px 1px 0 var(--primary-dark);
}
.btn-accept:hover { background: var(--primary-dark); }
.btn-decline {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--white); color: var(--text-secondary); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.btn-decline:hover { border-color: var(--primary); color: var(--primary); }
.member-approved {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--primary-light);
}
.member-approved:last-child { border-bottom: none; }
.status-pending {
  background: #E0D8C6; color: var(--primary); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 10px; text-align: center;
  border: 1px solid var(--border);
}
.status-member {
  background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 10px; text-align: center;
}
.editor-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); border: 1px solid var(--border); border-radius: 100px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--primary);
}

/* ── Post type chips ── */
.post-type-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; transition: all 0.15s; text-align: left;
  font-family: inherit; color: var(--text-secondary);
}
.post-type-chip:hover { border-color: var(--primary); background: var(--primary-light); color: var(--text); }
.post-type-chip.active {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
  box-shadow: 2px 2px 0 var(--border);
}

/* ── Milestone bars ── */
.milestone-row { margin-bottom: 16px; }
.milestone-row:last-child { margin-bottom: 0; }
.milestone-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.milestone-label { font-size: 13px; font-weight: 600; color: var(--text); }
.milestone-val   { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.milestone-track {
  height: 8px; background: #D8CCBA; border-radius: 4px; overflow: hidden;
  position: relative;
}
.milestone-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.milestone-fill::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.6);
}
.milestone-pct {
  font-size: 11px; font-weight: 700; color: var(--primary); margin-top: 4px; text-align: right;
}

/* ── Match score panel ── */
.match-panel {
  background: var(--primary-light);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.match-panel-score {
  font-size: 28px; font-weight: 900; color: var(--primary); letter-spacing: -0.03em; line-height: 1;
}
.match-breakdown-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; padding: 4px 0;
}
.match-breakdown-bar {
  height: 4px; background: #C9BAA0; border-radius: 2px; flex: 1; margin: 0 8px; overflow: hidden;
}
.match-breakdown-fill { height: 100%; background: var(--primary); border-radius: 2px; }

/* ── Sketch icon system ── */
/* SVG filter injected via app.js — applied here via class */
.si {
  display: inline-block;
  filter: url(#sketch-f);
  vertical-align: middle;
  stroke: currentColor;
}
/* Bold two-color card depth */
.card { box-shadow: 4px 4px 0 var(--green-900); }
/* Bold border on active inputs */
.input:focus, .textarea:focus {
  border-color: var(--green-900);
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--green-900);
}
/* Bold button depth */
.btn-primary, .btn-accent { box-shadow: 3px 3px 0 var(--primary-dark); }
.btn-primary:hover, .btn-accent:hover {
  box-shadow: 4px 4px 0 var(--primary-dark);
  transform: translate(-1px, -1px);
}
/* Navbar active underline */
.nav-link.active { position: relative; }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--cream-50);
  border-radius: 2px;
}
/* Consistent bold hover on all card types */
.forum-thread:hover { border-color: var(--green-900); box-shadow: 5px 5px 0 var(--green-900); }
.person-card:hover  { border-color: var(--green-900); box-shadow: 5px 5px 0 var(--green-900); }
.idea-card:hover    { border-color: var(--green-900); box-shadow: 4px 4px 0 var(--green-900); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .col-2, .col-3 { grid-template-columns: 1fr !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ══════════════════════════════════════════════
   APP SIDEBAR — shared nav list ⇄ contextual panel
   (used by explore, feed, forum, saved, requests)
══════════════════════════════════════════════ */
.app-sidebar {
  position: fixed; left: 0; top: 0; z-index: 200;
  width: 256px; height: 100vh;
  background: linear-gradient(168deg,
    rgba(46,76,64,0.74) 0%, rgba(36,62,51,0.74) 52%, rgba(28,50,42,0.78) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-right: 1px solid rgba(255,255,255,0.14);
  display: flex; overflow: hidden;
  box-shadow: 1px 0 0 rgba(0,0,0,0.06);
}
.sb-view {
  width: 256px; height: 100%; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 18px 14px 16px; overflow-y: auto;
  transition: transform 0.46s cubic-bezier(.5,0,.2,1);
}
.app-sidebar.panel-mode .sb-view { transform: translateX(-256px); }

.sb-logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: #FFFFFF; text-decoration: none; letter-spacing: 0.01em;
  padding: 6px 10px 0; margin-bottom: 24px; display: block; line-height: 1;
}
.sb-logo span { color: rgba(255,255,255,0.6); font-style: italic; }

.sb-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 0 12px; margin: 12px 0 8px;
}
.sb-nav-list { display: flex; flex-direction: column; gap: 2px; }
.sb-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  color: rgba(255,255,255,0.85); text-decoration: none;
  background: transparent; border: none; cursor: pointer; width: 100%;
  text-align: left; letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
}
.sb-nav-item:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.sb-nav-item.active { background: rgba(255,255,255,0.16); color: #FFFFFF; }
.sb-ic { width: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sb-ic svg { width: 18px; height: 18px; }
.sbf-opt-ic { display: inline-flex; align-items: center; justify-content: center; }
.sb-panel-ic { display: inline-flex; align-items: center; justify-content: center; }
.sb-panel-ic svg { width: 22px; height: 22px; }
.sb-back svg { width: 15px; height: 15px; }
.sb-badge {
  margin-left: auto; background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85); font-size: 10px; font-weight: 700;
  border-radius: 100px; padding: 1px 8px; line-height: 1.7;
}
.sb-nav-item.active .sb-badge { background: rgba(255,255,255,0.28); color: #FFFFFF; }
.sb-foot {
  margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.sb-post { color: #CFE8BF; }
.sb-post:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }

.sb-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 9px; margin-bottom: 10px; width: fit-content;
  transition: background 0.15s, color 0.15s;
}
.sb-back:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.sb-panel-head { display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-bottom: 3px; }
.sb-panel-ic { font-size: 22px; line-height: 1; }
.sb-panel-title { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: #FFFFFF; }
.sb-panel-sub { font-size: 12px; color: rgba(255,255,255,0.6); padding: 0 10px; margin-bottom: 18px; }

.sbf-group { margin-bottom: 20px; padding: 0 4px; }
.sbf-title { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-100); margin: 0 6px 9px; }
.sb-clear {
  width: 100%; padding: 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22); background: transparent;
  color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.15s; margin-top: 4px;
}
.sb-clear:hover { background: rgba(255,255,255,0.1); }

/* Self-contained filter controls (used by feed/forum/saved/requests panels) */
.app-sidebar .sbf-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 10px;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
  text-align: left; transition: background 0.14s, color 0.14s;
}
.app-sidebar .sbf-opt:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.app-sidebar .sbf-opt.active { background: rgba(255,255,255,0.16); color: #FFFFFF; }
.app-sidebar .sbf-opt-ic { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.app-sidebar .sbf-opt-count { margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 700; }
.app-sidebar .sbf-opt.active .sbf-opt-count { color: #FFFFFF; }
.app-sidebar .sb-select {
  width: 100%; padding: 9px 11px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22); background: var(--sidebar-2);
  color: #FFFFFF; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; outline: none;
}

/* dark-mode versions of explore's filter primitives */
.app-sidebar .fp-radio label, .app-sidebar .fp-check label, .app-sidebar .isf-option {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(253,250,244,0.85); cursor: pointer;
  padding: 7px 8px; border-radius: 8px; font-weight: 500; transition: background 0.12s;
}
.app-sidebar .fp-radio label:hover, .app-sidebar .fp-check label:hover, .app-sidebar .isf-option:hover { background: rgba(255,255,255,0.06); }
.app-sidebar .fp-radio input, .app-sidebar .fp-check input, .app-sidebar .isf-option input { accent-color: #6DBE67; width: 15px; height: 15px; flex-shrink: 0; }
.app-sidebar .ts-check, .app-sidebar .ts-radio {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(253,250,244,0.85);
  cursor: pointer; padding: 7px 8px; border-radius: 8px; transition: background 0.12s;
}
.app-sidebar .ts-check:hover, .app-sidebar .ts-radio:hover { background: rgba(255,255,255,0.06); }
.app-sidebar .ts-check input, .app-sidebar .ts-radio input { accent-color: #6DBE67; width: 15px; height: 15px; flex-shrink: 0; }
.app-sidebar .fp-stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.app-sidebar .fp-stage-chip {
  padding: 9px 6px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
  font-size: 11px; font-weight: 700; color: rgba(253,250,244,0.8);
  cursor: pointer; font-family: inherit; text-align: center; line-height: 1.4; transition: all 0.15s;
}
.app-sidebar .fp-stage-chip:hover { border-color: #6DBE67; color: #FDFAF4; }
.app-sidebar .fp-stage-chip.sel { border-color: #6DBE67; background: #6DBE67; color: #15280F; }
.app-sidebar .fp-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: 8px; gap: 8px; transition: background 0.12s; }
.app-sidebar .fp-toggle-row:hover { background: rgba(255,255,255,0.06); }
.app-sidebar .fp-toggle-label { font-size: 13px; color: rgba(253,250,244,0.85); font-weight: 500; }

/* Offset main content for the fixed sidebar */
.app-main { margin-left: 256px; min-height: 100vh; }
.explore-shell, .teams-shell, .ideas-shell-2 { display: block; min-height: auto; }
.explore-main, .teams-main, .ideas-main-content { padding-top: 26px; }

@media (max-width: 900px) {
  .app-sidebar, .sb-view { width: 210px; }
  .app-main { margin-left: 210px; }
  .app-sidebar.panel-mode .sb-view { transform: translateX(-210px); }
}

/* ══════════════════════════════════════════════
   MSPREtea palette — platform-wide override
   (cream + muted greens + earthy pastels)
══════════════════════════════════════════════ */
:root {
  --green-900: #243024;  --green-700: #4E7A36;  --green-500: #7AA255;
  --green-300: #A9C293;  --green-100: #D4E2C6;  --green-50:  #EAF0E0;
  --cream-900: #C2B58F;  --cream-600: #D8CFB6;  --cream-300: #E8E2CE;
  --cream-100: #F0ECDC;  --cream-50:  #F8F5EA;
  --sidebar:   #2C4A3E;  --sidebar-2: #243E33;

  /* named swatches for zines / memos / accents */
  --ms-skyblue:    #B3D2CC;
  --ms-mint:       #E4ECDD;
  --ms-lightgreen: #86BE73;
  --ms-deepgreen:  #7AA255;
  --ms-lightpink:  #F5D2C4;
  --ms-salmon:     #E3A78C;
  --ms-orange:     #F0592A;
  --ms-khaki:      #5E5F3C;
  --ms-brown:      #4B3A24;
  --ms-bluegreen:  #2C4A3E;
}

/* ══════════════════════════════════════════════
   Soft gradient + grain backdrop (every page)
══════════════════════════════════════════════ */
/* ── Backdrop: airbrushed mottled lime-green (matches yokō / Pokémon refs) ── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(34% 30% at 16% 20%, #84B63E, transparent 60%),   /* darker green blotch */
    radial-gradient(40% 34% at 70% 26%, #79AC38, transparent 60%),
    radial-gradient(34% 30% at 88% 70%, #93C150, transparent 58%),
    radial-gradient(40% 36% at 28% 82%, #7CB23A, transparent 60%),
    radial-gradient(30% 28% at 54% 52%, #A7CD5C, transparent 58%),
    radial-gradient(46% 40% at 92% 14%, #C9E07E, transparent 62%),    /* light lime corner   */
    linear-gradient(155deg, #C7E07E 0%, #B2D666 45%, #98C84E 75%, #88BC42 100%);  /* lime base */
}
/* canvas-painted blurred-vegetation photo (drawn in app.js), above the fallback gradient */
#vegBg { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* heavy film grain over the whole page (the dominant texture in the refs) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='130' height='130' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 130px 130px;
  opacity: 0.5; mix-blend-mode: overlay;
}

/* ══════════════════════════════════════════════
   Top-right nav bar — profile avatar + create button
   Injected by app.js on all content pages
══════════════════════════════════════════════ */
#topbar-right {
  position: fixed; top: 16px; right: 24px; z-index: 260;
  display: flex; align-items: center; gap: 10px;
}
.tbr-create {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.42);
  color: #FDFAF4;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.tbr-create:hover { background: rgba(255,255,255,0.34); transform: scale(1.07); }
.tbr-create svg { width: 18px; height: 18px; }
.tbr-avatar-link {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.52);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; overflow: hidden; flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: border-color 0.15s, transform 0.12s;
}
.tbr-avatar-link:hover { border-color: #fff; transform: scale(1.07); }
.tbr-avatar-link .avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 50%; flex-shrink: 0; }
.tbr-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--cream-50, #F8F5EA);
  border: 1.5px solid var(--cream-600, #D8CFB6);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.26);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 196px; white-space: nowrap;
  z-index: 400;
  animation: tbrMenuIn 0.14s cubic-bezier(.34,1.3,.64,1);
}
@keyframes tbrMenuIn {
  from { opacity: 0; transform: scale(0.9) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.tbr-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  border: none; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--green-900, #243024);
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: background 0.12s;
}
.tbr-menu-item:hover { background: var(--green-50, #EAF0E0); color: var(--green-700, #4E7A36); }
.tbr-menu-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   Quick post modal — media attachment
══════════════════════════════════════════════ */
.qp-media-bar {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; margin-top: 8px;
  border-top: 1px solid #d1fae5;
}
.qp-media-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid #d1fae5; background: transparent;
  font-size: 12px; font-weight: 700; color: #4a6251;
  cursor: pointer; font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.qp-media-btn:hover { background: #f0fdf4; border-color: #86efac; color: #16a34a; }
.qp-media-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.qp-media-count {
  font-size: 11px; font-weight: 800; color: #16a34a;
  background: #dcfce7; border-radius: 100px; padding: 1px 7px; margin-left: 2px;
}

.qp-media-preview {
  display: flex; gap: 8px; padding: 10px 0 4px;
  overflow-x: auto; flex-wrap: nowrap;
  scrollbar-width: thin; scrollbar-color: #d1fae5 transparent;
}
.qp-media-preview::-webkit-scrollbar { height: 4px; }
.qp-media-preview::-webkit-scrollbar-thumb { background: #d1fae5; border-radius: 4px; }
.qp-prev-item {
  position: relative; flex-shrink: 0;
  width: 80px; height: 80px; border-radius: 10px;
  overflow: hidden; background: #1A2E14;
  border: 1.5px solid #d1fae5;
}
.qp-prev-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.qp-prev-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; pointer-events: none;
  background: rgba(0,0,0,0.32);
}
.qp-prev-remove {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.62); color: #fff; border: none;
  font-size: 14px; line-height: 1; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.qp-prev-remove:hover { background: rgba(220,40,40,0.85); }
.qp-prev-type {
  position: absolute; bottom: 3px; left: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9); text-transform: uppercase;
  background: rgba(0,0,0,0.42); border-radius: 3px; padding: 1px 4px;
}

/* ══════════════════════════════════════════════
   Feed deck card — inline media grid
══════════════════════════════════════════════ */
.dk-media {
  display: grid; gap: 3px;
  border-radius: 12px; overflow: hidden;
  margin-bottom: 10px; flex-shrink: 0;
  max-height: 210px;
}
.dk-media.dk-m1 { grid-template-columns: 1fr; }
.dk-media.dk-m2 { grid-template-columns: 1fr 1fr; }
.dk-media.dk-m3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dk-media.dk-m3 .dk-mi:first-child { grid-row: 1 / 3; }
.dk-media.dk-m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dk-mi {
  position: relative; background: #1A2E14;
  overflow: hidden; min-height: 70px;
}
.dk-mi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-mi video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-mi-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 800;
}
.dk-mi-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; color: rgba(255,255,255,0.88); font-size: 24px;
}

/* Mini-post card media thumbnail (search / filter grid) */
.mp-media-thumb {
  border-radius: 8px; overflow: hidden; height: 88px;
  background: #1A2E14; margin-bottom: 2px; flex-shrink: 0;
  position: relative;
}
.mp-media-thumb img, .mp-media-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mp-media-thumb-more {
  position: absolute; bottom: 4px; right: 5px;
  font-size: 10px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,0.55); border-radius: 4px; padding: 1px 5px;
}
.mp-media-video-ic {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; color: rgba(255,255,255,0.9); font-size: 18px;
}
