/* Phase 5 — List ideas (Community board) */
.pls-list-ideas-layout {
  display: grid;
  gap: 1.25rem;
}
.pls-list-ideas-scope {
  max-width: 36rem;
  margin: 0 auto;
}
.pls-list-ideas-scope .pls-toggle-group__item {
  font-size: 0.8125rem;
}
.pls-list-idea-visibility {
  max-width: 20rem;
}
.pls-list-idea-visibility-hint {
  font-weight: 500;
}
.pls-list-ideas-shared-slot.hidden {
  display: none !important;
}
.pls-list-ideas-shared-board {
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.75rem;
  background: rgb(var(--card, 255 255 255));
  padding: 1rem;
}
.dark .pls-list-ideas-shared-board {
  background: rgb(var(--card, 24 24 27));
}
.pls-list-ideas-shared-lede {
  color: rgb(var(--foreground, 24 24 27));
}
.pls-list-ideas-shared-board .pls-list-idea-card {
  border-bottom: none;
  padding-bottom: 0;
}
.pls-list-idea-form,
.pls-list-ideas-board {
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.75rem;
  background: rgb(var(--card, 255 255 255));
  padding: 1rem;
}
.dark .pls-list-idea-form,
.dark .pls-list-ideas-board {
  background: rgb(var(--card, 24 24 27));
}
.pls-list-idea-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.pls-list-idea-field-hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground, 100 116 139));
}
.pls-list-idea-charcount {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgb(var(--muted-foreground, 100 116 139));
  text-align: right;
}
.pls-list-idea-charcount.is-soft {
  color: #d97706;
}
.pls-list-idea-charcount.is-hard {
  color: #dc2626;
}
.pls-list-idea-submit-quota {
  font-weight: 600;
}
.pls-list-idea-field input,
.pls-list-idea-field select,
.pls-list-idea-field textarea {
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.5rem;
  background: rgb(var(--background, 250 250 250));
  color: rgb(var(--foreground, 24 24 27));
  padding: 0.55rem 0.7rem;
  min-height: 2.5rem;
}
.pls-list-idea-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}
.pls-list-idea-row {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .pls-list-idea-row {
    grid-template-columns: 1fr 1fr;
  }
}
.pls-list-idea-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background: rgb(var(--primary, 24 24 27));
  color: rgb(var(--primary-foreground, 250 250 250));
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.pls-list-idea-status {
  font-size: 0.8125rem;
  color: rgb(var(--muted-foreground, 100 116 139));
  margin-bottom: 0.65rem !important;
}
.pls-list-idea-status.is-error {
  color: #b91c1c;
}
.pls-list-idea-status.is-success {
  color: #15803d;
}
.pls-list-ideas-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.pls-list-ideas-board-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}
.pls-list-ideas-media-filter {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.pls-list-ideas-media-filter select {
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.45rem;
  background: rgb(var(--background, 250 250 250));
  color: rgb(var(--foreground, 24 24 27));
  padding: 0.3rem 0.55rem;
  min-height: 1.9rem;
  max-width: 9.5rem;
  cursor: pointer;
}
.dark .pls-list-ideas-media-filter select {
  background: rgb(var(--background, 24 24 27));
}
.pls-list-ideas-budget {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--foreground, 24 24 27));
}
.pls-list-ideas-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pls-list-ideas-filter {
  border: 1px solid rgb(var(--border, 228 228 231));
  background: transparent;
  border-radius: 0.45rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: rgb(var(--muted-foreground, 100 116 139));
}
.pls-list-ideas-filter.is-on {
  border-color: rgb(var(--foreground, 24 24 27));
  color: rgb(var(--foreground, 24 24 27));
  background: rgb(var(--muted, 244 244 245));
}
.dark .pls-list-ideas-filter.is-on {
  background: rgb(var(--muted, 39 39 42));
}
.pls-list-ideas-refresh {
  border: 1px solid rgb(var(--border, 228 228 231));
  background: transparent;
  border-radius: 0.45rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.pls-list-idea-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgb(var(--border, 228 228 231));
}
.pls-list-idea-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pls-list-idea-card.is-elevated {
  background: rgba(245, 158, 11, 0.06);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.5rem;
}
.pls-list-idea-card-main {
  min-width: 0;
  flex: 1;
}
.pls-list-idea-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.pls-list-idea-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}
.pls-list-idea-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.45rem;
  background: transparent;
  color: rgb(var(--muted-foreground, 100 116 139));
  cursor: pointer;
}
.pls-list-idea-share:hover {
  color: rgb(var(--foreground, 24 24 27));
  background: rgb(var(--muted, 244 244 245));
}
.dark .pls-list-idea-share:hover {
  background: rgb(var(--muted, 39 39 42));
}
.pls-list-idea-by-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.pls-list-idea-by-row .pls-list-idea-by {
  margin: 0;
}
.pls-list-idea-follow-mount {
  display: inline-flex;
  align-items: center;
}
.pls-list-idea-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #111;
}
.pls-list-idea-badge--private {
  background: rgb(var(--muted, 39 39 42));
  color: rgb(var(--muted-foreground, 161 161 170));
}
.pls-list-idea-badge--pending {
  background: rgb(var(--accent, 39 39 42));
  color: rgb(var(--foreground, 250 250 250));
  border: 1px solid rgb(var(--border, 39 39 42));
}
.pls-list-idea-badge--live {
  background: #22c55e;
  color: #052e16;
}
.pls-list-idea-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.pls-list-idea-make-public,
.pls-list-idea-make-private,
.pls-list-idea-edit {
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--primary, 24 24 27));
  color: rgb(var(--primary-foreground, 250 250 250));
  border-radius: 0.45rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.pls-list-idea-make-private,
