<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2021"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:mdgl="http://www.madrigalpharma.com/20210930"
  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-20210930.xsd" xlink:type="simple"/>
    <context id="PAsOn09_30_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2021-09-30</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="P07_01_2021To09_30_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2021-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To09_30_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2020-09-30</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="P04_01_2021To06_30_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2021-04-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="P04_01_2020To06_30_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2020-04-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To03_31_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="PAsOn11_02_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2021-11-02</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2019">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2019-12-31</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2020-09-30</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="PAsOn06_30_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2021-06-30</instant>
        </period>
    </context>
    <context id="PAsOn03_31_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2020-03-31</instant>
        </period>
    </context>
    <context id="PAsOn06_30_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
        </entity>
        <period>
            <instant>2020-06-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities2MemberusgaapFinancialInstrumentAxis_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:CorporateDebtSecurities2Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2021_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>2021-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2021_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>2021-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2021_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>2021-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2021_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_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:AgencySecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_2021_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_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:AgencySecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>2020-12-31</instant>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2021To09_30_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-07-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_2020_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>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_2020_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>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_2020_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>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_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>
            <startDate>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_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>
            <startDate>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_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>
            <startDate>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P07_01_2020To09_30_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>
            <startDate>2020-07-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_2021_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>2021-01-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_2021_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>2021-01-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_2021_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>2021-01-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_2021_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>2021-01-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_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-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2021To09_30_2021_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>2021-01-01</startDate>
            <endDate>2021-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To09_30_2020_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>2020-01-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To09_30_2020_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>2020-01-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To09_30_2020_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>2020-01-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To09_30_2020_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>2020-01-01</startDate>
            <endDate>2020-09-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To09_30_2020_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>2020-01-01</startDate>
            <endDate>2020-09-30</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_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="P04_01_2021To06_30_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-04-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="P04_01_2021To06_30_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-04-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="P04_01_2021To06_30_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-04-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="P04_01_2021To06_30_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-04-01</startDate>
            <endDate>2021-06-30</endDate>
        </period>
    </context>
    <context id="P01_01_2020To03_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>
            <startDate>2020-01-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2020To03_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>
            <startDate>2020-01-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="P01_01_2020To03_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>
            <startDate>2020-01-01</startDate>
            <endDate>2020-03-31</endDate>
        </period>
    </context>
    <context id="P04_01_2020To06_30_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>
            <startDate>2020-04-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="P04_01_2020To06_30_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>
            <startDate>2020-04-01</startDate>
            <endDate>2020-06-30</endDate>
        </period>
    </context>
    <context id="P04_01_2020To06_30_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>
            <startDate>2020-04-01</startDate>
            <endDate>2020-06-30</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="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="PAsOn11_02_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_SubsequentEventMemberusgaapSubsequentEventTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsequentEventTypeAxis">us-gaap:SubsequentEventMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2021-11-02</instant>
        </period>
    </context>
    <context id="P11_02_2021To11_02_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_SubsequentEventMemberusgaapSubsequentEventTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001157601</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsequentEventTypeAxis">us-gaap:SubsequentEventMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mdgl:AtTheMarketIssuanceSalesAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-11-02</startDate>
            <endDate>2021-11-02</endDate>
        </period>
    </context>
    <context id="P01_01_2020To12_31_2020_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>2020-01-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="P01_01_2020To12_31_2020_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>2020-01-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="P01_01_2020To12_31_2020_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>2020-01-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn09_30_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-09-30</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2020_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>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_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_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_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_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_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_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_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_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_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>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2019_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>2019-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2019_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>2019-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2019_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>2019-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2019_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>2019-12-31</instant>
        </period>
    </context>
    <context id="PAsOn12_31_2019_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>2019-12-31</instant>
        </period>
    </context>
    <context id="PAsOn03_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-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_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-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_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-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_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-03-31</instant>
        </period>
    </context>
    <context id="PAsOn03_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-03-31</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</instant>
        </period>
    </context>
    <context id="PAsOn06_30_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-06-30</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_2021To09_30_2021">false</dei:AmendmentFlag>
    <dei:DocumentFiscalPeriodFocus contextRef="P01_01_2021To09_30_2021">Q3</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey contextRef="P01_01_2021To09_30_2021">0001157601</dei:EntityCentralIndexKey>
    <dei:CurrentFiscalYearEndDate contextRef="P01_01_2021To09_30_2021">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType contextRef="P01_01_2021To09_30_2021">10-Q</dei:DocumentType>
    <dei:DocumentQuarterlyReport contextRef="P01_01_2021To09_30_2021">true</dei:DocumentQuarterlyReport>
    <dei:DocumentPeriodEndDate contextRef="P01_01_2021To09_30_2021">2021-09-30</dei:DocumentPeriodEndDate>
    <dei:DocumentFiscalYearFocus contextRef="P01_01_2021To09_30_2021">2021</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport contextRef="P01_01_2021To09_30_2021">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="P01_01_2021To09_30_2021">001-33277</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="P01_01_2021To09_30_2021">MADRIGAL PHARMACEUTICALS, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="P01_01_2021To09_30_2021">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber contextRef="P01_01_2021To09_30_2021">04-3508648</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="P01_01_2021To09_30_2021">Four Tower Bridge</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="P01_01_2021To09_30_2021">200 Barr Harbor Drive, Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="P01_01_2021To09_30_2021">West Conshohocken</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="P01_01_2021To09_30_2021">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="P01_01_2021To09_30_2021">19428</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P01_01_2021To09_30_2021">267</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P01_01_2021To09_30_2021">824-2827</dei:LocalPhoneNumber>
    <dei:Security12bTitle contextRef="P01_01_2021To09_30_2021">Common Stock, $0.0001 Par Value Per Share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P01_01_2021To09_30_2021">MDGL</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P01_01_2021To09_30_2021">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityCurrentReportingStatus contextRef="P01_01_2021To09_30_2021">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="P01_01_2021To09_30_2021">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory contextRef="P01_01_2021To09_30_2021">Large Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="P01_01_2021To09_30_2021">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="P01_01_2021To09_30_2021">false</dei:EntityEmergingGrowthCompany>
    <dei:EntityShellCompany contextRef="P01_01_2021To09_30_2021">false</dei:EntityShellCompany>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="PAsOn11_02_2021"
      decimals="INF"
      unitRef="Unit_shares">17097090</dei:EntityCommonStockSharesOutstanding>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">49174000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">54004000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">249970000</us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent>
    <us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">230145000</us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent>
    <us-gaap:PrepaidExpenseAndOtherAssetsCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">3812000</us-gaap:PrepaidExpenseAndOtherAssetsCurrent>
    <us-gaap:PrepaidExpenseAndOtherAssetsCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">1014000</us-gaap:PrepaidExpenseAndOtherAssetsCurrent>
    <us-gaap:AssetsCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">302956000</us-gaap:AssetsCurrent>
    <us-gaap:AssetsCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">285163000</us-gaap:AssetsCurrent>
    <us-gaap:PropertyPlantAndEquipmentNet
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">844000</us-gaap:PropertyPlantAndEquipmentNet>
    <us-gaap:PropertyPlantAndEquipmentNet
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">1047000</us-gaap:PropertyPlantAndEquipmentNet>
    <us-gaap:OperatingLeaseRightOfUseAsset
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">897000</us-gaap:OperatingLeaseRightOfUseAsset>
    <us-gaap:OperatingLeaseRightOfUseAsset
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">785000</us-gaap:OperatingLeaseRightOfUseAsset>
    <us-gaap:Assets
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">304697000</us-gaap:Assets>
    <us-gaap:Assets
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">286995000</us-gaap:Assets>
    <us-gaap:AccountsPayableCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">10418000</us-gaap:AccountsPayableCurrent>
    <us-gaap:AccountsPayableCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">1017000</us-gaap:AccountsPayableCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">58501000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">45222000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:OperatingLeaseLiabilityCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">406000</us-gaap:OperatingLeaseLiabilityCurrent>
    <us-gaap:OperatingLeaseLiabilityCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">318000</us-gaap:OperatingLeaseLiabilityCurrent>
    <us-gaap:LiabilitiesCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">69325000</us-gaap:LiabilitiesCurrent>
    <us-gaap:LiabilitiesCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">46557000</us-gaap:LiabilitiesCurrent>
    <us-gaap:OperatingLeaseLiabilityNoncurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">491000</us-gaap:OperatingLeaseLiabilityNoncurrent>
    <us-gaap:OperatingLeaseLiabilityNoncurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">468000</us-gaap:OperatingLeaseLiabilityNoncurrent>
    <us-gaap:LiabilitiesNoncurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">491000</us-gaap:LiabilitiesNoncurrent>
    <us-gaap:LiabilitiesNoncurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">468000</us-gaap:LiabilitiesNoncurrent>
    <us-gaap:Liabilities
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">69816000</us-gaap:Liabilities>
    <us-gaap:Liabilities
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">47025000</us-gaap:Liabilities>
    <us-gaap:PreferredStockParOrStatedValuePerShare
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:PreferredStockParOrStatedValuePerShare>
    <us-gaap:PreferredStockParOrStatedValuePerShare
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:PreferredStockParOrStatedValuePerShare>
    <us-gaap:PreferredStockSharesAuthorized
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_shares">5000000</us-gaap:PreferredStockSharesAuthorized>
    <us-gaap:PreferredStockSharesAuthorized
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_shares">5000000</us-gaap:PreferredStockSharesAuthorized>
    <us-gaap:PreferredStockSharesIssued
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesIssued>
    <us-gaap:PreferredStockSharesOutstanding
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesOutstanding>
    <us-gaap:PreferredStockSharesOutstanding
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesOutstanding>
    <us-gaap:PreferredStockSharesIssued
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_shares">1969797</us-gaap:PreferredStockSharesIssued>
    <us-gaap:PreferredStockValue
      contextRef="PAsOn09_30_2021"
      unitRef="Unit_USD"
      xsi:nil="true"/>
    <us-gaap:CommonStockParOrStatedValuePerShare
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:CommonStockParOrStatedValuePerShare>
    <us-gaap:CommonStockParOrStatedValuePerShare
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:CommonStockParOrStatedValuePerShare>
    <us-gaap:CommonStockSharesAuthorized
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_shares">200000000</us-gaap:CommonStockSharesAuthorized>
    <us-gaap:CommonStockSharesAuthorized
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_shares">200000000</us-gaap:CommonStockSharesAuthorized>
    <us-gaap:CommonStockSharesOutstanding
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_shares">16860211</us-gaap:CommonStockSharesOutstanding>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn09_30_2021"
      decimals="INF"
      unitRef="Unit_shares">16860211</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesOutstanding
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_shares">15508146</us-gaap:CommonStockSharesOutstanding>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2020"
      decimals="INF"
      unitRef="Unit_shares">15508146</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockValue
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:CommonStockValue>
    <us-gaap:CommonStockValue
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:CommonStockValue>
    <us-gaap:AdditionalPaidInCapitalCommonStock
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">837636000</us-gaap:AdditionalPaidInCapitalCommonStock>
    <us-gaap:AdditionalPaidInCapitalCommonStock
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">665385000</us-gaap:AdditionalPaidInCapitalCommonStock>
    <us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">4000</us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax>
    <us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">47000</us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-602761000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">-425464000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">234881000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">239970000</us-gaap:StockholdersEquity>
    <us-gaap:LiabilitiesAndStockholdersEquity
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">304697000</us-gaap:LiabilitiesAndStockholdersEquity>
    <us-gaap:LiabilitiesAndStockholdersEquity
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">286995000</us-gaap:LiabilitiesAndStockholdersEquity>
    <us-gaap:Revenues
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:Revenues>
    <us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">54873000</us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost>
    <us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">53292000</us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost>
    <us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">152275000</us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost>
    <us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">131380000</us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">8287000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">5494000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">25606000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">15738000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:OperatingExpenses
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">63160000</us-gaap:OperatingExpenses>
    <us-gaap:OperatingExpenses
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">58786000</us-gaap:OperatingExpenses>
    <us-gaap:OperatingExpenses
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">177881000</us-gaap:OperatingExpenses>
    <us-gaap:OperatingExpenses
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">147118000</us-gaap:OperatingExpenses>
    <us-gaap:OperatingIncomeLoss
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-63160000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-58786000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-177881000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-147118000</us-gaap:OperatingIncomeLoss>
    <us-gaap:InterestIncomeOther
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">60000</us-gaap:InterestIncomeOther>
    <us-gaap:InterestIncomeOther
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">823000</us-gaap:InterestIncomeOther>
    <us-gaap:InterestIncomeOther
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">311000</us-gaap:InterestIncomeOther>
    <us-gaap:InterestIncomeOther
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">3897000</us-gaap:InterestIncomeOther>
    <us-gaap:OtherIncome
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:OtherIncome>
    <us-gaap:OtherIncome
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:OtherIncome>
    <us-gaap:OtherIncome
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">273000</us-gaap:OtherIncome>
    <us-gaap:OtherIncome
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">100000</us-gaap:OtherIncome>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-63100000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-57963000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-177297000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-143121000</us-gaap:NetIncomeLoss>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="P07_01_2021To09_30_2021"
      decimals="2"
      unitRef="Unit_USD_per_Share">-3.79</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="P07_01_2020To09_30_2020"
      decimals="2"
      unitRef="Unit_USD_per_Share">-3.75</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="P01_01_2021To09_30_2021"
      decimals="2"
      unitRef="Unit_USD_per_Share">-10.84</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="P01_01_2020To09_30_2020"
      decimals="2"
      unitRef="Unit_USD_per_Share">-9.27</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="P07_01_2021To09_30_2021"
      decimals="0"
      unitRef="Unit_shares">16639776</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="P07_01_2020To09_30_2020"
      decimals="0"
      unitRef="Unit_shares">15448425</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="P01_01_2021To09_30_2021"
      decimals="0"
      unitRef="Unit_shares">16353428</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="P01_01_2020To09_30_2020"
      decimals="0"
      unitRef="Unit_shares">15437018</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-63100000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-57963000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-177297000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-143121000</us-gaap:NetIncomeLoss>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-11000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-660000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-43000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">205000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:ComprehensiveIncomeNetOfTax
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-63111000</us-gaap:ComprehensiveIncomeNetOfTax>
    <us-gaap:ComprehensiveIncomeNetOfTax
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-58623000</us-gaap:ComprehensiveIncomeNetOfTax>
    <us-gaap:ComprehensiveIncomeNetOfTax
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-177340000</us-gaap:ComprehensiveIncomeNetOfTax>
    <us-gaap:ComprehensiveIncomeNetOfTax
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-142916000</us-gaap:ComprehensiveIncomeNetOfTax>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2020_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      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="0"
      unitRef="Unit_shares">550803</mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties>
    <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>
    <us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised
      contextRef="P01_01_2021To03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">4250</us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P01_01_2021To03_31_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">478000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P01_01_2021To03_31_2021"
      decimals="-3"
      unitRef="Unit_USD">478000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <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="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      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>
    <mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties
      contextRef="P04_01_2021To06_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">536323</mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P04_01_2021To06_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">63541000</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P04_01_2021To06_30_2021"
      decimals="-3"
      unitRef="Unit_USD">63541000</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P04_01_2021To06_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">8179000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P04_01_2021To06_30_2021"
      decimals="-3"
      unitRef="Unit_USD">8179000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P04_01_2021To06_30_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">29000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P04_01_2021To06_30_2021"
      decimals="-3"
      unitRef="Unit_USD">29000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P04_01_2021To06_30_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-61651000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P04_01_2021To06_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-61651000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn06_30_2021_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn06_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">16599522</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">810295000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">15000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-539661000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2021"
      decimals="-3"
      unitRef="Unit_USD">270651000</us-gaap:StockholdersEquity>
    <mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties
      contextRef="P07_01_2021To09_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">260164</mdgl:StockIssuedDuringPeriodSharesNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P07_01_2021To09_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">21092000</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">21092000</mdgl:StockIssuedDuringPeriodValueNewIssuesExcludingSalesToRelatedParties>
    <us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised
      contextRef="P07_01_2021To09_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">525</us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P07_01_2021To09_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">8000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">8000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P07_01_2021To09_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">6241000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">6241000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P07_01_2021To09_30_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-11000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-11000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2021To09_30_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-63100000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-63100000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn09_30_2021_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn09_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">16860211</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2021_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2021_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">837636000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2021_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">4000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2021_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-602761000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">234881000</us-gaap:StockholdersEquity>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2019_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn12_31_2019_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">5429154</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2019_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2019_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">639567000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2019_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">216000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2019_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-223220000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn12_31_2019"
      decimals="-3"
      unitRef="Unit_USD">416565000</us-gaap:StockholdersEquity>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P01_01_2020To03_31_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">4846000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P01_01_2020To03_31_2020"
      decimals="-3"
      unitRef="Unit_USD">4846000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2020To03_31_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">199000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P01_01_2020To03_31_2020"
      decimals="-3"
      unitRef="Unit_USD">199000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2020To03_31_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-36135000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2020To03_31_2020"
      decimals="-3"
      unitRef="Unit_USD">-36135000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2020_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn03_31_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">15429154</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">644413000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">415000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-259355000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn03_31_2020"
      decimals="-3"
      unitRef="Unit_USD">385475000</us-gaap:StockholdersEquity>
    <us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised
      contextRef="P04_01_2020To06_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">8970</us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P04_01_2020To06_30_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">109000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P04_01_2020To06_30_2020"
      decimals="-3"
      unitRef="Unit_USD">109000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P04_01_2020To06_30_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">5689000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P04_01_2020To06_30_2020"
      decimals="-3"
      unitRef="Unit_USD">5689000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P04_01_2020To06_30_2020"
      decimals="-3"
      unitRef="Unit_USD">666000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P04_01_2020To06_30_2020"
      decimals="-3"
      unitRef="Unit_USD">666000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P04_01_2020To06_30_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-49023000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P04_01_2020To06_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-49023000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn06_30_2020_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn06_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">15438124</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">650211000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">1081000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-308378000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn06_30_2020"
      decimals="-3"
      unitRef="Unit_USD">342916000</us-gaap:StockholdersEquity>
    <us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised
      contextRef="P07_01_2020To09_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="INF"
      unitRef="Unit_shares">28327</us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P07_01_2020To09_30_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">350000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">350000</us-gaap:StockIssuedDuringPeriodValueStockOptionsExercised>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P07_01_2020To09_30_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">5061000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">5061000</us-gaap:AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P07_01_2020To09_30_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-660000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-660000</us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2020To09_30_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-57963000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-57963000</us-gaap:NetIncomeLoss>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn09_30_2020_PreferredStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:CommonStockSharesIssued>
    <us-gaap:CommonStockSharesIssued
      contextRef="PAsOn09_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="0"
      unitRef="Unit_shares">15466451</us-gaap:CommonStockSharesIssued>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">2000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2020_AdditionalPaidInCapitalMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">655622000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2020_AccumulatedOtherComprehensiveIncomeMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">421000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2020_RetainedEarningsMemberusgaapStatementEquityComponentsAxis"
      decimals="-3"
      unitRef="Unit_USD">-366341000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="PAsOn09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">289704000</us-gaap:StockholdersEquity>
    <us-gaap:ProfitLoss
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-177297000</us-gaap:ProfitLoss>
    <us-gaap:ProfitLoss
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-143121000</us-gaap:ProfitLoss>
    <us-gaap:ShareBasedCompensation
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">20517000</us-gaap:ShareBasedCompensation>
    <us-gaap:ShareBasedCompensation
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">15596000</us-gaap:ShareBasedCompensation>
    <us-gaap:DepreciationDepletionAndAmortization
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">299000</us-gaap:DepreciationDepletionAndAmortization>
    <us-gaap:DepreciationDepletionAndAmortization
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">355000</us-gaap:DepreciationDepletionAndAmortization>
    <us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">2799000</us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets>
    <us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">513000</us-gaap:IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets>
    <us-gaap:IncreaseDecreaseInAccountsPayableTrade
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">9401000</us-gaap:IncreaseDecreaseInAccountsPayableTrade>
    <us-gaap:IncreaseDecreaseInAccountsPayableTrade
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">5099000</us-gaap:IncreaseDecreaseInAccountsPayableTrade>
    <us-gaap:IncreaseDecreaseInAccruedLiabilities
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">13279000</us-gaap:IncreaseDecreaseInAccruedLiabilities>
    <us-gaap:IncreaseDecreaseInAccruedLiabilities
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">19136000</us-gaap:IncreaseDecreaseInAccruedLiabilities>
    <mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">734000</mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived>
    <mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">834000</mdgl:IncreaseDecreaseInAccruedInterestNetOfInterestReceived>
    <us-gaap:NetCashProvidedByUsedInOperatingActivities
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-135866000</us-gaap:NetCashProvidedByUsedInOperatingActivities>
    <us-gaap:NetCashProvidedByUsedInOperatingActivities
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">-102614000</us-gaap:NetCashProvidedByUsedInOperatingActivities>
    <us-gaap:PaymentsToAcquireMarketableSecurities
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">339371000</us-gaap:PaymentsToAcquireMarketableSecurities>
    <us-gaap:PaymentsToAcquireMarketableSecurities
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">213186000</us-gaap:PaymentsToAcquireMarketableSecurities>
    <us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">318769000</us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities>
    <us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">378088000</us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities>
    <us-gaap:PaymentsToAcquirePropertyPlantAndEquipment
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">96000</us-gaap:PaymentsToAcquirePropertyPlantAndEquipment>
    <us-gaap:PaymentsToAcquirePropertyPlantAndEquipment
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">324000</us-gaap:PaymentsToAcquirePropertyPlantAndEquipment>
    <us-gaap:NetCashProvidedByUsedInInvestingActivities
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-20698000</us-gaap:NetCashProvidedByUsedInInvestingActivities>
    <us-gaap:NetCashProvidedByUsedInInvestingActivities
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">164578000</us-gaap:NetCashProvidedByUsedInInvestingActivities>
    <mdgl:ProceedsFromIssuanceOrSaleOfEquityNet
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">151249000</mdgl:ProceedsFromIssuanceOrSaleOfEquityNet>
    <mdgl:ProceedsFromTheExerciseOfCommonStockOptionsNetOfTransactionCosts
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">485000</mdgl:ProceedsFromTheExerciseOfCommonStockOptionsNetOfTransactionCosts>
    <mdgl:ProceedsFromTheExerciseOfCommonStockOptionsNetOfTransactionCosts
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">459000</mdgl:ProceedsFromTheExerciseOfCommonStockOptionsNetOfTransactionCosts>
    <us-gaap:NetCashProvidedByUsedInFinancingActivities
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">151734000</us-gaap:NetCashProvidedByUsedInFinancingActivities>
    <us-gaap:NetCashProvidedByUsedInFinancingActivities
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">459000</us-gaap:NetCashProvidedByUsedInFinancingActivities>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">-4830000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">62423000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">54004000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn12_31_2019"
      decimals="-3"
      unitRef="Unit_USD">46697000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">49174000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
      contextRef="PAsOn09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">109120000</us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents>
    <us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">376000</us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability>
    <us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">451000</us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability>
    <us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock contextRef="P01_01_2021To09_30_2021">&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, &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;small-&lt;/div&gt; molecule drugs addressing major unmet needs in cardiovascular, metabolic, and liver diseases. The Company&#x2019;s lead compound, MGL-3196 (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 non-alcoholic fatty liver disease (&#x201c;NAFLD&#x201d;). The Company initiated two Phase 3 studies of resmetirom in NASH in 2019 that are ongoing. The Company previously completed Phase 2 studies of resmetirom in NASH in May of 2018 and Heterozygous Familial Hypercholesterolemia (&#x201c;HeFH&#x201d;) in February of 2018. &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&lt;div style="display:inline;"&gt;&#160;&lt;/div&gt;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 31, 2021 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 31, 2020. &lt;/div&gt;</us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock>
    <us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock contextRef="P01_01_2021To09_30_2021">&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&lt;/div&gt; &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;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="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&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 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 nine months ended September 30, 2021 and 2020, the Company determined it did not have any securities that were other-than- temporarily impaired. &lt;/div&gt;  &lt;div style="margin-top:0pt; 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 nine months ended September 30, 2021 and 2020, the Company did not have any realized gains or losses on marketable &lt;div style="display:inline;"&gt;securities.&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;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 September 30, 2021, 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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;high-grade&lt;/div&gt; corporate and government agency bonds and commercial paper, and it had no financial assets valued based on Level&#160;3 inputs. During the nine months ended September 30, 2021 and 2020, the Company did not have any transfers of financial assets between Levels 1 and 2. As of September 30, 2021 and December 31, 2020, 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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;stock-based&lt;/div&gt; 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 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 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="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 5pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;risk-free&lt;/div&gt; 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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;risk-free&lt;/div&gt; 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 re-evaluated at least annually and the forfeiture rate is adjusted as necessary. &lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 11pt; 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;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 &lt;/div&gt;&lt;/div&gt;&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;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 &lt;div style="display:inline;"&gt;related&lt;/div&gt; deferred tax assets.&#x200b;&#x200b;&#x200b;&#x200b;&#x200b;&#x200b;&#x200b; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Income Taxes &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-weight:bold;display:inline;"&gt; &lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; 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 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 &lt;/div&gt;&lt;/div&gt;a 100% valuation allowance on its deferred tax assets. &lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Comprehensive Loss &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Basic and Diluted Loss Per Common Share &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; 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;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 nine months ended September 30, 2021 and 2020, 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&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 12pt; 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 following table summarizes outstanding&lt;div style="display:inline;"&gt;&#160;&lt;/div&gt;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&gt;&lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;div style="font-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 76%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 8pt; border-collapse: collapse; border-spacing: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 76%;"/&gt;
