<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2021q4"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:mdgl="http://www.madrigalpharma.com/20220331"
  xmlns:srt="http://fasb.org/srt/2021-01-31"
  xmlns:us-gaap="http://fasb.org/us-gaap/2021-01-31"
  xmlns:utr="http://www.xbrl.org/2009/utr"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef xlink:href="mdgl-20220331.xsd" xlink:type="simple"/>
    <context id="PAsOn03_31_2022">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="PAsOn05_05_2022">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2022-05-05</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2021-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CashMemberusgaapCashAndCashEquivalentsAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:CashMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CashMemberusgaapCashAndCashEquivalentsAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:CashMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AwardTypeAxis">us-gaap:EmployeeStockOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:AgencySecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="mdgl:AgreementAxis">mdgl:TwoThousandTwentyOneSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CashMemberusgaapCashAndCashEquivalentsAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:CashMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CashMemberusgaapCashAndCashEquivalentsAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:CashMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:CashAndCashEquivalentsAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:CarryingReportedAmountFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementBasisAxis">us-gaap:EstimateOfFairValueFairValueDisclosureMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="mdgl:AgreementAxis">mdgl:TwoThousandTwentyOneSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">us-gaap:EmployeeStockOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_PreferredStockMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">us-gaap:PreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AwardTypeAxis">us-gaap:EmployeeStockOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_RestrictedStockMemberusgaapAwardTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AwardTypeAxis">us-gaap:RestrictedStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:ResearchAndDevelopmentExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:GeneralAndAdministrativeExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_MaximumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MinimumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MaximumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_AgencySecuritiesMemberusgaapFinancialInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:AgencySecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_CowenCo.LlcMembersrtCounterpartyNameAxis_MaximumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mdgl:CowenCo.LlcMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AccumulatedOtherComprehensiveIncomeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2022To03_31_2022_RetainedEarningsMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">us-gaap:EmployeeStockOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_PreferredStockMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis">us-gaap:PreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AwardTypeAxis">us-gaap:EmployeeStockOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_RestrictedStockMemberusgaapAwardTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AwardTypeAxis">us-gaap:RestrictedStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:ResearchAndDevelopmentExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:GeneralAndAdministrativeExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AccumulatedOtherComprehensiveIncomeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To03_31_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-03-31</endDate>
        </period>
    </context>
    <context id="PAsOn06_30_2017_ConvertibleSeriesPreferredStockMemberusgaapStatementClassOfStockAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">mdgl:ConvertibleSeriesPreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-06-30</instant>
        </period>
    </context>
    <context id="P11_01_2020To11_30_2020_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_CowenCo.LlcMembersrtCounterpartyNameAxis_MaximumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mdgl:CowenCo.LlcMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-11-01</startDate>
            <endDate>2020-11-30</endDate>
        </period>
    </context>
    <context id="PAsOn12_31_2019_HoffmanLaRocheMembersrtCounterpartyNameAxis_ResearchDevelopmentAndCommercializationAgreementMemberusgaapTypeOfArrangementAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mdgl:HoffmanLaRocheMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:ResearchDevelopmentAndCommercializationAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-12-31</instant>
        </period>
    </context>
    <context id="P01_01_2021To12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MinimumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="P01_01_2021To12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MaximumMembersrtRangeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">mdgl:CorporateDebtSecurities3Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="P06_01_2017To06_30_2017_ConvertibleSeriesPreferredStockMemberusgaapStatementClassOfStockAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">mdgl:ConvertibleSeriesPreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-06-01</startDate>
            <endDate>2017-06-30</endDate>
        </period>
    </context>
    <context id="PAsOn05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:DebtInstrumentAxis">mdgl:TermLoanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-05-31</instant>
        </period>
    </context>
    <context id="PAsOn05_31_2022_DrawnInTwoSeparateTranchesUponAchievementofResmetiromClinicalAndRegulatoryMilestoneSMemberMDGLDebtDescriptionAxis_TermLoanMemberusgaapDebtInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:DebtInstrumentAxis">mdgl:TermLoanMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="mdgl:DebtDescriptionAxis">mdgl:DrawnInTwoSeparateTranchesUponAchievementofResmetiromClinicalAndRegulatoryMilestoneSMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-05-31</instant>
        </period>
    </context>
    <context id="PAsOn05_31_2022_DrawnToSupportOperationalActivitiesMemberMDGLDebtDescriptionAxis_TermLoanMemberusgaapDebtInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:DebtInstrumentAxis">mdgl:TermLoanMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="mdgl:DebtDescriptionAxis">mdgl:DrawnToSupportOperationalActivitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-05-31</instant>
        </period>
    </context>
    <context id="P05_01_2022To05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:DebtInstrumentAxis">mdgl:TermLoanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-05-01</startDate>
            <endDate>2022-05-31</endDate>
        </period>
    </context>
    <context id="PAsOn12_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AccumulatedOtherComprehensiveIncomeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:AwardTypeAxis">us-gaap:EmployeeStockOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2021_PreferredStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:PreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-12-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_CommonStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AccumulatedOtherComprehensiveIncomeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_RetainedEarningsMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2022_PreferredStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:PreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AccumulatedOtherComprehensiveIncomeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_CommonStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_PreferredStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:PreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AccumulatedOtherComprehensiveIncomeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2021_PreferredStockMemberusgaapStatementEquityComponentsAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:PreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-03-31</instant>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <unit id="Unit_pure">
        <measure>pure</measure>
    </unit>
    <unit id="Unit_Year">
        <measure>utr:Year</measure>
    </unit>
    <unit id="Unit_USD_per_Share">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="Unit_Vote">
        <measure>mdgl:Vote</measure>
    </unit>
    <dei:AmendmentFlag contextRef="P01_01_2022To03_31_2022">false</dei:AmendmentFlag>
    <dei:DocumentFiscalPeriodFocus contextRef="P01_01_2022To03_31_2022">Q1</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey contextRef="P01_01_2022To03_31_2022">0001157601</dei:EntityCentralIndexKey>
    <dei:CurrentFiscalYearEndDate contextRef="P01_01_2022To03_31_2022">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:EntityIncorporationStateCountryCode contextRef="P01_01_2022To03_31_2022" id="hidden47427214">DE</dei:EntityIncorporationStateCountryCode>
    <dei:DocumentType contextRef="P01_01_2022To03_31_2022">10-Q</dei:DocumentType>
    <dei:DocumentQuarterlyReport contextRef="P01_01_2022To03_31_2022">true</dei:DocumentQuarterlyReport>
    <dei:DocumentPeriodEndDate contextRef="P01_01_2022To03_31_2022">2022-03-31</dei:DocumentPeriodEndDate>
    <dei:DocumentFiscalYearFocus contextRef="P01_01_2022To03_31_2022">2022</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport contextRef="P01_01_2022To03_31_2022">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="P01_01_2022To03_31_2022">001-33277</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="P01_01_2022To03_31_2022">MADRIGAL PHARMACEUTICALS, INC.</dei:EntityRegistrantName>
    <dei:EntityTaxIdentificationNumber contextRef="P01_01_2022To03_31_2022">04-3508648</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="P01_01_2022To03_31_2022">Four Tower Bridge</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="P01_01_2022To03_31_2022">200 Barr Harbor Drive, Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="P01_01_2022To03_31_2022">West Conshohocken</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="P01_01_2022To03_31_2022">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="P01_01_2022To03_31_2022">19428</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P01_01_2022To03_31_2022">267</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P01_01_2022To03_31_2022">824-2827</dei:LocalPhoneNumber>
    <dei:Security12bTitle contextRef="P01_01_2022To03_31_2022">Common Stock, $0.0001 Par Value Per Share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P01_01_2022To03_31_2022">MDGL</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P01_01_2022To03_31_2022">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityCurrentReportingStatus contextRef="P01_01_2022To03_31_2022">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="P01_01_2022To03_31_2022">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory contextRef="P01_01_2022To03_31_2022">Large Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="P01_01_2022To03_31_2022">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="P01_01_2022To03_31_2022">false</dei:EntityEmergingGrowthCompany>
    <dei:EntityShellCompany contextRef="P01_01_2022To03_31_2022">false</dei:EntityShellCompany>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="PAsOn05_05_2022"
      decimals="INF"
      unitRef="Unit_shares">17103395</dei:EntityCommonStockSharesOutstanding>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">42282000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">36269000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">177671000</us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent>
    <us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">234077000</us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent>
    <us-gaap:PrepaidExpenseAndOtherAssetsCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">1217000</us-gaap:PrepaidExpenseAndOtherAssetsCurrent>
    <us-gaap:PrepaidExpenseAndOtherAssetsCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">1338000</us-gaap:PrepaidExpenseAndOtherAssetsCurrent>
    <us-gaap:AssetsCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">221170000</us-gaap:AssetsCurrent>
    <us-gaap:AssetsCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">271684000</us-gaap:AssetsCurrent>
    <us-gaap:PropertyPlantAndEquipmentNet
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">796000</us-gaap:PropertyPlantAndEquipmentNet>
    <us-gaap:PropertyPlantAndEquipmentNet
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">851000</us-gaap:PropertyPlantAndEquipmentNet>
    <us-gaap:OperatingLeaseRightOfUseAsset
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">696000</us-gaap:OperatingLeaseRightOfUseAsset>
    <us-gaap:OperatingLeaseRightOfUseAsset
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">797000</us-gaap:OperatingLeaseRightOfUseAsset>
    <us-gaap:Assets
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">222662000</us-gaap:Assets>
    <us-gaap:Assets
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">273332000</us-gaap:Assets>
    <us-gaap:AccountsPayableCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">22780000</us-gaap:AccountsPayableCurrent>
    <us-gaap:AccountsPayableCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">21380000</us-gaap:AccountsPayableCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">53442000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">55048000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:OperatingLeaseLiabilityCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">413000</us-gaap:OperatingLeaseLiabilityCurrent>
    <us-gaap:OperatingLeaseLiabilityCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">410000</us-gaap:OperatingLeaseLiabilityCurrent>
    <us-gaap:LiabilitiesCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">76635000</us-gaap:LiabilitiesCurrent>
    <us-gaap:LiabilitiesCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">76838000</us-gaap:LiabilitiesCurrent>
    <us-gaap:OperatingLeaseLiabilityNoncurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">283000</us-gaap:OperatingLeaseLiabilityNoncurrent>
    <us-gaap:OperatingLeaseLiabilityNoncurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">387000</us-gaap:OperatingLeaseLiabilityNoncurrent>
    <us-gaap:LiabilitiesNoncurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">283000</us-gaap:LiabilitiesNoncurrent>
    <us-gaap:LiabilitiesNoncurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">387000</us-gaap:LiabilitiesNoncurrent>
    <us-gaap:Liabilities
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">76918000</us-gaap:Liabilities>
    <us-gaap:Liabilities
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">77225000</us-gaap:Liabilities>
    <us-gaap:PreferredStockParOrStatedValuePerShare
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:PreferredStockParOrStatedValuePerShare>
    <us-gaap:PreferredStockParOrStatedValuePerShare
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:PreferredStockParOrStatedValuePerShare>
    <us-gaap:PreferredStockSharesAuthorized
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_shares">5000000</us-gaap:PreferredStockSharesAuthorized>
    <us-gaap:PreferredStockSharesAuthorized
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_shares">5000000</us-gaap:PreferredStockSharesAuthorized>
    <us-gaap:PreferredStockSharesIssued
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesIssued>
    <us-gaap:PreferredStockSharesIssued
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesIssued>
    <us-gaap:PreferredStockSharesOutstanding
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesOutstanding>
    <us-gaap:PreferredStockSharesOutstanding
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesOutstanding>
    <us-gaap:PreferredStockValue
      contextRef="PAsOn03_31_2022"
      unitRef="Unit_USD"
      xsi:nil="true"/>
    <us-gaap:CommonStockParOrStatedValuePerShare
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:CommonStockParOrStatedValuePerShare>
    <us-gaap:CommonStockParOrStatedValuePerShare
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:CommonStockParOrStatedValuePerShare>
    <us-gaap:CommonStockSharesAuthorized
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_shares">200000000</us-gaap:CommonStockSharesAuthorized>
    <us-gaap:CommonStockSharesAuthorized
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_shares">200000000</us-gaap:CommonStockSharesAuthorized>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_shares">17103395</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesOutstanding
      contextRef="PAsOn03_31_2022"
      decimals="INF"
      unitRef="Unit_shares">17103395</us-gaap:CommonStockSharesOutstanding>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_shares">17103395</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesOutstanding
      contextRef="PAsOn12_31_2021"
      decimals="INF"
      unitRef="Unit_shares">17103395</us-gaap:CommonStockSharesOutstanding>
    <us-gaap:CommonStockValue
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:CommonStockValue>
    <us-gaap:CommonStockValue
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:CommonStockValue>
    <us-gaap:AdditionalPaidInCapitalCommonStock
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">870972000</us-gaap:AdditionalPaidInCapitalCommonStock>
    <us-gaap:AdditionalPaidInCapitalCommonStock
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">863495000</us-gaap:AdditionalPaidInCapitalCommonStock>
    <us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-402000</us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax>
    <us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-80000</us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-724828000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-667310000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">145744000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">196107000</us-gaap:StockholdersEquity>
    <us-gaap:LiabilitiesAndStockholdersEquity
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">222662000</us-gaap:LiabilitiesAndStockholdersEquity>
    <us-gaap:LiabilitiesAndStockholdersEquity
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">273332000</us-gaap:LiabilitiesAndStockholdersEquity>
    <us-gaap:Revenues
      contextRef="P01_01_2022To03_31_2022"
      unitRef="Unit_USD"
      xsi:nil="true"/>
    <us-gaap:Revenues
      contextRef="P01_01_2021To03_31_2021"
      unitRef="Unit_USD"
      xsi:nil="true"/>
    <us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">47929000</us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost>
    <us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">45770000</us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">9658000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">7209000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:OperatingExpenses
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">57587000</us-gaap:OperatingExpenses>
    <us-gaap:OperatingExpenses
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">52979000</us-gaap:OperatingExpenses>
    <us-gaap:OperatingIncomeLoss
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-57587000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-52979000</us-gaap:OperatingIncomeLoss>
    <us-gaap:InterestIncomeOther
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">69000</us-gaap:InterestIncomeOther>
    <us-gaap:InterestIncomeOther
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">160000</us-gaap:InterestIncomeOther>
    <us-gaap:OtherIncome
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">273000</us-gaap:OtherIncome>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-57518000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-52546000</us-gaap:NetIncomeLoss>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="P01_01_2022To03_31_2022"
      decimals="2"
      unitRef="Unit_USD_per_Share">-3.36</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="P01_01_2021To03_31_2021"
      decimals="2"
      unitRef="Unit_USD_per_Share">-3.32</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="P01_01_2022To03_31_2022"
      decimals="0"
      unitRef="Unit_shares">17103395</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="P01_01_2021To03_31_2021"
      decimals="0"
      unitRef="Unit_shares">15840401</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-57518000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-52546000</us-gaap:NetIncomeLoss>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-322000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-61000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:ComprehensiveIncomeNetOfTax
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-57840000</us-gaap:ComprehensiveIncomeNetOfTax>
    <us-gaap:ComprehensiveIncomeNetOfTax
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-52607000</us-gaap:ComprehensiveIncomeNetOfTax>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2021_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">17103395</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">863495000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-80000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-667310000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">196107000</us-gaap:StockholdersEquity>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P01_01_2022To03_31_2022_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">7477000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">7477000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2022To03_31_2022_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-322000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-322000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2022To03_31_2022_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-57518000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-57518000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2022_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2022_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">17103395</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2022_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2022_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">870972000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2022_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-402000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2022_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-724828000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">145744000</us-gaap:StockholdersEquity>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2020_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">15508146</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">665385000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">47000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-425464000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">239970000</us-gaap:StockholdersEquity>
    <mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties
      contextRef="P01_01_2021To03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">550803</mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P01_01_2021To03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">0</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P01_01_2021To03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">66616000</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">66616000</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodSharesRelatedPartiesAndExerciseOfCommonStockOptions
      contextRef="P01_01_2021To03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">4250</mdgl:StockIssuedDuringPeriodSharesRelatedPartiesAndExerciseOfCommonStockOptions>
    <mdgl:StockIssuedDuringPeriodValueRelatedPartiesAndExerciseOfCommonStockOptions
      contextRef="P01_01_2021To03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">478000</mdgl:StockIssuedDuringPeriodValueRelatedPartiesAndExerciseOfCommonStockOptions>
    <mdgl:StockIssuedDuringPeriodValueRelatedPartiesAndExerciseOfCommonStockOptions
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">478000</mdgl:StockIssuedDuringPeriodValueRelatedPartiesAndExerciseOfCommonStockOptions>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P01_01_2021To03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">6096000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">6096000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2021To03_31_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-61000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-61000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To03_31_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-52546000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-52546000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2021_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">16063199</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">738575000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-14000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-478010000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">260553000</us-gaap:StockholdersEquity>
    <us-gaap:ProfitLoss
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-57518000</us-gaap:ProfitLoss>
    <us-gaap:ProfitLoss
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-52546000</us-gaap:ProfitLoss>
    <us-gaap:ShareBasedCompensation
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">7477000</us-gaap:ShareBasedCompensation>
    <us-gaap:ShareBasedCompensation
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">6096000</us-gaap:ShareBasedCompensation>
    <us-gaap:DepreciationDepletionAndAmortization
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">107000</us-gaap:DepreciationDepletionAndAmortization>
    <us-gaap:DepreciationDepletionAndAmortization
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">113000</us-gaap:DepreciationDepletionAndAmortization>
    <us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-121000</us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets>
    <us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-191000</us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets>
    <us-gaap:IncreaseDecreaseInAccountsPayableTrade
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">1400000</us-gaap:IncreaseDecreaseInAccountsPayableTrade>
    <us-gaap:IncreaseDecreaseInAccountsPayableTrade
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">3379000</us-gaap:IncreaseDecreaseInAccountsPayableTrade>
    <us-gaap:IncreaseDecreaseInAccruedLiabilities
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-1606000</us-gaap:IncreaseDecreaseInAccruedLiabilities>
    <us-gaap:IncreaseDecreaseInAccruedLiabilities
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-1147000</us-gaap:IncreaseDecreaseInAccruedLiabilities>
    <mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">106000</mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived>
    <mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">485000</mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived>
    <us-gaap:NetCashProvidedByUsedInOperatingActivities
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">-49913000</us-gaap:NetCashProvidedByUsedInOperatingActivities>
    <us-gaap:NetCashProvidedByUsedInOperatingActivities
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-43429000</us-gaap:NetCashProvidedByUsedInOperatingActivities>
    <us-gaap:PaymentsToAcquireMarketableSecurities
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">37567000</us-gaap:PaymentsToAcquireMarketableSecurities>
    <us-gaap:PaymentsToAcquireMarketableSecurities
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">93722000</us-gaap:PaymentsToAcquireMarketableSecurities>
    <us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">93545000</us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities>
    <us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">60302000</us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities>
    <us-gaap:PaymentsToAcquirePropertyPlantAndEquipment
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">52000</us-gaap:PaymentsToAcquirePropertyPlantAndEquipment>
    <us-gaap:PaymentsToAcquirePropertyPlantAndEquipment
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">44000</us-gaap:PaymentsToAcquirePropertyPlantAndEquipment>
    <us-gaap:NetCashProvidedByUsedInInvestingActivities
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">55926000</us-gaap:NetCashProvidedByUsedInInvestingActivities>
    <us-gaap:NetCashProvidedByUsedInInvestingActivities
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-33464000</us-gaap:NetCashProvidedByUsedInInvestingActivities>
    <mdgl:ProceedsFromIssuanceOrSaleOfEquityNet
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">0</mdgl:ProceedsFromIssuanceOrSaleOfEquityNet>
    <mdgl:ProceedsFromIssuanceOrSaleOfEquityNet
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">66616000</mdgl:ProceedsFromIssuanceOrSaleOfEquityNet>
    <mdgl:ProceedsFromTheSaleOfRelatedPartyStockAndExerciseOfCommonStockOptionsNetOfTransactionCosts
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">0</mdgl:ProceedsFromTheSaleOfRelatedPartyStockAndExerciseOfCommonStockOptionsNetOfTransactionCosts>
    <mdgl:ProceedsFromTheSaleOfRelatedPartyStockAndExerciseOfCommonStockOptionsNetOfTransactionCosts
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">478000</mdgl:ProceedsFromTheSaleOfRelatedPartyStockAndExerciseOfCommonStockOptionsNetOfTransactionCosts>
    <us-gaap:NetCashProvidedByUsedInFinancingActivities
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:NetCashProvidedByUsedInFinancingActivities>
    <us-gaap:NetCashProvidedByUsedInFinancingActivities
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">67094000</us-gaap:NetCashProvidedByUsedInFinancingActivities>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">6013000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">-9799000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">36269000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">54004000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">42282000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">44205000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;1. Organization, Business, and Basis of Presentation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Organization and Business &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Madrigal Pharmaceuticals, Inc. (the &#x201c;Company&#x201d; or &#x201c;Madrigal&#x201d;) is a clinical-stage pharmaceutical company developing novel, high-quality, small-molecule drugs addressing major unmet needs in cardiovascular, metabolic, and liver diseases. The Company&#x2019;s lead compound, resmetirom, is being advanced for &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;non-alcoholic&lt;/div&gt; steatohepatitis (&#x201c;NASH&#x201d;), a liver disease that commonly affects people with metabolic diseases such as obesity and diabetes, and &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;non-alcoholic&lt;/div&gt; fatty liver disease (&#x201c;NAFLD&#x201d;). The Company initiated two Phase 3 studies of resmetirom in NASH in 2019 that are ongoing. The Company announced results from the Phase 3 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;MAESTRO-NAFLD-1&lt;/div&gt; safety study of resmetirom in 2022. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Basis of Presentation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Certain information and footnote disclosures normally included in financial statements prepared in accordance with accounting principles generally accepted in the United States (&#x201c;GAAP&#x201d;) have been condensed or omitted. Accordingly, the unaudited condensed consolidated financial statements do not include all information and footnotes required by GAAP for complete annual financial statements. However, we believe that the disclosures included in these financial statements are adequate to make the information presented not misleading. The unaudited condensed consolidated financial statements, in the opinion of management, reflect all adjustments, which include normal recurring adjustments, necessary for a fair statement of such interim results. The interim results are not necessarily indicative of the results that we will have for the full year ending December&#160;31, 2022 or any subsequent period. These unaudited condensed consolidated financial statements should be read in conjunction with the audited consolidated financial statements and the notes to those statements for the year ended December&#160;31, 2021. &lt;/div&gt;</us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock>
    <us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2. Summary of Significant Accounting Policies &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Principle of Consolidation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The consolidated financial statements include the financial statements of the Company and its wholly owned subsidiaries. All significant intercompany balances have been eliminated in consolidation. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Use of Estimates &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect certain reported amounts of assets and liabilities, and the reported amounts of revenues and expenses during the reporting periods. The Company bases its estimates on historical experience and various other assumptions that management believes to be reasonable under the circumstances. Changes in estimates are recorded in the period in which they become known. Actual results could differ from those estimates. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Cash and Cash Equivalents &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company considers all highly liquid investments with original maturities of three months or less at the date of purchase to be cash equivalents. The Company maintains its cash in bank accounts, the balance of which, at times, exceeds Federal Deposit Insurance Corporation insured limits. &lt;/div&gt;  &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;The primary objective of the Company&#x2019;s investment activities is to preserve its capital for the purpose of funding operations and the Company does not enter into investments for trading or speculative purposes. The Company&#x2019;s cash is deposited in highly rated financial institutions in the United States. The Company invests in money market funds and high-grade, commercial paper and corporate bonds, which management believes are subject to minimal credit and market risk. &lt;/div&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;   &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Marketable Securities &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Marketable securities consist of investments in high-grade corporate obligations and government and government agency obligations that are classified as &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale.&lt;/div&gt;&lt;/div&gt; Since these securities are available to fund current operations, they are classified as current assets on the consolidated balance sheets. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company adjusts the cost of &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale&lt;/div&gt;&lt;/div&gt; debt securities for amortization of premiums and accretion of discounts to maturity. The Company includes such amortization and accretion as a component of interest income. Realized gains and losses and declines in value, if any, that the Company judges to be other-than-temporary on &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale&lt;/div&gt;&lt;/div&gt; securities are reported as a component of interest income. To determine whether an other-than- temporary impairment exists, the Company considers whether it intends to sell the debt security and, if the Company does not intend to sell the debt security, it considers available evidence to assess whether it is more likely than not that it will be required to sell the security before the recovery of its amortized cost basis. During the three months ended March&#160;31, 2022 and 2021, the Company determined it did not have any securities that were other-than- temporarily impaired. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Marketable securities are stated at fair value, including accrued interest, with their unrealized gains and losses included as a component of accumulated other comprehensive income or loss, which is a separate component of stockholders&#x2019; equity. The fair value of these securities is based on quoted prices and observable inputs on a recurring basis. Realized gains and losses are determined on the specific identification method. During the three months ended March&#160;31, 2022 and 2021, the Company did not have any realized gains or losses on marketable securities. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair Value of Financial Instruments &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The carrying amounts of the Company&#x2019;s financial instruments, which include cash equivalents and marketable securities, approximate their fair values. The fair value of the Company&#x2019;s financial instruments reflects the amounts that would be received upon sale of an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. The fair value hierarchy has the following three levels: &lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman"&gt;Level 1&#x2014;quoted prices in active markets for identical assets and liabilities. &lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman"&gt;Level 2&#x2014;observable inputs other than Level&#160;1 inputs. Examples of Level&#160;2 inputs include quoted prices in active markets for similar assets or liabilities and quoted prices for identical assets or liabilities in markets that are not active. &lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman"&gt;Level 3&#x2014;unobservable inputs that reflect the Company&#x2019;s own assumptions about the assumptions market participants would use in pricing the asset or liability. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Financial assets and liabilities are classified in their entirety within the fair value hierarchy based on the lowest level of input that is significant to the fair value measurement. The Company measures the fair value of its marketable securities by taking into consideration valuations obtained from third- party pricing sources. The pricing services utilize industry standard valuation models, including both income and market based approaches, for which all significant inputs are observable, either directly or indirectly, to estimate fair value. These inputs include reported trades of and broker-dealer quotes on the same or similar securities, issuer credit spreads, benchmark securities and other observable inputs. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;As of March&#160;31, 2022, the Company&#x2019;s financial assets valued based on Level&#160;1 inputs consisted of cash and cash equivalents in a money market fund, its financial assets valued based on Level&#160;2 inputs consisted of high-grade corporate and government agency bonds and commercial paper, and it had no financial assets valued based on Level&#160;3 inputs. During the three months ended March&#160;31, 2022 and 2021, the Company did not have any transfers of financial assets between Levels 1 and 2. As of March&#160;31, 2022 and December&#160;31, 2021, the Company did not have any financial liabilities that were recorded at fair value on a recurring basis on the balance sheet. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Research and Development Costs &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Research and development costs are expensed as incurred. Research and development costs are comprised of costs incurred in performing research and development activities, including internal costs (including stock-based compensation), costs for consultants, milestone payments under licensing agreements, and other costs associated with the Company&#x2019;s preclinical and clinical programs. In particular, the Company has conducted safety studies in animals, optimized and implemented the manufacturing of our drug, and &lt;/div&gt;  &lt;div style="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"/&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; text-indent: 0px;"/&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; text-indent: 0px;"/&gt;  &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;conducted Phase &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;1-3&lt;/div&gt; clinical trials, all of which are considered research and development expenditures. Management uses significant judgment in estimating the amount of research and development costs recognized in each reporting period. Management analyzes and estimates the progress of its preclinical studies and clinical trials, completion of milestone events per underlying agreements, invoices received and contracted costs when estimating the research and development costs to accrue in each reporting period. Actual results could differ from the Company&#x2019;s estimates.&lt;/div&gt;&lt;/div&gt; &lt;/div&gt;   &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Patents &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Costs to secure and defend patents are expensed as incurred and are classified as general and administrative expense in the Company&#x2019;s consolidated statements of operations. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Stock-Based Compensation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company recognizes stock-based compensation expense based on the grant date fair value of stock options granted to employees, officers, and directors. The Company uses the Black-Scholes option pricing model to determine the grant date fair value as management believes it is the most appropriate valuation method for its option grants. The Black-Scholes model requires inputs for risk-free interest rate, dividend yield, volatility and expected lives of the options. The expected lives for options granted represent the period of time that options granted are expected to be outstanding. The Company uses the simplified method for determining the expected lives of options. Expected volatility is based upon an industry estimate or blended rate including the Company&#x2019;s historical trading activity. The risk-free rate for periods within the expected life of the option is based on the U.S. Treasury yield curve in effect at the time of the grant. The Company estimates the forfeiture rate based on historical data. This analysis is &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;re-evaluated&lt;/div&gt; at least annually and the forfeiture rate is adjusted as necessary. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Certain of the employee stock options granted by the Company are structured to qualify as incentive stock options (&#x201c;ISOs&#x201d;). Under current tax regulations, the Company does not receive a tax deduction for the issuance, exercise or disposition of ISOs if the employee meets certain holding requirements. If the employee does not meet the holding requirements, a disqualifying disposition occurs, at which time the Company may receive a tax deduction. The Company does not record tax benefits related to ISOs unless and until a disqualifying disposition is reported. In the event of a disqualifying disposition, the entire tax benefit is recorded as a reduction of income tax expense. The Company has not recognized any income tax benefit for its share-based compensation arrangements due to the fact that the Company does not believe it is more likely than not it will realize the related deferred tax assets. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Income Taxes &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company uses the asset and liability method to account for income taxes. Deferred tax assets and liabilities are determined based on the expected future tax consequences of temporary differences between the Company&#x2019;s financial statement carrying amounts and the tax basis of assets and liabilities using enacted tax rates expected to be in effect in the years in which the differences are expected to reverse. The Company currently maintains a 100% valuation allowance on its deferred tax assets. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Comprehensive Loss &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Comprehensive loss is defined as the change in equity of a business enterprise during a period from transactions and other events and circumstances from &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;non-owner&lt;/div&gt; sources. Changes in unrealized gains and losses on marketable securities represent the only difference between the Company&#x2019;s net loss and comprehensive loss. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Basic and Diluted Loss Per Common Share &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Basic net loss per share is computed using the weighted average number of common shares outstanding during the period, excluding any restricted stock that has been issued but is not yet vested. Diluted net loss per common share is computed using the weighted average number of common shares outstanding and the weighted average dilutive potential common shares outstanding using the treasury stock method. However, for the three months ended March&#160;21, 2022 and 2021, diluted net loss per share is the same as basic net loss per share because the inclusion of weighted average shares of unvested restricted common stock, common stock issuable upon the exercise of stock options, and common stock issuable upon the conversion of preferred stock would be anti-dilutive. &lt;/div&gt; &lt;div style="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The following table summarizes outstanding securities not included in the computation of diluted net loss per common share, as their inclusion would be anti-dilutive: &lt;/div&gt; &lt;div style="font-size:12pt;margin-top:0pt;margin-bottom:0pt"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:8pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:72%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Three&#160;Months&#160;Ended&#160;March&#160;31,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2022&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2021&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Common stock options&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,878,399&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,193,915&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Preferred stock&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;  &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Recent Accounting Pronouncements &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;None &lt;/div&gt;</us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock>
    <us-gaap:ConsolidationPolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Principle of Consolidation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The consolidated financial statements include the financial statements of the Company and its wholly owned subsidiaries. All significant intercompany balances have been eliminated in consolidation. &lt;/div&gt;</us-gaap:ConsolidationPolicyTextBlock>
    <us-gaap:UseOfEstimates contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Use of Estimates &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect certain reported amounts of assets and liabilities, and the reported amounts of revenues and expenses during the reporting periods. The Company bases its estimates on historical experience and various other assumptions that management believes to be reasonable under the circumstances. Changes in estimates are recorded in the period in which they become known. Actual results could differ from those estimates. &lt;/div&gt;</us-gaap:UseOfEstimates>
    <us-gaap:CashAndCashEquivalentsPolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Cash and Cash Equivalents &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company considers all highly liquid investments with original maturities of three months or less at the date of purchase to be cash equivalents. The Company maintains its cash in bank accounts, the balance of which, at times, exceeds Federal Deposit Insurance Corporation insured limits. &lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;The primary objective of the Company&#x2019;s investment activities is to preserve its capital for the purpose of funding operations and the Company does not enter into investments for trading or speculative purposes. The Company&#x2019;s cash is deposited in highly rated financial institutions in the United States. The Company invests in money market funds and high-grade, commercial paper and corporate bonds, which management believes are subject to minimal credit and market risk. &lt;/div&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt; </us-gaap:CashAndCashEquivalentsPolicyTextBlock>
    <us-gaap:MarketableSecuritiesPolicy contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Marketable Securities &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Marketable securities consist of investments in high-grade corporate obligations and government and government agency obligations that are classified as &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale.&lt;/div&gt;&lt;/div&gt; Since these securities are available to fund current operations, they are classified as current assets on the consolidated balance sheets. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company adjusts the cost of &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale&lt;/div&gt;&lt;/div&gt; debt securities for amortization of premiums and accretion of discounts to maturity. The Company includes such amortization and accretion as a component of interest income. Realized gains and losses and declines in value, if any, that the Company judges to be other-than-temporary on &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale&lt;/div&gt;&lt;/div&gt; securities are reported as a component of interest income. To determine whether an other-than- temporary impairment exists, the Company considers whether it intends to sell the debt security and, if the Company does not intend to sell the debt security, it considers available evidence to assess whether it is more likely than not that it will be required to sell the security before the recovery of its amortized cost basis. During the three months ended March&#160;31, 2022 and 2021, the Company determined it did not have any securities that were other-than- temporarily impaired. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Marketable securities are stated at fair value, including accrued interest, with their unrealized gains and losses included as a component of accumulated other comprehensive income or loss, which is a separate component of stockholders&#x2019; equity. The fair value of these securities is based on quoted prices and observable inputs on a recurring basis. Realized gains and losses are determined on the specific identification method. During the three months ended March&#160;31, 2022 and 2021, the Company did not have any realized gains or losses on marketable securities. &lt;/div&gt;</us-gaap:MarketableSecuritiesPolicy>
    <us-gaap:FairValueOfFinancialInstrumentsPolicy contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair Value of Financial Instruments &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The carrying amounts of the Company&#x2019;s financial instruments, which include cash equivalents and marketable securities, approximate their fair values. The fair value of the Company&#x2019;s financial instruments reflects the amounts that would be received upon sale of an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. The fair value hierarchy has the following three levels: &lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman"&gt;Level 1&#x2014;quoted prices in active markets for identical assets and liabilities. &lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman"&gt;Level 2&#x2014;observable inputs other than Level&#160;1 inputs. Examples of Level&#160;2 inputs include quoted prices in active markets for similar assets or liabilities and quoted prices for identical assets or liabilities in markets that are not active. &lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman"&gt;Level 3&#x2014;unobservable inputs that reflect the Company&#x2019;s own assumptions about the assumptions market participants would use in pricing the asset or liability. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Financial assets and liabilities are classified in their entirety within the fair value hierarchy based on the lowest level of input that is significant to the fair value measurement. The Company measures the fair value of its marketable securities by taking into consideration valuations obtained from third- party pricing sources. The pricing services utilize industry standard valuation models, including both income and market based approaches, for which all significant inputs are observable, either directly or indirectly, to estimate fair value. These inputs include reported trades of and broker-dealer quotes on the same or similar securities, issuer credit spreads, benchmark securities and other observable inputs. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;As of March&#160;31, 2022, the Company&#x2019;s financial assets valued based on Level&#160;1 inputs consisted of cash and cash equivalents in a money market fund, its financial assets valued based on Level&#160;2 inputs consisted of high-grade corporate and government agency bonds and commercial paper, and it had no financial assets valued based on Level&#160;3 inputs. During the three months ended March&#160;31, 2022 and 2021, the Company did not have any transfers of financial assets between Levels 1 and 2. As of March&#160;31, 2022 and December&#160;31, 2021, the Company did not have any financial liabilities that were recorded at fair value on a recurring basis on the balance sheet. &lt;/div&gt;</us-gaap:FairValueOfFinancialInstrumentsPolicy>
    <us-gaap:ResearchAndDevelopmentExpensePolicy contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Research and Development Costs &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Research and development costs are expensed as incurred. Research and development costs are comprised of costs incurred in performing research and development activities, including internal costs (including stock-based compensation), costs for consultants, milestone payments under licensing agreements, and other costs associated with the Company&#x2019;s preclinical and clinical programs. In particular, the Company has conducted safety studies in animals, optimized and implemented the manufacturing of our drug, and &lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;conducted Phase &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;1-3&lt;/div&gt; clinical trials, all of which are considered research and development expenditures. Management uses significant judgment in estimating the amount of research and development costs recognized in each reporting period. Management analyzes and estimates the progress of its preclinical studies and clinical trials, completion of milestone events per underlying agreements, invoices received and contracted costs when estimating the research and development costs to accrue in each reporting period. Actual results could differ from the Company&#x2019;s estimates.&lt;/div&gt;&lt;/div&gt; &lt;/div&gt; </us-gaap:ResearchAndDevelopmentExpensePolicy>
    <mdgl:PatentsPolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Patents &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Costs to secure and defend patents are expensed as incurred and are classified as general and administrative expense in the Company&#x2019;s consolidated statements of operations. &lt;/div&gt;</mdgl:PatentsPolicyTextBlock>
    <us-gaap:ShareBasedCompensationOptionAndIncentivePlansPolicy contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Stock-Based Compensation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company recognizes stock-based compensation expense based on the grant date fair value of stock options granted to employees, officers, and directors. The Company uses the Black-Scholes option pricing model to determine the grant date fair value as management believes it is the most appropriate valuation method for its option grants. The Black-Scholes model requires inputs for risk-free interest rate, dividend yield, volatility and expected lives of the options. The expected lives for options granted represent the period of time that options granted are expected to be outstanding. The Company uses the simplified method for determining the expected lives of options. Expected volatility is based upon an industry estimate or blended rate including the Company&#x2019;s historical trading activity. The risk-free rate for periods within the expected life of the option is based on the U.S. Treasury yield curve in effect at the time of the grant. The Company estimates the forfeiture rate based on historical data. This analysis is &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;re-evaluated&lt;/div&gt; at least annually and the forfeiture rate is adjusted as necessary. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Certain of the employee stock options granted by the Company are structured to qualify as incentive stock options (&#x201c;ISOs&#x201d;). Under current tax regulations, the Company does not receive a tax deduction for the issuance, exercise or disposition of ISOs if the employee meets certain holding requirements. If the employee does not meet the holding requirements, a disqualifying disposition occurs, at which time the Company may receive a tax deduction. The Company does not record tax benefits related to ISOs unless and until a disqualifying disposition is reported. In the event of a disqualifying disposition, the entire tax benefit is recorded as a reduction of income tax expense. The Company has not recognized any income tax benefit for its share-based compensation arrangements due to the fact that the Company does not believe it is more likely than not it will realize the related deferred tax assets. &lt;/div&gt;</us-gaap:ShareBasedCompensationOptionAndIncentivePlansPolicy>
    <us-gaap:IncomeTaxPolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Income Taxes &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company uses the asset and liability method to account for income taxes. Deferred tax assets and liabilities are determined based on the expected future tax consequences of temporary differences between the Company&#x2019;s financial statement carrying amounts and the tax basis of assets and liabilities using enacted tax rates expected to be in effect in the years in which the differences are expected to reverse. The Company currently maintains a 100% valuation allowance on its deferred tax assets. &lt;/div&gt;</us-gaap:IncomeTaxPolicyTextBlock>
    <mdgl:DeferredTaxAssetsPercentageOfValuationAllowance
      contextRef="P01_01_2022To03_31_2022"
      decimals="2"
      unitRef="Unit_pure">1</mdgl:DeferredTaxAssetsPercentageOfValuationAllowance>
    <us-gaap:ComprehensiveIncomePolicyPolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Comprehensive Loss &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Comprehensive loss is defined as the change in equity of a business enterprise during a period from transactions and other events and circumstances from &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;non-owner&lt;/div&gt; sources. Changes in unrealized gains and losses on marketable securities represent the only difference between the Company&#x2019;s net loss and comprehensive loss. &lt;/div&gt;</us-gaap:ComprehensiveIncomePolicyPolicyTextBlock>
    <us-gaap:EarningsPerSharePolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Basic and Diluted Loss Per Common Share &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Basic net loss per share is computed using the weighted average number of common shares outstanding during the period, excluding any restricted stock that has been issued but is not yet vested. Diluted net loss per common share is computed using the weighted average number of common shares outstanding and the weighted average dilutive potential common shares outstanding using the treasury stock method. However, for the three months ended March&#160;21, 2022 and 2021, diluted net loss per share is the same as basic net loss per share because the inclusion of weighted average shares of unvested restricted common stock, common stock issuable upon the exercise of stock options, and common stock issuable upon the conversion of preferred stock would be anti-dilutive. &lt;/div&gt; &lt;div style="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The following table summarizes outstanding securities not included in the computation of diluted net loss per common share, as their inclusion would be anti-dilutive: &lt;/div&gt; &lt;div style="font-size:12pt;margin-top:0pt;margin-bottom:0pt"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:8pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:72%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Three&#160;Months&#160;Ended&#160;March&#160;31,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2022&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2021&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Common stock options&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,878,399&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,193,915&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Preferred stock&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </us-gaap:EarningsPerSharePolicyTextBlock>
    <us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The following table summarizes outstanding securities not included in the computation of diluted net loss per common share, as their inclusion would be anti-dilutive: &lt;/div&gt; &lt;div style="font-size:12pt;margin-top:0pt;margin-bottom:0pt"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:8pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:72%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Three&#160;Months&#160;Ended&#160;March&#160;31,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2022&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2021&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Common stock options&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,878,399&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,193,915&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Preferred stock&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">2878399</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">2193915</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2022To03_31_2022_PreferredStockMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2021To03_31_2021_PreferredStockMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Recent Accounting Pronouncements &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;None &lt;/div&gt;</us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock>
    <us-gaap:SubstantialDoubtAboutGoingConcernTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;3. Liquidity and Uncertainties &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company is subject to risks common to development stage companies in the biopharmaceutical industry including, but not limited to, uncertainty of product development and commercialization, dependence on key personnel, uncertainty of market acceptance of products and product reimbursement, product liability, uncertain protection of proprietary technology, potential inability to raise additional financing necessary for development and commercialization, and compliance with the U.S. Food and Drug Administration and other government regulations. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company has incurred losses since inception, including approximately $57.5&#160;million for the three months ended March&#160;31, 2022, resulting in an accumulated deficit of approximately $724.8&#160;million as of March&#160;31, 2022. Management expects to incur losses for the foreseeable future. To date, the Company has funded its operations primarily through proceeds from sales of the Company&#x2019;s capital stock. The Company believes that its cash, cash equivalents and marketable securities at March&#160;31, 2022 will be sufficient to fund operations past one year from the issuance of these financial statements. To meet its future capital needs, the Company intends to raise additional capital through debt or equity financings, collaborations, partnerships or other strategic transactions. However, there can be no assurance that the Company will be able to complete any such transactions on acceptable terms or otherwise. The inability of the Company to obtain sufficient funds on acceptable terms when needed could have a material adverse effect on the Company&#x2019;s business, results of operations and financial condition. The Company has the ability to delay certain research activities and related clinical expenses if necessary due to liquidity concerns until a date when those concerns are relieved. &lt;/div&gt;</us-gaap:SubstantialDoubtAboutGoingConcernTextBlock>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2022To03_31_2022"
      decimals="-5"
      unitRef="Unit_USD">-57500000</us-gaap:NetIncomeLoss>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="PAsOn03_31_2022"
      decimals="-5"
      unitRef="Unit_USD">-724800000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:CashCashEquivalentsAndMarketableSecuritiesTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;4. Cash, Cash Equivalents and Marketable Securities &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;A summary of cash, cash equivalents and &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale&lt;/div&gt;&lt;/div&gt; marketable securities held by the Company as of March&#160;31, 2022 and December&#160;31, 2021 is as follows (in thousands): &lt;/div&gt; &lt;div style="font-size:12pt;margin-top:0pt;margin-bottom:0pt"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:92%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:62%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="14" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;March&#160;31,&#160;2022&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Cost&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; gains&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; losses&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair value&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash and cash equivalents:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash (Level&#160;1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,238&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,238&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Money market funds (Level 1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;40,044&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;40,044&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash and cash equivalents&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;42,282&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;42,282&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Marketable securities:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1&#160;year of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;170,336&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(366&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;169,970&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;U.S. government and government sponsored entities due within 1 year of date of purchase (Level 2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,036&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(12&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,024&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1 to 2&#160;years of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,701&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(24&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,677&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash, cash equivalents and marketable securities&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;220,355&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(402&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;219,953&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:92%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:63%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="14" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;December&#160;31,&#160;2021&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Cost&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; gains&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; losses&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair value&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash and cash equivalents:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash (Level&#160;1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;18,877&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;18,877&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; padding-bottom: 0.5px;"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Money market funds (Level 1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;17,392&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;17,392&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash and cash equivalents&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;36,269&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;36,269&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Marketable securities:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1&#160;year of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;228,348&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(66&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;228,288&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1 to 2&#160;years of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;5,809&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(20&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;5,789&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash, cash equivalents and marketable securities&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;270,426&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(86&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;270,346&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </us-gaap:CashCashEquivalentsAndMarketableSecuritiesTextBlock>
    <us-gaap:ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;A summary of cash, cash equivalents and &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;available-for-sale&lt;/div&gt;&lt;/div&gt; marketable securities held by the Company as of March&#160;31, 2022 and December&#160;31, 2021 is as follows (in thousands): &lt;/div&gt; &lt;div style="font-size:12pt;margin-top:0pt;margin-bottom:0pt"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:92%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:62%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="14" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;March&#160;31,&#160;2022&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Cost&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; gains&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; losses&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair value&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash and cash equivalents:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash (Level&#160;1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,238&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,238&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Money market funds (Level 1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;40,044&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;40,044&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash and cash equivalents&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;42,282&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;42,282&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Marketable securities:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1&#160;year of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;170,336&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(366&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;169,970&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;U.S. government and government sponsored entities due within 1 year of date of purchase (Level 2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,036&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(12&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,024&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1 to 2&#160;years of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,701&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(24&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,677&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash, cash equivalents and marketable securities&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;220,355&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(402&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;219,953&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:92%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:63%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="14" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;December&#160;31,&#160;2021&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Cost&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; gains&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;br/&gt; losses&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair value&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash and cash equivalents:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Cash (Level&#160;1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;18,877&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;18,877&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; padding-bottom: 0.5px;"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Money market funds (Level 1)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;17,392&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid black;;text-align:right;"&gt;17,392&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; padding-bottom: 0.5px;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash and cash equivalents&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;36,269&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;36,269&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Marketable securities:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1&#160;year of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;228,348&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(66&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;228,288&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Corporate debt securities due within 1 to 2&#160;years of date of purchase (Level&#160;2)&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;5,809&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(20&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;5,789&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total cash, cash equivalents and marketable securities&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;270,426&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(86&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;270,346&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </us-gaap:ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CashMemberusgaapCashAndCashEquivalentsAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">2238000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn03_31_2022_CashMemberusgaapCashAndCashEquivalentsAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">2238000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">40044000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn03_31_2022_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">40044000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">42282000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn03_31_2022_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">42282000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2022To03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">170336000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">366000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn03_31_2022_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">169970000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2022To03_31_2022_AgencySecuritiesMemberusgaapFinancialInstrumentAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn03_31_2022_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">6036000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn03_31_2022_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">12000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn03_31_2022_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">6024000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2022To03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MinimumMembersrtRangeAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2022To03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MaximumMembersrtRangeAxis">P2Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">1701000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">24000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn03_31_2022_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">1677000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:CashCashEquivalentsAndShortTermInvestmentsAtCost
      contextRef="PAsOn03_31_2022_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">220355000</mdgl:CashCashEquivalentsAndShortTermInvestmentsAtCost>
    <mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedGains
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">0</mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedGains>
    <mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedLosses
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">402000</mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedLosses>
    <us-gaap:CashCashEquivalentsAndShortTermInvestments
      contextRef="PAsOn03_31_2022_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">219953000</us-gaap:CashCashEquivalentsAndShortTermInvestments>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CashMemberusgaapCashAndCashEquivalentsAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">18877000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2021_CashMemberusgaapCashAndCashEquivalentsAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">18877000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">17392000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">17392000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">36269000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">36269000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">228348000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">6000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">66000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn12_31_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">228288000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MinimumMembersrtRangeAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MaximumMembersrtRangeAxis">P2Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">5809000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">20000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn12_31_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">5789000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:CashCashEquivalentsAndShortTermInvestmentsAtCost
      contextRef="PAsOn12_31_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">270426000</mdgl:CashCashEquivalentsAndShortTermInvestmentsAtCost>
    <mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedGains
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">6000</mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedGains>
    <mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedLosses
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">86000</mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedLosses>
    <us-gaap:CashCashEquivalentsAndShortTermInvestments
      contextRef="PAsOn12_31_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">270346000</us-gaap:CashCashEquivalentsAndShortTermInvestments>
    <mdgl:AccruedLiabilitiesDisclosureTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;5. Accrued Liabilities &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Accrued liabilities as of March&#160;31, 2022 and December&#160;31, 2021 consisted of the following (in thousands): &lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:76%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:6%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:6%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;March&#160;31,&lt;br/&gt; 2022&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;December&#160;31,&lt;br/&gt; 2021&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Contract research organization costs&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;42,168&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;38,349&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Other clinical study related costs&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;4,103&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,957&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Compensation and benefits&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,715&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,769&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Professional fees&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,343&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,455&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Other&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,113&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,518&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total accrued liabilities&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;53,442&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;55,048&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </mdgl:AccruedLiabilitiesDisclosureTextBlock>
    <us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Accrued liabilities as of March&#160;31, 2022 and December&#160;31, 2021 consisted of the following (in thousands): &lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:76%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:6%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:6%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;March&#160;31,&lt;br/&gt; 2022&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;December&#160;31,&lt;br/&gt; 2021&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Contract research organization costs&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;42,168&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;38,349&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Other clinical study related costs&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;4,103&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,957&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Compensation and benefits&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,715&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,769&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Professional fees&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,343&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,455&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Other&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,113&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,518&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total accrued liabilities&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;53,442&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;55,048&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock>
    <mdgl:AccruedContractResearchCostsCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">42168000</mdgl:AccruedContractResearchCostsCurrent>
    <mdgl:AccruedContractResearchCostsCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">38349000</mdgl:AccruedContractResearchCostsCurrent>
    <mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">4103000</mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent>
    <mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">3957000</mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent>
    <mdgl:AccruedCompensationAndBenefitsCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">2715000</mdgl:AccruedCompensationAndBenefitsCurrent>
    <mdgl:AccruedCompensationAndBenefitsCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">6769000</mdgl:AccruedCompensationAndBenefitsCurrent>
    <us-gaap:AccruedProfessionalFeesCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">2343000</us-gaap:AccruedProfessionalFeesCurrent>
    <us-gaap:AccruedProfessionalFeesCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">2455000</us-gaap:AccruedProfessionalFeesCurrent>
    <us-gaap:OtherAccruedLiabilitiesCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">2113000</us-gaap:OtherAccruedLiabilitiesCurrent>
    <us-gaap:OtherAccruedLiabilitiesCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">3518000</us-gaap:OtherAccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">53442000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn12_31_2021"
      decimals="-3"
      unitRef="Unit_USD">55048000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:StockholdersEquityNoteDisclosureTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;6. Stockholders&#x2019; Equity &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Common Stock &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Each common stockholder generally is entitled to one vote for each share of common stock held, subject to limitations as may be established for certain other classes and series of stock of the Company from time to time. Each share of common stock is entitled to receive dividends, as and when declared by the Company&#x2019;s board of directors. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company has never declared cash dividends on its common stock and does not expect to do so in the foreseeable future. &lt;/div&gt; &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Preferred Stock &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;&lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;The Company&#x2019;s Series A Convertible Preferred Stock (&#x201c;Series A Preferred Stock&#x201d;) has a par value of $0.0001 per share and is convertible into shares of the Common Stock at a&lt;/div&gt; &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px; text-indent: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;one-to-one&lt;/div&gt;&lt;/div&gt; ratio, subject to adjustment as provided in the Certificate of Designation of Preferences, Rights and Limitations of Series A Convertible Preferred Stock, that the Company filed with the Secretary of State of the State of Delaware on June&#160;21, 2017 (the &#x201c;Series A Certificate&#x201d;). The terms of the Series A Preferred Stock are set forth in the Series A Certificate. Each share of the Series A Preferred Stock is convertible into shares of Common Stock following notice that may be given at the holder&#x2019;s option. Upon any liquidation, dissolution or &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px; text-indent: 0px;;display:inline;"&gt;winding-up&lt;/div&gt; of the Company, whether voluntary or involuntary, after the satisfaction in full of the debts of the Company and the payment of any liquidation preference owed to the holders of shares of capital stock of the Company ranking prior to the Series A Preferred Stock upon liquidation, the holders of the Series A Preferred Stock shall participate pari passu with the holders of the Common Stock (on an &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px; text-indent: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;as-if-converted-to-Common-Stock&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; basis) in the net assets of the Company. Shares of the Series A Preferred Stock will generally have no voting rights, except as required by law. Shares of the Series A Preferred Stock will be entitled to receive dividends before shares of any other class or series of capital stock of the Company (other than dividends in the form of the Common Stock) equal to the dividend payable on each share of the Common Stock, on an &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px; text-indent: 0px;;display:inline;"&gt;as-converted&lt;/div&gt; basis. &lt;/div&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; font-size: 8pt;"&gt;&#160;&lt;/div&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;At-The-Market&lt;/div&gt;&lt;/div&gt; Issuance Sales Agreement &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;In November 2020, the Company entered into an &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;at-the-market&lt;/div&gt;&lt;/div&gt; sales agreement (the &#x201c;2020 Sales Agreement&#x201d;), with Cowen and Company, LLC (&#x201c;Cowen&#x201d;), pursuant to which the Company could, from time to time, issue and sell shares of its common stock. The 2020 Sales Agreement authorized an aggregate offering of up to $200&#160;million in shares of our common stock, at the Company&#x2019;s option, through Cowen as its sales agent. Sales of common stock through Cowen could be made by any method that is deemed an &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#x201c;at-the-market&#x201d;&lt;/div&gt;&lt;/div&gt; offering as defined in Rule 415 promulgated under the Securities Act of 1933, as amended, including by means of ordinary brokers&#x2019; transactions at market prices, in block transactions or as otherwise agreed by the Company and Cowen. The 2020 Sales Agreement was terminated in June 2021 when the Company filed a new shelf registration statement. &lt;/div&gt; &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;Under the 2020 Sales Agreement the Company sold 1,126,733 shares for an aggregate of approximately $137.4&#160;million in gross proceeds, with net proceeds to the Company of approximately $134.8&#160;million after deducting commissions and other transaction costs. Of those shares sold, 1,087,126 were sold in 2021. &lt;/div&gt; &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;In June 2021, the Company filed with the U.S. Securities and Exchange Commission (the &#x201c;SEC&#x201d;) and had declared&#160;&lt;/div&gt;effective a new shelf registration statement on Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;S-3&lt;/div&gt; and, in connection therewith, entered into a new &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;at-the-market&lt;/div&gt;&lt;/div&gt; sales agreement (the &#x201c;2021 Sales Agreement&#x201d;) with Cowen. The terms of the 2021 Sales Agreement are substantially the same as the 2020 Sales Agreement. The 2021 Sales Agreement authorizes an aggregate offering of up to $200&#160;million in shares of our common stock, from time to time, at the Company&#x2019;s option, through Cowen as its sales agent. The 2021 Sales Agreement supersedes the 2020 Sales Agreement. Subject to the terms and conditions of the 2021 Sales Agreement, Cowen will use commercially reasonable efforts consistent with its normal trading and sales practices to sell the common stock based upon the Company&#x2019;s instructions (including any price, time or size limits or other customary parameters or conditions the Company may impose). &lt;/div&gt; &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;As of March&#160;31, 2022, 497,043 shares had been sold under the 2021 Sales Agreement for an aggregate of approximately $40.8&#160;million in gross proceeds, with net proceeds to the Company of approximately $39.8&#160;million after deducting commissions and other transaction costs. All of those shares were sold in 2021. As of March&#160;31, 2022, $159.2&#160;million remained reserved and available for sale under the 2021 Sales Agreement and the Company&#x2019;s related prospectus supplement. &lt;/div&gt; </us-gaap:StockholdersEquityNoteDisclosureTextBlock>
    <mdgl:CommonStockVotingRightsNumber
      contextRef="P01_01_2022To03_31_2022"
      decimals="INF"
      unitRef="Unit_Vote">1</mdgl:CommonStockVotingRightsNumber>
    <us-gaap:ConversionOfStockSharesConverted1
      contextRef="P06_01_2017To06_30_2017_ConvertibleSeriesPreferredStockMemberusgaapStatementClassOfStockAxis"
      decimals="INF"
      unitRef="Unit_shares">1</us-gaap:ConversionOfStockSharesConverted1>
    <mdgl:PreferredStockNumberOfVotingRights
      contextRef="PAsOn06_30_2017_ConvertibleSeriesPreferredStockMemberusgaapStatementClassOfStockAxis"
      decimals="0"
      unitRef="Unit_Vote">0</mdgl:PreferredStockNumberOfVotingRights>
    <mdgl:CommonStockAggregateOfferingPrice
      contextRef="P11_01_2020To11_30_2020_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_CowenCo.LlcMembersrtCounterpartyNameAxis_MaximumMembersrtRangeAxis"
      decimals="-6"
      unitRef="Unit_USD">200000000</mdgl:CommonStockAggregateOfferingPrice>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="INF"
      unitRef="Unit_shares">1126733</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="-5"
      unitRef="Unit_USD">137400000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="-5"
      unitRef="Unit_USD">134800000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P01_01_2021To03_31_2021"
      decimals="INF"
      unitRef="Unit_shares">1087126</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <mdgl:CommonStockAggregateOfferingPrice
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_CowenCo.LlcMembersrtCounterpartyNameAxis_MaximumMembersrtRangeAxis"
      decimals="-6"
      unitRef="Unit_USD">200000000</mdgl:CommonStockAggregateOfferingPrice>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="INF"
      unitRef="Unit_shares">497043</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="-5"
      unitRef="Unit_USD">40800000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="P01_01_2022To03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="-5"
      unitRef="Unit_USD">39800000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <mdgl:RemainingSecuritiesUnderShelfRegistrationValue
      contextRef="PAsOn03_31_2022_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="-5"
      unitRef="Unit_USD">159200000</mdgl:RemainingSecuritiesUnderShelfRegistrationValue>
    <us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;7. Stock-based Compensation &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;&lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;The Company&#x2019;s 2015 Stock Plan, as amended, is our primary equity incentive compensation plan through which equity based grants are awarded. The 2015 Stock Plan provides for the grant of incentive stock options, non-statutory stock options, restricted stock and other stock-based compensation awards to employees, officers, directors, and consultants of the Company. The administration of the 2015 Stock Plan is under the general supervision of the Compensation Committee of the Board of Directors. The terms of stock options awarded under the 2015 Stock Plan, in general, are determined by the Compensation Committee, provided the exercise price per share generally shall not be set at less than the fair market value of a share of the common stock on the date of grant and the term shall not be greater than&lt;/div&gt; ten years from the date the option is granted. As of March&#160;31, 2022, the Company had options outstanding to purchase 2,878,399 &lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="text-indent: 0px;;display:inline;"&gt;shares of its common stock, which includes options outstanding under its prior incentive compensation plan, the 2006 Stock Plan. As of March 31, 2022,&lt;/div&gt;&lt;/div&gt; 1,084,468 &lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;shares were available for future issuance under the 2015 Stock Plan.&#160;&lt;/div&gt; &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The following table summarizes stock option activity during the three months ended March&#160;31, 2022: &lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:73%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:6%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Shares&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Weighted&lt;br/&gt; average&#160;exercise&lt;br/&gt; price&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Outstanding at January&#160;1, 2022&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,301,574&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;78.90&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Options granted&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;613,425&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;85.80&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Options cancelled&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(36,600&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;110.09&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Outstanding at March&#160;31, 2022&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,878,399&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;79.96&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Exercisable at March&#160;31, 2022&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,525,599&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;65.64&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;The total cash received by the Company as a result of stock option exercises was $0&#160;million and $0.5&#160;million, respectively, for the three months ended March&#160;31, 2022 and 2021. The total intrinsic value of options exercised was $0&#160;million and $0.1&#160;&lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;million, respectively,&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"/&gt;&lt;/div&gt;for the three months ended March&#160;31, 2022 and 2021. The weighted-average grant date fair values, based on the Black-Scholes option model, of options granted during the three months ended March&#160;31, 2022 and 2021 were $59.63 and $85.17, respectively. &lt;/div&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; font-size: 8pt; text-indent: 0px;"&gt;&#160;&lt;/div&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Stock-Based Compensation Expense &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Stock-based compensation expense during the three months ended March&#160;31, 2022 and 2021 was as follows (in thousands): &lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:82%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Three Months&lt;br/&gt; Ended March&#160;31,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2022&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2021&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Stock-based compensation expense by type of award:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Stock options&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;7,477&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,096&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Restricted stock&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total stock-based compensation expense&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;7,477&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,096&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1pt"&gt;
