/* Auto-split route-only subset from styles/community.css (zero external/cascade collisions). */
.community-shell {
  width: min(100%, 2400px);
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 42px) 64px;
  box-sizing: border-box;
}

.community-topbar--compact {
  min-height: 42px;
}

.community-top-actions,
.community-selects,
.community-chip-row {
  display: flex;
  align-items: center;
}

.community-top-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.community-channel-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  white-space: nowrap;
}

.community-channel-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--comm-subtle);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  text-underline-offset: 10px;
  text-decoration-thickness: 2px;
}

.community-channel-tabs button:hover,
.community-channel-tabs button:focus-visible {
  color: var(--comm-text);
  outline: none;
}

.community-channel-tabs button.is-active {
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--comm-text) !important;
  box-shadow: none !important;
  text-decoration-line: underline;
}

.community-channel-tabs button.is-active::after {
  content: none;
}

.community-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--comm-border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--comm-text);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.community-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.community-back-to-top:hover,
.community-back-to-top:focus-visible {
  border-color: var(--comm-text);
  background: var(--comm-surface);
  outline: none;
}

.community-back-to-top span {
  color: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.community-view-action.active {
  border-color: var(--comm-border-strong);
  background: #f8f9fa;
}

.community-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 18px;
}

.community-filterbar--compact {
  display: block;
  margin-bottom: 18px;
}

.community-source-chips {
  flex: 1 1 auto;
  min-width: 0;
}

.community-chip-row--inline {
  padding: 0;
}

.community-search--compact {
  border-radius: 9px;
}

.community-selects {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
}

.community-filter-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 120px;
}

