.ywm-page {
  background: var(--yw-canvas, #ecefec);
}

.ywm-page .yw-topbar {
  background: rgba(236, 239, 236, .94);
  backdrop-filter: blur(14px);
}

.ywm-shell {
  min-height: 100dvh;
  margin-left: var(--yw-rail, 88px);
  padding-top: 76px;
  background: var(--yw-canvas, #ecefec);
}

.ywm-stage {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  border-top: 1px solid var(--yw-line, rgba(32, 36, 33, .18));
}

.ywm-story {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  isolation: isolate;
  padding: 6.5vw 6vw 60px;
  border-right: 1px solid var(--yw-line, rgba(32, 36, 33, .18));
  background:
    linear-gradient(135deg, rgba(242, 244, 241, .96) 0 58%, rgba(88, 106, 99, .42) 58%),
    var(--yw-canvas, #ecefec);
}

.ywm-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -7vw;
  bottom: -16vw;
  width: 42vw;
  min-width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(32, 36, 33, .16);
  border-radius: 50%;
  background: rgba(247, 247, 244, .58);
}

.ywm-story-logo {
  width: min(265px, 25vw);
  filter: contrast(1.05);
}

.ywm-story-copy {
  position: relative;
  z-index: 3;
  width: min(620px, 48vw);
  margin-top: 8vh;
}

.ywm-story-copy h1 {
  margin: 0;
  font: 400 clamp(48px, 5.3vw, 82px)/1.04 var(--yw-serif, Georgia, serif);
  letter-spacing: -.055em;
}

.ywm-story-copy p {
  width: min(430px, 38vw);
  margin: 30px 0 0;
  color: #3d4742;
  font: 400 17px/1.8 var(--yw-serif, Georgia, serif);
  text-shadow: 0 1px 16px rgba(242, 244, 241, .96);
}

.ywm-story-image {
  position: absolute;
  right: -2vw;
  bottom: -11vh;
  z-index: 1;
  width: min(34vw, 520px);
  height: 72vh;
  object-fit: cover;
  object-position: 55% 35%;
  opacity: .62;
  mix-blend-mode: multiply;
  filter: grayscale(.3) contrast(1.04);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 84%, transparent 100%);
}

.ywm-story-note {
  position: absolute;
  left: 6vw;
  bottom: 42px;
  z-index: 3;
  margin: 0;
  font-size: 10px;
  letter-spacing: .15em;
}

.ywm-form-side {
  display: grid;
  align-items: center;
  padding: 84px clamp(40px, 6vw, 96px);
  background: rgba(247, 247, 244, .72);
}

.ywm-form-wrap,
.ywm-account {
  width: min(100%, 480px);
  margin: 0 auto;
}

.ywm-kicker {
  margin: 0 0 20px;
  color: var(--yw-teal, #2f4a43);
  font-size: 12px;
  letter-spacing: .14em;
}

.ywm-form-wrap h2,
.ywm-account h2 {
  margin: 0;
  font: 400 clamp(38px, 4vw, 56px)/1.05 var(--yw-serif, Georgia, serif);
  letter-spacing: -.045em;
}

.ywm-form {
  display: grid;
  gap: 26px;
  margin-top: 50px;
}

.ywm-field {
  display: grid;
  gap: 10px;
}

.ywm-field label,
.ywm-label-row {
  font-size: 13px;
}

.ywm-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.ywm-label-row a,
.ywm-switch a,
.ywm-text-link {
  color: var(--yw-teal, #2f4a43);
  border-bottom: 1px solid currentColor;
}

.ywm-field input {
  width: 100%;
  height: 52px;
  padding: 0 2px;
  color: var(--yw-ink, #202421);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(32, 36, 33, .42);
  border-radius: 0;
  outline: none;
  font: 400 17px/1 var(--yw-sans, Arial, sans-serif);
  transition: border-color .2s ease, background .2s ease;
}

.ywm-field input:focus {
  border-color: var(--yw-teal, #2f4a43);
  box-shadow: 0 2px 0 var(--yw-teal, #2f4a43);
}

.ywm-field input:-webkit-autofill,
.ywm-field input:-webkit-autofill:hover,
.ywm-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--yw-ink, #202421);
  -webkit-box-shadow: 0 0 0 1000px #f2f3f0 inset;
  transition: background-color 9999s ease-out;
}

.ywm-field small {
  color: var(--yw-soft, #5f6661);
  font-size: 12px;
}

.ywm-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.ywm-code-button {
  min-width: 112px;
  height: 42px;
  padding: 0 16px;
  color: var(--yw-teal, #2f4a43);
  background: transparent;
  border: 1px solid rgba(47, 74, 67, .48);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.ywm-code-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ywm-code-status.is-error {
  color: #8a3f3b;
}

.ywm-code-status.is-success {
  color: var(--yw-teal, #2f4a43);
}

.ywm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yw-soft, #5f6661);
  font-size: 13px;
}

.ywm-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--yw-deep, #23312d);
}

.ywm-primary,
.ywm-wechat {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--yw-deep, #23312d);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

button.ywm-primary,
a.ywm-primary {
  color: var(--yw-bone, #f2f1ec);
  background: var(--yw-deep, #23312d);
}

.ywm-primary:hover,
.ywm-wechat:hover {
  transform: translateY(-2px);
}

.ywm-primary:active,
.ywm-wechat:active {
  transform: translateY(1px);
}

.ywm-wechat {
  width: 100%;
  color: var(--yw-deep, #23312d);
  background: transparent;
}

.ywm-wechat > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--yw-bone, #f2f1ec);
  background: var(--yw-teal, #2f4a43);
  border-radius: 50%;
  font: 500 12px/1 var(--yw-serif, Georgia, serif);
}

.ywm-separator {
  position: relative;
  margin: 34px 0;
  color: var(--yw-soft, #5f6661);
  text-align: center;
  font-size: 12px;
}

.ywm-separator::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--yw-line, rgba(32, 36, 33, .18));
}

.ywm-separator span {
  position: relative;
  padding: 0 16px;
  background: #f2f3f0;
}

.ywm-switch {
  margin: 28px 0 0;
  color: var(--yw-soft, #5f6661);
  text-align: center;
  font-size: 13px;
}

.ywm-content-gate {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 76px);
  padding: 120px 6vw 80px;
}

.ywm-gate-card {
  width: min(100%, 760px);
  padding: clamp(42px, 7vw, 84px);
  border: 1px solid var(--yw-line, rgba(32, 36, 33, .18));
  background: rgba(247, 247, 244, .78);
}

.ywm-gate-card h1 {
  max-width: 640px;
  margin: 0;
  font: 400 clamp(38px, 5vw, 64px)/1.08 var(--yw-serif, Georgia, serif);
  letter-spacing: -.045em;
}

.ywm-gate-card > p:not(.ywm-kicker) {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--yw-soft, #5f6661);
  font: 400 16px/1.8 var(--yw-serif, Georgia, serif);
}

.ywm-notice {
  width: min(100%, 480px);
  margin: 0 auto 28px;
  padding: 15px 18px;
  border-left: 3px solid var(--yw-teal, #2f4a43);
  background: rgba(88, 106, 99, .12);
  font-size: 13px;
  line-height: 1.65;
}

.ywm-notice-error {
  border-left-color: #8a3f3b;
  background: rgba(138, 63, 59, .09);
}

.ywm-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

.ywm-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
}

.ywm-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--yw-bone, #f2f1ec);
  background: var(--yw-deep, #23312d);
  border-radius: 50%;
  font: 400 30px/1 var(--yw-serif, Georgia, serif);
}

.ywm-identity h2 {
  font-size: 36px;
}

.ywm-identity p {
  margin: 8px 0 0;
  color: var(--yw-soft, #5f6661);
  font-size: 13px;
}

.ywm-account-data {
  margin: 48px 0 0;
  border-top: 1px solid var(--yw-line, rgba(32, 36, 33, .18));
}

.ywm-account-data > div {
  min-height: 66px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--yw-line, rgba(32, 36, 33, .18));
}

.ywm-account-data dt {
  color: var(--yw-soft, #5f6661);
  font-size: 12px;
}

.ywm-account-data dd {
  margin: 0;
  font: 400 17px/1.5 var(--yw-serif, Georgia, serif);
}

.ywm-account-note {
  margin: 32px 0 0;
  color: var(--yw-soft, #5f6661);
  font: 400 15px/1.8 var(--yw-serif, Georgia, serif);
}

.ywm-account-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.ywm-page .yw-footer {
  min-height: 260px;
  padding-top: 72px;
}

.ywm-page .yw-footer h2 {
  font-size: 42px;
}

.ywm-page .yw-footer-figures {
  display: none;
}

@media (max-width: 1024px) {
  .ywm-stage {
    grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
  }

  .ywm-story {
    padding: 7vw 4vw 50px;
  }

  .ywm-story-copy {
    width: auto;
  }

  .ywm-story-copy p {
    width: auto;
  }
}

@media (max-width: 760px) {
  .ywm-shell {
    padding-top: 64px;
  }

  .ywm-stage {
    min-height: calc(100dvh - 64px);
    grid-template-columns: 1fr;
  }

  .ywm-form-side {
    order: -1;
  }

  .ywm-story {
    min-height: 330px;
    padding: 56px 22px 38px;
    border-right: 0;
    border-bottom: 1px solid var(--yw-line, rgba(32, 36, 33, .18));
  }

  .ywm-story-logo {
    width: 160px;
  }

  .ywm-story-copy {
    width: 78%;
    margin-top: 44px;
  }

  .ywm-story-copy h1 {
    font-size: 42px;
  }

  .ywm-story-copy p {
    width: 100%;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  .ywm-story-image {
    right: -62px;
    bottom: -145px;
    width: 260px;
    height: 410px;
  }

  .ywm-story-note {
    display: none;
  }

  .ywm-form-side {
    padding: 54px 22px 72px;
  }

  .ywm-form {
    margin-top: 42px;
  }

  .ywm-account-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ywm-primary,
  .ywm-wechat {
    transition: none;
  }
}