&lt;td style="width: 2%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 2%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Nine&#160;Months&#160;Ended&#160;September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;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 rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 1px;"&gt;
&lt;td style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Common stock options&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;2,254,629&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,810,753&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: top;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Preferred stock&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&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;;"&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_2021To09_30_2021">&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_2021To09_30_2021">&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_2021To09_30_2021">&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&lt;/div&gt; &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;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="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&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;</us-gaap:CashAndCashEquivalentsPolicyTextBlock>
    <us-gaap:MarketableSecuritiesPolicy contextRef="P01_01_2021To09_30_2021">&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 nine months ended September 30, 2021 and 2020, the Company determined it did not have any securities that were other-than- temporarily impaired. &lt;/div&gt;&lt;div style="margin-top:0pt; 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 nine months ended September 30, 2021 and 2020, the Company did not have any realized gains or losses on marketable &lt;div style="display:inline;"&gt;securities.&lt;/div&gt; &lt;/div&gt;</us-gaap:MarketableSecuritiesPolicy>
    <us-gaap:FairValueOfFinancialInstrumentsPolicy contextRef="P01_01_2021To09_30_2021">&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 September 30, 2021, 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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;high-grade&lt;/div&gt; corporate and government agency bonds and commercial paper, and it had no financial assets valued based on Level&#160;3 inputs. During the nine months ended September 30, 2021 and 2020, the Company did not have any transfers of financial assets between Levels 1 and 2. As of September 30, 2021 and December 31, 2020, 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_2021To09_30_2021">&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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;stock-based&lt;/div&gt; 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 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;</us-gaap:ResearchAndDevelopmentExpensePolicy>
    <mdgl:PatentsPolicyTextBlock contextRef="P01_01_2021To09_30_2021">&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_2021To09_30_2021">&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="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 5pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;risk-free&lt;/div&gt; 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 &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;risk-free&lt;/div&gt; 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 re-evaluated at least annually and the forfeiture rate is adjusted as necessary. &lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 11pt; 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;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 &lt;/div&gt;&lt;/div&gt;&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;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 &lt;div style="display:inline;"&gt;related&lt;/div&gt; deferred tax assets.&#x200b;&#x200b;&#x200b;&#x200b;&#x200b;&#x200b;&#x200b; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</us-gaap:ShareBasedCompensationOptionAndIncentivePlansPolicy>
    <us-gaap:IncomeTaxPolicyTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Income Taxes &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-weight:bold;display:inline;"&gt; &lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; 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 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 &lt;/div&gt;&lt;/div&gt;a 100% valuation allowance on its deferred tax assets. &lt;/div&gt;</us-gaap:IncomeTaxPolicyTextBlock>
    <mdgl:DeferredTaxAssetsPercentageOfValuationAllowance
      contextRef="P01_01_2021To09_30_2021"
      decimals="2"
      unitRef="Unit_pure">1</mdgl:DeferredTaxAssetsPercentageOfValuationAllowance>
    <us-gaap:ComprehensiveIncomePolicyPolicyTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Comprehensive Loss &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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&gt;</us-gaap:ComprehensiveIncomePolicyPolicyTextBlock>
    <us-gaap:EarningsPerSharePolicyTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Basic and Diluted Loss Per Common Share &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; 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;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 nine months ended September 30, 2021 and 2020, 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&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 12pt; 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 following table summarizes outstanding&lt;div style="display:inline;"&gt;&#160;&lt;/div&gt;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&gt;&lt;/div&gt; &lt;div style="font-size: 12pt; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;div style="font-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 76%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 8pt; border-collapse: collapse; border-spacing: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 76%;"/&gt;
