@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&display=swap');

:root {
  --clay-dark: #FF8F00;
  --clay-mid: #FFA000;
  --clay-light: #FFB300;
  --clay-pale: #FFC107;
  --clay-bg: #FFF8E1;
  --clay-deep: #5D4037;
  --clay-shadow: #4E342E;
  --white: #FFFFFF;
  --off-white: #FAF7F5;
  --text-primary: #3E2723;
  --text-secondary: #6D4C41;
  --text-muted: #8D6E63;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

::selection {
  background: var(--clay-light);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--clay-bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.app-header {
  background: linear-gradient(135deg, var(--clay-dark) 0%, var(--clay-mid) 50%, var(--clay-light) 100%);
  padding: 2rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--clay-pale);
  opacity: 0.9;
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.875rem;
  color: var(--clay-pale);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ===== TAG FILTER BAR ===== */
.tag-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--clay-pale);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tag-filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag-filter-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clay-dark);
  background: var(--clay-bg);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.tag-filter-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.tag-filter-clear:hover {
  color: var(--clay-dark);
  background: var(--clay-bg);
}

/* ===== MAIN LAYOUT ===== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}

.feed-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ===== TRENDING SIDEBAR ===== */
.trending-sidebar {
  position: sticky;
  top: 1.5rem;
  width: 200px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(78, 52, 46, 0.06);
  border: 1px solid rgba(188, 170, 164, 0.3);
}

.sidebar-title {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clay-dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--clay-bg);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tag-pill {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}

.tag-pill:hover {
  background: var(--clay-bg);
  color: var(--clay-dark);
}

.tag-pill-active {
  background: var(--clay-dark);
  color: var(--white);
}

.tag-pill-active:hover {
  background: var(--clay-deep);
  color: var(--white);
}

.tag-hash {
  color: var(--clay-light);
  margin-right: 0.1rem;
}

.tag-pill-active .tag-hash {
  color: var(--clay-pale);
}

.tag-count {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ===== FEED ===== */
.feed-container {
  flex: 1;
  min-width: 0;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== POST CARD ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(78, 52, 46, 0.05), 0 4px 12px rgba(78, 52, 46, 0.03);
  border: 1px solid rgba(188, 170, 164, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: fadeInUp 0.4s ease both;
  position: relative;
}

.post-card:hover {
  box-shadow: 0 2px 8px rgba(78, 52, 46, 0.1), 0 8px 24px rgba(78, 52, 46, 0.06);
  transform: translateY(-1px);
}

.post-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.post-menu-wrapper {
  position: relative;
}

.post-menu-btn {
  background: none;
  border: none;
  color: var(--clay-pale);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  letter-spacing: 0.15em;
  line-height: 1;
}

.post-menu-btn:hover {
  background: var(--clay-bg);
  color: var(--clay-mid);
}

.post-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--clay-pale);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(78, 52, 46, 0.12);
  z-index: 10;
  min-width: 140px;
  overflow: hidden;
  animation: fadeInUp 0.15s ease;
}

.post-menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s ease;
}

.post-menu-delete {
  color: var(--danger);
}

.post-menu-delete:hover {
  background: var(--danger-light);
}

.post-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  word-break: break-word;
  white-space: pre-wrap;
}

.inline-hashtag {
  background: none;
  border: none;
  color: var(--clay-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.inline-hashtag:hover {
  color: var(--clay-deep);
  text-decoration: underline;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--clay-bg);
}

.post-tag-chip {
  background: var(--clay-bg);
  border: none;
  color: var(--clay-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
}

.post-tag-chip:hover {
  background: var(--clay-dark);
  color: var(--white);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--clay-pale);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--clay-dark);
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  background: linear-gradient(90deg, var(--white) 25%, var(--clay-bg) 50%, var(--white) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  height: 120px;
  margin-bottom: 1rem;
}

/* ===== FAB ===== */
.fab-compose {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-dark), var(--clay-mid));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(78, 52, 46, 0.25), 0 2px 4px rgba(78, 52, 46, 0.1);
  transition: all 0.25s ease;
  z-index: 50;
}

