:root {
  --community-bg: #071225;
  --community-panel: rgba(14, 30, 53, 0.94);
  --community-panel-soft: rgba(18, 38, 66, 0.82);
  --community-panel-raised: #132a49;
  --community-line: rgba(112, 157, 218, 0.22);
  --community-line-strong: rgba(74, 145, 244, 0.48);
  --community-text: #f7faff;
  --community-text-soft: #c5d3e8;
  --community-muted: #8fa5c4;
  --community-accent: #2d6de0;
  --community-accent-strong: #3884ff;
  --community-link: #68a9ff;
  --community-accent-soft: rgba(45, 109, 224, 0.16);
  --community-success: #45d39c;
  --community-warning: #f1bd5b;
  --community-danger: #ff6b7f;
  --community-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
  --community-radius: 18px;
}

html[data-theme="light"] {
  --community-bg: #eef3f9;
  --community-panel: rgba(255, 255, 255, 0.96);
  --community-panel-soft: rgba(246, 249, 253, 0.98);
  --community-panel-raised: #ffffff;
  --community-line: rgba(71, 85, 105, 0.18);
  --community-line-strong: rgba(33, 98, 214, 0.38);
  --community-text: #102033;
  --community-text-soft: #41536c;
  --community-muted: #64748b;
  --community-accent: #2162d6;
  --community-accent-strong: #075fd1;
  --community-link: #0759bd;
  --community-accent-soft: rgba(33, 98, 214, 0.1);
  --community-success: #138a61;
  --community-warning: #a96800;
  --community-danger: #c9304b;
  --community-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.discussions-page,
.discussions-page * {
  box-sizing: border-box;
}

.discussions-page button,
.discussions-page input,
.discussions-page textarea,
.discussions-page select {
  font: inherit;
}

.discussions-page button,
.discussions-page a {
  -webkit-tap-highlight-color: transparent;
}

.community-page {
  min-height: calc(100vh - 78px);
  color: var(--community-text);
}

.community-wrap {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.community-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 34px;
  margin-bottom: 18px;
  border: 1px solid var(--community-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 8%, rgba(56, 132, 255, 0.2), transparent 31%),
    linear-gradient(135deg, rgba(17, 39, 71, 0.96), rgba(8, 22, 43, 0.97));
  box-shadow: var(--community-shadow);
}

html[data-theme="light"] .community-hero {
  background:
    radial-gradient(circle at 90% 8%, rgba(33, 98, 214, 0.13), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 253, 0.98));
}

.community-hero::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: -76px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(94, 167, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.community-eyebrow {
  margin: 0 0 8px;
  color: var(--community-link);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.community-hero h1 {
  margin: 0;
  color: var(--community-text);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.community-hero__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--community-text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.community-hero__status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(69, 211, 156, 0.3);
  border-radius: 999px;
  color: var(--community-text-soft);
  background: rgba(20, 56, 61, 0.5);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="light"] .community-hero__status {
  background: rgba(69, 211, 156, 0.1);
}

.community-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--community-success);
  box-shadow: 0 0 0 5px rgba(69, 211, 156, 0.12);
}

.community-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--community-line);
  border-radius: 15px;
  background: rgba(7, 18, 37, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .community-tabs {
  background: rgba(255, 255, 255, 0.86);
}

.community-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: 10px;
  color: var(--community-text-soft);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.community-tab:hover {
  color: var(--community-text);
  background: var(--community-accent-soft);
}

.community-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--community-accent), var(--community-accent-strong));
  box-shadow: 0 8px 20px rgba(45, 109, 224, 0.26);
}

.community-tab__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--community-danger);
  font-size: 11px;
  line-height: 20px;
}

.community-tab__beta {
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--community-link);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.community-tab.is-active .community-tab__beta {
  color: #fff;
  opacity: 0.82;
}

.community-tab-panel[hidden] {
  display: none !important;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.community-card {
  border: 1px solid var(--community-line);
  border-radius: var(--community-radius);
  background: var(--community-panel);
  box-shadow: var(--community-shadow);
}

.community-auth-wall {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  min-height: 420px;
  padding: 64px 32px;
}

.community-auth-wall h2 {
  margin: 0;
  color: var(--community-text);
  font-size: clamp(25px, 4vw, 34px);
}

.community-auth-wall p:not(.community-eyebrow) {
  margin: 10px 0 0;
  color: var(--community-text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.community-auth-wall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.community-rules-link {
  color: var(--community-link);
  text-decoration: none;
}

.community-rules-link:hover {
  color: var(--community-text);
  text-decoration: underline;
}

.community-auth-wall > div > .community-rules-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
}

.community-card__header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--community-line);
}

