.content-review-workspace {
  max-width: none !important;
  padding: 24px 30px 42px !important;
}

.content-review-workspace .management-page-header {
  max-width: none;
  margin-bottom: 18px;
}

.content-review-workspace .management-page-header .lede {
  max-width: 680px;
}

.content-review-panel {
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden;
}

.content-review-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto auto;
  align-items: end;
  gap: 12px;
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid #e6e3f1;
  background: #faf9ff;
}

.content-review-filter-bar > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.content-review-filter-bar label {
  color: #6f6c84;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.content-review-filter-bar select {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #e1ddf0;
  border-radius: 8px;
  background: #fff;
  color: #2a2742;
  font: inherit;
  font-size: .86rem;
}

.content-review-filter-bar .button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.content-review-clear {
  align-self: center;
  margin-top: 22px;
  color: #5a5472;
  font-size: .85rem;
  font-weight: 800;
}

.content-review-flag {
  display: inline-flex;
  margin: 0 0 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fbe6e1;
  color: #9b382c;
  font-size: .68rem;
  font-weight: 850;
}

.content-review-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 16px 22px 13px;
  color: #66637a;
}

.content-review-summary p {
  margin: 0;
}

.content-review-summary strong {
  color: #5b3fe0;
  font-size: 1.14rem;
}

.content-review-summary span {
  color: #7d7a92;
  font-size: .82rem;
}

.content-review-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #e6e3f1;
}

.content-review-table {
  min-width: 1090px;
  background: #ffffff;
}

.content-review-table-head,
.content-review-row {
  display: grid;
  grid-template-columns: 112px minmax(245px, 1.7fr) minmax(95px, .55fr) minmax(190px, 1.2fr) 155px 82px;
  gap: 16px;
  align-items: center;
}

.content-review-table-head {
  padding: 13px 22px 11px;
  background: #f6f3ff;
  color: #71837e;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.content-review-row {
  min-height: 94px;
  padding: 15px 22px;
  border-top: 1px solid #e2e0e9;
}

.content-review-row:hover {
  background: #faf9ff;
}

.content-review-row > div {
  min-width: 0;
}

.content-review-type {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #ccc6e1;
  border-radius: 999px;
  background: #e7e5f2;
  color: #5b3fe0;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-review-name strong,
.content-review-building strong,
.content-review-user span {
  display: block;
  overflow: hidden;
  color: #2a253e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-review-name strong {
  font-size: .94rem;
}

.content-review-name p {
  overflow: hidden;
  margin: 5px 0;
  color: #66637a;
  font-size: .81rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-review-author {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b3fe0;
  font: 750 .79rem/1.25 system-ui, sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.content-review-author:hover {
  text-decoration: underline;
}

.content-review-user {
  min-width: 0;
}

.content-review-user span {
  color: #7d7a92;
  font-size: .79rem;
}

.content-review-date time {
  display: block;
  color: #58556e;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.content-review-building strong {
  color: #453f5b;
  font-size: .84rem;
}

.content-review-building small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #778983;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-review-metric {
  text-align: center;
}

.content-review-metric strong {
  display: block;
  color: #5b3fe0;
  font-size: 1.05rem;
}

.content-review-metric small {
  display: block;
  margin-top: 2px;
  color: #7d7a92;
  font-size: .68rem;
  font-weight: 700;
}

.content-review-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.content-review-action form { margin: 0; }

.content-review-action .secondary-button {
  min-height: 35px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: .77rem;
  white-space: nowrap;
}

.post-remove-button {
  border-color: #dfb7b5;
  color: #a13c38;
}

.post-remove-button:hover {
  border-color: #a13c38;
  background: #fff4f3;
}

.admin-content-modal {
  width: min(760px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #c3bed6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 60px #1b162f30;
}

.admin-content-scroll-body { min-height: 0; overflow-y: auto; }
.admin-content-modal > .dialog-heading,
.admin-content-modal > .admin-content-moderation-actions,
.admin-content-modal > .admin-content-flag-form { flex-shrink: 0; }

.admin-content-modal .dialog-heading {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 42px;
  padding-right: 58px !important;
}

.admin-content-modal .dialog-close {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 44px;
  height: 44px;
}

.admin-content-flag-reasons {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #efd2ca;
  border-radius: 10px;
  background: #fff8f5;
}

.admin-content-flag-reasons > .eyebrow { margin: 0 0 9px; color: #934538; }
.admin-content-flag-reasons article + article { margin-top: 12px; padding-top: 12px; border-top: 1px solid #efdcd6; }
.admin-content-flag-reasons p { margin: 0; color: #3b302d; line-height: 1.45; }
.admin-content-flag-reasons small { display: block; margin-top: 5px; color: #7c6964; font-size: .78rem; }

.admin-content-moderation-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e6e3f1; }
.admin-content-moderation-actions > p { margin: 0 0 12px; color: #625f71; line-height: 1.45; }
.admin-content-moderation-form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-content-moderation-actions .button, .admin-content-moderation-actions .secondary-button { min-height: 40px; cursor: pointer; }

@media (max-width: 980px) {
  .content-review-workspace { padding: 20px !important; }
  .content-review-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-review-filter-bar .button { justify-self: start; }
  .content-review-clear { align-self: end; margin-top: 0; }
}

@media (max-width: 620px) {
  .content-review-workspace { padding: 16px !important; }
  .content-review-filter-bar { grid-template-columns: 1fr 1fr; padding: 18px; }
  .content-review-filter-bar .button,
  .content-review-clear { margin-top: 0; }
  .content-review-clear { align-self: end; }
  .content-review-summary { align-items: start; flex-direction: column; gap: 4px; padding: 14px 18px 11px; }
}

/* Fit the review table inside the admin page at laptop widths: no fixed
   minimum width, a review column wide enough for Open and Remove, and type
   labels that may wrap. Phones keep horizontal scrolling inside the table. */
@media (min-width: 981px) {
  .content-review-table { min-width: 0; }
  .content-review-table-head,
  .content-review-row { grid-template-columns: 118px minmax(200px, 1.6fr) minmax(90px, .55fr) minmax(140px, 1fr) 132px minmax(140px, auto); gap: 14px; }
  .content-review-type { white-space: normal; text-align: center; line-height: 1.2; padding: 3px 8px; }
  .content-review-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
}
.content-review-access { display: inline-flex; margin-top: 4px; padding: 2px 7px; border: 1px solid #efd2ca; border-radius: 999px; background: #fff8f5; color: #934538; font-size: .66rem; font-weight: 800; }