.pls-list-idea-edit {
  background: transparent;
  color: rgb(var(--foreground, 24 24 27));
}
.pls-list-idea-edit-slot {
  margin-top: 0.75rem;
  width: 100%;
}
.pls-list-idea-edit-form,
.admin-list-idea-edit-form {
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.65rem;
  padding: 0.85rem;
  background: rgb(var(--background, 250 250 250));
}
.dark .pls-list-idea-edit-form,
.dark .admin-list-idea-edit-form {
  background: rgb(var(--background, 9 9 11));
}
.pls-list-idea-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pls-list-idea-edit-cancel {
  border: 1px solid rgb(var(--border, 228 228 231));
  background: transparent;
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.75rem;
}
.pls-list-idea-edit-status {
  font-size: 0.8125rem;
  color: rgb(var(--muted-foreground, 100 116 139));
  margin-bottom: 0.65rem !important;
}
.pls-list-idea-edit-status.is-error {
  color: #b91c1c;
}
.pls-list-idea-card-body.hidden,
.admin-list-idea-body.hidden,
.pls-list-idea-edit-slot.hidden,
.admin-list-idea-edit-slot.hidden {
  display: none !important;
}
.pls-list-idea-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: rgb(var(--muted, 244 244 245));
  color: rgb(var(--muted-foreground, 100 116 139));
}
.dark .pls-list-idea-status-pill {
  background: rgb(var(--muted, 39 39 42));
}
.pls-list-idea-status-pill--elevated {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}
.pls-list-idea-meta,
.pls-list-idea-by,
.pls-list-idea-criteria,
.pls-list-idea-elevated-notes {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground, 100 116 139));
  line-height: 1.4;
}
.pls-list-idea-by-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pls-list-idea-by-link:hover {
  color: rgb(var(--foreground, 24 24 27));
}
.pls-list-idea-why {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}
.pls-list-idea-card-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.pls-list-idea-card-aside .pls-list-idea-share {
  width: 4.25rem;
  height: 2rem;
}
.pls-list-idea-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 4.25rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--background, 250 250 250));
  cursor: pointer;
}
.pls-list-idea-vote.is-voted {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}
.pls-list-idea-vote-count {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.pls-list-idea-vote-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.pls-list-ideas-help {
  vertical-align: middle;
}

.pls-list-ideas-help #pls-list-ideas-help-popover {
  z-index: 50;
  box-sizing: border-box;
  width: min(22rem, calc(100vw - 2.5rem));
  max-width: min(22rem, calc(100vw - 2.5rem));
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
  background-color: #ffffff;
  color: #0a0a0a;
  border: 1px solid #e4e4e7;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.18);
}

.dark .pls-list-ideas-help #pls-list-ideas-help-popover {
  background-color: #18181b;
  color: #fafafa;
  border-color: #3f3f46;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.55);
}

.pls-list-ideas-help #pls-list-ideas-help-popover .pls-list-ideas-help__title {
  color: #71717a;
}

.dark .pls-list-ideas-help #pls-list-ideas-help-popover .pls-list-ideas-help__title {
  color: #a1a1aa;
}

.pls-list-ideas-help #pls-list-ideas-help-popover .pls-list-ideas-help__body,
.pls-list-ideas-help #pls-list-ideas-help-popover li {
  color: #52525b;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.dark .pls-list-ideas-help #pls-list-ideas-help-popover .pls-list-ideas-help__body,
.dark .pls-list-ideas-help #pls-list-ideas-help-popover li {
  color: #a1a1aa;
}

.pls-list-ideas-help #pls-list-ideas-help-popover strong {
  color: #0a0a0a;
}

.dark .pls-list-ideas-help #pls-list-ideas-help-popover strong {
  color: #fafafa;
}
