.community-page {
  max-width: 1190px;
  padding-top: clamp(28px, 5vw, 68px);
  padding-bottom: 90px;
}
.community-page h1 {
  margin: 0 0 24px;
  line-height: 1.05;
}
.community-page h2,
.cm-dialog h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  line-height: 1.15;
}
.cm-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.37fr) minmax(0, 1fr);
  gap: clamp(25px, 6vw, 88px);
  align-items: start;
}
.cm-sidebar {
  position: sticky;
  top: calc(var(--app-sticky-height) + 24px);
}
.cm-sidebar nav {
  display: grid;
  gap: 4px;
  margin: 24px 0 18px;
}
.cm-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-weight: 650;
}
.cm-sidebar nav a[aria-current] {
  color: var(--blue);
  background: var(--pale);
}
.cm-sidebar nav a:hover,
.cm-tool:hover,
.cm-comment-actions button:hover,
.cm-reactions :is(button, a):hover {
  background: var(--surface);
}
.cm-feed {
  min-width: 0;
}
.cm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 14px;
  border: 2px solid #4c5260;
  border-radius: 999px;
}
.cm-search:focus-within {
  border-color: var(--blue);
}
.cm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: 36px;
}
.cm-search button,
.cm-text {
  min-height: 40px;
  color: var(--blue);
  font-weight: 650;
  border: 0;
  padding: 7px 10px;
  border-radius: var(--radius);
}
.cm-tool,
.cm-gallery button,
.cm-reactions button,
.cm-comments-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: var(--radius);
  min-height: 42px;
  min-width: 42px;
}
.cm-new,
.cm-search button {
  white-space: nowrap;
}
.cm-empty {
  text-align: center;
  border: 1px dashed #aeb9c9;
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 75px) 18px;
  margin-top: 16px;
}
.cm-empty > svg,
.cm-upload-start > svg {
  height: 36px;
  width: 36px;
  color: var(--blue);
  margin: 0 0 14px;
}
.cm-empty h2,
.cm-upload-start h2 {
  margin: 0 0 8px;
}
.cm-empty p,
.cm-upload-start p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
.cm-card {
  margin: 16px 0 25px;
  overflow: hidden;
  background: white;
}
.cm-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.cm-person > div {
  min-width: 0;
}
.cm-person strong,
.cm-rental span,
.cm-tag,
.cm-tag-choice strong {
  overflow-wrap: anywhere;
}
.cm-person strong {
  font-size: 0.94rem;
  line-height: 1.25;
  display: block;
}
.cm-person small,
.cm-person time,
.cm-location,
.cm-muted,
.cm-tag-count {
  font-size: 0.84rem;
  color: var(--muted);
}
.cm-person small {
  display: block;
}
.cm-person time {
  flex: none;
  margin-left: auto;
}
.cm-avatar {
  flex: none;
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  background: var(--surface);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 750;
}
.cm-gallery,
.cm-preview,
.cm-review-media {
  position: relative;
  display: grid;
  place-items: center;
  background: #151923;
  color: white;
  overflow: hidden;
}
.cm-gallery {
  aspect-ratio: 4 / 3;
}
.cm-gallery :is(img, video),
.cm-preview :is(img, video),
.cm-review-media :is(img, video) {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}
.cm-cover {
  object-fit: cover;
}
.cm-contain {
  object-fit: contain;
}
.cm-gallery-step,
.cm-review-media > span {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #101722db;
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cm-gallery button {
  position: absolute;
  top: 44%;
  background: #111823bf;
  color: white;
  border-radius: 50%;
  min-width: 36px;
  min-height: 36px;
}
.cm-gallery-prev {
  left: 10px;
}
.cm-gallery-next {
  right: 10px;
}
.cm-caption {
  padding: 16px 18px 3px;
}
.cm-caption p,
.cm-comment p,
.cm-report p {
  margin: 0 0 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.52;
}
.cm-location {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cm-rentals {
  display: grid;
  gap: 6px;
  margin: 5px 0 10px;
}
.cm-rental {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 650;
}
.cm-rental img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cm-rental > svg:last-child {
  margin-left: auto;
  color: var(--blue);
}
.cm-reactions {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 650;
}
.cm-reactions > .cm-save {
  margin-left: auto;
}
.cm-reactions [aria-pressed="true"],
.cm-comment-actions [aria-pressed="true"] {
  color: var(--blue);
}
.cm-reactions [aria-pressed="true"] svg {
  fill: var(--pale);
}
.cm-notice {
  font-size: 0.93rem;
  min-height: 0;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.cm-notice:empty {
  display: none;
}
.cm-notice[role="alert"] {
  color: #a12623;
}
.cm-detail,
.cm-compose {
  width: min(760px, 100%);
  margin: 0 auto;
}
.cm-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  min-height: 38px;
  margin: 0 0 14px;
}
.cm-older,
.cm-more {
  margin-top: 8px;
}
.cm-report,
.cm-editor,
#comments {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(15px, 3.2vw, 28px);
  margin-top: 14px;
}
.cm-report blockquote {
  border-left: 3px solid var(--line);
  margin: 12px 0;
  padding-left: 14px;
}
.cm-report-heading,
.cm-compose-head,
.cm-edit-count,
.cm-dialog-head,
.cm-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cm-report-heading time,
#cm-step {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.cm-comment-form,
.cm-form,
.cm-form fieldset,
.cm-field,
.cm-form label {
  display: grid;
  gap: 9px;
}
.cm-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  gap: 17px;
}
.cm-form label,
.cm-field,
.cm-comment-form label {
  font-weight: 600;
  font-size: 0.94rem;
}
.cm-form small {
  font-weight: 400;
  color: var(--muted);
}
.cm-form small {
  display: contents;
}
.cm-form :is(input, select, textarea),
.cm-field input,
.cm-comment-form textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #adb7c4;
  padding: 10px 12px;
  border-radius: var(--radius);
  font: inherit;
  background: white;
}
.cm-form textarea,
.cm-comment-form textarea {
  resize: vertical;
}
textarea:focus-visible,
.cm-picker:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.cm-comment-form {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 18px;
}
.cm-comment-form .cm-controls {
  justify-content: flex-end;
}
.cm-comments .cm-thread {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.cm-comments .cm-thread:last-child {
  border: 0;
}
.cm-comment .cm-person {
  padding: 0;
  gap: 7px;
}
.cm-comment .cm-avatar {
  height: 28px;
  width: 28px;
  font-size: 0.7rem;
}
.cm-comment p {
  margin: 3px 0;
}
.cm-comment-actions,
.cm-controls,
.cm-tags,
.cm-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cm-comment-actions {
  gap: 0;
}
.cm-comment-actions .cm-text {
  font-size: 0.82rem;
}
.cm-replies {
  margin-left: 14px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.cm-replies .cm-comment {
  margin: 8px 0;
}
.cm-highlight {
  background: var(--pale);
}
.cm-dialog {
  color: var(--ink);
  padding: 24px;
  width: min(490px, calc(100vw - 32px));
  max-height: 80dvh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: auto;
}
.cm-dialog::backdrop {
  background: #161a23a6;
}
.cm-dialog h2 {
  margin: 0;
}
.cm-dialog-head {
  margin-bottom: 14px;
}
.cm-dialog-options {
  display: grid;
  gap: 10px;
}
.cm-dialog p {
  line-height: 1.5;
}
.cm-danger {
  background: #a52525;
  border-color: #a52525;
}
.cm-compose-head h1 {
  margin-bottom: 0;
}
.cm-upload-start {
  border: 1px dashed #acb9cc;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 65px) 16px;
  text-align: center;
  background: var(--ground);
}
.cm-upload-start p {
  max-width: 350px;
  margin-inline: auto;
}
.cm-picker {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cm-picker input {
  cursor: pointer;
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
}
.cm-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}
.cm-preview {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
}
.cm-edit-options {
  display: grid;
  gap: 18px;
}
.cm-segment {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px;
  width: fit-content;
}
.cm-segment button {
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.cm-segment [aria-pressed="true"] {
  background: var(--pale);
  color: var(--blue);
  font-weight: 700;
}
.cm-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-check input {
  width: 20px;
  height: 20px;
}
.cm-bottom {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
  justify-content: flex-end;
}
.cm-bottom > .cm-text {
  margin-right: auto;
}
.cm-review-media {
  width: 110px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  margin: 0 0 18px;
}
.cm-review-media > span {
  font-size: 0.64rem;
  right: 4px;
  top: 4px;
}
.cm-field .button-secondary {
  justify-self: start;
}
.cm-tag {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  padding: 7px 10px;
  background: var(--pale);
}
.cm-tag svg {
  width: 13px;
}
.cm-tag-results {
  max-height: 40vh;
  overflow: auto;
  margin-bottom: 14px;
}
.cm-dialog .cm-tags {
  margin-bottom: 14px;
}
.cm-tag-results .cm-tag-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding: 10px 4px;
}
.cm-tag-choice span {
  font-size: 0.8rem;
  color: var(--blue);
  white-space: nowrap;
}
.cm-tag-choice[aria-pressed="true"] {
  background: var(--pale);
}
.cm-editor button:disabled,
.cm-dialog button:disabled,
.cm-comment-form button:disabled {
  opacity: 0.52;
  cursor: default;
}
@media (max-width: 760px) {
  .cm-layout {
    display: block;
  }
  .cm-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .cm-sidebar h1 {
    margin: 0;
  }
  .cm-sidebar nav {
    grid-row: 2;
    grid-column: 1/-1;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin: 0 0 12px;
  }
  .cm-sidebar nav a {
    padding: 9px;
    font-size: 0.88rem;
  }
  .cm-new {
    grid-row: 1;
    grid-column: 2;
  }
  .community-page {
    padding-top: 28px;
  }
  .cm-sidebar nav a svg {
    width: 16px;
  }
}
@media (max-width: 490px) {
  .cm-card {
    margin: 12px 0 18px;
  }
  .cm-person {
    padding: 8px 10px;
    gap: 7px;
  }
  .cm-person time {
    font-size: 0.73rem;
  }
  .cm-person .cm-tool {
    min-width: 32px;
  }
  .cm-caption {
    padding: 12px 11px 0;
  }
  .cm-person > div {
    flex: 1;
  }
  .cm-sidebar h1 {
    font-size: 2.15rem;
  }
  .cm-new {
    padding: 9px 13px;
  }
  .cm-new svg {
    width: 16px;
  }
  .cm-edit-layout {
    display: block;
  }
  .cm-preview {
    max-height: 42dvh;
    aspect-ratio: 1;
    width: 100%;
  }
  .cm-edit-options {
    gap: 9px;
  }
  .cm-edit-options > .cm-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cm-person .cm-avatar {
    height: 30px;
    width: 30px;
  }
  .cm-comment .cm-avatar {
    width: 24px;
    height: 24px;
  }
  .cm-dialog {
    padding: 16px;
  }
  .cm-controls {
    gap: 6px;
  }
}

.cm-paused #main,
.cm-paused .cm-dialog {
  visibility: hidden;
}
#cm-connection {
  max-width: 600px;
  margin: 30px auto;
}

@media (max-width: 370px) {
  .cm-sidebar {
    gap: 8px;
  }
  .cm-sidebar h1 {
    font-size: 1.85rem;
  }
  .cm-new {
    padding-inline: 10px;
  }
}