.fab-compose:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(78, 52, 46, 0.35);
}

.fab-compose:active {
  transform: scale(0.95);
}

.fab-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* ===== COMPOSE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.compose-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 16px 48px rgba(78, 52, 46, 0.2);
  animation: scaleIn 0.25s ease;
  overflow: hidden;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.compose-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clay-dark);
}

.compose-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.compose-close:hover {
  color: var(--clay-dark);
  background: var(--clay-bg);
}

.compose-body {
  padding: 1rem 1.5rem;
}

.compose-textarea {
  width: 100%;
  border: 1.5px solid var(--clay-pale);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  resize: vertical;
  min-height: 120px;
  background: var(--off-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.6;
}

.compose-textarea::placeholder {
  color: var(--clay-pale);
}

.compose-textarea:focus {
  outline: none;
  border-color: var(--clay-mid);
  box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.15);
  background: var(--white);
}

.compose-tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.compose-tag {
  background: var(--clay-bg);
  color: var(--clay-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem 1.25rem;
}

.char-count {
  font-size: 0.82rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.char-count-ok {
  color: var(--text-muted);
}

.char-count-warn {
  color: #E65100;
}

.char-count-over {
  color: var(--danger);
  font-weight: 600;
}

.compose-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-cancel {
  background: none;
  border: 1px solid var(--clay-pale);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel:hover {
  background: var(--clay-bg);
  border-color: var(--clay-light);
}

.btn-post {
  background: linear-gradient(135deg, var(--clay-dark), var(--clay-mid));
  border: none;
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-post:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(121, 85, 72, 0.3);
  transform: translateY(-1px);
}

.btn-post:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid var(--clay-mid);
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--clay-pale);
  border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .feed-layout {
    flex-direction: column-reverse;
  }

  .trending-sidebar {
    position: static;
    width: 100%;
    padding: 1rem;
  }

  .tag-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .tag-pill {
    width: auto;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .tag-count {
    margin-left: 0.3rem;
  }

  .app-header {
    padding: 1.5rem 1.25rem 2rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

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

  .compose-modal {
    max-width: 100%;
    margin: 0 0.5rem;
  }

  .fab-compose {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 380px) {
  .main-content {
    padding: 1rem 0.5rem 5rem;
  }

  .post-text {
    font-size: 0.92rem;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Claypost — your personal micro-blogging space. The feed is empty to start, waiting for your first thought.", "view": "user", "highlight_selector": ".empty-state", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap the ✦ button in the bottom-right corner to compose your first post.", "view": "user", "highlight_selector": ".fab-compose", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Write a short post (up to 280 characters). Add #hashtags to categorize your thoughts. Watch the character counter and tag preview update as you type.", "view": "user", "highlight_selector": ".compose-modal", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Hit Post to publish. Your post appears in the feed with a smooth animation, showing the time and any hashtags.", "view": "user", "highlight_selector": ".post-card", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "As you add posts with hashtags, the Trending Tags sidebar appears. Click any tag to filter the feed — click again to clear the filter.", "view": "user", "highlight_selector": ".trending-sidebar", "wait_for": "user_interaction"},
  {"step": 6, "narration": "You can also click hashtags directly within post text to filter. Use the ··· menu on any post to delete it. Your posts sync across all your devices automatically.", "view": "user", "highlight_selector": ".inline-hashtag", "wait_for": "tap_to_continue"}
]
-->

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--clay-bg);
}

.auth-gate-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: 0 16px 48px rgba(78, 52, 46, 0.16);
  border: 1px solid rgba(188, 170, 164, 0.25);
  text-align: center;
}

.auth-gate-logo {
  justify-content: center;
}

.auth-gate-tagline {
  margin-bottom: 0.75rem;
}

.auth-gate-copy {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.auth-gate-button {
  width: 100%;
  justify-content: center;
}

.header-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.user-avatar,
.user-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.user-logout {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: var(--white);
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.user-logout:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 720px) {
  .header-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-chip {
    align-self: flex-start;
  }
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--off-white);
  border: 1px solid rgba(188, 170, 164, 0.55);
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
}

.reaction-btn:hover:not(:disabled) {
  background: var(--clay-bg);
  border-color: var(--clay-light);
  color: var(--clay-dark);
}

.reaction-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.reaction-btn-active {
  background: rgba(121, 85, 72, 0.12);
  border-color: var(--clay-mid);
  color: var(--clay-deep);
}

.reaction-emoji {
  font-size: 0.9rem;
  line-height: 1;
}

.reaction-label {
  font-weight: 500;
}

.reaction-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 0.8rem;
  text-align: right;
}

.online-users-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1px solid rgba(188, 170, 164, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(78, 52, 46, 0.04);
}

.online-users-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
  flex-shrink: 0;
}