.community-filter-trigger {
  width: 100%;
  min-width: 120px;
  height: 48px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  background: var(--comm-surface);
  color: var(--comm-text);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.community-filter-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-filter-chevron {
  flex: 0 0 auto;
  color: var(--comm-muted);
  opacity: 0.72;
  transition: transform 0.16s ease;
}

.community-filter-trigger.open,
.community-filter-trigger:focus-visible {
  border-color: var(--comm-border-strong);
  outline: none;
}

.community-filter-trigger.open .community-filter-chevron {
  transform: rotate(180deg);
}

.community-filter-trigger.active {
  border-color: var(--comm-border-strong);
  background: var(--comm-soft);
}

.community-filter-option {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

.community-filter-option span {
  min-width: 0;
  text-align: left;
}

.community-chip-scroll {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
}

.community-chip-scroll::-webkit-scrollbar {
  display: none;
}

.community-chip-row {
  gap: 10px;
  flex-wrap: nowrap;
  min-width: max-content;
  padding: 2px 36px 2px 0;
}

.community-filterbar .community-chip-row button {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.community-filterbar--compact .community-chip-scroll {
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.community-chip-row--categories {
  gap: 8px;
  padding: 0 32px 0 0;
}

.community-filterbar--compact .community-chip-row--categories button {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--comm-subtle);
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.community-filterbar--compact .community-chip-row--categories button:hover:not(:disabled):not(.active),
.community-filterbar--compact .community-chip-row--categories button:focus-visible:not(:disabled):not(.active) {
  background: rgba(17, 19, 21, 0.05);
  color: var(--comm-text);
}

.community-filterbar--compact .community-chip-row--categories .active {
  color: #ffffff;
  background: #111315;
  box-shadow: none;
}

.community-mobile-category-select {
  display: none;
}

.community-mobile-category-menu {
  display: grid;
  gap: 3px;
  max-height: min(420px, calc(100vh - 180px));
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
}

.community-mobile-category-option {
  justify-content: flex-start;
  min-height: 36px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  text-align: left;
}

.community-mobile-category-option.selected {
  background: color-mix(in srgb, var(--app-accent, #111315) 14%, transparent);
}

.community-chip-row button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #4f5865;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.community-chip-row button:hover:not(:disabled):not(.active),
.community-chip-row button:focus-visible:not(:disabled):not(.active) {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--comm-text);
  outline: none;
}

.community-chip-row button:active:not(:disabled) {
  transform: translateY(1px);
}

.community-chip-row .active {
  color: #ffffff;
  background: #111315;
  border-color: #111315;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.community-chip-row button:disabled {
  cursor: default;
  opacity: 0.52;
}

.source-badge.type-prompt,
.post-tags .tag-prompt {
  color: #248a4c;
  background: #edf9f1;
  border-color: #d7f0df;
}

.source-badge.type-node,
.post-tags .tag-node {
  color: #2b6fb8;
  background: #edf6ff;
  border-color: #d8eaff;
}

.source-badge.type-workflow,
.post-tags .tag-workflow {
  color: #c17613;
  background: #fff6df;
  border-color: #ffe4aa;
}

.source-badge.type-image,
.post-tags .tag-image {
  color: #7651c8;
  background: #f4efff;
  border-color: #e3d8ff;
}

.community-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #8a4b00;
  background: #fff7e6;
  border: 1px solid #ffe1a8;
}

.community-grid {
  display: flex;
  gap: var(--adaptive-masonry-gap, 10px);
  align-items: flex-start;
}

.community-grid--loading {
  display: grid;
  /* Match the JS masonry formula before hydration: 214px minimum tracks,
     14px gaps, and at most nine columns. */
  grid-template-columns: repeat(
    auto-fit,
    minmax(max(214px, calc(11.111111% - 12.444444px)), 1fr)
  );
}

.community-masonry-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--adaptive-masonry-gap, 10px);
  min-width: 0;
}

.community-masonry-column > .community-post-card {
  margin-bottom: 0;
}

.community-post-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.07);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  vertical-align: top;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.community-post-card:hover,
.community-post-card:focus-within {
  background: #fafafa;
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.community-post-meta {
  min-width: 0;
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-post-title {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #18181b;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 19px;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease;
}

.community-post-title:hover,
.community-post-title:focus-visible {
  color: #000000;
  outline: none;
}

.community-post-author {
  box-sizing: border-box;
  min-height: 16px;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  color: rgba(24, 24, 27, 0.52);
}

.community-post-author-name {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
}

.community-post-author-avatar {
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
}

.community-post-author-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: var(--comm-soft);
}

.community-load-more {
  display: flex;
  justify-content: center;
  padding: 24px 0 2px;
}

.community-load-more button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--comm-border-strong);
  border-radius: 999px;
  background: var(--comm-surface);
  color: var(--comm-text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.community-load-more button:hover,
.community-load-more button:focus-visible {
  border-color: var(--comm-text);
  outline: none;
}

.community-load-more small {
  color: var(--comm-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.post-media-grid,
.post-media-empty {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--comm-soft);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.community-post-card .post-media-grid,
.community-post-card .post-media-empty {
  border-radius: 10px 10px 0 0;
  box-shadow: none;
}

.community-post-card .post-media-grid:hover,
.community-post-card .post-media-empty:hover {
  box-shadow: none;
}

.post-media-grid:hover,
.post-media-empty:hover {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.post-media-grid:focus,
.post-media-grid:focus-visible,
.post-media-empty:focus,
.post-media-empty:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(33, 105, 255, 0.22), 0 14px 36px rgba(15, 23, 42, 0.1);
}

.post-media-grid::after,
.post-media-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 62%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 62%);
  pointer-events: none;
}

.post-media-grid.has-hover-video::after,
.post-media-empty.has-hover-video::after {
  z-index: 3;
}

.post-media-grid.media-wide,
.post-media-empty.media-wide { aspect-ratio: 4 / 3; }

.post-media-grid.media-square,
.post-media-empty.media-square { aspect-ratio: 1; }

.post-media-grid.media-tall,
.post-media-empty.media-tall { aspect-ratio: 3 / 4; }

.post-media-grid.has-natural-aspect {
  aspect-ratio: var(--post-media-aspect-ratio);
}

.post-media-grid.count-1 { grid-template-columns: 1fr; }

.post-media-grid.count-1:not(.is-compare) {
  display: block;
  aspect-ratio: var(--post-media-aspect-ratio, var(--post-media-fallback-aspect-ratio, 4 / 5));
}

.post-media-grid.is-compare {
  grid-template-columns: 1fr;
  aspect-ratio: var(--compare-aspect-ratio, 3 / 4);
}

.post-media-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.post-media-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 360ms ease;
}

.post-media-hover-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050607;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 160ms ease, transform 420ms ease;
}