&lt;td style="width: 2%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 2%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Nine&#160;Months&#160;Ended&#160;September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;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 rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 1px;"&gt;
&lt;td style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Common stock options&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;2,254,629&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,810,753&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: top;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Preferred stock&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;  </us-gaap:EarningsPerSharePolicyTextBlock>
    <us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="font-size: 12pt; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;div style="font-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 76%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 8pt; border-collapse: collapse; border-spacing: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 76%;"/&gt;
&lt;td style="width: 2%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 2%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="6" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Nine&#160;Months&#160;Ended&#160;September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;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 rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 1px;"&gt;
&lt;td style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Common stock options&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;2,254,629&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,810,753&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: top;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;Preferred stock&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&#160;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;;text-align:right;"&gt;1,969,797&lt;/td&gt;
&lt;td style="vertical-align: bottom; white-space: nowrap;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; </us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">2254629</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2020To09_30_2020_EmployeeStockOptionMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">1810753</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2021To09_30_2021_PreferredStockMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
      contextRef="P01_01_2020To09_30_2020_PreferredStockMemberusgaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"
      decimals="0"
      unitRef="Unit_shares">1969797</us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount>
    <us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock contextRef="P01_01_2021To09_30_2021">&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;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_2021To09_30_2021">&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: 6pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;The Company has incurred losses since inception, including approximately $177.3&#160;million for the nine months ended September 30, 2021, resulting in an accumulated deficit of approximately $602.8&#160;million as of September 30, 2021. 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 September 30, 2021 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; &lt;div style="margin-top: 0px; margin-bottom: 0px; font-size: 8pt;"&gt;&#160;&lt;/div&gt;</us-gaap:SubstantialDoubtAboutGoingConcernTextBlock>
    <us-gaap:NetIncomeLoss
      contextRef="P01_01_2021To09_30_2021"
      decimals="-5"
      unitRef="Unit_USD">-177300000</us-gaap:NetIncomeLoss>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="PAsOn09_30_2021"
      decimals="-5"
      unitRef="Unit_USD">-602800000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:CashCashEquivalentsAndMarketableSecuritiesTextBlock contextRef="P01_01_2021To09_30_2021">&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;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 September 30, 2021 and December 31, 2020 is as follows (in thousands): &lt;/div&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 92%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; border-collapse: collapse; border-spacing: 0px; text-indent: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 62%;"/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="14" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;September&#160;30,&#160;2021&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;gains&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;losses&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;value&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top; font-size: 10pt; width: 62%;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&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;Cash and cash equivalents:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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,116&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;&#160;&#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; width: 5%;"&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;&#160;&#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; width: 5%;"&gt;&#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,116&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; width: 62%;"&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; width: 5%;"&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;47,058&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;47,058&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 62%;"&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; width: 5%;"&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;49,174&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;49,174&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; width: 62%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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;233,697&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;21&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;(13&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;233,705&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; width: 62%;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; 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; width: 5%;"&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,000&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&gt;&#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,001&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; width: 62%;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; 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; width: 5%;"&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,269&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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,264&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 62%;"&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; width: 5%;"&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;299,140&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;22&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;299,144&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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="clear: both; max-height: 0px; text-indent: 0px;"/&gt; &lt;div style="clear: both; max-height: 0px; text-indent: 0px;"/&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 92%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; border-collapse: collapse; border-spacing: 0px; text-indent: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 62%;"/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="14" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;2020&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;gains&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;losses&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;value&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top; font-size: 10pt; width: 62%;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&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;Cash and cash equivalents:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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;716&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;&#160;&#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; width: 5%;"&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;&#160;&#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; width: 5%;"&gt;&#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;716&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; width: 62%;"&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; width: 5%;"&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;53,288&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;53,288&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 62%;"&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; width: 5%;"&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;54,004&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;54,004&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; width: 62%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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;227,172&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;80&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;227,216&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; width: 62%;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; 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; width: 5%;"&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,926&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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,929&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 62%;"&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; width: 5%;"&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;284,102&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;84&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;(37&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;284,149&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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="clear: both; max-height: 0px; text-indent: 0px;"/&gt;  </us-gaap:CashCashEquivalentsAndMarketableSecuritiesTextBlock>
    <us-gaap:ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock contextRef="P01_01_2021To09_30_2021">&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 September 30, 2021 and December 31, 2020 is as follows (in thousands): &lt;/div&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 92%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; border-collapse: collapse; border-spacing: 0px; text-indent: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 62%;"/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="14" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;September&#160;30,&#160;2021&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;gains&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;losses&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;value&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top; font-size: 10pt; width: 62%;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&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;Cash and cash equivalents:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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,116&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;&#160;&#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; width: 5%;"&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;&#160;&#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; width: 5%;"&gt;&#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,116&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; width: 62%;"&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; width: 5%;"&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;47,058&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;47,058&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 62%;"&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; width: 5%;"&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;49,174&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;49,174&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; width: 62%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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;233,697&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;21&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;(13&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;233,705&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; width: 62%;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; 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; width: 5%;"&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,000&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&gt;&#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,001&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; width: 62%;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; 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; width: 5%;"&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,269&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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,264&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 62%;"&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; width: 5%;"&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;299,140&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;22&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;299,144&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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="clear: both; max-height: 0px; text-indent: 0px;"/&gt; &lt;div style="clear: both; max-height: 0px; text-indent: 0px;"/&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 92%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; border-collapse: collapse; border-spacing: 0px; text-indent: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 62%;"/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 5%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="14" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;2020&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" rowspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/td&gt;