.community-card__header--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.community-card__header h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 21px;
  line-height: 1.25;
}

.community-card__header p {
  margin: 6px 0 0;
  color: var(--community-muted);
  font-size: 14px;
  line-height: 1.45;
}

.community-restriction {
  margin: 14px 18px 0;
  padding: 10px 13px;
  border: 1px solid rgba(241, 189, 91, 0.34);
  border-radius: 10px;
  color: var(--community-warning);
  background: rgba(241, 189, 91, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.community-feed {
  min-height: 650px;
  overflow: hidden;
}

.community-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--community-line);
  border-radius: 12px;
  color: var(--community-text-soft);
  background: var(--community-panel-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.community-icon-button:hover {
  color: #fff;
  border-color: var(--community-line-strong);
  background: var(--community-accent);
}

.community-connection {
  margin: 14px 18px 0;
  padding: 10px 13px;
  border: 1px solid rgba(241, 189, 91, 0.3);
  border-radius: 10px;
  color: var(--community-warning);
  background: rgba(241, 189, 91, 0.08);
  font-size: 13px;
}

.community-load-more {
  display: block;
  min-height: 40px;
  margin: 16px auto 0;
  padding: 8px 15px;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  color: var(--community-text-soft);
  background: var(--community-panel-soft);
  cursor: pointer;
}

.community-load-more:hover {
  color: var(--community-text);
  border-color: var(--community-line-strong);
}

.community-message-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px 18px;
}

.community-message {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 12px;
  border-radius: 13px;
  transition: background 0.16s ease;
}

.community-message:hover,
.community-message:focus-within {
  background: var(--community-panel-soft);
}

.community-message.is-own {
  background: rgba(45, 109, 224, 0.08);
}

.community-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(94, 167, 255, 0.28);
  border-radius: 50%;
  color: #eaf3ff;
  background: linear-gradient(145deg, #255cae, #183152);
  font-size: 14px;
  font-weight: 800;
}

.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-message__content {
  min-width: 0;
}

.community-message__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.community-message__author {
  overflow: hidden;
  color: var(--community-text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-author-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.community-author-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid var(--community-line-strong);
  border-radius: 999px;
  color: var(--community-link);
  background: var(--community-accent-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.community-message__time,
.community-message__edited {
  color: var(--community-muted);
  font-size: 12px;
}

.community-message__reply {
  display: block;
  width: 100%;
  margin: 7px 0;
  padding: 8px 10px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--community-accent-strong);
  border-radius: 4px 9px 9px 4px;
  color: var(--community-text-soft);
  background: var(--community-accent-soft);
  text-align: left;
  cursor: pointer;
}

.community-message__reply strong,
.community-message__reply span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-message__reply strong {
  margin-bottom: 2px;
  color: var(--community-link);
  font-size: 12px;
}

.community-message__body {
  margin-top: 5px;
  color: var(--community-text-soft);
  font-size: 15px;
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-message__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 9px 0 -4px;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.community-message:hover .community-message__actions,
.community-message:focus-within .community-message__actions {
  opacity: 1;
}

.community-action {
  min-height: 34px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--community-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.community-action:hover {
  color: var(--community-text);
  background: var(--community-accent-soft);
}

.community-action--danger:hover {
  color: var(--community-danger);
  background: rgba(255, 107, 127, 0.1);
}

.community-message__edit {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.community-message__edit textarea {
  min-height: 92px;
}

.community-message__edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.community-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--community-line);
  background: rgba(11, 26, 47, 0.96);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .community-composer {
  background: rgba(255, 255, 255, 0.96);
}

.community-composer textarea,
.community-field input,
.community-field textarea,
.community-field select,
.community-idea-toolbar input,
.community-idea-toolbar select,
.community-message__edit textarea,
.community-comment-composer textarea {
  width: 100%;
  border: 1px solid var(--community-line);
  border-radius: 12px;
  outline: none;
  color: var(--community-text);
  background: var(--community-panel-soft);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.community-composer textarea,
.community-message__edit textarea,
.community-comment-composer textarea {
  display: block;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.community-composer textarea {
  min-height: 68px;
  max-height: 190px;
}

.community-composer textarea:focus,
.community-field input:focus,
.community-field textarea:focus,
.community-field select:focus,
.community-idea-toolbar input:focus,
.community-idea-toolbar select:focus,
.community-message__edit textarea:focus,
.community-comment-composer textarea:focus {
  border-color: var(--community-accent-strong);
  box-shadow: 0 0 0 3px rgba(56, 132, 255, 0.14);
}

.community-composer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.community-composer__bottom > span {
  color: var(--community-muted);
  font-size: 12px;
}

.community-composer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-character-count {
  color: var(--community-muted);
  font-size: 12px;
}

.community-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-left: 3px solid var(--community-accent-strong);
  border-radius: 5px 10px 10px 5px;
  background: var(--community-accent-soft);
}

.community-reply-preview div {
  min-width: 0;
}

.community-reply-preview strong,
.community-reply-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-reply-preview strong {
  color: var(--community-link);
  font-size: 12px;
}

.community-reply-preview span {
  margin-top: 2px;
  color: var(--community-text-soft);
  font-size: 12px;
}

.community-reply-preview button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  color: var(--community-muted);
  background: transparent;
  cursor: pointer;
}

.community-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-top: 1px solid var(--community-line);
  background: var(--community-panel-soft);
}

.community-locked div {
  min-width: 0;
}

.community-locked strong,
.community-locked span {
  display: block;
}

.community-locked strong {
  color: var(--community-text);
  font-size: 14px;
}

.community-locked span {
  margin-top: 4px;
  color: var(--community-muted);
  font-size: 13px;
}

.community-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

.community-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.community-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--community-accent), var(--community-accent-strong));
  box-shadow: 0 9px 20px rgba(45, 109, 224, 0.22);
}

.community-button--secondary {
  color: var(--community-text-soft);
  border-color: var(--community-line);
  background: var(--community-panel-soft);
}

.community-button--danger {
  color: #fff;
  background: #c9304b;
}

.community-sidebar {
  display: grid;
  gap: 18px;
}

.community-profile-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 17px 18px;
}