.post-media-grid.has-hover-video:hover .post-media-hover-video,
.post-media-grid.has-hover-video:focus .post-media-hover-video,
.post-media-grid.has-hover-video:focus-visible .post-media-hover-video,
.post-media-empty.has-hover-video:hover .post-media-hover-video,
.post-media-empty.has-hover-video:focus .post-media-hover-video,
.post-media-empty.has-hover-video:focus-visible .post-media-hover-video {
  opacity: 1;
  transform: scale(1);
}

.post-media-grid.count-1:not(.is-compare) .post-media-cell {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.post-media-grid.count-1:not(.is-compare) .post-media-cell img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.community-post-card:hover .post-media-cell img,
.community-post-card:focus-within .post-media-cell img {
  transform: scale(1.045);
}

.community-post-card:hover .post-media-grid.count-1.has-natural-aspect:not(.is-compare) .post-media-cell img,
.community-post-card:focus-within .post-media-grid.count-1.has-natural-aspect:not(.is-compare) .post-media-cell img {
  transform: none;
}

.community-post-card:hover .post-media-grid.type-video:not(.has-hover-video) .post-media-cell img,
.community-post-card:focus-within .post-media-grid.type-video:not(.has-hover-video) .post-media-cell img {
  animation: post-video-cover-drift 2.6s ease-in-out infinite alternate;
}

.post-media-cell em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-style: normal;
  font-size: 12px;
}

.post-media-video-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  .post-media-hover-video {
    transition: none;
  }

  .community-post-card:hover .post-media-grid.type-video:not(.has-hover-video) .post-media-cell img,
  .community-post-card:focus-within .post-media-grid.type-video:not(.has-hover-video) .post-media-cell img {
    animation: none;
  }
}

.image-compare-scrubber {
  --compare-position: 50%;
  --compare-aspect-ratio: 3 / 4;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--compare-aspect-ratio);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--comm-soft);
  user-select: none;
  touch-action: pan-y;
}

.image-compare-scrubber img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--comm-soft);
  pointer-events: none;
  transform: scale(1);
}

.image-compare-base {
  position: relative;
  z-index: 0;
}

.image-compare-result {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: var(--comm-soft);
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
  will-change: clip-path;
}

.image-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  z-index: 4;
  width: 0;
  pointer-events: none;
}

.image-compare-divider span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24), 0 12px 32px rgba(0, 0, 0, 0.32);
}

.image-compare-divider span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.58);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.image-compare-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-compare-label {
  position: absolute;
  top: 10px;
  z-index: 5;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.image-compare-label.is-result {
  left: 10px;
}

.image-compare-label.is-source {
  right: 10px;
}

.post-media-empty {
  place-items: center;
  color: var(--comm-muted);
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-card-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-card-tabs > span:not(.source-badge) {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 750;
}

.post-card-tabs .source-badge {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.post-summary,
.post-prompt-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.76) !important;
  line-height: 1.6;
  word-break: break-word;
}

.post-summary {
  -webkit-line-clamp: 2;
  font-size: 14px;
  transition: opacity 220ms ease;
}

.post-prompt-preview {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  -webkit-line-clamp: 4;
  font-size: 13px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  transition: max-height 260ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.community-post-card:hover .post-summary,
.community-post-card:focus-within .post-summary {
  opacity: 0.72;
  -webkit-line-clamp: 1;
}

.community-post-card:hover .post-prompt-preview,
.community-post-card:focus-within .post-prompt-preview {
  max-height: 96px;
  margin-top: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  opacity: 1;
}

.post-node-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 760;
}

.post-tags {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 26px;
  margin-top: 14px;
}

.post-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--comm-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: var(--comm-muted) !important;
  background: var(--comm-soft) !important;
}