&lt;td style="height:6pt"&gt;&#160;&lt;/td&gt;
&lt;td colspan="4" style="height:6pt"&gt;&#160;&lt;/td&gt;
&lt;td colspan="4" style="height:6pt"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Effect of stock-based compensation expense by line item:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Research and development&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,187&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,637&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;General and administrative&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;4,290&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,459&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align: top; text-indent: 0px;"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total stock-based compensation expense included in net loss&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align: bottom; text-indent: 0px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;$&lt;/div&gt;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;;text-align:right;"&gt;7,477&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; text-indent: 0px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;$&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;;text-align:right;"&gt;6,096&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;  &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Unrecognized stock-based compensation expense on stock options as of March&#160;31, 2022 was $74.2&#160;million with a weighted average remaining period of 3.16 years. &lt;/div&gt; </us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod contextRef="P01_01_2022To03_31_2022_MaximumMembersrtRangeAxis">P10Y</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">2878399</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">1084468</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant>
    <us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The following table summarizes stock option activity during the three months ended March&#160;31, 2022: &lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:73%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:6%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:5%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Shares&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Weighted&lt;br/&gt; average&#160;exercise&lt;br/&gt; price&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Outstanding at January&#160;1, 2022&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,301,574&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;78.90&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Options granted&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;613,425&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;85.80&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Options cancelled&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;(36,600&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;110.09&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Outstanding at March&#160;31, 2022&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,878,399&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;79.96&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Exercisable at March&#160;31, 2022&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;1,525,599&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;65.64&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="PAsOn12_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">2301574</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="PAsOn12_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">78.90</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">613425</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">85.80</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">36600</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">110.09</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">2878399</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">79.96</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">1525599</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_USD_per_Share">65.64</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice>
    <us-gaap:ProceedsFromStockOptionsExercised
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-6"
      unitRef="Unit_USD">0</us-gaap:ProceedsFromStockOptionsExercised>
    <us-gaap:ProceedsFromStockOptionsExercised
      contextRef="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">500000</us-gaap:ProceedsFromStockOptionsExercised>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-6"
      unitRef="Unit_USD">0</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
      contextRef="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">100000</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">59.63</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
      contextRef="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">85.17</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue>
    <mdgl:ScheduleOfShareBasedCompensationExpenseAllocationOfCompensationCostsAndRecognizedPeriodCostsTableTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Stock-based compensation expense during the three months ended March&#160;31, 2022 and 2021 was as follows (in thousands): &lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0px; margin-bottom: 0px;"&gt;&#160;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;width:76%;border:0;margin:0 auto"&gt;