.community-profile-card__body > div {
  min-width: 0;
  flex: 1;
}

.community-profile-card__body strong,
.community-profile-card__body span {
  display: block;
}

.community-profile-card__body strong {
  overflow: hidden;
  color: var(--community-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-profile-card__body div span {
  margin-top: 4px;
  color: var(--community-muted);
  font-size: 12px;
}

.community-text-button {
  min-height: 36px;
  padding: 5px 7px;
  border: 0;
  color: var(--community-link);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.community-rules ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 24px 10px 42px;
  color: var(--community-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.community-rules > p {
  margin: 0;
  padding: 10px 24px 20px;
  color: var(--community-muted);
  font-size: 12px;
  line-height: 1.45;
}

.community-rules a {
  color: var(--community-link);
}

.community-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 330px;
  padding: 38px 24px;
  color: var(--community-muted);
  text-align: center;
}

.community-state--loading {
  display: flex;
  gap: 12px;
}

.community-state h3 {
  margin: 12px 0 0;
  color: var(--community-text);
  font-size: 18px;
}

.community-state p {
  max-width: 420px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.community-state .community-button {
  margin-top: 18px;
}

.community-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(143, 165, 196, 0.28);
  border-top-color: var(--community-accent-strong);
  border-radius: 50%;
  animation: community-spin 0.8s linear infinite;
}

@keyframes community-spin {
  to { transform: rotate(360deg); }
}

.community-skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(143, 165, 196, 0.12);
}

.community-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: community-shimmer 1.3s infinite;
}

.community-skeleton--avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.community-skeleton--line {
  width: 120px;
  height: 13px;
  border-radius: 999px;
}

@keyframes community-shimmer {
  to { transform: translateX(100%); }
}

.community-ideas {
  min-height: 560px;
  overflow: hidden;
}

.community-idea-toolbar {
  display: grid;
  grid-template-columns: 160px minmax(170px, 1fr) 170px 170px;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--community-line);
}

.community-idea-toolbar label:not(.community-search-field) > span {
  display: block;
  margin-bottom: 6px;
  color: var(--community-muted);
  font-size: 11px;
  font-weight: 700;
}