.online-users-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay-deep);
}

.online-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.online-user-chip {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--clay-bg);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-user-chip-more {
  background: rgba(141, 110, 99, 0.16);
  color: var(--clay-dark);
}

@media (max-width: 720px) {
  .online-users-indicator {
    align-items: flex-start;
  }

  .online-users-list {
    width: 100%;
    margin-left: 0;
  }
}

.compose-upload-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.compose-upload-btn,
.compose-remove-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.compose-upload-btn {
  background: var(--clay-bg);
  color: var(--clay-dark);
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(188, 170, 164, 0.45);
}

.compose-upload-btn:hover {
  background: var(--clay-dark);
  color: var(--white);
}

.compose-file-input {
  display: none;
}

.compose-remove-image {
  background: none;
  border: 1px solid rgba(198, 40, 40, 0.3);
  color: var(--danger);
  padding: 0.45rem 0.75rem;
}

.compose-remove-image:hover {
  background: var(--danger-light);
}

.compose-image-preview {
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(188, 170, 164, 0.25);
  background: var(--off-white);
}

.compose-image-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.post-image-wrap {
  margin-top: 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(188, 170, 164, 0.22);
  background: var(--off-white);
}

.post-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.compose-ai-suggestions {
  margin-top: 0.9rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(141, 110, 99, 0.08), rgba(141, 110, 99, 0.04));
  border: 1px solid rgba(188, 170, 164, 0.35);
}

.compose-ai-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.compose-ai-suggestions-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay-deep);
}

.compose-ai-suggestions-status {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.compose-ai-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.compose-ai-suggestion {
  background: var(--white);
  border: 1px solid rgba(188, 170, 164, 0.45);
  color: var(--clay-dark);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.compose-ai-suggestion:hover {
  background: var(--clay-dark);
  color: var(--white);
  border-color: var(--clay-dark);
}

.feed-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid rgba(188, 170, 164, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(78, 52, 46, 0.04);
}

.feed-search-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay-deep);
  white-space: nowrap;
}

.feed-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(188, 170, 164, 0.45);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--off-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feed-search-input::placeholder {
  color: var(--text-muted);
}

.feed-search-input:focus {
  outline: none;
  border-color: var(--clay-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.12);
}

.feed-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.feed-search-clear:hover {
  color: var(--clay-dark);
  background: var(--clay-bg);
}

.feed-search-results-meta {
  margin: -0.25rem 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.feed-search-highlight {
  background: rgba(255, 235, 59, 0.35);
  border-radius: 3px;
  padding: 0 0.12rem;
}

@media (max-width: 720px) {
  .feed-search-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-search-label {
    white-space: normal;
  }
}

.post-menu-item:not(.post-menu-delete):hover {
  background: var(--clay-bg);
  color: var(--clay-dark);
}

.post-menu-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