&lt;td rowspan="2" style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Unrealized&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; padding-bottom: 1pt;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;Fair&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;gains&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;losses&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;value&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 10pt; page-break-inside: avoid; background-color: rgb(204, 238, 255);"&gt;
&lt;td style="vertical-align: top; font-size: 10pt; width: 62%;"&gt;&lt;div style="text-indent: -1em; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 0pt; margin-bottom: 0pt; margin-left: 1em; line-height: normal;"&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;Cash and cash equivalents:&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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;716&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;&#160;&#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; width: 5%;"&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;&#160;&#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; width: 5%;"&gt;&#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;716&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; width: 62%;"&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; width: 5%;"&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;53,288&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;53,288&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 62%;"&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; width: 5%;"&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;54,004&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&gt;&#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;54,004&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; width: 62%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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;&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; width: 62%;"&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; width: 5%;"&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;227,172&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;80&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;227,216&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; width: 62%;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; 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; width: 5%;"&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,926&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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,929&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 62%;"&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; width: 5%;"&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;284,102&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;84&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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;(37&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&gt;&#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;284,149&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; width: 62%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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; width: 5%;"&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="clear: both; max-height: 0px; text-indent: 0px;"/&gt; </us-gaap:ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CashMemberusgaapCashAndCashEquivalentsAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">2116000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_CashMemberusgaapCashAndCashEquivalentsAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">2116000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">47058000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">47058000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">49174000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">49174000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To09_30_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities2MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">233697000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn09_30_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">21000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn09_30_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">13000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn09_30_2021_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">233705000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To09_30_2021_AgencySecuritiesMemberusgaapFinancialInstrumentAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn09_30_2021_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">12000000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn09_30_2021_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">1000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn09_30_2021_AgencySecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">12001000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To09_30_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MinimumMembersrtRangeAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2021To09_30_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MaximumMembersrtRangeAxis">P2Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">4269000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn09_30_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn09_30_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">5000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn09_30_2021_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">4264000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:CashCashEquivalentsAndShortTermInvestmentsAtCost
      contextRef="PAsOn09_30_2021_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">299140000</mdgl:CashCashEquivalentsAndShortTermInvestmentsAtCost>
    <mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedGains
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">22000</mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedGains>
    <mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedLosses
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">18000</mdgl:CashAndCashEquivalentsAndAvailableForSaleSecuritiesGrossUnrealizedLosses>
    <us-gaap:CashCashEquivalentsAndShortTermInvestments
      contextRef="PAsOn09_30_2021_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">299144000</us-gaap:CashCashEquivalentsAndShortTermInvestments>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CashMemberusgaapCashAndCashEquivalentsAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">716000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2020_CashMemberusgaapCashAndCashEquivalentsAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">716000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">53288000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2020_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel1MemberusgaapFairValueByFairValueHierarchyLevelAxis_MoneyMarketFundsMemberusgaapCashAndCashEquivalentsAxis"
      decimals="-3"
      unitRef="Unit_USD">53288000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">54004000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="PAsOn12_31_2020_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">54004000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2020To12_31_2020_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn12_31_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">227172000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn12_31_2020_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">80000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn12_31_2020_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">36000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn12_31_2020_CorporateDebtSecuritiesMemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">227216000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2020To12_31_2020_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MinimumMembersrtRangeAxis">P1Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities contextRef="P01_01_2020To12_31_2020_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_MaximumMembersrtRangeAxis">P2Y</mdgl:MaturityPeriodFromDateOfPurchaseToClassifyInvestmentAsMarketableSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn12_31_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">2926000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn12_31_2020_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">4000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn12_31_2020_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">1000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn12_31_2020_CorporateDebtSecurities3MemberusgaapFinancialInstrumentAxis_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis_FairValueInputsLevel2MemberusgaapFairValueByFairValueHierarchyLevelAxis"
      decimals="-3"
      unitRef="Unit_USD">2929000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="PAsOn12_31_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">284102000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">84000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">37000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="PAsOn12_31_2020_EstimateOfFairValueFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis"
      decimals="-3"
      unitRef="Unit_USD">284149000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mdgl:AccruedLiabilitiesDisclosureTextBlock contextRef="P01_01_2021To09_30_2021">&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="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; 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;Accrued liabilities as of September&#160;30, 2021 and December&#160;31, 2020 consisted of the following (in thousands):&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 76%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; border-collapse: collapse; border-spacing: 0px; text-indent: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 68%;"/&gt;