.post-meta {
  display: none;
}

.post-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 50px;
  margin: 16px -14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.post-actions button,
.community-detail-modal footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  white-space: nowrap;
}

.post-actions button strong {
  color: inherit;
  font-size: 14px;
  font-weight: 750;
}

.post-actions button span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.post-action-divider {
  display: block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
}

.post-actions button.active:first-child,
.community-detail-modal footer button.active:first-child {
  color: #e23a68;
}

.post-actions button.active:last-child {
  color: #ffffff;
}

.community-detail-modal footer button.active:last-child {
  color: #111111;
}

.community-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  min-height: 260px;
  border: 1px dashed var(--comm-border-strong);
  border-radius: 8px;
  color: var(--comm-muted);
  text-align: center;
  background: var(--comm-surface);
}

.community-empty strong {
  color: var(--comm-text);
  font-size: 18px;
}

.community-compose-modal,
.community-detail-modal {
  width: min(900px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--comm-border-strong);
  background: var(--comm-surface);
  color: var(--comm-text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.community-compose-modal {
  padding: 18px;
}

.community-compose-modal header,
.community-detail-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.community-compose-modal header span,
.community-detail-modal header span {
  display: block;
  color: var(--comm-subtle);
  font-size: 12px;
  font-weight: 800;
}

.community-compose-modal header strong,
.community-detail-modal header strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.3;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.compose-message,
.copy-toast {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f5132;
  background: #dff6e8;
}

.compose-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

.community-compose-modal label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--comm-muted);
  font-size: 13px;
  font-weight: 750;
}

.community-compose-modal input,
.community-compose-modal textarea,
.community-compose-modal select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  background: var(--comm-bg);
  color: inherit;
  padding: 10px 11px;
  box-sizing: border-box;
  font: inherit;
  outline: 0;
}

.community-compose-modal textarea {
  resize: vertical;
  line-height: 1.5;
}

.compose-node-flow-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid #d7f0df;
  border-radius: 8px;
  color: #16794c;
  background: #e9f7ef;
  font-size: 13px;
  font-weight: 800;
}

.community-compose-modal textarea.mono,
.detail-block pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.compose-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.community-compose-modal .compose-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 134px;
  margin-bottom: 12px;
  padding: 22px 20px;
  text-align: center;
  border: 1.5px dashed var(--comm-border-strong);
  border-radius: 14px;
  background: var(--comm-soft);
  color: var(--comm-text);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.community-compose-modal .compose-dropzone:hover {
  border-color: var(--comm-primary);
  background: var(--comm-surface);
}

.community-compose-modal .compose-dropzone.is-dragover {
  border-style: solid;
  border-color: var(--comm-primary);
  background: var(--comm-surface);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(70, 90, 160, 0.18);
}

.community-compose-modal .compose-dropzone.is-uploading {
  cursor: progress;
  opacity: 0.72;
}

.community-compose-modal .compose-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.compose-dropzone-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--comm-surface);
  border: 1px solid var(--comm-border);
  color: var(--comm-primary);
  transition: transform 0.16s ease;
}

.community-compose-modal .compose-dropzone:hover .compose-dropzone-icon,
.community-compose-modal .compose-dropzone.is-dragover .compose-dropzone-icon {
  transform: translateY(-2px);
}

.community-compose-modal .compose-dropzone strong {
  font-size: 14px;
  font-weight: 760;
  color: var(--comm-text);
}

.community-compose-modal .compose-dropzone small {
  font-size: 12px;
  font-weight: 600;
  color: var(--comm-muted);
}

.compose-upload-row--secondary {
  margin-bottom: 12px;
}

