.linguists-dashboard__nav {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.polyver-idea-center {
  --pic-primary: var(--linguists-dashboard-primary, #0f766e);
  --pic-primary-hover: var(--linguists-dashboard-primary-hover, #115e59);
  --pic-soft: var(--linguists-dashboard-bg-soft, #f4f7fb);
  --pic-accent: var(--linguists-dashboard-bg-accent, #edf7f5);
  --pic-border: var(--linguists-dashboard-border, #d9dde3);
  --pic-muted: var(--linguists-dashboard-muted, #617085);
  --pic-text: var(--linguists-dashboard-text, #172033);
  --pic-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --pic-radius: 18px;
  display: grid;
  gap: 20px;
  overflow: visible;
}

.polyver-idea-center .linguists-dashboard__panel {
  overflow: visible;
}

.polyver-idea-center__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.polyver-idea-center__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.polyver-idea-center__back {
  appearance: none;
  background: none;
  border: 0;
  color: var(--pic-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  padding: 0;
}

.polyver-idea-center__intro,
.polyver-idea-center__notice,
.polyver-idea-center__empty {
  position: relative;
}

.polyver-idea-center__notice--pending {
  background: #fff8eb;
  border-color: #f0d19a;
}

.polyver-idea-center__close {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  font: 700 22px/1 sans-serif;
  height: 36px;
  inset: 8px 8px auto auto;
  padding: 0;
  position: absolute;
  width: 36px;
}

.polyver-idea-center__tabs,
.polyver-idea-center__pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.polyver-idea-center__tab {
  appearance: none;
  background: #fff;
  border: 1px solid var(--pic-border);
  border-radius: 999px;
  color: var(--pic-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  min-height: 34px;
  padding: 0.3rem 0.85rem;
}

.polyver-idea-center__tab.is-active,
.polyver-idea-center__tab:hover {
  background: var(--pic-accent);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--pic-primary);
}

.polyver-idea-center__search {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.polyver-idea-center__search input[type="search"] {
  min-width: min(100%, 280px);
  padding: 0.65rem 0.85rem;
}

.polyver-idea-center__pending-block {
  display: grid;
  gap: 12px;
}

.polyver-idea-center__pending-head h3 {
  color: #9a5b10;
  font-size: 1.02rem;
  margin: 0 0 0.2rem;
}

.polyver-idea-center__pending-head p {
  color: var(--pic-muted);
  margin: 0;
}

.polyver-idea-center__list,
.polyver-idea-center__help,
.polyver-idea-center__comment-list {
  display: grid;
  gap: 12px;
}

/* ========== Vote controls ========== */
.polyver-idea-center__vote-rail {
  align-items: center;
  align-self: stretch;
  background: var(--pic-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 6px;
}

/* Higher specificity so .author-line { display:flex } cannot unhide this on desktop. */
.polyver-idea-center__author-line.polyver-idea-center__vote-rail-author {
  display: none;
}

.polyver-idea-center__meta-count--mobile {
  display: none;
}

.polyver-idea-center__vote {
  --pic-vote-size: 30px;
  align-content: start;
  align-items: center;
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  height: auto;
  justify-items: center;
  position: sticky;
  top: 12px;
  width: auto;
}

.polyver-idea-center__vote--inline {
  align-items: center;
  display: inline-grid;
  gap: 4px;
  grid-auto-columns: minmax(var(--pic-vote-size), auto);
  grid-auto-flow: column;
  grid-template-rows: var(--pic-vote-size);
  width: auto;
}

.polyver-idea-center__vote-btn {
  appearance: none;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  height: var(--pic-vote-size);
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: var(--pic-vote-size);
  min-width: 32px;
  padding: 0 7px;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  vertical-align: middle;
}

.polyver-idea-center__vote-btn--up {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.polyver-idea-center__vote-btn--down {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.polyver-idea-center__vote-btn--up:hover:not(:disabled) {
  background: #bbf7d0;
}

.polyver-idea-center__vote-btn--down:hover:not(:disabled) {
  background: #fecaca;
}

.polyver-idea-center__vote-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.polyver-idea-center__vote-btn--up.is-active {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
}

.polyver-idea-center__vote-btn--down.is-active {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
}

.polyver-idea-center__score {
  align-items: center;
  color: var(--pic-text);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  height: var(--pic-vote-size);
  justify-content: center;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  min-width: 1.75ch;
  padding: 0;
  text-align: center;
}

.polyver-idea-center__vote-btn-wrap {
  align-items: center;
  display: inline-flex;
  height: var(--pic-vote-size);
  justify-content: center;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.polyver-idea-center__vote-btn-wrap:has(.polyver-idea-center__vote-btn:disabled) {
  cursor: not-allowed;
}

/* ========== Shared meta ========== */
.polyver-idea-center__card-meta,
.polyver-idea-center__comment-head,
.polyver-idea-center__comment-head-meta,
.polyver-idea-center__comments-head,
.polyver-idea-center__author-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.polyver-idea-center__card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
}

.polyver-idea-center__card-header .polyver-idea-center__card-meta {
  justify-content: flex-end;
  margin-left: auto;
}

.polyver-idea-center__chip,
.polyver-idea-center__badge {
  align-items: center;
  background: var(--pic-soft);
  border-radius: 999px;
  color: var(--pic-text);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 24px;
  padding: 0.28rem 0.65rem;
}

.polyver-idea-center__chip {
  background: var(--pic-accent);
  color: var(--pic-primary);
}

.polyver-idea-center__badge--pending {
  background: #fff6e8;
  color: #9a5b10;
}

.polyver-idea-center__badge--implemented,
.polyver-idea-center__badge--official {
  background: #e8f6ee;
  color: #176b3a;
}

.polyver-idea-center__badge--rejected,
.polyver-idea-center__badge--duplicate,
.polyver-idea-center__badge--trashed {
  background: #f8ecec;
  color: #8a2f2f;
}

.polyver-idea-center__badge--under_review,
.polyver-idea-center__badge--planned {
  background: #fff6e8;
  color: #8a5a12;
}

.polyver-idea-center__badge--published {
  background: var(--pic-accent);
  color: var(--pic-primary);
}

.polyver-idea-center__author {
  color: var(--pic-text);
  font-size: 0.88rem;
  font-weight: 650;
}

.polyver-idea-center__meta-count,
.polyver-idea-center__meta-dot,
.polyver-idea-center__muted {
  color: var(--pic-muted);
  font-size: 0.84rem;
}

.polyver-idea-center__avatar {
  background: var(--pic-accent);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
}

.polyver-idea-center__avatar--sm {
  height: 28px;
  width: 28px;
}

.polyver-idea-center__avatar--md {
  height: 34px;
  width: 34px;
}

.polyver-idea-center__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.polyver-idea-center__avatar-fallback {
  color: var(--pic-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.polyver-idea-center__avatar--md .polyver-idea-center__avatar-fallback {
  font-size: 0.76rem;
}

.polyver-idea-center__linkish {
  appearance: none;
  background: none;
  border: 0;
  color: var(--pic-text);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.polyver-idea-center__linkish:hover {
  color: var(--pic-primary);
}

/* ========== Idea list cards ========== */
.polyver-idea-center__card {
  background: #fff;
  border: 1px solid rgba(217, 221, 227, 0.95);
  border-radius: var(--pic-radius);
  box-shadow: var(--pic-shadow);
  display: grid;
  gap: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.polyver-idea-center__card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.polyver-idea-center__card.is-pending {
  background: #fffdf8;
}

.polyver-idea-center__card.is-pending .polyver-idea-center__vote-rail {
  background: #fff6e8;
}

.polyver-idea-center__card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px 12px;
}

.polyver-idea-center__card-title {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0;
}

.polyver-idea-center__card-excerpt {
  color: var(--pic-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 0;
}

.polyver-idea-center__card-foot {
  align-items: center;
  border-top: 1px solid rgba(217, 221, 227, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
}

.polyver-idea-center__card-media {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.polyver-idea-center__card-thumb {
  appearance: none;
  background: var(--pic-soft);
  border: 1px solid var(--pic-border);
  border-radius: 8px;
  cursor: pointer;
  display: block;
  height: 40px;
  overflow: hidden;
  padding: 0;
  width: 52px;
}

.polyver-idea-center__card-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ========== Detail card ========== */
.polyver-idea-center__detail-card {
  background: #fff;
  border: 1px solid rgba(217, 221, 227, 0.95);
  border-radius: 20px;
  box-shadow: var(--pic-shadow);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  overflow: hidden;
}

.polyver-idea-center__detail-card.is-pending {
  background: #fffdf8;
}

.polyver-idea-center__detail-card.is-pending .polyver-idea-center__vote-rail {
  background: #fff6e8;
}

.polyver-idea-center__detail-card .polyver-idea-center__vote-rail {
  padding: 16px 8px;
}

.polyver-idea-center__detail-card .polyver-idea-center__vote {
  position: sticky;
  top: 16px;
}

.polyver-idea-center__detail-main {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px 20px 20px;
}

.polyver-idea-center__detail-title {
  color: var(--pic-text);
  font-size: clamp(1.28rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.polyver-idea-center__detail-body {
  border-top: 1px solid rgba(217, 221, 227, 0.7);
  margin-top: 4px;
  padding-top: 14px;
}

.polyver-idea-center__body {
  color: var(--pic-text);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

.polyver-idea-center__admin-note {
  background: var(--pic-soft);
  border-left: 3px solid var(--pic-primary);
  border-radius: 0 10px 10px 0;
  color: var(--pic-muted);
  margin: 14px 0 0;
  padding: 0.75rem 0.9rem;
}

.polyver-idea-center__detail-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.polyver-idea-center__detail-thumb {
  border: 1px solid var(--pic-border);
  border-radius: 10px;
  display: block;
  flex: 0 0 auto;
  height: 72px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
  width: 96px;
}

.polyver-idea-center__detail-thumb:hover {
  border-color: var(--pic-primary);
  transform: scale(1.03);
}

.polyver-idea-center__detail-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ========== Comments ========== */
.polyver-idea-center__comments {
  display: grid;
  gap: 14px;
}

.polyver-idea-center__comments-head {
  justify-content: space-between;
}

.polyver-idea-center__comments-head h3 {
  font-size: 1.15rem;
  margin: 0;
}

.polyver-idea-center__comment-compose {
  background: #fff;
}

.polyver-idea-center__comment,
.polyver-idea-center__reply {
  background: #fff;
  border: 1px solid rgba(217, 221, 227, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.polyver-idea-center__comment-head {
  justify-content: space-between;
}

.polyver-idea-center__comment-head-meta {
  margin-left: auto;
}

.polyver-idea-center__comment-body p {
  color: var(--pic-text);
  line-height: 1.55;
  margin: 0;
}

.polyver-idea-center__replies {
  border-left: 2px solid rgba(15, 118, 110, 0.18);
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-left: 12px;
}

.polyver-idea-center__reply {
  background: var(--pic-soft);
  box-shadow: none;
}

.polyver-idea-center__reply-form {
  border-top: 1px solid rgba(217, 221, 227, 0.65);
  margin-top: 2px;
  padding-top: 8px;
}

.polyver-idea-center__reply-form summary {
  color: var(--pic-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.polyver-idea-center__reply-form summary::-webkit-details-marker {
  display: none;
}

.polyver-idea-center__reply-form form,
.polyver-idea-center__steps {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.polyver-idea-center__form,
.polyver-idea-center__field {
  display: grid;
  gap: 10px;
}

.polyver-idea-center__form {
  gap: 18px;
}

.polyver-idea-center__field input,
.polyver-idea-center__field select,
.polyver-idea-center__select,
.polyver-idea-center__field textarea,
.polyver-idea-center__reply-form textarea,
.polyver-idea-center__search input {
  background: #fff;
  border: 1px solid var(--pic-border);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--pic-text);
  font: inherit;
  line-height: 1.4;
  padding: 0.85rem 1rem;
  width: 100%;
}

.polyver-idea-center .polyver-idea-center__field select,
.polyver-idea-center select.polyver-idea-center__select,
.polyver-idea-center__field select.polyver-idea-center__select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #fff !important;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px) !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px, 6px 6px !important;
  height: 52px !important;
  line-height: 1.35 !important;
  min-height: 52px !important;
  padding: 0 2.6rem 0 1rem !important;
}

.polyver-idea-center__field select option,
.polyver-idea-center__select option {
  line-height: 1.4;
  padding: 0.5rem;
}

.polyver-idea-center__uploads,
.polyver-idea-center__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.polyver-idea-center__upload,
.polyver-idea-center__gallery a {
  border: 1px solid var(--pic-border);
  border-radius: 12px;
  display: block;
  overflow: hidden;
  position: relative;
  width: 112px;
}

.polyver-idea-center__upload img,
.polyver-idea-center__gallery img {
  display: block;
  height: 84px;
  object-fit: cover;
  width: 112px;
}

.polyver-idea-center__upload button {
  appearance: none;
  background: rgba(0, 0, 0, 0.65);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  height: 28px;
  inset: 6px 6px auto auto;
  position: absolute;
  width: 28px;
}

.polyver-idea-center__check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.polyver-idea-center__status {
  border-radius: 12px;
  font-weight: 600;
  margin: 0;
  padding: 0.75rem 1rem;
}

.polyver-idea-center__status[hidden] {
  display: none;
}

.polyver-idea-center__status.is-error {
  background: #f8ecec;
  color: #8a2f2f;
}

.polyver-idea-center__status.is-success {
  background: #e8f6ee;
  color: #176b3a;
}

.polyver-idea-center.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* ========== Mobile ========== */
@media (max-width: 720px) {
  .polyver-idea-center__card,
  .polyver-idea-center__detail-card {
    grid-template-columns: 1fr;
  }

  .polyver-idea-center__vote-rail {
    align-items: center;
    border-bottom: 1px solid rgba(217, 221, 227, 0.75);
    border-radius: 0;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .polyver-idea-center__author-line.polyver-idea-center__vote-rail-author {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
  }

  .polyver-idea-center__vote-rail-author .polyver-idea-center__author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .polyver-idea-center__card .polyver-idea-center__author-line--main,
  .polyver-idea-center__detail-card .polyver-idea-center__author-line--main {
    display: none;
  }

  .polyver-idea-center__meta-count--mobile {
    display: inline;
  }

  .polyver-idea-center__card .polyver-idea-center__vote,
  .polyver-idea-center__detail-card .polyver-idea-center__vote {
    align-items: center;
    flex: 0 0 auto;
    grid-auto-flow: column;
    grid-template-rows: var(--pic-vote-size);
    justify-content: end;
    margin-left: auto;
    position: static;
    width: auto;
  }

  .polyver-idea-center__card-main,
  .polyver-idea-center__detail-main {
    padding: 12px 14px 14px;
  }

  .polyver-idea-center__card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .polyver-idea-center__card-header .polyver-idea-center__card-meta {
    justify-content: flex-start;
    margin-left: 0;
  }

  .polyver-idea-center__card-thumb {
    height: 36px;
    width: 48px;
  }

  .polyver-idea-center__detail-thumb {
    height: 64px;
    width: 84px;
  }

  .polyver-idea-center__comment,
  .polyver-idea-center__reply {
    padding: 0;
  }

  .polyver-idea-center__comment-head {
    align-items: center;
    background: var(--pic-soft);
    border-bottom: 1px solid rgba(217, 221, 227, 0.75);
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .polyver-idea-center__comment-head .polyver-idea-center__author-line {
    flex: 1 1 auto;
    min-width: 0;
  }

  .polyver-idea-center__comment-head .polyver-idea-center__author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .polyver-idea-center__comment-head-meta {
    flex: 0 0 auto;
    margin-left: 0;
    width: auto;
  }

  .polyver-idea-center__comment-body,
  .polyver-idea-center__reply-form,
  .polyver-idea-center__replies {
    padding-left: 12px;
    padding-right: 12px;
  }

  .polyver-idea-center__comment-body {
    padding-top: 12px;
  }

  .polyver-idea-center__reply-form,
  .polyver-idea-center__replies {
    padding-bottom: 12px;
  }

  .polyver-idea-center__replies {
    margin-left: 0;
  }

}