&lt;td style="width: 10%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 10%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;September&#160;30,&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2020&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 68%;"&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; width: 10%;"&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;40,807&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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;31,646&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; width: 68%;"&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; width: 10%;"&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,507&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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,901&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; width: 68%;"&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; width: 10%;"&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,970&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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,686&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; width: 68%;"&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; width: 10%;"&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,711&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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;830&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; width: 68%;"&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; width: 10%;"&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,506&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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,159&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; width: 68%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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; width: 10%;"&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; width: 68%;"&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; width: 10%;"&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;58,501&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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;45,222&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; width: 68%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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; width: 10%;"&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="clear: both; max-height: 0px; text-indent: 0px;"/&gt; &lt;div style="clear: both; max-height: 0px; text-indent: 0px;"/&gt;  </mdgl:AccruedLiabilitiesDisclosureTextBlock>
    <us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 6pt; 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;Accrued liabilities as of September&#160;30, 2021 and December&#160;31, 2020 consisted of the following (in thousands):&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="margin: 0px auto; border: 0px currentcolor; width: 76%; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; border-collapse: collapse; border-spacing: 0px; text-indent: 0px;"&gt;
&lt;tr style="font-size: 0px;"&gt;
&lt;td style="width: 68%;"/&gt;
&lt;td style="width: 10%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td style="width: 10%; vertical-align: bottom;"/&gt;
&lt;td/&gt;
&lt;td/&gt;
&lt;td/&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;September&#160;30,&#160;&#160;&#160;&#160;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom;;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-family: Times New Roman; font-size: 8pt; page-break-inside: avoid;"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&#160;&lt;/div&gt;&lt;/td&gt;
&lt;td colspan="2" style="vertical-align: bottom; border-bottom: 1pt solid rgb(0, 0, 0);;text-align:center;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;display:inline;"&gt;2020&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&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:10pt;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 68%;"&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; width: 10%;"&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;40,807&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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;31,646&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; width: 68%;"&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; width: 10%;"&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,507&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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,901&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; width: 68%;"&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; width: 10%;"&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,970&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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,686&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; width: 68%;"&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; width: 10%;"&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,711&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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;830&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; width: 68%;"&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; width: 10%;"&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,506&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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,159&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; width: 68%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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; width: 10%;"&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; width: 68%;"&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; width: 10%;"&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;58,501&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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;45,222&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; width: 68%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 10%;"&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; width: 10%;"&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="clear: both; max-height: 0px; text-indent: 0px;"/&gt; &lt;div style="clear: both; max-height: 0px; text-indent: 0px;"/&gt; </us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock>
    <mdgl:AccruedContractResearchCostsCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">40807000</mdgl:AccruedContractResearchCostsCurrent>
    <mdgl:AccruedContractResearchCostsCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">31646000</mdgl:AccruedContractResearchCostsCurrent>
    <mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">5507000</mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent>
    <mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">3901000</mdgl:AccruedOtherClinicalStudyRelatedCostsCurrent>
    <mdgl:AccruedCompensationAndBenefitsCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">4970000</mdgl:AccruedCompensationAndBenefitsCurrent>
    <mdgl:AccruedCompensationAndBenefitsCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">4686000</mdgl:AccruedCompensationAndBenefitsCurrent>
    <us-gaap:AccruedProfessionalFeesCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">1711000</us-gaap:AccruedProfessionalFeesCurrent>
    <us-gaap:AccruedProfessionalFeesCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">830000</us-gaap:AccruedProfessionalFeesCurrent>
    <us-gaap:OtherAccruedLiabilitiesCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">5506000</us-gaap:OtherAccruedLiabilitiesCurrent>
    <us-gaap:OtherAccruedLiabilitiesCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">4159000</us-gaap:OtherAccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">58501000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="PAsOn12_31_2020"
      decimals="-3"
      unitRef="Unit_USD">45222000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:StockholdersEquityNoteDisclosureTextBlock contextRef="P01_01_2021To09_30_2021">&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 &lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;one &lt;/div&gt;vote &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;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&gt;&lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 12pt; 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 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&gt;&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;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;The Series A Preferred Stock has a par value of $0.0001 per share and is convertible into shares of the common stock at a &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;one&lt;/div&gt;&lt;/div&gt;&lt;div style="text-indent: 0px; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;-to-one&lt;/div&gt; ratio&lt;/div&gt;, 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 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 winding-up 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;;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 &lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;no&lt;/div&gt; 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;;display:inline;"&gt;as-converted&lt;/div&gt; basis. &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;&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&lt;div style="display:inline;"&gt;&#160;&lt;/div&gt;Agreement &lt;/div&gt;&lt;/div&gt; &lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&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:Times New Roman"&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, and 39,607 were sold in 2020. &lt;/div&gt; &lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;In June 2021, the Company filed with the SEC and had declared 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:Times New Roman"&gt;As of September 30, 2021, 260,164 shares had been sold under the 2021 Sales Agreement for an aggregate of approximately $21.5&#160;million in gross proceeds, with net proceeds to the Company of approximately $20.9&#160;million after deducting commissions and other transaction costs. As of September 30, 2021, $178.5&#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_2021To09_30_2021"
      decimals="INF"
      unitRef="Unit_Vote">1</mdgl:CommonStockVotingRightsNumber>
    <us-gaap:PreferredStockParOrStatedValuePerShare
      contextRef="PAsOn06_30_2017_ConvertibleSeriesPreferredStockMemberusgaapStatementClassOfStockAxis"
      decimals="INF"
      unitRef="Unit_USD_per_Share">0.0001</us-gaap:PreferredStockParOrStatedValuePerShare>
    <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="INF"
      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_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="INF"
      unitRef="Unit_shares">1126733</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="P01_01_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="-5"
      unitRef="Unit_USD">137400000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="P01_01_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="-5"
      unitRef="Unit_USD">134800000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P01_01_2021To09_30_2021"
      decimals="0"
      unitRef="Unit_shares">1087126</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P01_01_2020To09_30_2020"
      decimals="0"
      unitRef="Unit_shares">39607</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <mdgl:CommonStockAggregateOfferingPrice
      contextRef="P01_01_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_CowenCo.LlcMembersrtCounterpartyNameAxis_MaximumMembersrtRangeAxis"
      decimals="-6"
      unitRef="Unit_USD">200000000</mdgl:CommonStockAggregateOfferingPrice>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P01_01_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="INF"
      unitRef="Unit_shares">260164</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="P01_01_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="-5"
      unitRef="Unit_USD">21500000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="P01_01_2021To09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="-5"
      unitRef="Unit_USD">20900000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <mdgl:RemainingSecuritiesUnderShelfRegistrationValue
      contextRef="PAsOn09_30_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_TwoThousandTwentyOneSalesAgreementMemberMDGLAgreementAxis"
      decimals="-5"
      unitRef="Unit_USD">178500000</mdgl:RemainingSecuritiesUnderShelfRegistrationValue>
    <us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock contextRef="P01_01_2021To09_30_2021">&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;7. 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 2015 Stock Plan, as amended, is our primary plan through which equity based grants are awarded. The 2015 Stock Plan provides for the grant of incentive stock options, &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;;display:inline;"&gt;non-statutory&lt;/div&gt; 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 style="letter-spacing: 0px; top: 0px;;display:inline;"&gt; ten years&lt;/div&gt; from the date the option is granted. Effective June&#160;17, 2021, the 2015 Stock Plan was amended by stockholder vote to,&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;among other things, increase the number of authorized shares by 1,200,000. As of September 30, 2021, the Company had options outstanding to purchase 2,254,629 shares of its common stock, which includes options outstanding under its 2006 Stock Plan. As of September 30, 2021, 1,714,543 shares were available for future issuance. &lt;/div&gt; &lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 12pt; 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 following table summarizes stock option activity during the nine months ended September 30, 2021: &lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&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 style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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&lt;br/&gt; exercise&#160;price&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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; width: 75%;"&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, 2021&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,837,540&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;71.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"&gt;