.compose-upload-row--secondary button {
  flex: 1 1 0;
  background: var(--comm-surface);
  border: 1px solid var(--comm-border);
  color: var(--comm-muted);
  font-weight: 680;
}

.compose-upload-row--secondary button:hover {
  color: var(--comm-text);
  border-color: var(--comm-border-strong);
}

.compose-image-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.compose-image-list span {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--comm-soft);
}

.compose-image-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compose-image-list button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  color: #ffffff;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
}

.community-compose-modal footer,
.community-detail-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--comm-border);
}

.community-compose-modal footer button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.community-compose-modal footer button:not(.primary):not(:disabled):hover {
  background: var(--comm-soft);
  border-color: var(--comm-border-strong);
}

.community-compose-modal footer .compose-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
}

.community-compose-modal footer .primary {
  color: var(--comm-primary-text);
  background: var(--comm-primary);
  border-color: var(--comm-primary);
}

.community-compose-modal footer .compose-submit svg {
  opacity: 0.9;
}

.community-compose-modal footer .compose-submit.primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.community-compose-modal footer .compose-submit.primary:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.18);
}

.community-compose-modal footer .compose-submit:disabled:not(.primary) {
  opacity: 1;
  background: var(--comm-soft);
  color: var(--comm-muted);
  border-color: var(--comm-border);
  box-shadow: none;
  cursor: not-allowed;
}

.community-compose-modal button:disabled,
.post-actions button:disabled,
.community-detail-modal button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.community-inspiration-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.community-inspiration-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.community-inspiration-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}

.community-inspiration-media.is-compare {
  grid-template-columns: 1fr;
}

.community-inspiration-compare {
  width: min(100%, 680px);
  aspect-ratio: var(--compare-aspect-ratio, 3 / 4);
  max-height: min(68vh, 820px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  overflow: hidden;
}

.community-inspiration-media figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.community-inspiration-video {
  width: min(100%, 760px);
  margin: 0 auto;
}

.community-inspiration-video video {
  display: block;
  width: 100%;
  max-height: min(72vh, 820px);
  background: #050607;
}

.community-inspiration-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.community-inspiration-image-grid.count-1 {
  grid-template-columns: 1fr;
}

.community-inspiration-image-grid.count-1.has-natural-aspect {
  width: min(100%, 680px);
  margin: 0 auto;
}

.community-inspiration-image-grid.count-1.has-natural-aspect figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-inspiration-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #070809;
}

.community-inspiration-image-grid.count-1.has-natural-aspect img {
  aspect-ratio: var(--post-media-aspect-ratio, auto);
  width: auto;
  max-width: 100%;
  max-height: min(68vh, 820px);
}

.community-inspiration-media figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.community-inspiration-preview-board {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.community-inspiration-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.community-inspiration-board-head div {
  display: grid;
  gap: 4px;
}

.community-inspiration-board-head strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.community-inspiration-board-head span {
  color: rgba(247, 241, 232, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.community-inspiration-board-head button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #d8ff2f;
  color: #101010;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

.community-inspiration-board-head button:hover,
.community-inspiration-board-head button:focus-visible {
  background: #ecff83;
  outline: none;
}

.community-inspiration-map-scroll {
  overflow-x: auto;
  padding: 18px;
  scrollbar-width: none;
}

.community-inspiration-map-scroll::-webkit-scrollbar {
  display: none;
}

.community-inspiration-node-map {
  position: relative;
  width: 100%;
  min-width: 980px;
  height: 420px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(3, 4, 4, 0.46);
  background-size: 32px 32px;
  overflow: hidden;
}

.community-inspiration-node-map.is-empty {
  display: grid;
  place-items: center;
  min-width: 0;
}

.community-inspiration-node-map.is-empty p {
  margin: 0;
  color: rgba(247, 241, 232, 0.58);
  font-size: 13px;
  font-weight: 760;
}

.community-inspiration-connection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.community-inspiration-connection-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 241, 232, 0.68);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 780;
}

.community-inspiration-connection-list svg {
  color: rgba(216, 255, 47, 0.72);
}

.community-inspiration-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(16, 17, 16, 0.94);
  backdrop-filter: blur(10px);
}

