/* MOA v39 project image upload, AI preview, list and my-page refinements. */
.moa-project-media-section > p {
  line-height: 1.65;
}

.moa-project-media-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 14px;
  border: 1px dashed #cfd1d8;
  border-radius: 18px;
  background: #f4f4f0;
  color: #858681;
}

.moa-project-media-preview.has-image {
  border-style: solid;
  background: #e8e8e2;
}

.moa-project-media-preview img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  background: #ecece7;
}

.moa-project-media-preview.has-image img {
  display: block;
}

.moa-project-media-preview span {
  padding: 20px;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}

.moa-project-media-preview.has-image span {
  display: none;
}

.moa-project-media-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  display: none;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(18, 20, 25, .72);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  backdrop-filter: blur(7px);
}

.moa-project-media-preview.has-image .moa-project-media-badge {
  display: block;
}

.moa-project-media-actions,
.moa-project-ai-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.moa-project-media-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.moa-project-media-actions label,
.moa-project-media-actions button,
.moa-project-ai-actions button,
.moa-project-ai-generate {
  min-height: 43px;
  border: 1px solid #d9dad5;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #22242a;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.moa-project-media-actions button {
  color: #9d3030;
}

.moa-project-ai-box {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #dce3ff;
  border-radius: 15px;
  background: #f6f8ff;
}

.moa-project-ai-box small {
  display: block;
  color: #3659e8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.moa-project-ai-status {
  min-height: 1.55em;
  margin: 6px 0 11px;
  color: #666a75;
  font-size: 9px;
  line-height: 1.55;
}

.moa-project-ai-status.error {
  color: #a02c2c;
}

.moa-project-ai-generate {
  width: 100%;
  border: 0;
  background: #3659e8;
  color: #fff;
}

.moa-project-ai-generate:disabled,
.moa-project-ai-actions button:disabled {
  cursor: wait;
  opacity: .58;
}

.moa-project-ai-actions {
  display: none;
}

.moa-project-ai-actions.show {
  display: grid;
}

.moa-project-ai-actions button:first-child {
  border-color: #3659e8;
  background: #3659e8;
  color: #fff;
}

.moa-project-board-card {
  grid-template-columns: 84px minmax(0, 1fr) auto;
}

.moa-project-board-image {
  width: 84px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 13px;
  background: #ecece7;
}

.moa-project-board-image img,
.moa-inline-project-cover img,
.moa-manager-project-cover img,
.moa-my-project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moa-inline-project-cover {
  overflow: hidden;
  width: calc(100% + 36px);
  aspect-ratio: 16 / 9;
  margin: -18px -18px 16px;
  background: #ecece7;
}

.moa-manager-project-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: -18px -18px 16px;
  border-radius: 18px 18px 0 0;
  background: #ecece7;
}

.my-activity-item.moa-my-project-card {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 10px;
}

.moa-my-project-thumb {
  overflow: hidden;
  width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #ecece7;
}

.moa-my-project-copy {
  min-width: 0;
}

.moa-closed-projects .my-activity-head span {
  color: #777a75;
}

.moa-closed-projects .my-activity-status {
  color: #62645f;
  background: #ecece8;
}

#myOfferList.moa-company-recent-applicants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#myOfferList.moa-company-recent-applicants > .my-empty,
#myOfferList.moa-company-recent-applicants > .moa-recent-applicant-warning {
  grid-column: 1 / -1;
}

.moa-recent-applicant-warning {
  padding: 11px 12px;
  border: 1px solid #efcfcf;
  border-radius: 12px;
  background: #fff4f4;
  color: #9c2929;
  font-size: 9px;
  line-height: 1.55;
}

.moa-recent-applicant-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.moa-recent-applicant-card.is-favorite {
  border-color: #cdd6ff;
  box-shadow: 0 6px 18px rgba(54, 89, 232, .09);
}

.moa-recent-applicant-profile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  text-align: left;
}

.moa-recent-applicant-media {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  place-items: center;
  background: #eef1ff;
}

.moa-recent-applicant-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moa-recent-applicant-initial {
  color: var(--blue);
  font-size: 38px;
  font-weight: 900;
}

.moa-recent-applicant-copy {
  display: block;
  min-width: 0;
  padding: 11px;
}

.moa-recent-applicant-copy small,
.moa-recent-applicant-copy b,
.moa-recent-applicant-copy p {
  display: block;
}

.moa-recent-applicant-copy small {
  overflow: hidden;
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moa-recent-applicant-copy b {
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moa-recent-applicant-copy p {
  min-height: 2.8em;
  margin: 5px 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.moa-recent-applicant-copy .my-activity-status {
  display: inline-flex;
}

.moa-recent-applicant-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(18, 20, 25, .58);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.moa-recent-applicant-favorite.active {
  border-color: #fff;
  background: #fff;
  color: #e53557;
}

.moa-recent-applicant-favorite:disabled {
  opacity: .55;
}

@media (max-width: 520px) {
  .moa-project-board-card {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 12px;
  }

  .moa-project-board-image {
    width: 76px;
  }

  .moa-project-board-card h3 {
    font-size: 13px;
  }

  .my-activity-item.moa-my-project-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .moa-my-project-thumb {
    width: 62px;
  }

  .moa-my-project-card .my-activity-status {
    grid-column: 2;
    justify-self: start;
  }
}
