/* =========================================================
   GEXI - public/feed.css  (build 20260506a)
   Community feed page styles. Mobile-first; scales up to desktop.
   ========================================================= */

/* =========================================================
   Theme tokens — single source of truth for the community
   palette. Every new surface (post.html, hashtag.html,
   user.html, notifications.html, workflow.html, share-sheet,
   long-press sheet, etc.) consumes these via var(--gx-...).
   ========================================================= */
:root {
  --gx-surface:    #ffffff;
  --gx-surface-2:  #f9fafb;
  --gx-text-1:     #111827;
  --gx-text-2:     #6b7280;
  --gx-border:     #e5e7eb;
  --gx-danger:     #ef4444;
}
[data-theme="dark"] {
  --gx-surface:    #0f1620;
  --gx-surface-2:  #0a1018;
  --gx-text-1:     #f3f4f6;
  --gx-text-2:     #9ca3af;
  --gx-border:     #1f2937;
  --gx-danger:     #ef4444;
}

/* Page bodies for the community surfaces auto-track the theme. The class
   names match the body[class] in each page (post-body, hashtag-body etc.). */
.page-post-body,
.page-hashtag-body,
.page-prof-body,
.page-notif-body,
.page-wf-body {
  background: var(--gx-surface-2);
  color: var(--gx-text-1);
  min-height: 100vh;
}

/* ---- Page root ---- */
.page-feed {
  background: var(--surface-2, #f9fafb);
  min-height: 100vh;
}
[data-theme="dark"] .page-feed { background: #0a1018; }

.feed-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 100px;
}
@media (min-width: 900px) {
  .feed-page { padding: 24px 20px 60px; }
}

/* ---- Tabs ---- */
.feed-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 0;
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin: -16px -14px 12px;
  padding: 0 14px;
}
[data-theme="dark"] .feed-tabs {
  background: #0f1620;
  border-bottom-color: rgba(255,255,255,0.08);
}
@media (min-width: 900px) {
  .feed-tabs {
    margin: 0 0 16px;
    padding: 0;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }
}

