.join-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border: 1px solid #d7e1cf;
  border-radius: 20px;
  padding: 32px;
  color: #244b38;
  background: #fffef9;
  box-shadow: 0 24px 100px #163b3040;
}
.join-dialog::backdrop {
  background: #102b2266;
  backdrop-filter: blur(5px);
}
.join-close {
  position: absolute;
  right: 17px;
  top: 13px;
  border: 0;
  background: transparent;
  font-size: 30px;
  padding: 4px 10px;
  color: #53684e;
  cursor: pointer;
}
.join-dialog header > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9b824b;
}
.join-dialog h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 12px 0;
  padding-right: 12px;
}
.join-dialog p {
  font-size: 16px;
  line-height: 1.6;
}
.join-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.join-dialog label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.join-dialog input:not([type="radio"]) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccd8c4;
  border-radius: 9px;
  padding: 12px;
  background: #fff;
  color: #234b38;
  font: inherit;
  box-sizing: border-box;
}
.join-roles {
  border: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.join-roles legend {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.join-roles label {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d7dfce;
  border-radius: 10px;
  cursor: pointer;
}
.join-roles input[type="radio"] {
  appearance: none;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  border: 1.5px solid #91a38c;
  border-radius: 50%;
  background: #fffef9;
}
.join-roles input[type="radio"]:checked {
  border: 6px solid #23553f;
}
.join-roles input[type="radio"]:focus-visible {
  outline: 3px solid #b19a62;
  outline-offset: 4px;
}
.join-roles strong {
  display: block;
  line-height: 1.4;
}
.join-roles label:has(input:checked) {
  background: #edf3e5;
  border-color: #648555;
}
.join-roles small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #65765d;
  line-height: 1.5;
  margin-top: 4px;
}
.join-dialog .join-terms {
  font-size: 13px;
  color: #62735a;
  margin: 20px 0;
}
.join-submit {
  width: 100%;
}
.join-signin {
  text-align: center;
}
.join-verifying {
  text-align: center;
  padding: 20px 0;
}
.join-verifying strong {
  overflow-wrap: anywhere;
}
.join-verifying .actions {
  justify-content: center;
  flex-wrap: wrap;
}
.join-envelope {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #e7efdc;
  color: #416a42;
  font-size: 34px;
}
[data-join-status] {
  background: #edf3e5;
  padding: 14px;
  border-radius: 10px;
  font-weight: 650;
}
.guest-preview-note {
  border: 1px solid #d7e1cc;
  background: #f0f4e8;
  border-radius: 10px;
  padding: 12px 18px;
  margin: 0 0 20px;
  color: #4d6548;
  font-size: 15px;
}
@media (max-width: 600px) {
  .join-dialog {
    padding: 26px 20px;
    border-radius: 16px;
  }
  .join-fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .join-dialog h2 {
    font-size: 28px;
  }
}
