/* 社区 / 我的创作 / 图片生成 — 草案 UI */

.app-page-feature {
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: transparent;
}

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

.feature-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.feature-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex-shrink: 0;
}

.feature-header-grow {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.feature-search {
  max-width: 280px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--font-sm);
}

.feature-search:focus {
  outline: none;
  border-color: var(--accent);
}

.feature-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.feature-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.feature-tab.active {
  background: var(--accent-bg-strong);
  color: var(--text-primary);
}

.feature-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}

.feature-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
}

.feature-body-cards {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.feature-body-cards .feature-draft-banner {
  margin: 14px var(--padding-page) 0;
  flex-shrink: 0;
}

.community-cards {
  flex: 1;
  min-height: 0;
}

.community-post-card,
.creation-post-card {
  cursor: pointer;
}

.community-post-card.selected,
.creation-post-card.selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.community-post-card .card-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.community-post-card .card-time.liked {
  color: #f472b6;
}

.community-author-link {
  cursor: pointer;
  border: none;
  font: inherit;
}

.community-author-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.feature-draft-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-draft-banner strong {
  color: var(--accent);
  font-weight: 600;
}

/* 用户主页弹层 */
.user-profile-panel {
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
}

.user-profile-panel .community-detail-head {
  justify-content: space-between;
}

.user-profile-back {
  margin-right: auto;
}

.user-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--border);
}

.user-profile-body {
  flex: 1;
  min-height: 200px;
  max-height: calc(92vh - 180px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.user-profile-cards {
  flex: 1;
  min-height: 0;
}

#userProfileOverlay .community-detail {
  display: flex;
  flex-direction: column;
}

/* 创作网格 */
.creations-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

#creationsProfile {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

#creationsProfile:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

.creations-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--accent-on);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.creations-profile-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.creations-profile-text p {
  margin: 0;
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.creations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.creation-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 1;
}

.creation-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creation-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  gap: 6px;
}

.creation-item:hover .creation-item-overlay {
  opacity: 1;
}

.creation-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.creation-item-actions button {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  font-size: 10px;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
}

.creation-item-actions button:hover {
  background: rgba(255,255,255,0.28);
}

.creation-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
}

.feature-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: var(--font-sm);
}

.feature-empty p {
  margin: 8px 0 16px;
  line-height: 1.6;
}

/* 图片生成 */
.imagegen-credits-box {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.imagegen-credits-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.imagegen-credits-label strong {
  color: var(--accent);
  font-weight: 700;
}

.imagegen-credits-rate {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.credit-ledger-panel {
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  max-height: 160px;
  overflow-y: auto;
}

.credit-ledger-panel.hidden {
  display: none !important;
}

.credit-ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.credit-ledger-row:last-child {
  border-bottom: none;
}

.credit-ledger-delta {
  font-weight: 700;
  min-width: 48px;
}

.credit-ledger-delta.plus {
  color: #3dd68c;
}

.credit-ledger-delta.minus {
  color: #f07178;
}

.credit-ledger-meta {
  color: var(--text-secondary);
}

.credit-ledger-time {
  color: var(--text-muted);
  white-space: nowrap;
}

.credit-ledger-empty {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.imagegen-activate-row {
  display: flex;
  gap: 8px;
}

.imagegen-activate-row .settings-input {
  flex: 1;
  min-width: 0;
}

.imagegen-credits-note {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.45;
}

.imagegen-credits-note .link-inline,
.subscribe-legal .link-inline {
  color: var(--accent, #93c5fd);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imagegen-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(320px, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.imagegen-form {
  padding: 18px 20px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
}

.imagegen-model-label {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.imagegen-model-name {
  color: var(--text-primary);
  font-weight: 700;
}

.imagegen-form label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.imagegen-form label:first-child {
  margin-top: 0;
}

.imagegen-form select,
.imagegen-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--font-sm);
  padding: 10px 12px;
}

.imagegen-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.imagegen-params-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.imagegen-param label {
  margin-top: 0 !important;
}

.imagegen-ref {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 6px;
  overflow: hidden;
  background: var(--bg-card);
}

.imagegen-ref-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  margin: 10px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.imagegen-ref-drop.drag-over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.imagegen-ref-hint {
  margin: 0;
  font-size: var(--font-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

.imagegen-ref-hint-mobile {
  display: none;
}

.imagegen-ref input {
  display: none;
}

.imagegen-ref-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}

.imagegen-ref-gallery[hidden] {
  display: none !important;
}

.imagegen-ref-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.imagegen-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imagegen-ref-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.imagegen-ref-rm:hover {
  background: rgba(0, 0, 0, 0.75);
}

.imagegen-quality-note {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.imagegen-publish-row {
  margin-top: 14px;
}

.imagegen-publish-row .panel-hint {
  font-size: 10px;
}

.imagegen-price-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 8px 0 0;
  line-height: 1.45;
  min-height: 1.2em;
}

.imagegen-price-hint:empty {
  display: none;
}

.imagegen-generate-btn {
  width: 100%;
  margin-top: 10px;
}

.imagegen-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding: 0;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
}

.imagegen-feed-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 0;
  padding: 12px 14px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.imagegen-feed-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.imagegen-feed-tab:hover {
  color: var(--text-secondary);
}

.imagegen-feed-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.imagegen-warehouse-filters {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.imagegen-warehouse-filters.hidden {
  display: none;
}

.imagegen-filter-label {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.imagegen-filter-select {
  flex: 1;
  min-width: 0;
  max-width: calc(50% - 24px);
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
}

.imagegen-feed-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 14px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.imagegen-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.imagegen-feed.imagegen-feed--tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  align-content: start;
}

.imagegen-feed-empty {
  text-align: center;
  font-size: var(--font-sm);
  color: var(--text-muted);
  padding: 40px 16px;
  line-height: 1.6;
}

.imagegen-feed-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.imagegen-feed-card-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
}

.imagegen-feed-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.imagegen-feed-thumb-btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #141414;
}

.imagegen-feed-card-tile .imagegen-feed-media {
  flex: none;
  width: 100%;
}

.imagegen-feed-card-tile .imagegen-feed-content {
  padding: 8px 10px 10px;
  gap: 4px;
}

.imagegen-feed-card-tile .imagegen-feed-prompt {
  -webkit-line-clamp: 3;
  flex: none;
}

.imagegen-feed-card-tile .imagegen-feed-fill-hint {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--text-muted);
}

.imagegen-feed-save-btn {
  font-size: 10px !important;
  padding: 2px 8px !important;
  min-height: 0;
}

.imagegen-feed-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.imagegen-feed-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-bg);
}