.community-inspiration-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.community-inspiration-actions > div:first-child {
  display: grid;
  gap: 3px;
}

.community-inspiration-actions span {
  color: rgba(247, 241, 232, 0.84);
  font-size: 12px;
  font-weight: 850;
}

.community-inspiration-actions em {
  color: rgba(247, 241, 232, 0.48);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.community-inspiration-actions button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 241, 232, 0.8);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.community-inspiration-actions button:hover,
.community-inspiration-actions button:focus-visible,
.community-inspiration-actions button.active {
  background: rgba(216, 255, 47, 0.16);
  border-color: rgba(216, 255, 47, 0.28);
  color: #ffffff;
  outline: none;
}

.template-workflow-preview-theme-dark {
  background: rgba(0, 0, 0, 0.72);
}

.community-inspiration-react {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 241, 232, 0.82);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.community-inspiration-react:hover:not(:disabled),
.community-inspiration-react.active {
  background: rgba(216, 255, 47, 0.16);
  border-color: rgba(216, 255, 47, 0.28);
  color: #ffffff;
}

.community-inspiration-react:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.community-inspiration-apply {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #d8ff2f;
  color: #101010;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

.community-inspiration-apply:hover,
.community-inspiration-apply:focus-visible {
  background: #ecff83;
  outline: none;
}

.community-detail-modal {
  width: min(980px, 100%);
  padding: 0;
  background: var(--comm-bg);
}

.community-detail-modal header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--comm-border);
  background: var(--comm-surface);
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 0.44fr);
  gap: 16px;
  padding: 18px;
  align-items: start;
}

.detail-preview-panel,
.detail-action-panel {
  min-width: 0;
}

.detail-media-frame {
  overflow: hidden;
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  background: var(--comm-surface);
}

.detail-media-frame > img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  background: var(--comm-soft);
}

.detail-media-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--comm-border);
}

.detail-media-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: var(--comm-soft);
}

.detail-summary {
  margin: 12px 0 0;
  color: var(--comm-muted);
  line-height: 1.7;
}

.detail-action-panel {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.detail-action-card,
.detail-include-card {
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  background: var(--comm-surface);
}

.detail-action-card {
  padding: 14px;
}

.detail-action-card > span,
.detail-include-card > span {
  display: block;
  color: var(--comm-subtle);
  font-size: 12px;
  font-weight: 850;
}

.detail-use-steps {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 0;
  counter-reset: detail-step;
}

.detail-use-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 42px;
  padding-left: 34px;
  list-style: none;
  counter-increment: detail-step;
}

.detail-use-steps li::before {
  content: counter(detail-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--comm-primary-text);
  background: var(--comm-primary);
  font-size: 12px;
  font-weight: 850;
}

.detail-use-steps strong {
  color: var(--comm-text);
  font-size: 14px;
  line-height: 1.25;
}

.detail-use-steps em {
  color: var(--comm-muted);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

.detail-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--comm-primary);
  border-radius: 8px;
  color: var(--comm-primary-text);
  background: var(--comm-primary);
  cursor: pointer;
  font-weight: 850;
}

.detail-include-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.detail-include-card strong {
  color: var(--comm-text);
  font-size: 15px;
}

.detail-include-card em {
  color: var(--comm-muted);
  font-size: 12px;
  font-style: normal;
}

.detail-workflow-panel {
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  background: var(--comm-surface);
  color: var(--comm-text);
}

.detail-workflow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--comm-border);
}

.detail-workflow-head strong,
.detail-workflow-head span {
  display: block;
}

.detail-workflow-head strong {
  font-size: 16px;
  font-weight: 800;
}

.detail-workflow-head span {
  margin-top: 4px;
  color: var(--comm-subtle);
  font-size: 12px;
  font-weight: 750;
}