&lt;td style="vertical-align: top; width: 75%;"&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; width: 5%;"&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;602,059&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;113.04&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; width: 75%;"&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 exercised&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,775&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;101.79&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; width: 75%;"&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; width: 5%;"&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;(180,195&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;114.37&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; width: 75%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 4%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 75%;"&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 September&#160;30, 2021&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,254,629&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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.34&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; width: 75%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 4%;"&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"&gt;
&lt;td style="vertical-align: top; width: 75%;"&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 September&#160;30, 2021&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,392,219&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;61.07&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="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 total cash received by &lt;/div&gt;&lt;/div&gt;the Company as a result of stock option exercises was $0.5&#160;million and $0.5&#160;million, respectively, for the nine months ended September 30, 2021 and 2020. The weighted-average grant date fair values, based on the Black-Scholes option model, of options granted during the&lt;div style="display:inline;"&gt; nine&lt;/div&gt; months ended September 30, 2021 and 2020 were $75.71 and $65.65, respectively. &lt;/div&gt;&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 18pt; margin-bottom: 0pt; text-indent: 0px;"&gt;&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&lt;div style="font-weight:bold;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;Stock-Based Compensation Expense &lt;/div&gt;&lt;/div&gt;&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 nine months ended September 30, 2021 and 2020 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:92%;border:0;margin:0 auto"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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&lt;br/&gt; September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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;Nine Months&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;Ended&lt;br/&gt; September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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; width: 70%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 70%;"&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; width: 3%;"&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,241&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;5,061&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;20,517&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;15,596&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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,241&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;5,061&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;20,517&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;15,596&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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,622&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,266&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;8,120&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,633&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; width: 70%;"&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; width: 3%;"&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,619&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,795&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,397&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;8,963&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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,241&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;5,061&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;20,517&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;15,596&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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 September 30, 2021 was $52.6&#160;million with a weighted average remaining period of 2.85 years. &lt;/div&gt;</us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod contextRef="P01_01_2021To09_30_2021_MaximumMembersrtRangeAxis">P10Y</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">2254629</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">1714543</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant>
    <us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt; margin-top: 12pt; 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 following table summarizes stock option activity during the nine months ended September 30, 2021: &lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style="font-size: 12pt; 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-size: 12pt; letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;&lt;/div&gt;&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 style="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt"&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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&lt;br/&gt; exercise&#160;price&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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; width: 75%;"&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, 2021&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,837,540&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;71.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"&gt;
&lt;td style="vertical-align: top; width: 75%;"&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; width: 5%;"&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;602,059&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;113.04&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; width: 75%;"&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 exercised&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,775&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;101.79&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; width: 75%;"&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; width: 5%;"&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;(180,195&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;)&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;114.37&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; width: 75%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 4%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 75%;"&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 September&#160;30, 2021&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,254,629&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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.34&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; width: 75%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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; width: 4%;"&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"&gt;
&lt;td style="vertical-align: top; width: 75%;"&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 September&#160;30, 2021&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 5%;"&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,392,219&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 4%;"&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;61.07&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_2020_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">1837540</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="PAsOn12_31_2020_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">71.80</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">602059</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">113.04</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice>
    <us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">4775</us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">101.79</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="0"
      unitRef="Unit_shares">180195</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">114.37</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">2254629</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">79.34</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">1392219</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="INF"
      unitRef="Unit_USD_per_Share">61.07</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice>
    <us-gaap:ProceedsFromStockOptionsExercised
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">500000</us-gaap:ProceedsFromStockOptionsExercised>
    <us-gaap:ProceedsFromStockOptionsExercised
      contextRef="P01_01_2020To09_30_2020_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">500000</us-gaap:ProceedsFromStockOptionsExercised>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">75.71</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
      contextRef="P01_01_2020To09_30_2020_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="2"
      unitRef="Unit_USD_per_Share">65.65</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue>
    <mdgl:ScheduleOfShareBasedCompensationExpenseAllocationOfCompensationCostsAndRecognizedPeriodCostsTableTextBlock contextRef="P01_01_2021To09_30_2021">&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman"&gt;Stock-based compensation expense during the nine months ended September 30, 2021 and 2020 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:92%;border:0;margin:0 auto"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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&lt;br/&gt; September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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;Nine Months&lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;&#160;&lt;/div&gt;Ended&lt;br/&gt; September&#160;30,&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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: 1pt;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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;2020&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td style="vertical-align: bottom; padding-bottom: 1pt;"&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; width: 70%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 70%;"&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; width: 3%;"&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,241&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;5,061&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;20,517&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;15,596&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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,241&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;5,061&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;20,517&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;15,596&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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,622&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,266&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;8,120&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,633&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; width: 70%;"&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; width: 3%;"&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,619&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,795&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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,397&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;8,963&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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;background-color:#cceeff"&gt;
&lt;td style="vertical-align: top; width: 70%;"&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; width: 3%;"&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,241&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;5,061&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;20,517&lt;/td&gt;
&lt;td style="white-space:nowrap;vertical-align:bottom"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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;15,596&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; width: 70%;"&gt;&#160;&lt;/td&gt;
&lt;td style="vertical-align: bottom; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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; width: 3%;"&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="P07_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">6241000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2020To09_30_2020_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">5061000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">20517000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2020To09_30_2020_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-3"
      unitRef="Unit_USD">15596000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">6241000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">5061000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">20517000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">15596000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2021To09_30_2021_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">2622000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2020To09_30_2020_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">2266000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To09_30_2021_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">8120000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2020To09_30_2020_ResearchAndDevelopmentExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">6633000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2021To09_30_2021_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">3619000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2020To09_30_2020_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">2795000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To09_30_2021_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">12397000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2020To09_30_2020_GeneralAndAdministrativeExpenseMemberusgaapIncomeStatementLocationAxis"
      decimals="-3"
      unitRef="Unit_USD">8963000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">6241000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P07_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">5061000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2021To09_30_2021"
      decimals="-3"
      unitRef="Unit_USD">20517000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="P01_01_2020To09_30_2020"
      decimals="-3"
      unitRef="Unit_USD">15596000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
      contextRef="PAsOn09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">52600000</us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized>
    <us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1 contextRef="P01_01_2021To09_30_2021_EmployeeStockOptionMemberusgaapAwardTypeAxis">P2Y10M6D</us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1>
    <us-gaap:CommitmentsAndContingenciesDisclosureTextBlock contextRef="P01_01_2021To09_30_2021">&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. The agreement requires future milestone payments to Roche. Remaining milestones under the agreement total $8&#160;million and are earned by achieving specified objectives related to future regulatory approval in the United States and Europe of a product developed from resmetirom. A single-digit royalty payment range is based on net sales of products 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 nine months ended September 30, 2021 and 2020. &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 support of its Phase 3 clinical trials.&lt;/div&gt;</us-gaap:CommitmentsAndContingenciesDisclosureTextBlock>
    <mdgl:RemainingMilestonePayments
      contextRef="PAsOn09_30_2021_HoffmanLaRocheMembersrtCounterpartyNameAxis_ResearchDevelopmentAndCommercializationAgreementMemberusgaapTypeOfArrangementAxis"
      decimals="-6"
      unitRef="Unit_USD">8000000</mdgl:RemainingMilestonePayments>
    <us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax
      contextRef="P01_01_2021To09_30_2021"
      decimals="0"
      unitRef="Unit_USD">0</us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax>
    <us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax
      contextRef="P01_01_2020To09_30_2020"
      decimals="0"
      unitRef="Unit_USD">0</us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax>
    <us-gaap:SubsequentEventsTextBlock contextRef="P01_01_2021To09_30_2021">&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;Since the end of the third quarter through November&#160;2, 2021, the Company sold 236,879 shares under the 2021 Sales Agreement (described in Note 6) for an aggregate of approximately $19.4&#160;million in gross proceeds. Net proceeds to the Company were approximately $19.0&#160;million after deducting commissions and other transaction costs. After giving effect to such sales as of November&#160;2, 2021, approximately $159.2&#160;million remained reserved and available for sale under the 2021 Sales Agreement and &lt;div style="letter-spacing: 0px; top: 0px;;display:inline;"&gt;the&#160;&lt;/div&gt;Company&#x2019;s related prospectus supplement. &lt;/div&gt;</us-gaap:SubsequentEventsTextBlock>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="P11_02_2021To11_02_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_SubsequentEventMemberusgaapSubsequentEventTypeAxis"
      decimals="INF"
      unitRef="Unit_shares">236879</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="P11_02_2021To11_02_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_SubsequentEventMemberusgaapSubsequentEventTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">19400000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="P11_02_2021To11_02_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_SubsequentEventMemberusgaapSubsequentEventTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">19000000.0</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <mdgl:RemainingSecuritiesUnderShelfRegistrationValue
      contextRef="PAsOn11_02_2021_AtTheMarketIssuanceSalesAgreementMemberusgaapTypeOfArrangementAxis_SubsequentEventMemberusgaapSubsequentEventTypeAxis"
      decimals="-5"
      unitRef="Unit_USD">159200000</mdgl:RemainingSecuritiesUnderShelfRegistrationValue>
</xbrl>
