.yfas-modal {
  width: min(92vw, 31rem);
  padding: 1.75rem;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 30px 90px rgb(23 32 48 / 32%);
  color: var(--ink, #172030);
  max-height: calc(100dvh - 2rem);
}

.yfas-modal::backdrop {
  background: transparent;
  backdrop-filter: blur(9px) grayscale(1);
  -webkit-backdrop-filter: blur(9px) grayscale(1);
}

.yfas-modal .platform-auth-brand {
  display: flex;
  align-items: center;
  margin: 0 2.5rem 1.25rem 0;
  min-width: 0;
}
.platform-auth-brand img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 96px;
  object-fit: contain;
  object-position: left center;
  opacity: 1;
  filter: none;
}

.yfas-modal h2 { margin: .25rem 0 .75rem; font-size: clamp(1.65rem, 4vw, 2rem); line-height: 1.2; }
.yfas-modal p { line-height: 1.5; }
.yfas-modal > .eyebrow { margin: 0 2rem .75rem 0; padding: 0; background: none; border-radius: 0; }
.yfas-modal form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; margin: 1.25rem 0 1rem; min-width: 0; }
.yfas-modal label { display: grid; min-width: 0; gap: .35rem; font-size: .875rem; font-weight: 700; }
.yfas-modal input { width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--line, #cbd2dc); border-radius: .45rem; font: inherit; }
.yfas-modal input:focus-visible { outline: 2px solid var(--green, #315b4b); outline-offset: 2px; }
.yfas-modal output:empty { display: none; }
.yfas-modal output { min-height: 1.4rem; color: #455269; }
.modal-close { position: absolute; top: 1rem; right: 1rem; border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; }
.modal-switch { border-top: 1px solid #e7e9ee; padding-top: 1rem; }
.modal-switch button, .modal-callout button { padding: 0; border: 0; background: transparent; color: #2058c4; font: inherit; font-weight: 800; cursor: pointer; }
.modal-callout { display: grid; gap: .3rem; margin-top: 1.2rem; padding: 1rem; border: 1px solid #e6c44f; border-radius: .8rem; background: #fff9d8; }
.modal-callout strong { font-size: 1.35rem; }.modal-callout button { width: max-content; font-size: 1.8rem; }.modal-callout small { text-transform: uppercase; letter-spacing: .04em; }
.capacity-contact { display: grid; gap: .7rem; margin-top: 1.35rem; }
.capacity-contact a { color: #455269; }
.path-options { display: grid; gap: .8rem; margin-top: 1.3rem; }.path-options button { display: grid; gap: .25rem; padding: 1rem; border: 1px solid #cbd2dc; border-radius: .8rem; background: #fff; text-align: left; cursor: pointer; }.path-options strong { font-size: 1.1rem; }.path-options span { color: #5f6878; }.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }.yfas-modal select { padding: .9rem 1rem; border: 1px solid #cbd2dc; border-radius: .65rem; font: inherit; background: #fff; }
.auth-confirmation-modal .auth-sent { margin: 0; padding: .5rem 0; text-align: center; }
.auth-confirmation-modal .auth-sent > span { display: grid; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: #e7f5ec; color: #21663c; font-size: 1.8rem; font-weight: 800; }
.auth-confirmation-modal .auth-sent small { display: block; margin-top: 1rem; color: #667066; line-height: 1.5; }
.yfas-modal .name-fields { min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 480px) {
  .yfas-modal { width: calc(100% - 2rem); padding: 1.25rem; }
  .yfas-modal .name-fields { grid-template-columns: minmax(0, 1fr); }
}