.detail-workflow-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  color: var(--comm-text);
  background: var(--comm-bg);
  cursor: pointer;
  font-weight: 800;
}

.detail-workflow-canvas {
  height: 300px;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #010102;
}

.detail-connection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.detail-connection-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--comm-muted);
  background: var(--comm-bg);
  border: 1px solid var(--comm-border);
  font-size: 12px;
  font-weight: 750;
}

.detail-workflow-panel > p {
  margin: 0;
  padding: 16px;
  color: var(--comm-muted);
}

.detail-block {
  margin: 18px;
  border: 1px solid var(--comm-border);
  border-radius: 8px;
  overflow: hidden;
}

.detail-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--comm-border);
  background: var(--comm-bg);
}

.detail-block-head > div {
  display: grid;
  gap: 4px;
}

.detail-block-head span {
  color: var(--comm-subtle);
  font-size: 12px;
  font-weight: 650;
}

.detail-block-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  cursor: pointer;
}

.detail-block pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.62;
}

.copy-toast {
  position: sticky;
  bottom: 14px;
  width: fit-content;
  margin: 0 auto;
}

.community-mobile-detail-backdrop {
  align-items: stretch;
  padding: 0;
}

.community-mobile-detail-modal {
  position: relative;
  width: min(100vw, 720px);
  max-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--comm-bg);
  color: var(--comm-text);
}

.community-mobile-detail-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid var(--comm-border);
  background: color-mix(in srgb, var(--comm-bg) 94%, transparent);
  backdrop-filter: blur(16px);
}

.community-mobile-detail-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.community-mobile-detail-head span {
  color: var(--comm-subtle);
  font-size: 12px;
  font-weight: 800;
}

.community-mobile-detail-head strong {
  color: var(--comm-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  word-break: break-word;
}

.community-mobile-detail-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--comm-border);
  border-radius: 50%;
  color: var(--comm-text);
  background: var(--comm-surface);
  cursor: pointer;
}

.community-mobile-detail-close--floating {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 8;
  background: color-mix(in srgb, var(--comm-bg) 82%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.community-mobile-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--comm-border);
  background: var(--comm-bg);
}

.community-mobile-detail-actions .community-inspiration-react {
  min-height: 38px;
  padding: 0 16px;
}

.community-mobile-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(22px + env(safe-area-inset-bottom, 0px));
}

.community-mobile-detail-media {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.community-mobile-detail-media video,
.community-mobile-detail-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.community-mobile-detail-media video {
  max-height: 62vh;
  aspect-ratio: var(--community-mobile-media-aspect-ratio, auto);
  background: var(--comm-soft);
}

.community-mobile-detail-empty-media {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--comm-subtle);
  background: var(--comm-soft);
}

.community-mobile-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--comm-border);
}

.community-mobile-detail-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--comm-soft);
}

.community-mobile-detail-summary {
  margin: 0;
  color: var(--comm-muted);
  font-size: 14px;
  line-height: 1.7;
}

.community-mobile-prompt-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--comm-border);
}

.community-mobile-prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 0;
}

.community-mobile-prompt-text {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--comm-text);
  cursor: pointer;
  display: block;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.72;
}

.community-mobile-prompt-card.is-collapsed .community-mobile-prompt-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-mobile-prompt-text:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.community-mobile-prompt-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--comm-primary);
  border-radius: 999px;
  color: var(--comm-primary-text);
  background: var(--comm-primary);
  cursor: pointer;
  font-weight: 900;
}

.community-mobile-prompt-copy:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.community-detail-modal footer {
  position: sticky;
  bottom: 0;
  padding: 12px 18px;
  background: var(--comm-surface);
}