.community-idea-toolbar select,
.community-idea-toolbar input {
  min-height: 42px;
  padding: 9px 12px;
}

.community-search-field {
  position: relative;
  grid-column: 1 / -1;
  align-self: end;
}

.community-search-field input {
  padding-inline: 12px;
}

.community-idea-list {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.community-idea {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--community-line);
  border-radius: 14px;
  background: var(--community-panel-soft);
}

.community-vote {
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px;
  min-height: 66px;
  padding: 6px;
  border: 1px solid var(--community-line);
  border-radius: 12px;
  color: var(--community-muted);
  background: transparent;
  cursor: pointer;
}

.community-vote:hover,
.community-vote.is-voted {
  color: #fff;
  border-color: var(--community-accent-strong);
  background: var(--community-accent);
}

.community-vote__count {
  font-size: 15px;
  font-weight: 900;
}

.community-idea__content {
  min-width: 0;
}

.community-idea__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.community-idea__title {
  margin: 0;
  color: var(--community-text);
  font-size: 17px;
  line-height: 1.35;
}

.community-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  color: var(--community-text-soft);
  background: rgba(143, 165, 196, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.community-status--reviewing { color: var(--community-warning); border-color: rgba(241, 189, 91, 0.28); }
.community-status--planned { color: var(--community-link); border-color: rgba(104, 169, 255, 0.3); }
.community-status--in_progress { color: var(--community-link); border-color: rgba(104, 169, 255, 0.3); }
.community-status--done { color: var(--community-success); border-color: rgba(69, 211, 156, 0.3); }
.community-status--declined { color: var(--community-muted); }

.community-idea__body {
  margin: 10px 0 0;
  color: var(--community-text-soft);
  font-size: 14px;
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-idea__body.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  white-space: normal;
}

.community-idea__expand {
  min-height: 36px;
  margin-top: 5px;
  padding: 5px 0;
  border: 0;
  color: var(--community-link);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.community-idea__expand:hover {
  color: var(--community-text);
  text-decoration: underline;
}

.community-idea__official {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 3px solid var(--community-success);
  border-radius: 5px 10px 10px 5px;
  color: var(--community-text-soft);
  background: rgba(69, 211, 156, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.community-idea__official strong {
  display: block;
  margin-bottom: 3px;
  color: var(--community-success);
}

.community-idea__meta,
.community-idea__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.community-idea__meta {
  margin-top: 12px;
  color: var(--community-muted);
  font-size: 12px;
}

.community-idea__actions {
  margin-top: 12px;
}

.community-comment-toggle {
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--community-link);
  background: var(--community-accent-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.community-comments {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px 0 0 90px;
  border-top: 1px solid var(--community-line);
}

.community-comment {
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--community-text-soft);
  background: rgba(143, 165, 196, 0.07);
  font-size: 13px;
  line-height: 1.5;
}

.community-comment__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--community-muted);
  font-size: 11px;
}

.community-comment__meta strong {
  color: var(--community-text);
}

.community-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.community-comment-composer {
  display: grid;
  gap: 8px;
}

.community-comment-composer textarea {
  min-height: 72px;
}

.community-comment-composer .community-button {
  justify-self: end;
}

.community-comments__load-more {
  margin-top: 2px;
}

.community-process ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 10px 20px 18px;
  list-style: none;
}

.community-process li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
}

.community-process li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--community-link);
  background: var(--community-accent-soft);
  font-size: 12px;
  font-weight: 900;
}

.community-process strong {
  color: var(--community-text);
  font-size: 13px;
}

.community-process p {
  margin: 4px 0 0;
  color: var(--community-muted);
  font-size: 12px;
  line-height: 1.45;
}

.community-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  overflow: visible;
  border: 1px solid var(--community-line-strong);
  border-radius: 20px;
  color: var(--community-text);
  background: var(--community-panel-raised);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.community-dialog::backdrop {
  background: rgba(1, 7, 16, 0.78);
  backdrop-filter: blur(8px);
}

.community-dialog__surface {
  max-height: min(760px, calc(100vh - 32px));
  padding: 24px;
  overflow-y: auto;
}

.community-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.community-dialog h2 {
  margin: 0;
  font-size: 24px;
}

