.community-review-page,
.report-page {
  min-height: 100%;
  background: #0d0d0f;
  color: var(--fg-body);
}

.community-review-page__inner,
.report-page__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.community-review-toolbar,
.report-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.community-review-toolbar {
  margin-bottom: 18px;
}

.community-review-toolbar span,
.report-hero p,
.community-review-meta,
.community-review-list__item small,
.community-review-note-preview,
.report-contact-strip span,
.report-form label,
.report-form__actions span {
  color: var(--fg-muted);
}

.community-review-toolbar h1,
.report-hero h1 {
  margin: 4px 0 6px;
  color: var(--fg-body);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.community-review-toolbar p,
.report-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.community-review-toolbar__actions,
.community-review-tabs,
.community-review-status-tabs,
.community-review-actions,
.report-form__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.community-review-toolbar__actions button,
.community-review-tabs button,
.community-review-status-tabs button,
.community-review-actions button,
.community-review-access button,
.report-form__actions button,
.report-success button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-inset);
  color: var(--fg-body);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.community-review-toolbar__actions button:hover,
.community-review-tabs button:hover,
.community-review-status-tabs button:hover,
.community-review-actions button:hover,
.community-review-access button:hover,
.report-form__actions button:hover,
.report-success button:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.community-review-toolbar__actions button:first-child,
.community-review-tabs button.is-active,
.community-review-status-tabs button.is-active,
.community-review-actions button:last-child,
.community-review-access button,
.report-form__actions button,
.report-success button {
  border-color: var(--accent);
  background: var(--accent);
  color: #061014;
}

.community-review-actions button:first-child {
  border-color: rgba(255, 90, 95, 0.42);
  background: rgba(255, 90, 95, 0.12);
  color: #ff9a9d;
}

.community-review-toolbar__actions button:disabled,
.community-review-actions button:disabled,
.report-form__actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.community-review-tabs,
.community-review-status-tabs {
  margin: 0 0 14px;
}

.community-review-tabs {
  padding: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-inset);
}

.community-review-tabs button {
  min-width: 112px;
  border-color: transparent;
  background: transparent;
}

.community-review-status-tabs button {
  min-height: 34px;
  padding: 0 12px;
}

.community-review-error,
.report-form__error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 90, 95, 0.28);
  border-radius: 12px;
  background: rgba(255, 90, 95, 0.1);
  color: #ff9a9d;
}

.community-case-add-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-weight: 800;
}

.community-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  min-height: 580px;
}

.community-review-list,
.community-review-detail,
.community-case-add-form,
.community-case-add-preview,
.report-form,
.report-success,
.community-review-access {
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-tight);
}

.community-case-add-targets button {
  gap: 8px;
}

.community-case-add-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.community-case-add-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.community-case-add-form__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 150px;
  gap: 12px;
}

.community-case-add-form label,
.community-case-add-upload-row label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 800;
}

.community-case-add-form input,
.community-case-add-form select,
.community-case-add-form textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-inset);
  color: var(--fg-body);
  font: inherit;
  outline: none;
}

.community-case-add-form input,
.community-case-add-form select {
  min-height: 42px;
  padding: 0 12px;
}

.community-case-add-form textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.community-case-add-form input:focus,
.community-case-add-form select:focus,
.community-case-add-form textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.52);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.community-case-add-upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.community-case-add-upload-row > button,
.community-case-add-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-inset);
  color: var(--fg-body);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.community-case-add-upload-row > button:hover,
.community-case-add-actions button:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.community-case-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-case-add-actions button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #061014;
}

.community-case-add-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.community-case-add-preview {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.community-case-add-preview > span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.community-case-add-preview strong {
  color: var(--fg-body);
  font-size: 20px;
  line-height: 1.25;
}

.community-case-add-preview p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.65;
}

.community-case-add-preview img,
.community-case-add-preview__empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-inset);
  object-fit: cover;
}

.community-case-add-preview__empty {
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 800;
}

.community-case-add-preview dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
}

.community-case-add-preview dt {
  font-weight: 800;
}

.community-case-add-preview dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--fg-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-review-list {
  min-height: 0;
  max-height: calc(100svh - 230px);
  padding: 10px;
  overflow: auto;
}

.community-review-list__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "thumb status"
    "thumb title"
    "thumb meta";
  gap: 4px 12px;
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.community-review-layout--reports .community-review-list__item {
  grid-template-columns: 1fr;
  grid-template-areas:
    "status"
    "title"
    "meta";
  min-height: 84px;
}

.community-review-list__item:hover,
.community-review-list__item.is-active {
  border-color: rgba(var(--accent-rgb), 0.32);
  background: var(--bg-hover);
}

.community-review-list__item img,
.community-review-list__thumb {
  grid-area: thumb;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--bg-inset);
  object-fit: cover;
}