&lt;tr&gt;
&lt;td style="width:82%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom;width:4%"&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt; &lt;div style="line-height: 0pt; margin-bottom: 0px; margin-top: 0px;"&gt;&#160;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Three Months&lt;br/&gt; Ended March&#160;31,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2022&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" style="border-bottom:1.00pt solid #000000;vertical-align:bottom;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2021&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 0.5pt;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Stock-based compensation expense by type of award:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Stock options&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;7,477&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,096&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Restricted stock&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;&#x2014;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total stock-based compensation expense&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;7,477&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;6,096&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1pt"&gt;
&lt;td style="height:6pt"&gt;&#160;&lt;/td&gt;
&lt;td colspan="4" style="height:6pt"&gt;&#160;&lt;/td&gt;
&lt;td colspan="4" style="height:6pt"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Effect of stock-based compensation expense by line item:&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Research and development&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,187&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;$&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;2,637&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align:top"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 3em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;General and administrative&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;4,290&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom;text-align:right;"&gt;3,459&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 1px solid rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt"&gt;
&lt;td style="vertical-align: top; text-indent: 0px;"&gt; &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; text-indent: -1em; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; line-height: normal;"&gt;Total stock-based compensation expense included in net loss&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align: bottom; text-indent: 0px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;$&lt;/div&gt;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;;text-align:right;"&gt;7,477&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; text-indent: 0px;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;$&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;;text-align:right;"&gt;6,096&lt;/td&gt;
&lt;td style="white-space: nowrap; vertical-align: bottom; text-indent: 0px;"&gt;&#160;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style="font-size:1px"&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td style="vertical-align:bottom"&gt; &lt;div style="margin-top: 0px; margin-bottom: 0px; border-top: 3px double rgb(0, 0, 0); line-height: normal;"&gt;&#160;&lt;/div&gt; &lt;/td&gt;
&lt;td&gt;&#160;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </mdgl:ScheduleOfShareBasedCompensationExpenseAllocationOfCompensationCostsAndRecognizedPeriodCostsTableTextBlock>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">7477000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To03_31_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">6096000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2022To03_31_2022_RestrictedStockMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To03_31_2021_RestrictedStockMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">7477000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">6096000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2022To03_31_2022_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">3187000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To03_31_2021_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">2637000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2022To03_31_2022_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">4290000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To03_31_2021_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">3459000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">7477000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">6096000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
      contextRef="PAsOn03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">74200000</us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized>
    <us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1 contextRef="P01_01_2022To03_31_2022_EmployeeStockOptionMemberusgaapAwardTypeAxis">P3Y1M28D</us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1>
    <us-gaap:CommitmentsAndContingenciesDisclosureTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;8. Commitments and Contingencies &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company has a Research, Development and Commercialization Agreement with &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Hoffmann-La&lt;/div&gt; Roche (&#x201c;Roche&#x201d;) which grants the Company a sole and exclusive license to develop, use, sell, offer for sale and import any Licensed Product as defined by the agreement. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The agreement requires future milestone payments to Roche. Remaining milestones under the agreement total $8&#160;million and are payable upon Madrigal achieving specified objectives related to future regulatory approval in the United States and Europe of resmetirom or a product developed from resmetirom. Furthermore, a tiered single-digit royalty is payable on net sales of resmetirom or a product developed from resmetirom, subject to certain reductions. The Company has not achieved any additional product development or regulatory milestones and had no Licensed Product sales for the three months ended March&#160;31, 2022 and 2021. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;The Company has entered into customary contractual arrangements and letters of intent in preparation for and in support of the Phase 3 clinical trials. &lt;/div&gt;</us-gaap:CommitmentsAndContingenciesDisclosureTextBlock>
    <mdgl:RemainingMilestonePayments
      contextRef="PAsOn12_31_2019_HoffmanLaRocheMembersrtCounterpartyNameAxis_ResearchDevelopmentAndCommercializationAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="-6"
      unitRef="Unit_USD">8000000</mdgl:RemainingMilestonePayments>
    <us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax
      contextRef="P01_01_2022To03_31_2022"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax>
    <us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax>
    <us-gaap:SubsequentEventsTextBlock contextRef="P01_01_2022To03_31_2022">&lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;9. Subsequent Event &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-indent: 0px;"&gt;In May 2022 the Company entered into a $250&#160;million term loan facility with Hercules Capital, Inc. (&#x201c;Hercules&#x201d;). Under the terms of the loan agreement, $50&#160;million was drawn at closing. The Company may also draw an additional $125&#160;million in two separate tranches upon achievement of resmetirom clinical and regulatory milestones. An additional $75&#160;million may be drawn by the Company, subject to the approval of Hercules. The loan facility&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;has a floor interest rate of 7.45% and adjusts with future changes in the prime rate, subject to the floor rate. &lt;/div&gt; &lt;div style="color: rgb(0, 0, 0); font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important; top: 0px;;display:inline;"&gt;The loan bears initial&lt;/div&gt;&#160;interest at a rate of 7.95%. The Company will pay interest-only for a period of 30 months, which may be extended to 60 months upon the achievement of certain milestones. &lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;The loan matures in May 2026 and may be extended an additional year upon the achievement of certain milestones. Additional details of the loan agreement will be filed with the Securities and Exchange Commission on a Current Report on Form 8-K.&#160;&lt;/div&gt; &lt;/div&gt;</us-gaap:SubsequentEventsTextBlock>
    <us-gaap:DebtInstrumentFaceAmount
      contextRef="PAsOn05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis"
      decimals="-6"
      unitRef="Unit_USD">250000000</us-gaap:DebtInstrumentFaceAmount>
    <us-gaap:ProceedsFromIssuanceOfDebt
      contextRef="P05_01_2022To05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis"
      decimals="-6"
      unitRef="Unit_USD">50000000</us-gaap:ProceedsFromIssuanceOfDebt>
    <us-gaap:DebtInstrumentUnusedBorrowingCapacityAmount
      contextRef="PAsOn05_31_2022_DrawnInTwoSeparateTranchesUponAchievementofResmetiromClinicalAndRegulatoryMilestoneSMemberMDGLDebtDescriptionAxis_TermLoanMemberusgaapDebtInstrumentAxis"
      decimals="-6"
      unitRef="Unit_USD">125000000</us-gaap:DebtInstrumentUnusedBorrowingCapacityAmount>
    <us-gaap:DebtInstrumentUnusedBorrowingCapacityAmount
      contextRef="PAsOn05_31_2022_DrawnToSupportOperationalActivitiesMemberMDGLDebtDescriptionAxis_TermLoanMemberusgaapDebtInstrumentAxis"
      decimals="-6"
      unitRef="Unit_USD">75000000</us-gaap:DebtInstrumentUnusedBorrowingCapacityAmount>
    <mdgl:LongTermDebtFloorInterestRatePercentage
      contextRef="PAsOn05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis"
      decimals="4"
      unitRef="Unit_pure">0.0745</mdgl:LongTermDebtFloorInterestRatePercentage>
    <us-gaap:DebtInstrumentInterestRateStatedPercentage
      contextRef="PAsOn05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis"
      decimals="4"
      unitRef="Unit_pure">0.0795</us-gaap:DebtInstrumentInterestRateStatedPercentage>
    <mdgl:DebtInstrumentInterestPaymentsTerms contextRef="P05_01_2022To05_31_2022_TermLoanMemberusgaapDebtInstrumentAxis">The Company will pay interest-only for a period of 30 months, which may be extended to 60 months upon the achievement of certain milestones</mdgl:DebtInstrumentInterestPaymentsTerms>
</xbrl>