.community-dialog__surface > p:not(.community-eyebrow):not(.community-form-error) {
  margin: 12px 0 18px;
  color: var(--community-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.community-dialog__surface > .community-private-support {
  padding: 11px 13px;
  border: 1px solid var(--community-line-strong);
  border-radius: 10px;
  background: var(--community-accent-soft);
}

.community-private-support a {
  color: var(--community-link);
  font-weight: 700;
}

.community-dialog__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--community-line);
  border-radius: 11px;
  color: var(--community-muted);
  background: var(--community-panel-soft);
  font-size: 22px;
  cursor: pointer;
}

.community-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.community-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.community-field > span {
  color: var(--community-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.community-field > span small {
  color: var(--community-muted);
  font-weight: 400;
}

.community-field input,
.community-field textarea,
.community-field select {
  min-height: 44px;
  padding: 10px 12px;
}

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

.community-field > small {
  color: var(--community-muted);
  font-size: 11px;
  line-height: 1.4;
}

.community-rules-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--community-text-soft);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.community-rules-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--community-accent);
}

.community-rules-consent a {
  color: var(--community-accent-strong);
  font-weight: 700;
}

.community-rules-consent input:focus-visible {
  outline: 3px solid rgba(56, 132, 255, 0.34);
  outline-offset: 3px;
}

.community-rules-consent input:disabled + span {
  color: var(--community-muted);
}

.community-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.community-form-error {
  margin: 12px 0 0;
  color: var(--community-danger);
  font-size: 13px;
}

.community-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid var(--community-line-strong);
  border-radius: 12px;
  color: #fff;
  background: #16335d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  line-height: 1.45;
}

.community-toast.is-error {
  border-color: rgba(255, 107, 127, 0.48);
  background: #5a2230;
}

.community-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.discussions-page :focus-visible {
  outline: 3px solid rgba(94, 167, 255, 0.72);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .community-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .community-idea-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .community-search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .community-wrap {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

  .community-hero {
    padding: 26px 24px;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-layout--ideas .community-sidebar {
    grid-template-columns: 1fr;
  }

  .community-message__actions {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .community-wrap {
    width: min(100% - 20px, 540px);
    padding: 16px 0 48px;
  }

  .community-hero {
    display: block;
    padding: 22px 18px;
    border-radius: 17px;
  }

  .community-hero h1 {
    font-size: 32px;
  }

  .community-hero__lead {
    font-size: 15px;
  }

  .community-hero__status {
    margin-top: 18px;
  }

  .community-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .community-tab {
    padding: 9px 10px;
    font-size: 13px;
  }

  .community-tab__beta {
    padding-inline: 4px;
  }

  .community-auth-wall {
    grid-template-columns: 1fr;
    min-height: 380px;
    padding: 42px 20px;
  }

  .community-card {
    border-radius: 15px;
  }

  .community-card__header {
    padding: 18px 16px;
  }

  .community-card__header--split {
    align-items: flex-start;
  }

  .community-card__header--split > .community-button {
    padding-inline: 12px;
  }

  .community-feed {
    min-height: 570px;
  }

  .community-message-list {
    padding: 10px 8px 14px;
  }

  .community-message {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 8px;
  }

  .community-avatar {
    width: 36px;
    height: 36px;
  }

  .community-composer {
    padding: 13px 12px;
  }

  .community-composer__bottom {
    align-items: flex-end;
  }

  .community-composer__bottom > span {
    display: none;
  }

  .community-composer__actions {
    width: 100%;
    justify-content: space-between;
  }

  .community-locked {
    align-items: stretch;
    flex-direction: column;
  }

  .community-sidebar {
    grid-template-columns: 1fr;
  }

  .community-idea-toolbar {
    grid-template-columns: 1fr;
  }

  .community-search-field {
    grid-column: auto;
  }

  .community-idea-list {
    padding: 12px 10px;
  }

  .community-idea {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 12px;
  }

  .community-vote {
    width: 50px;
  }

  .community-idea__top {
    display: grid;
  }

  .community-status {
    justify-self: start;
  }

  .community-comments {
    padding-left: 0;
  }

  .community-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .community-dialog__surface {
    max-height: calc(100vh - 16px);
    padding: 19px 16px;
  }

  .community-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .community-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .community-toast {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-spinner,
  .community-skeleton::after {
    animation: none;
  }

  .community-tab,
  .community-button,
  .community-message {
    transition: none;
  }
}