.community-review-list__item > span:not(.community-review-list__thumb) {
  grid-area: status;
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.community-review-list__item strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  color: var(--fg-body);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-review-list__item small {
  grid-area: meta;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-review-list__empty,
.community-review-detail--empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--fg-muted);
  text-align: center;
}

.community-review-detail {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  overflow: hidden;
}

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

.community-review-detail__cover {
  position: relative;
  min-height: 100%;
  background: var(--bg-inset);
}

.community-review-detail__cover img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.community-review-detail__cover span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.78);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.community-review-detail__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.community-review-detail__body header span,
.report-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.community-review-detail__body h2 {
  margin: 10px 0 8px;
  color: var(--fg-body);
  font-size: 24px;
}

.community-review-detail__body p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.7;
}

.community-review-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
}

.community-review-meta span,
.community-review-note-preview,
.community-review-report-raw {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-inset);
}

.community-review-note {
  display: grid;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 800;
}

.community-review-note textarea,
.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-inset);
  color: var(--fg-body);
  font: inherit;
  outline: none;
}

.community-review-note textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.community-review-note textarea:focus,
.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.52);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.community-review-report-detail .community-review-detail__body {
  padding: 26px;
}

.community-review-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.community-review-report-raw {
  display: grid;
  gap: 6px;
  color: var(--fg-muted);
}

.community-review-report-raw span {
  color: var(--fg-body);
  font-weight: 800;
}

.community-review-access {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(520px, calc(100% - 40px));
  margin: 80px auto;
  padding: 34px 28px;
  text-align: center;
}

.community-review-access > .anticon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  font-size: 24px;
}

.community-review-access h1,
.report-success h2 {
  margin: 0;
  color: var(--fg-body);
}

.community-review-access p,
.report-success p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.7;
}

.report-page__inner {
  width: min(920px, calc(100% - 48px));
}

.report-hero {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.report-hero__icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 22px;
}

.report-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.report-contact-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-inset);
  font-size: 13px;
}

.report-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.report-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.report-form input,
.report-form select {
  min-height: 42px;
  padding: 0 12px;
}

.report-form textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.report-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px;
  text-align: center;
}

.report-success > .anticon {
  color: var(--accent);
  font-size: 42px;
}

.compliance-page {
  min-height: 100%;
  background: #0d0d0f;
  color: var(--fg-body);
}

.compliance-page__inner {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.compliance-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.compliance-hero__icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 24px;
}

.compliance-hero__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.compliance-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.compliance-hero p,
.compliance-section p,
.compliance-contact span {
  color: var(--fg-muted);
  line-height: 1.7;
}

.compliance-card,
.compliance-contact {
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-tight);
}

.compliance-card {
  display: grid;
  overflow: hidden;
}

.compliance-document {
  gap: 0;
  padding: 30px 34px 34px;
  overflow: visible;
}

.compliance-document__title,
.compliance-document__heading,
.compliance-document__subheading,
.compliance-document__paragraph,
.compliance-document__clause {
  margin: 0;
  max-width: 100%;
  color: var(--fg-body);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compliance-document__title {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.22;
}

.compliance-document__heading {
  margin: 26px 0 12px;
  padding-top: 4px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.35;
}

.compliance-document__subheading {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.5;
}

.compliance-document__paragraph,
.compliance-document__clause {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.85;
}

.compliance-document__paragraph + .compliance-document__paragraph,
.compliance-document__clause + .compliance-document__clause,
.compliance-document__paragraph + .compliance-document__clause,
.compliance-document__clause + .compliance-document__paragraph {
  margin-top: 8px;
}

.compliance-document__clause {
  padding-left: 12px;
}

.compliance-section {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--border-weak);
}

.compliance-section:last-child {
  border-bottom: 0;
}

.compliance-section > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.compliance-section h2,
.compliance-section p {
  margin: 0;
}

.compliance-section h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.compliance-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 16px 18px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .community-review-page__inner,
  .report-page__inner,
  .compliance-page__inner {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

  .community-review-toolbar {
    flex-direction: column;
  }

  .community-review-layout,
  .community-review-detail,
  .community-case-add-layout {
    grid-template-columns: 1fr;
  }

  .community-case-add-form__grid {
    grid-template-columns: 1fr;
  }

  .community-case-add-preview {
    position: static;
  }

  .community-review-list {
    max-height: none;
  }

  .community-review-detail__cover img {
    min-height: 240px;
  }

  .community-review-meta,
  .report-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .community-review-toolbar__actions,
  .community-review-actions,
  .community-case-add-upload-row,
  .community-case-add-actions,
  .report-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-review-toolbar__actions button,
  .community-review-actions button,
  .community-case-add-upload-row > button,
  .community-case-add-actions button,
  .report-form__actions button {
    width: 100%;
  }

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

  .compliance-hero,
  .compliance-section {
    grid-template-columns: 1fr;
  }

  .compliance-document {
    padding: 22px 18px 26px;
  }

  .compliance-document__clause {
    padding-left: 0;
  }
}