.community-report-dialog {
  width: min(420px, 92vw);
  padding: 20px;
  border: 1px solid var(--comm-border-strong);
  border-radius: 16px;
  background: var(--comm-surface);
  color: var(--comm-text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  outline: none;
}

.community-report-title {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.community-report-intro {
  margin-bottom: 16px;
  color: var(--comm-muted);
  font-size: 13px;
}

.community-report-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.community-report-reason {
  padding: 10px 12px;
  border: 1px solid var(--comm-border-strong);
  border-radius: 10px;
  background: var(--comm-soft);
  color: var(--comm-text);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.community-report-reason.is-selected {
  border-color: #4263eb;
  background: color-mix(in srgb, #4263eb 14%, var(--comm-surface));
}

.community-report-reason:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.community-report-note {
  display: grid;
  gap: 7px;
  margin-bottom: 4px;
  color: var(--comm-muted);
  font-size: 13px;
  font-weight: 750;
}

.community-report-note textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--comm-border);
  border-radius: 10px;
  background: var(--comm-bg);
  color: var(--comm-text);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  resize: vertical;
}

.community-report-error {
  margin-top: 8px;
  color: #cf1322;
  font-size: 12px;
}

html[data-app-theme='dark'] .community-report-error {
  color: #ff7875;
}

.community-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.community-report-cancel {
  padding: 8px 16px;
  border: 1px solid var(--comm-border-strong);
  border-radius: 10px;
  background: var(--comm-soft);
  color: var(--comm-text);
  cursor: pointer;
  font-size: 14px;
}

.community-report-submit {
  padding: 8px 16px;
  border: 1px solid #d4380d;
  border-radius: 10px;
  background: #d4380d;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.community-report-cancel:disabled,
.community-report-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.community-report-dialog:focus-visible,
.community-report-reason:focus-visible,
.community-report-note textarea:focus-visible,
.community-report-cancel:focus-visible,
.community-report-submit:focus-visible,
.community-mobile-report-entry:focus-visible {
  outline: 2px solid #4263eb;
  outline-offset: 2px;
}

.community-report-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 5400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #237804;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.community-mobile-report-entry {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--comm-border-strong);
  border-radius: 999px;
  background: var(--comm-surface);
  color: var(--comm-muted);
  cursor: pointer;
}

.community-seo-post-detail--visible {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--comm-border-strong);
  background: var(--comm-surface);
  color: var(--comm-text);
}

.community-seo-post-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--comm-muted);
}

.community-seo-post-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.community-seo-post-breadcrumbs a:hover {
  color: var(--comm-text);
  text-decoration: underline;
}

.community-seo-post-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.community-seo-post-media {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--comm-border);
  background: var(--comm-soft);
}

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

.community-seo-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.community-seo-post-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--comm-border-strong);
  background: var(--comm-soft);
  color: var(--comm-text);
  font-size: 12px;
  font-weight: 600;
}

.community-seo-post-author {
  font-size: 13px;
  color: var(--comm-muted);
}

.community-seo-post-body h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--comm-text);
}

.community-seo-post-summary {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--comm-muted);
}

.community-seo-post-prompt {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--comm-border);
  background: var(--comm-soft);
  color: var(--comm-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}

.community-seo-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.community-seo-post-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--comm-soft);
  border: 1px solid var(--comm-border);
  color: var(--comm-muted);
  font-size: 12px;
}

.community-seo-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.community-seo-post-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--comm-border-strong);
  background: var(--comm-soft);
  color: var(--comm-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.community-seo-post-btn.is-primary {
  background: var(--comm-text);
  border-color: var(--comm-text);
  color: var(--comm-surface);
}

.community-seo-post-links {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--comm-muted);
}

.community-seo-post-links a {
  color: inherit;
  text-decoration: underline;
}

.community-seo-hub-footer {
  margin-top: 32px;
  padding: 18px 4px 12px;
  border-top: 1px solid var(--comm-border);
}

.community-seo-hub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.community-seo-hub-links a {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--comm-muted);
  text-decoration: none;
}

.community-seo-hub-links a:hover {
  color: var(--comm-text);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .community-seo-post-detail--visible {
    padding: 16px;
  }

  .community-seo-post-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .community-seo-post-body h1 {
    font-size: 20px;
  }
}
