/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 32px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 6px;
  box-shadow: var(--shadow-sm);
}

.solutions-banner {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
}

.solutions-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.section-kicker {
  margin: -10px 0 0;
  color: var(--text-dim);
  font-size: 12px;
}

.problem-compose {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.problem-compose input,
.problem-compose textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.problem-compose textarea {
  min-height: 36px;
  max-height: 70px;
}

.problem-compose .compose-actions {
  min-height: 0;
}

.compose-attachments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 28px;
}

.problem-compose .compose-attachments .primary-btn {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.attachment-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.attachment-picker:hover { border-color: var(--border-focus); color: var(--text); }
.attachment-picker svg { width: 14px; height: 14px; }

.attachment-count,
.compose-limit {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.community-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
  width: 100%;
  margin: 8px 0;
}

.community-image-grid img {
  display: block;
  width: 100%;
  max-height: 240px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.compose-image-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 320px;
  gap: 8px;
  margin: 0;
}

.compose-image-preview img { max-height: 72px; }

.solutions-panel > .solutions-banner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.solutions-banner .section-head {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.solutions-banner .section-head h2 { font-size: 14px; }

.solutions-banner .section-kicker { margin-top: 1px; font-size: 10px; }

.solutions-results {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.solutions-results .section-head {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.solutions-results .problem-list {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.group-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.problem-compose input::placeholder,
.problem-compose textarea::placeholder {
  color: var(--text-muted);
}

.problem-compose input:focus,
.problem-compose textarea:focus {
  border-color: var(--border-focus);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.problem-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.problem-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title view" "description view" "meta view";
  align-items: center;
  gap: 3px 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.problem-card-title {
  grid-area: title;
  color: var(--text);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
}

.problem-card-description {
  grid-area: description;
  min-height: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.problem-card-meta {
  grid-area: meta;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.problem-card-actions {
  grid-area: view;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.same-issue-btn {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--surface);
  color: var(--text-dim);
  font: 600 11px var(--font-display);
  white-space: nowrap;
  cursor: pointer;
}

.same-issue-btn:hover,
.same-issue-btn[aria-pressed="true"] {
  border-color: var(--btn-a);
  background: var(--surface-hover);
  color: var(--text);
}

.same-issue-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.problem-card .community-image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 2px 0;
}

.problem-card .community-image-grid img {
  max-height: 46px;
  aspect-ratio: 1 / 1;
}

.problem-card .primary-btn.small {
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 11px;
}

.avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.avatar-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--surface);
  animation: pulseGlow 2s infinite;
}

.status-dot.offline {
  background: #64748B;
  animation: none;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-username {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.profile-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 600;
}

.profile-stats .stat.xp {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.profile-stats .stat.points {
  background: rgba(6, 182, 212, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.status-toggle {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 99px;
  transition: all 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-toggle:hover { background: rgba(16, 185, 129, 0.25); }

.status-toggle.offline {
  background: rgba(100, 116, 139, 0.15);
  border-color: rgba(100, 116, 139, 0.3);
  color: #94A3B8;
}

.brandmark-small {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brandmark-small .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #A855F7;
  box-shadow: 0 0 12px #A855F7, 0 0 20px #EC4899;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav .text-btn {
  color: var(--text-dim);
  padding: 8px 14px;
  font-weight: 600;
}

.topnav .text-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Footer ---------- */
.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
  padding: 0 32px;
  border-top: 1px solid var(--border);
  background: var(--topbar-bg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.dash-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-footer-brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A855F7;
  box-shadow: 0 0 10px #A855F7;
}

.dash-footer-links {
  display: flex;
  gap: 16px;
}

.dash-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.dash-footer-links a:hover {
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .dash-footer {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Bounded dashboard columns ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 1.8fr);
  grid-template-rows: minmax(264px, auto) minmax(0, 1fr);
  grid-template-areas: "posts community solutions" "posts community solutions";
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto;
  height: calc(100vh - 82px - 34px);
  height: calc(100dvh - 82px - 34px);
  padding: 12px 20px;
  align-items: stretch;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dash-col-left { grid-area: community; }
.dash-col-center { grid-area: posts; }
.dash-col-right {
  grid-area: solutions;
  overflow: hidden;
  overscroll-behavior: contain;
}

.community-launch {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  font: 700 15px var(--font-display);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.community-launch:hover {
  border-color: var(--btn-a);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.community-launch svg,
.section-head h2 svg,
.ad-placeholder svg,
.primary-btn svg,
.stat-line svg {
  flex: 0 0 auto;
  vertical-align: middle;
}

.community-launch svg { width: 19px; height: 19px; color: var(--btn-a); }

#showcase-modal-backdrop .community-modal {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(78vh, 680px);
}

.community-modal > .web-list,
.community-modal > .group-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 56vh;
}

#showcase-modal-backdrop .community-modal > .web-list,
#promoted-block .community-modal > .web-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: 12px;
}

.community-modal-actions {
  margin: 0 0 12px;
}

.community-modal-actions .empty-note { margin: 0 auto 0 0; }

.welcome-tour {
  max-width: 540px;
  padding: 28px;
}

.tour-topline,
.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tour-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.tour-eyebrow svg { width: 16px; height: 16px; color: var(--btn-a); }
.tour-step { margin: 24px 0 8px; color: var(--text-muted); font: 11px var(--font-mono); }
.welcome-tour h2 { margin: 0; color: var(--text); font-size: 24px; }
.tour-description { min-height: 78px; margin: 12px 0 20px; color: var(--text-dim); line-height: 1.65; }
.tour-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.tour-progress span { height: 3px; flex: 1; border-radius: 2px; background: var(--border); }
.tour-progress span.active { background: var(--btn-a); }
.tour-actions { justify-content: flex-end; }
.tour-actions #tour-back-btn { margin-right: auto; }

.dash-col-left > .section-block {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dash-col-center > .posts-feed-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.section-block {
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.01em;
}

.stat-line {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.stat-line b { color: var(--btn-a); }

/* ---------- Web Cards (Showcase) ---------- */
.web-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.web-card {
  display: block;
  min-width: 0;
  flex: 0 0 auto;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-card:hover {
  border-color: var(--btn-a);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.web-card img {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 180px;
  object-fit: cover;
  display: block;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.web-card:hover img { transform: scale(1.03); }

.web-card .web-card-body {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.web-card-text { min-width: 0; }

.web-card .web-card-title {
  overflow-wrap: anywhere;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.web-card .web-card-owner {
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.web-card-delete {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.web-card-delete:hover { color: var(--danger); background: var(--danger-soft); }
.web-card-delete svg { width: 14px; height: 14px; display: block; }

/* ---------- Group Cards ---------- */
.group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.group-card:hover {
  border-color: var(--btn-a);
  background: var(--surface-hover);
  transform: translateX(2px);
}

.group-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.group-card-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-muted);
}

.group-card-identity > span,
.group-card-identity > div {
  min-width: 0;
}

.group-card .join-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

.group-card .join-type.passkey {
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

/* ---------- Friends Preview ---------- */
.friend-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.friend-preview-row:hover {
  border-color: var(--btn-a);
  background: var(--surface-hover);
}

.chat-branch-name {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Ad Banner ---------- */
.ad-banner-large {
  flex: 0 0 auto;
  min-height: 82px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--border);
  text-align: left;
}

.dash-col-left .ad-banner-large {
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 0;
  padding: 10px 12px;
  flex-direction: column;
  margin-top: 4px;
}

.tour-replay-btn {
  align-self: center;
  flex: 0 0 auto;
}

.tour-replay-btn svg { width: 14px; height: 14px; vertical-align: middle; }

.inline-profile-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.inline-profile-badge {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
}

.inline-profile-badge svg { width: 13px; height: 13px; }
.inline-profile-badge.verified { color: var(--success); }
.inline-profile-badge.owner { color: #F59E0B; }
.inline-profile-badge.early { color: #0891B2; }

.ad-placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Posts Feed ---------- */
.posts-feed-card {
  min-height: 0;
}

.post-compose {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.compose-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface-muted);
}

.compose-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compose-body textarea {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

.compose-body textarea:focus {
  border-color: var(--border-focus);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.compose-body textarea::placeholder { color: var(--text-muted); }

.compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- Post Cards ---------- */
#posts-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.post-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--surface-muted);
  flex-shrink: 0;
}

.post-author-info {
  flex: 1;
  min-width: 0;
}

.post-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: block;
}

.post-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.post-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0;
}

.post-card:hover .post-delete-btn { opacity: 1; }
.post-delete-btn:hover { color: var(--danger); background: var(--danger-soft); }
.post-delete-btn svg,
.post-action-btn svg { display: block; flex: 0 0 auto; }

.avatar-presence-wrap { position: relative; display: inline-block; flex-shrink: 0; }

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0;
}
.post-card:hover .icon-btn,
.comment-row:hover .icon-btn,
.solution-card:hover .icon-btn,
.problem-detail:hover .icon-btn,
.workspace-item-row:hover .icon-btn,
.workspace-item-snippet:hover .icon-btn { opacity: 1; }
.icon-btn:hover { color: var(--btn-a); background: rgba(139, 92, 246, 0.1); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.icon-btn svg { display: block; width: 14px; height: 14px; }

.post-header-actions { display: flex; align-items: center; gap: 2px; }

.comment-actions-inline { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 6px;
}
.comment-like-btn svg { width: 12px; height: 12px; }
.comment-like-btn:hover { color: #F472B6; }
.comment-like-btn.liked { color: #F472B6; }

.post-content {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.65;
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.post-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 99px;
  transition: all 0.2s ease;
  user-select: none;
}

.post-action-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
}

.post-action-btn.liked {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
  color: #F472B6;
}

.post-action-btn.liked:hover {
  background: rgba(236, 72, 153, 0.2);
}

/* ---------- Comment rows in modal ---------- */
.comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.comment-body {
  flex: 1;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.comment-author {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
}

.comment-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-left: 6px;
}

.comment-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  margin-top: 4px;
  word-break: break-word;
}

/* ---------- Load more ---------- */
.load-more-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dash-grid {
    gap: 10px;
    padding: 10px 14px;
  }
}

@media (max-width: 880px) {
  .dash-grid {
    height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "posts solutions" "community community";
    gap: 14px;
    padding: 14px 16px 24px;
  }

  .dash-col-center { height: min(72vh, 680px); }
  .dash-col-right { height: auto; overflow: visible; }
  .solutions-panel { min-height: 480px; }

  .dash-col-left { height: min(55vh, 480px); }
}

@media (max-width: 600px) {
  .dash-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "solutions" "posts" "community";
    gap: 12px;
    padding: 12px;
  }

  .dash-col-center { height: min(72vh, 620px); }
  .dash-col-right { height: auto; overflow: visible; }

  .solutions-panel { min-height: 480px; }
  .problem-list { grid-template-columns: 1fr; }
  #showcase-modal-backdrop .community-modal > .web-list { grid-template-columns: 1fr; }

  .dash-col-left {
    height: auto;
    overflow: visible;
  }

  .solutions-banner .section-head h2 { font-size: 19px; }

  .dash-col-left > .section-block {
    flex: 0 0 auto;
    height: min(34vh, 280px);
    min-height: 150px;
  }

  .ad-banner-large { flex-wrap: wrap; }

  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-height: 500px) and (min-width: 601px) {
  .dash-grid {
    height: calc(100dvh - 82px - 34px);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .dash-col-left > .section-block,
  .dash-col-center > .posts-feed-card,
  .dash-col-right > .section-block {
    padding: 9px;
  }

  .dash-col-center > .ad-banner-large {
    min-height: 58px;
    padding: 9px;
  }

  .section-head {
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 7px;
  }

  .section-head h2 { font-size: 13px; }

  .solutions-panel > .solutions-banner { padding: 0; }

  .problem-compose {
    gap: 5px;
    padding: 7px;
  }

  .problem-compose input,
  .problem-compose textarea {
    padding: 7px 9px;
    font-size: 12px;
  }

  .problem-compose textarea { min-height: 40px; }

  .solutions-results { padding: 8px; }

  .solutions-results .section-head { margin-bottom: 5px; }

  .post-compose { gap: 6px; margin-bottom: 6px; }

  .compose-avatar { width: 26px; height: 26px; }

  .compose-body { gap: 4px; }

  .compose-body textarea {
    padding: 8px 10px;
    font-size: 12px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
  }

  .ad-banner-large {
    min-height: 58px;
    gap: 4px;
    flex-direction: column;
  }

}