.feed-tab {
  flex: 1 1 50%;
  border: 0;
  background: transparent;
  color: var(--ink-2, #6b7280);
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 120ms ease;
  position: relative;
}
.feed-tab:hover { color: var(--ink, #111827); }
[data-theme="dark"] .feed-tab:hover { color: #fff; }
.feed-tab-active { color: #16a34a; }
[data-theme="dark"] .feed-tab-active { color: #4ade80; }
.feed-tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  border-radius: 2px 2px 0 0;
  transition: transform 240ms cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}
.feed-tabs[data-active="following"] .feed-tab-indicator {
  transform: translateX(100%);
}

/* ---- "X new posts" pill ---- */
.feed-new-pill {
  position: sticky;
  top: 56px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto;
  padding: 8px 16px;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34,197,94,0.32);
  animation: gx-feed-pill-slide 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feed-new-pill[hidden] { display: none; }
@keyframes gx-feed-pill-slide {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.feed-new-pill-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: gx-pulse 1.6s ease-in-out infinite;
}
@keyframes gx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.7); }
}

/* ---- Compose card (desktop only) ---- */
.feed-compose-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 12px;
}
[data-theme="dark"] .feed-compose-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.feed-compose-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  transition: background 120ms ease;
}
.feed-compose-trigger:hover { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .feed-compose-trigger:hover { background: rgba(255,255,255,0.05); }
.feed-compose-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #65a30d);
  flex: 0 0 auto;
}
.feed-compose-prompt {
  flex: 1 1 auto;
  color: var(--ink-2, #6b7280);
  font-size: 15px;
}
.feed-compose-cta {
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
@media (max-width: 700px) {
  .feed-compose-card { display: none; }
}

/* ---- Activate-social banner ---- */
.feed-activate-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(132,204,22,0.06));
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
[data-theme="dark"] .feed-activate-banner {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(132,204,22,0.08));
  border-color: rgba(34,197,94,0.3);
}
.feed-activate-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}
.feed-activate-text strong { font-size: 14px; color: var(--ink, #111827); }
[data-theme="dark"] .feed-activate-text strong { color: #f3f4f6; }
.feed-activate-text span { color: var(--ink-2, #6b7280); font-size: 12.5px; }
.feed-activate-btn {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- Feed list ---- */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 900px) {
  .feed-list { gap: 14px; }
}

/* ---- Card ---- */
.feed-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  animation: gx-card-mount 220ms cubic-bezier(0.25, 1, 0.5, 1);
}
.feed-card:hover {
  border-color: var(--border-strong, #d1d5db);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="dark"] .feed-card {
  background: #0f1620;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .feed-card:hover {
  border-color: rgba(255,255,255,0.16);
}
@keyframes gx-card-mount {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 900px) {
  .feed-card { padding: 14px 16px; }
}

/* ---- Card head row ---- */
.feed-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.feed-card-avatar {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #65a30d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
}
.feed-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .feed-card-avatar { width: 44px; height: 44px; } }

.feed-card-id {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feed-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
[data-theme="dark"] .feed-card-name { color: #f3f4f6; }
.feed-card-name:hover { color: #16a34a; }

.feed-card-meta {
  font-size: 13px;
  color: var(--ink-3, #9ca3af);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.feed-card-handle { color: inherit; text-decoration: none; }
.feed-card-handle:hover { color: var(--ink-2, #6b7280); text-decoration: underline; }
.feed-card-dot { opacity: 0.5; }
.feed-card-time { color: inherit; }

.feed-card-menu-btn {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2, #6b7280);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.feed-card-menu-btn:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .feed-card-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---- Repost banner ---- */
.feed-card-repost-banner {
  font-size: 12.5px;
  color: var(--ink-2, #6b7280);
  margin-bottom: 6px;
  margin-left: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Card body ---- */
.feed-card-body {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink, #111827);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 8px;
  white-space: pre-wrap;
}
[data-theme="dark"] .feed-card-body { color: #f3f4f6; }
@media (max-width: 700px) {
  .feed-card-body { font-size: 15px; }
}

.feed-card-mention {
  color: #16a34a;
  text-decoration: none;
  font-weight: 500;
}
.feed-card-mention:hover { text-decoration: underline; }
[data-theme="dark"] .feed-card-mention { color: #4ade80; }

.feed-card-hashtag {
  color: #2563eb;
  text-decoration: none;
}
.feed-card-hashtag:hover { text-decoration: underline; }
[data-theme="dark"] .feed-card-hashtag { color: #60a5fa; }

.feed-card-link {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.4);
}

/* ---- Card media ---- */
.feed-card-media {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  margin: 8px 0;
}
[data-theme="dark"] .feed-card-media { background: rgba(255,255,255,0.03); }
@media (min-width: 900px) { .feed-card-media { max-height: 560px; } }

.feed-card-video,
.feed-card-audio {
  width: 100%;
  border-radius: 12px;
  margin: 8px 0;
}

/* ---- Remix chip (the centerpiece) ---- */
.feed-card-remix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,197,94,0.28);
  transition: filter 120ms ease, transform 120ms ease;
}
.feed-card-remix:hover { filter: brightness(1.05); }
.feed-card-remix:active { transform: scale(0.97); }
@media (max-width: 700px) {
  .feed-card-remix { width: 100%; justify-content: center; }
}

/* ---- Action row ---- */
.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e5e7eb);
}
[data-theme="dark"] .feed-card-actions { border-top-color: rgba(255,255,255,0.06); }

.feed-action {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-2, #6b7280);
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.feed-action:hover {
  background: rgba(0,0,0,0.05);
  color: var(--ink, #111827);
}
[data-theme="dark"] .feed-action:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.feed-action svg { width: 18px; height: 18px; }
.feed-action-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.feed-action-count:empty { display: none; }

/* Engaged states */
.feed-action-like.engaged    { color: #ef4444; }
.feed-action-like.engaged:hover { background: rgba(239,68,68,0.10); color: #dc2626; }
.feed-action-bookmark.engaged { color: #f59e0b; }
.feed-action-bookmark.engaged:hover { background: rgba(245,158,11,0.10); color: #d97706; }
.feed-action-repost.engaged  { color: #10b981; }
.feed-action-repost.engaged:hover { background: rgba(16,185,129,0.10); color: #059669; }

/* Like burst on tap */
.feed-action-like.bursting svg { animation: gx-like-burst 280ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes gx-like-burst {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Repost spin */
.feed-action-repost.spinning svg { animation: gx-spin 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes gx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---- Comments inline ---- */
.feed-card-comments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #e5e7eb);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .feed-card-comments { border-top-color: rgba(255,255,255,0.06); }
.feed-comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}
.feed-comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #65a30d);
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  overflow: hidden;
}
.feed-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-comment-body {
  flex: 1 1 auto;
  background: var(--surface-2, #f9fafb);
  border-radius: 12px;
  padding: 8px 12px;
  word-wrap: break-word;
}
[data-theme="dark"] .feed-comment-body { background: rgba(255,255,255,0.04); }
.feed-comment-name {
  font-weight: 600;
  color: var(--ink, #111827);
  margin-right: 6px;
}
[data-theme="dark"] .feed-comment-name { color: #f3f4f6; }
.feed-comment-time {
  font-size: 12px;
  color: var(--ink-3, #9ca3af);
  margin-left: 6px;
}
.feed-comment-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 6px;
}
.feed-comment-input {
  flex: 1 1 auto;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  resize: none;
}
.feed-comment-input:focus { outline: 2px solid #22c55e; outline-offset: 1px; }
[data-theme="dark"] .feed-comment-input {
  background: #0b1118;
  border-color: rgba(255,255,255,0.1);
  color: #f3f4f6;
}
.feed-comment-submit {
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.feed-comment-submit[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Comment expand */
.feed-comment-expand {
  background: transparent;
  border: 0;
  color: var(--ink-2, #6b7280);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
}
.feed-comment-expand:hover { color: #16a34a; }

/* ---- Skeleton ---- */
.feed-card-skeleton {
  pointer-events: none;
  border-color: var(--border, #e5e7eb);
}
.feed-skel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.feed-skel-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--border, #e5e7eb);
}
.feed-skel-name {
  width: 120px; height: 14px;
  background: var(--border, #e5e7eb);
  border-radius: 6px;
}
.feed-skel-line {
  height: 12px;
  background: var(--border, #e5e7eb);
  border-radius: 6px;
  margin-bottom: 8px;
}
.feed-skel-line-1 { width: 95%; }
.feed-skel-line-2 { width: 70%; }
.feed-skel-media {
  height: 200px;
  border-radius: 12px;
  background: var(--border, #e5e7eb);
  margin-top: 10px;
}
[data-theme="dark"] .feed-skel-avatar,
[data-theme="dark"] .feed-skel-name,
[data-theme="dark"] .feed-skel-line,
[data-theme="dark"] .feed-skel-media {
  background: rgba(255,255,255,0.06);
}
.feed-skel-avatar,
.feed-skel-name,
.feed-skel-line,
.feed-skel-media {
  position: relative;
  overflow: hidden;
}
.feed-skel-avatar::after,
.feed-skel-name::after,
.feed-skel-line::after,
.feed-skel-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: gx-shimmer 1.4s linear infinite;
}
[data-theme="dark"] .feed-skel-avatar::after,
[data-theme="dark"] .feed-skel-name::after,
[data-theme="dark"] .feed-skel-line::after,
[data-theme="dark"] .feed-skel-media::after {
  background: linear-gradient(90deg, transparent 0, rgba(255,255,255,0.08) 50%, transparent 100%);
}
@keyframes gx-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ---- Load more + empty ---- */
.feed-load-more {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.feed-load-more .btn-ghost {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  color: var(--ink, #111827);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
[data-theme="dark"] .feed-load-more .btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #f3f4f6;
}
.feed-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-2, #6b7280);
}
.feed-empty-art { font-size: 48px; margin-bottom: 12px; }
.feed-empty-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--ink, #111827); }
[data-theme="dark"] .feed-empty-title { color: #f3f4f6; }
.feed-empty-msg { font-size: 14px; margin: 0; line-height: 1.5; }

/* ---- Compose FAB (mobile) ---- */
.feed-fab {
  position: fixed;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
  right: 16px;
  width: 56px; height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 80;
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feed-fab:hover { transform: scale(1.06); }
.feed-fab:active { transform: scale(0.94); }
@media (min-width: 900px) {
  .feed-fab {
    bottom: 24px;
    right: 24px;
  }
}

/* ---- Compose modal ---- */
.compose-modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 99000;
}
.compose-modal[data-open="true"] { display: block; }

.compose-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,12,20,0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.compose-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gx-modal-in 240ms cubic-bezier(0.25, 1, 0.5, 1);
}
[data-theme="dark"] .compose-shell {
  background: #0f1620;
  color: #f3f4f6;
}
@keyframes gx-modal-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@media (max-width: 700px) {
  .compose-shell {
    inset: auto 0 0 0;
    transform: none;
    left: 0; top: auto; bottom: 0;
    width: 100vw;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    animation: gx-sheet-in 240ms cubic-bezier(0.25, 1, 0.5, 1);
  }
  @keyframes gx-sheet-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

.compose-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
[data-theme="dark"] .compose-header { border-bottom-color: rgba(255,255,255,0.08); }
.compose-close {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.compose-close:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .compose-close:hover { background: rgba(255,255,255,0.08); }
.compose-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.compose-post {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter 120ms ease;
}
.compose-post:hover { filter: brightness(1.05); }
.compose-post[disabled] { opacity: 0.55; cursor: not-allowed; }

.compose-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.compose-author { display: flex; align-items: center; gap: 10px; }
.compose-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #65a30d);
  flex: 0 0 auto;
}
.compose-author-name {
  font-size: 14px;
  color: var(--ink-2, #6b7280);
}
.compose-textarea {
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  font-size: 16px;        /* prevents iOS zoom */
  line-height: 1.5;
  color: var(--ink, #111827);
  font-family: inherit;
  min-height: 100px;
  max-height: 320px;
}
.compose-textarea:focus { outline: none; }
[data-theme="dark"] .compose-textarea { color: #f3f4f6; }
.compose-attach-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-height: 320px;
}
.compose-attach-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.compose-attach-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.compose-error {
  background: rgba(239,68,68,0.10);
  color: #dc2626;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
}
[data-theme="dark"] .compose-error { color: #f87171; }

.compose-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--surface-2, #f9fafb);
}
[data-theme="dark"] .compose-toolbar {
  border-top-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.compose-tool {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2, #6b7280);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compose-tool:hover {
  background: rgba(0,0,0,0.06);
  color: #16a34a;
}
[data-theme="dark"] .compose-tool:hover {
  background: rgba(255,255,255,0.08);
  color: #4ade80;
}
.compose-grow { flex: 1 1 auto; }
.compose-counter {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3, #9ca3af);
}
.compose-counter.warn { color: #f59e0b; }
.compose-counter.over { color: #ef4444; }

/* ---- Activate modal ---- */
.activate-modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 99000;
}
.activate-modal[data-open="true"] { display: block; }

.activate-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,12,20,0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.activate-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gx-modal-in 240ms cubic-bezier(0.25, 1, 0.5, 1);
}
[data-theme="dark"] .activate-shell { background: #0f1620; color: #f3f4f6; }
@media (max-width: 700px) {
  .activate-shell {
    inset: auto 0 0 0;
    left: 0; top: auto; bottom: 0;
    transform: none;
    width: 100vw;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
    animation: gx-sheet-in 240ms cubic-bezier(0.25, 1, 0.5, 1);
  }
}

.activate-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
[data-theme="dark"] .activate-header { border-bottom-color: rgba(255,255,255,0.08); }
.activate-close {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.activate-close:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .activate-close:hover { background: rgba(255,255,255,0.08); }
.activate-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.activate-step {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--ink-3, #9ca3af);
  font-variant-numeric: tabular-nums;
}

.activate-progress {
  height: 3px;
  background: var(--border, #e5e7eb);
  position: relative;
}
[data-theme="dark"] .activate-progress { background: rgba(255,255,255,0.08); }
.activate-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  transition: width 280ms cubic-bezier(0.25, 1, 0.5, 1);
}

.activate-body {
  padding: 18px 18px 12px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.activate-step-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activate-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2, #6b7280);
  margin: 0 0 6px;
}

.activate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.activate-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #6b7280);
}
.activate-input,
.activate-textarea {
  width: 100%;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;        /* prevents iOS zoom */
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  font-family: inherit;
  resize: none;
}
.activate-input:focus, .activate-textarea:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}
[data-theme="dark"] .activate-input,
[data-theme="dark"] .activate-textarea {
  background: #0b1118;
  border-color: rgba(255,255,255,0.1);
  color: #f3f4f6;
}
.activate-username-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  overflow: hidden;
  transition: border-color 120ms ease;
}
.activate-username-row:focus-within { border-color: #22c55e; }
[data-theme="dark"] .activate-username-row {
  background: #0b1118;
  border-color: rgba(255,255,255,0.1);
}
.activate-at {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--surface-2, #f9fafb);
  color: var(--ink-2, #6b7280);
  font-size: 16px;
  font-weight: 600;
}
[data-theme="dark"] .activate-at { background: rgba(255,255,255,0.04); }
.activate-username-row .activate-input {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding-left: 4px;
}
.activate-username-row .activate-input:focus { outline: none; }
.activate-hint {
  font-size: 12px;
  color: var(--ink-3, #9ca3af);
}
.activate-hint.ok    { color: #16a34a; }
.activate-hint.error { color: #ef4444; }

.activate-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.activate-chip {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.activate-chip:hover { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.4); }
[data-theme="dark"] .activate-chip {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #f3f4f6;
}
.activate-chip[aria-pressed="true"] {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.5);
  color: #16a34a;
  font-weight: 600;
}
[data-theme="dark"] .activate-chip[aria-pressed="true"] { color: #4ade80; }

.activate-creators {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.activate-creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: var(--surface, #fff);
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}
.activate-creator-card:hover { transform: translateY(-1px); }
[data-theme="dark"] .activate-creator-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.activate-creator-card.checked {
  border-color: #22c55e;
  background: rgba(34,197,94,0.06);
}
.activate-creator-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #65a30d);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  overflow: hidden;
}
.activate-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.activate-creator-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111827);
  line-height: 1.2;
  word-break: break-word;
}
[data-theme="dark"] .activate-creator-name { color: #f3f4f6; }
.activate-creator-handle {
  font-size: 11.5px;
  color: var(--ink-3, #9ca3af);
}
.activate-creators-loading,
.activate-creators-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: var(--ink-2, #6b7280);
  font-size: 14px;
}

.activate-step-welcome {
  align-items: center;
  text-align: center;
  padding: 20px 8px;
}
.activate-celebrate {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.activate-celebrate-burst {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(34,197,94,0.3), transparent 70%);
  animation: gx-burst 1.6s ease-out infinite;
}
@keyframes gx-burst {
  0%   { transform: scale(0.6); opacity: 0.5; }
  60%  { transform: scale(1.1); opacity: 1;   }
  100% { transform: scale(1.4); opacity: 0;   }
}
.activate-celebrate-emoji {
  font-size: 48px;
  position: relative;
  z-index: 1;
}
.activate-welcome-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.activate-welcome-msg {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2, #6b7280);
  margin: 0;
}

.activate-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--surface-2, #f9fafb);
}
[data-theme="dark"] .activate-footer {
  border-top-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.activate-grow { flex: 1 1 auto; }

/* =======================================================================
 * Phase J — Workflow badge on feed cards
 * Slim "Made with X · Remix" header that surfaces workflow lineage and
 * pushes Remix as a first-class CTA. Sits between any repost banner and
 * the avatar/name row. Keeping it visually quiet so it reads as metadata,
 * not a primary action — Remix grabs attention via accent color only.
 * ===================================================================== */
.feed-card-workflow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 0;
  font-size: 12.5px;
  color: var(--gx-text-2, #6b7280);
}
.feed-card-workflow-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feed-card-workflow-tag:hover { color: var(--gx-text-1, #111827); }
.feed-card-workflow-tag strong { font-weight: 600; color: var(--gx-text-1, #111827); }
.feed-card-workflow-remix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease;
}
.feed-card-workflow-remix:hover { transform: translateY(-1px); filter: brightness(1.05); }
.feed-card-workflow-remix:active { transform: translateY(0); }
[data-theme="dark"] .feed-card-workflow strong { color: var(--gx-text-1, #f3f4f6); }
@media (max-width: 480px) {
  .feed-card-workflow { padding: 6px 12px 0; font-size: 12px; }
  .feed-card-workflow-remix { padding: 3px 9px; }
}

/* =======================================================================
 * Phase G — Mobile native polish
 *
 * Safe-area insets so bottom-fixed surfaces (mobile nav, FAB, compose
 * footer) don't collide with the iOS home indicator or the Android nav
 * gesture bar. `viewport-fit=cover` is set in every page's meta tag so
 * the inset values are non-zero on devices that need them.
 *
 * `env(keyboard-inset-height, 0)` lifts the compose textarea above the
 * software keyboard on iOS (Safari 17+) and Android (where it's well
 * supported). Falls back to 0 elsewhere — no harm done.
 * ===================================================================== */

/* Mobile bottom nav: pad for the home indicator. */
.gx-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
}

/* Compose FAB: lift above the home indicator. */
.feed-fab {
  bottom: calc(16px + env(safe-area-inset-bottom, 0)) !important;
}

/* Compose modal — when the iOS keyboard opens, the textarea must stay
 * visible above it. We anchor the body to the bottom and let the
 * keyboard-inset push it up. */
.compose-modal { padding-bottom: env(keyboard-inset-height, 0); }
.compose-shell { padding-bottom: env(safe-area-inset-bottom, 0); }

/* Pull-to-refresh indicator. The mobile-polish.js module sets the
 * `--ptr-progress` custom prop (0..1) and toggles the `.is-pulling`
 * / `.is-refreshing` classes. CSS handles the look. */
.gx-ptr {
  position: fixed; left: 50%; transform: translate(-50%, calc(-100% + (var(--ptr-progress, 0) * 60px)));
  top: 0; z-index: 60;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gx-surface, #fff); color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  font-size: 18px;
  pointer-events: none;
  transition: transform 0ms;
  opacity: var(--ptr-progress, 0);
}
.gx-ptr.is-refreshing { animation: gxPtrSpin 0.9s linear infinite; --ptr-progress: 1; transform: translate(-50%, 12px); }
@keyframes gxPtrSpin { to { transform: translate(-50%, 12px) rotate(360deg); } }
[data-theme="dark"] .gx-ptr { background: var(--gx-surface, #0f1620); }

/* Long-press action sheet — shares the share-sheet aesthetic. */
.gx-press-sheet { position: fixed; inset: 0; z-index: 1000; }
.gx-press-sheet[hidden] { display: none; }
.gx-press-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); animation: gxShareFadeIn 200ms ease; }
.gx-press-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--gx-surface, #fff); color: var(--gx-text-1, #111827);
  border-radius: 22px 22px 0 0;
  padding: 14px 8px calc(14px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
  animation: gxShareSlideUp 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="dark"] .gx-press-body { background: var(--gx-surface, #0f1620); color: var(--gx-text-1, #f3f4f6); }
.gx-press-grabber { width: 36px; height: 4px; border-radius: 2px; background: var(--gx-text-2, #9ca3af); opacity: 0.4; margin: 4px auto 10px; }
.gx-press-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; min-height: 52px; border-radius: 12px; }
.gx-press-row:hover, .gx-press-row:active { background: var(--gx-surface-2, #f9fafb); }
[data-theme="dark"] .gx-press-row:hover { background: var(--gx-surface-2, #0a1018); }
.gx-press-row span:first-child { font-size: 20px; width: 28px; text-align: center; }
.gx-press-row span:last-child { font-size: 15px; font-weight: 500; }
.gx-press-row.is-danger span:last-child { color: var(--gx-danger, #ef4444); }

/* =======================================================================
 * Architecture Pass — bottom nav with center Create button
 *
 * The Create button in the middle is visually elevated (a green disc that
 * floats above the nav bar) so users instantly see "make something" as
 * the highest-priority action. Mobile-first; desktop ≥720px hides the
 * whole nav (header has the desktop nav links).
 * ===================================================================== */
.gx-bottom-nav-item-icon { font-size: 22px; line-height: 1; }
.gx-bottom-nav-item.active .gx-bottom-nav-item-icon { color: #16a34a; }
.gx-bottom-nav-item.active .gx-bottom-nav-item-label { color: #16a34a; font-weight: 600; }

.gx-bottom-nav-create {
  position: relative;
  background: transparent !important;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  /* Make room for the floating disc. */
  padding-top: 0 !important;
}
.gx-bottom-nav-create .gx-create-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff !important;
  font-size: 26px !important;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: -16px auto 2px;          /* float above the nav baseline */
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35), 0 0 0 4px var(--gx-surface, #fff);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease;
}
[data-theme="dark"] .gx-bottom-nav-create .gx-create-icon {
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45), 0 0 0 4px var(--gx-surface, #0f1620);
}
.gx-bottom-nav-create:active .gx-create-icon { transform: scale(0.94); }
.gx-bottom-nav-create:hover  .gx-create-icon { transform: translateY(-2px); }
.gx-bottom-nav-create .gx-bottom-nav-item-label { color: var(--gx-text-2, #6b7280); font-weight: 500; }

/* =======================================================================
 * Comm.1 — Activate-social rebuild row layout for suggested creators.
 * Replaces the old card-grid layout with a single-column row stack so the
 * list reads naturally on mobile + desktop alike. Username / display /
 * bio are stacked, the Follow toggle floats right.
 * ===================================================================== */
.activate-creators {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}
.activate-creator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--gx-border, #e5e7eb);
}
.activate-creator-row:last-child { border-bottom: 0; }
.activate-creator-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.activate-creator-bio {
  font-size: 12.5px;
  color: var(--gx-text-2, #6b7280);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.activate-creator-toggle {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--gx-border, #e5e7eb);
  background: var(--gx-surface, #fff);
  color: var(--gx-text-1, #111827);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}
.activate-creator-toggle:hover { transform: translateY(-1px); }
.activate-creator-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border-color: transparent;
}
[data-theme="dark"] .activate-creator-toggle { background: var(--gx-surface, #0f1620); border-color: var(--gx-border, #1f2937); color: var(--gx-text-1, #f3f4f6); }
.activate-creators-loading {
  text-align: center; padding: 28px 16px;
  color: var(--gx-text-2, #6b7280);
  font-size: 13.5px;
}

/* =======================================================================
 * Comm.7 — Creator-first engagement: Remix as primary green action when
 * the post is workflow-tagged. Visually outweighs Like so the product
 * communicates "make one like this" before "tap heart". Stays in the
 * standard .feed-card-actions row to keep the layout familiar.
 * ===================================================================== */
.feed-action.feed-action-remix {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: filter 120ms ease, transform 120ms ease;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}
.feed-action.feed-action-remix svg { width: 16px; height: 16px; }
.feed-action.feed-action-remix:hover { filter: brightness(1.05); transform: translateY(-1px); }
.feed-action.feed-action-remix:active { transform: translateY(0); }

/* Comm.5 — Search shortcut on feed page (tap → /search) */
.feed-search-shortcut {
  display: flex; align-items: center; gap: 10px;
  margin: 12px auto;
  max-width: 640px;
  padding: 12px 18px;
  background: var(--gx-surface, #fff);
  border: 1px solid var(--gx-border, #e5e7eb);
  border-radius: 999px;
  color: var(--gx-text-2, #6b7280);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.feed-search-shortcut:hover { border-color: #16a34a; color: var(--gx-text-1, #111827); transform: translateY(-1px); }
[data-theme="dark"] .feed-search-shortcut { background: var(--gx-surface, #0f1620); border-color: var(--gx-border, #1f2937); color: var(--gx-text-2, #9ca3af); }
[data-theme="dark"] .feed-search-shortcut:hover { color: var(--gx-text-1, #f3f4f6); }
.feed-search-shortcut > span:first-child { font-size: 18px; line-height: 1; }
.feed-search-shortcut-label { flex: 1; }

.btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e 60%, #65a30d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter 120ms ease;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2, #6b7280);
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(0,0,0,0.06); color: var(--ink, #111827); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feed-card,
  .feed-tab-indicator,
  .activate-progress-fill,
  .compose-shell,
  .activate-shell,
  .feed-new-pill,
  .feed-action-like.bursting svg,
  .feed-action-repost.spinning svg,
  .activate-celebrate-burst,
  .feed-skel-avatar::after,
  .feed-skel-name::after,
  .feed-skel-line::after,
  .feed-skel-media::after {
    animation: none !important;
    transition-duration: 120ms !important;
  }
}

/* Mobile no-scroll lock */
body.compose-open,
body.activate-open {
  overflow: hidden;
}