.imagegen-feed-media {
  flex: 0 0 auto;
  width: 100%;
}

.imagegen-feed-media > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: block;
  background: #141414;
}

.imagegen-feed-img-empty {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: linear-gradient(145deg, #1a1a1a, #262626);
}

.imagegen-feed-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imagegen-feed-prompt {
  margin: 0;
  font-size: var(--font-xs);
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  flex: 1;
}

.imagegen-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.imagegen-feed-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-weight: 500;
}

.imagegen-feed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.imagegen-feed-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.imagegen-feed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.imagegen-feed-fill-hint {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.imagegen-feed-like {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.imagegen-feed-like:hover {
  border-color: #f472b6;
  color: #f472b6;
}

.imagegen-feed-like.liked {
  background: rgba(244, 114, 182, 0.15);
  border-color: #f472b6;
  color: #f472b6;
}

/* 社区详情弹窗 */
.community-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.community-detail-overlay.active {
  display: flex;
}

.community-detail {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.community-detail-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.community-detail-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.community-detail-body {
  overflow-y: auto;
  padding: 16px 18px;
}

.community-detail-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: #141414;
}

.community-detail-author {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.community-detail-author-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-detail-author-btn:hover {
  color: var(--text-primary);
}

.community-detail-prompt {
  font-size: var(--font-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.community-detail-stats {
  display: flex;
  gap: 16px;
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: 14px;
}

.community-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-detail-actions .btn {
  flex: 1;
  min-width: calc(50% - 4px);
}

.panel-publish-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.panel-publish-copy {
  flex: 1;
  min-width: 0;
}

.panel-publish-title {
  display: block;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.panel-publish-row .panel-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.publish-circle-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.publish-circle-btn:hover {
  border-color: var(--accent);
}

.publish-circle-btn.is-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.panel-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 社区页 + 侧边栏 */
.community-shell {
  min-height: 0;
}

.community-page-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.community-page-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.community-inline-hint {
  margin: 0;
  padding: 10px var(--padding-page) 0;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.community-side-panel {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
}

.community-side-panel.hidden {
  display: none;
}

.community-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.community-side-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.community-side-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.community-side-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #141414;
}

.community-side-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.community-side-img-btn:hover .community-side-img-hint {
  opacity: 1;
}

.community-side-img-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.community-side-author {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin: 0 0 10px;
}

.community-side-prompt {
  font-size: var(--font-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.community-side-stats {
  display: flex;
  gap: 14px;
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.community-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-side-actions .btn {
  flex: 1;
  min-width: calc(50% - 4px);
}

.settings-field-row-stack {
  grid-template-columns: 1fr auto !important;
}

#fabNewBtn.hidden-by-app {
  display: none !important;
}

@media (max-width: 900px) {
  .community-page-layout {
    flex-direction: column;
  }
  .community-side-panel {
    width: 100%;
    max-height: 45vh;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .imagegen-feed.imagegen-feed--tiles {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .imagegen-feed-media,
  .imagegen-feed-thumb-btn img,
  .imagegen-feed-img-empty {
    width: 100%;
    height: auto;
    max-height: 160px;
  }
  .imagegen-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-content: stretch;
  }
  .imagegen-form {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: none;
  }
  .imagegen-side {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 55vh;
  }
  .feature-header {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  .feature-header-grow {
    width: 100%;
    justify-content: stretch;
  }
  .feature-search {
    max-width: none;
  }
}

[data-theme="light"] .community-card,
[data-theme="light"] .creations-profile,
[data-theme="light"] .creation-item {
  background: #fff;
}
