.modal:not(:has(.studio)):has(.swap-sheet){display:flex;flex-direction:column;overflow:hidden;width:min(680px,100%);height:min(760px,92dvh);max-height:92dvh}
.modal:has(.swap-sheet)>#modalContent{display:flex;flex:1;flex-direction:column;min-height:0;max-height:none;overflow:hidden}
.modal:not(:has(.studio)) .modal-content-pad.swap-sheet{display:flex;flex:1;flex-direction:column;min-height:0;padding:0}
.swap-sheet-header{flex:none;min-width:0;padding:29px 80px 18px 32px;border-bottom:1px solid #e7eee7;background:#fff}
.modal:not(:has(.studio)) .swap-sheet-header>.kicker{display:block;margin:0 0 8px;color:#a65f4c;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.modal:not(:has(.studio)) .swap-sheet-header>h2{margin:0 0 5px;color:#153d33;font:800 clamp(25px,3vw,33px)/1.16 Manrope,system-ui,sans-serif;letter-spacing:-.045em}
.modal:not(:has(.studio)) .swap-sheet-header>.modal-intro{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;color:#617a6c;font-size:13px;line-height:1.4}
.modal:not(:has(.studio)) #swapForm{display:flex;flex:1;flex-direction:column;gap:0;min-height:0;margin:0;overflow:hidden}
.swap-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:18px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:23px 32px 28px;scrollbar-width:thin;scrollbar-color:#c1d2c7 transparent}
.swap-form-fields>.form-field.full,.swap-form-fields>.form-error{grid-column:1/-1}
.swap-form-fields .form-field{min-width:0}
.swap-form-fields .form-field input,.swap-form-fields .form-field select,.swap-form-fields .form-field textarea{min-width:0}
.swap-form-fields .form-field textarea{min-height:104px}
.swap-form-footer{flex:none;padding:14px 32px 22px;border-top:1px solid #e7eee7;background:#fff;box-shadow:0 -10px 30px #173c3108}
.modal:not(:has(.studio)) .swap-form-footer .form-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin:0}
@media(max-width:720px){
  .modal:not(:has(.studio)):has(.swap-sheet){width:100%;height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:22px 22px 0 0}
  .swap-sheet-header{padding:20px 76px 15px 20px}
  .modal:not(:has(.studio)) .swap-sheet-header>h2{font-size:27px}
  .swap-form-fields{grid-template-columns:minmax(0,1fr);gap:17px;padding:20px 20px 26px}
  .swap-form-fields>.form-field.full,.swap-form-fields>.form-error{grid-column:auto}
  .swap-form-footer{padding:12px 20px calc(16px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){.swap-sheet-header{padding-left:16px}.swap-form-fields{padding-left:16px;padding-right:16px}.swap-form-footer{padding-left:16px;padding-right:16px}}
