Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation The accompanying consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries. The Company translates the financial statements of its foreign subsidiaries using end-of-period exchange rates for assets and liabilities and average exchange rates during each reporting period for results of operations. All intercompany balances and transactions among the consolidated entities have been eliminated in consolidation. The accompanying consolidated financial statements have been prepared in accordance with accounting principles generally accepted in the United States of America (“GAAP”). Use of Estimates The preparation of consolidated financial statements in accordance with GAAP requires management to make estimates and assumptions that impact the reported amounts of assets, liabilities and expenses and the disclosure of contingent assets and liabilities in the financial statements and accompanying notes. These estimates and assumptions are based upon historical experience, knowledge of current events and various other factors believed to be reasonable under the circumstances, the results of which form the basis for making judgments about the carrying values of assets and liabilities and the recording of expenses that are not readily apparent from other sources. Actual results could differ materially from those estimates. The Company’s consolidated financial statements as of and for the year ended December 31, 2023 reflect the Company’s estimates of the impact of the geopolitical and macroeconomic environment, including the impact of inflation, bank failures, high interest rates and foreign exchange rate fluctuations. The duration and the scope of these conditions cannot be predicted; therefore, the extent to which these conditions will directly or indirectly impact the Company’s business, results of operations and financial condition, is uncertain. The Company is not aware of any specific event or circumstance that would require an update to its estimates, judgments and assumptions or a revision of the carrying value of the Company’s assets or liabilities as of the date of this filing. Cash, Cash Equivalents and Restricted Cash Equivalents The Company considers all highly liquid investments that are readily convertible into cash without penalty and with original maturities of three months or less at the date of purchase to be cash equivalents. The carrying amounts reported in the consolidated balance sheets for cash and cash equivalents are valued at cost, which approximate their fair value. Restricted cash equivalents as of December 31, 2022 consisted of deposits placed in a segregated bank account as required under the terms of the Company’s RIPA, as amended in September 2021, with Mulholland SA LLC, an affiliate of Oberland Capital LLC (“Oberland”), as agent for the purchasers party thereto (the “Purchasers”), and the Purchasers in connection with the sale of the Priority Review Voucher in December 2021. Upon repurchase and the termination of the RIPA in April 2023, in accordance with its terms, the previously restricted cash equivalents of $ 100.0 million were no longer restricted from use. The following table provides a reconciliation of cash, cash equivalents and restricted cash equivalents reported within the consolidated balance sheets that together reflect the same amounts shown in the consolidated statements of cash flows (in thousands): December 31, 2023 2022 Cash and cash equivalents $ 286,326 $ 28,003 Restricted cash equivalents — 100,000 Total cash, cash equivalents, and restricted cash equivalents $ 286,326 $ 128,003 Concentrations of Credit Risk and Off-Balance Sheet Risk Financial instruments that potentially subject the Company to a concentration of credit risk consist of cash and cash equivalents, accounts receivable and investments. The Company limits the amount of credit exposure by investing cash that is not required for immediate operating needs in money market funds, government obligations and/or commercial paper with short maturities. Additionally, the Company has established guidelines regarding diversification of its investments and their maturities, which are designed to maintain principal and maximize liquidity. To date, the Company has not experienced any losses associated with this credit risk and continues to believe that this exposure is not significant. The Company relies on a specialty pharmacy and a single distributor for all of the Company’s sales of Livmarli in the United States as well as a single distributor for sales outside the United States. The Company relies on a specialty pharmacy for all the Company’s sales of Chenodal and Cholbam in the United States. The Company sources materials and services through several vendors. Certain materials are sourced from a single vendor. The loss of certain vendors could result in a temporary disruption of the Company’s commercialization efforts. As of December 31, 2023 , the Company did no t have any customers that individually accounted for more than 10 % of accounts receivable. As of December 31, 2022 , the Company had one customer that accounted for approximately 23 % of accounts receivable. For the years ended December 31, 2023, 2022 and 2021 , the Company did not have revenue attributable to any one customer in excess of 10 % of sales. Investments The Company classifies all investments in securities as available-for-sale. Management determines the appropriate classification of its investments in securities at the time of purchase. Investments with original maturities beyond three months at the date of purchase and which mature at, or less than twelve months from the balance sheet date, are classified as a current asset. Investments are recorded at fair value, with unrealized gains and losses reported as accumulated other comprehensive income (loss) until realized, with the exception of any declines in fair value below the cost basis that are a result of a credit loss, which, if any, are reported in other income (expense), net in the current period through an allowance for credit losses. Each reporting period, the Company evaluates whether declines in fair values of its available-for-sale securities below their cost basis are a result of credit loss or other factors and whenever events or changes in circumstances indicate that the carrying amount of an asset may not be recoverable. This evaluation consists of several qualitative and quantitative factors regarding the severity and duration of the unrealized loss, the creditworthiness of the security issuers, as well as the Company’s ability and intent to hold the available-for-sale security until a forecasted recovery occurs. Additionally, the Company assesses whether it has plans to sell the security or it is more likely than not it will be required to sell any available-for-sale securities before recovery of its amortized cost basis. The cost of debt securities is adjusted for amortization of premiums and accretion of discounts to maturity. Such amortization and accretion, as well as interest and dividends, are included in interest income. Realized gains and losses from the sale of available-for-sale securities, if any, are determined on a specific identification basis and are also included in other income (expense). To date, the Company has no t identified any declines in fair value of its investments related to credit loss. Fair Value of Financial Instruments Fair value is defined as an exit price, representing the amount that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants. As such, fair value is a market-based measurement determined based on assumptions that market participants would use in pricing an asset or liability. The following fair value hierarchy distinguishes between observable and unobservable inputs, which are categorized in one of the following levels: Level 1: Observable inputs (unadjusted) such as quoted prices in active markets for identical assets or liabilities; Level 2: Inputs, other than the quoted prices in active markets, that are observable either directly or indirectly for similar assets or liabilities; and Level 3: Unobservable inputs in which there is little or no market data, which require the reporting entity to develop its own assumptions. Accounts Receivable The Company has accounts receivable amounts due from product sales. The Company also has accounts receivable amounts due from license agreements for milestones achieved, but not yet paid. Amounts payable to the Company are recorded as accounts receivable when the Company’s right to consideration is unconditional. The Company estimates the allowance for credit losses using the current expected credit loss model. Under this model, the allowance for credit losses reflects the Company’s estimate of lifetime expected credit losses. The Company evaluates the collectability of the cash flows based on the risk of loss over the contractual life, even when that risk is remote, based on judgments about the creditworthiness of its customers, historical experience and other relevant information that is available to the Company. There was no allowance for credit losses as of December 31, 2023 . There was no bad debt expense for the years ended December 31, 2023, 2022 and 2021 . Inventory Inventory is valued at the lower of cost or net realizable value, with cost determined on a first-in, first-out (FIFO) basis. The Company periodically reviews the composition of inventory to identify excess, obsolete, slow-moving or otherwise unsaleable items. If unsaleable items are observed and there are no alternate uses for the inventory, the Company will record a write-down to net realizable value in the period that the decline in value is recognized through a charge to cost of sales. Furthermore, the Company periodically reviews its firm commitments for the purchase of minimum order quantities. If the minimum order quantities exceed the Company’s future demand, a net loss is accrued in cost of sales for such future inventory purchases. The determination of whether inventory costs will be realizable requires estimates by management. If actual market conditions are less favorable than projected by management, additional write-downs of inventory may be required. Accruals for firm purchase commitments amounted to $ 5.2 million as of December 31, 2023, of which $ 3.8 million was included in other liabilities on the consolidated balance sheets. Prior to the initial regulatory approval for Livmarli, the Company expensed costs relating to raw materials and production of inventory as research and development expense in the accompanying consolidated statements of operations, in the period incurred. The Company has substantially depleted such inventories as of December 31, 2023. Property and Equipment Property and equipment are recorded at cost less accumulated depreciation. Depreciation is computed on a straight-line basis over the estimated useful lives of the related assets, ranging from three to five years . Leasehold improvements are amortized over the shorter of their useful lives or the related lease term. As of December 31, 2023 , property and equipment consisted primarily of leasehold improvements of $ 1.3 million and furniture and equipment of $ 0.9 million. As of December 31, 2022 , property and equipment consisted primarily of leasehold improvements of $ 1.3 million and furniture and equipment of $ 0.6 million. Accumulated depreciation as of December 31, 2023 and 2022 was $ 1.5 million and $ 1.0 million, respectively. Depreciation expense was $ 0.3 million for each of the years ended December 31, 2023, 2022 and 2021 . Impairment of Long-Lived Assets Long-lived assets are reviewed for indications of possible impairment whenever events or changes in circumstances indicate that the carrying amount of an asset may not be recoverable. Recoverability is measured by comparison of the carrying amounts to the future undiscounted cash flows attributable to these assets. An impairment loss is recognized to the extent an asset group is not recoverable, and the carrying amount exceeds the projected discounted future cash flows arising from these assets. There were no impairments of long-lived assets for any of the periods presented. Intangible Assets, Net The Company accounts for asset acquisitions that do not meet the definition of a business using the cost accumulation method, whereby the cost of the acquisition, including certain transaction costs, is allocated to the asset (or assets) acquired on the basis of its (or their) relative fair value(s) on the measurement date. No goodwill is recognized in an asset acquisition. Intangible assets are measured at their fair values as of the acquisition date or, in the case of commercial milestone payments, the date they become due. The evaluation of intangible assets includes assessing the amortization period for which the asset is expected to contribute to the future cash flows of the Company. Intangible assets with finite useful lives are amortized over their estimated useful lives, primarily on a straight-line basis when the Company is unable to reliably estimate the pattern of cash flow. The Company tests its finite lived intangible assets for impairment annually or if events or changes in circumstances indicate that it is more likely than not that the asset is impaired. If it is determined that the asset is impaired, the carrying value is written down to its estimated fair value, with the related impairment charge recognized in the consolidated statements of operations in the period in which the impairment occurs. The Company has not recorded any impairments to its intangible assets for any of the periods presented. The components of the Company’s intangible assets were as follows (in thousands, except for weighted-average remaining amortization period): December 31, 2023 Gross Carrying Value Accumulated Amortization Net Carrying Amount Weighted-Average Remaining Amortization Period Commercial milestones $ 39,000 $ ( 3,318 ) $ 35,682 16.2 Developed technology 226,620 ( 10,239 ) 216,381 11.7 Assembled workforce 970 ( 108 ) 862 2.7 Total intangible assets $ 266,590 $ ( 13,665 ) $ 252,925 12.3 December 31, 2022 Gross Carrying Value Accumulated Amortization Net Carrying Amount Weighted-Average Remaining Amortization Period Commercial milestones $ 34,000 $ ( 1,333 ) $ 32,667 17.1 Developed technology 28,107 ( 1,820 ) 26,287 8.4 Total intangible assets $ 62,107 $ ( 3,153 ) $ 58,954 11.9 Amortization expense was $ 10.5 million, $ 2.9 million and $ 0.3 million for the years ended December 31, 2023, 2022 and 2021, respectively, and was included in cost of sales on the accompanying consolidated statements of operations. The following table summarizes the estimated future amortization expense associated with the Company’s intangible assets as of December 31, 2023 (in thousands): Amount 2024 $ 21,545 2025 21,545 2026 21,436 2027 21,221 2028 21,221 Thereafter 145,957 $ 252,925 Leases The Company determines if a contractual arrangement is or contains a lease at inception. Operating lease right-of-use (“ROU”) assets represent the Company’s right to use an underlying asset during the lease term, and operating lease liabilities represent the Company’s obligation to make lease payments arising from the lease. Operating leases are included in ROU assets, current operating lease liabilities, and long-term operating lease liabilities on the accompanying consolidated balance sheets. Operating lease ROU assets and lease liabilities are initially recognized based on the present value of the future minimum lease payments over the lease term at commencement date calculated using the Company’s incremental borrowing rate applicable to the leased asset, unless the implicit rate is readily determinable. Operating lease ROU assets also include any lease payments made at or before lease commencement and exclude any lease incentives received. The Company determines the lease term as the noncancelable period of the lease and may include options to extend or terminate the lease when it is reasonably certain that the Company will exercise that option. Leases with a term of 12 months or less are not recognized on the consolidated balance sheets. The Company’s leases do not contain any residual value guarantees. Lease expense for minimum lease payments is recognized as rent expense on a straight-line basis over the lease term. Variable lease payments include lease operating expenses. Accrued Research and Development Expenses The Company accrues and expenses clinical trial activities performed by third parties based upon estimates of the proportion of work completed over the life of the individual study and patient enrollment rates in accordance with agreements established with clinical research organizations and clinical trial sites. The Company determines the estimates by reviewing contracts, vendor agreements and purchase orders and through discussions with internal clinical personnel and external service providers as to the progress or stage of completion of trials or services and the agreed-upon fee to be paid for such services. The Company makes estimates of accrued expenses as of each balance sheet date based on facts and circumstances known to the Company at that time. If the actual timing of the performance of services or the level of effort varies from the estimate, the Company will adjust the accrual accordingly. The Company has not experienced any material differences between accrued costs and actual costs incurred for the periods presented. Nonrefundable advance payments for goods and services are deferred and recognized as expense in the period that the related goods are consumed or services are performed. Convertible Notes The Company evaluates all conversion, repurchase and redemption features contained in a debt instrument to determine if there are any embedded features that require bifurcation as a derivative. The Company accounts for its convertible notes (refer to Note 10) as a long-term liability equal to the proceeds received from issuance, including any embedded conversion features, net of the unamortized debt discount and offering costs in the accompanying consolidated balance sheets. The debt issuance and offering costs are amortized over the contractual term of the convertible notes, using the effective interest method, as interest expense in the accompanying consolidated statements of operations. Revenue Interest Liability, Net The revenue interest liability, net, associated with the RIPA that the Company entered into in December 2020, as amended in September 2021, with Oberland as agent for Purchasers, and the Purchasers, was presented net of issuance costs and a debt discount on the consolidated balance sheet as of December 31, 2022. The Company imputed interest expense associated with this liability using the effective interest rate method. The effective interest rate was calculated based on the rate that would enable the debt to be repaid in full over the anticipated life of the arrangement. The interest rate on the liability varied during the term of the agreement depending on a number of factors, including the level of actual and forecasted product sales, net. The Company evaluated the interest rate quarterly based on actual product sales, net and forecast product sales, net, utilizing the prospective method. In April 2023, the Company repurchased all future Revenue Interests and as a result, the RIPA was terminated in accordance with its terms (refer to Note 6). Derivative Liability The RIPA contained certain features that met the definition of being an embedded derivative requiring bifurcation as a separate compound financial instrument apart from the RIPA. The derivative liability was initially measured at fair value on issuance and was subject to remeasurement at each reporting period with changes in fair value recognized as other income (expense) in the accompanying consolidated statements of operations as the change in fair value of derivative liability. In April 2023, the derivative liability was extinguished in connection with the termination of the RIPA (refer to Note 6). Revenue Recognition The Company recognizes revenue when a customer obtains control of promised goods or services, in an amount that reflects the consideration the Company expects to receive in exchange for those goods or services. Product Sales, Net The Company recognizes product sales, net when the customer obtains control of our product, which occurs at a point in time, typically upon delivery of the Company’s product to the customer. Revenues from product sales are recorded at the net sales price, or the transaction price, which may include fixed or variable consideration for discounts, government rebates, co-pay assistance, returns and other allowances that are offered within contracts with a customer relating to the sale of the Company's approved medicines. Estimates of variable consideration are calculated based on the actual product sales each reporting period and the nature of the variable consideration related to those sales. Overall, these estimates reflect the Company’s best estimate of the amount of consideration to which the Company expects to be entitled based on the terms of the contract. The amount of variable consideration that is included in the transaction price may be constrained and is included in product sales, net only to the extent that it is considered probable that a significant reversal in the amount of the cumulative revenue recognized will not occur when the uncertainty associated with the variable consideration is subsequently resolved. Estimates are reviewed and updated quarterly as additional information becomes known. Actual amounts of consideration ultimately received may differ materially from estimates. If actual results in the future vary from estimates, the Company will adjust these estimates, which would affect product sales, net and earnings in the period such variances are adjusted. Significant categories of sales discounts and allowances are as follows: Government Rebates : The Company records rebates payable under Medicaid and other government programs as a reduction of revenue at the time product revenues are generated. The Company’s rebate calculations may require estimates, including estimates of customer mix, to determine which sales will be subject to rebates and the amount of such rebates. The Company updates its estimates and assumptions on a quarterly basis and records any necessary adjustments to revenue in the period identified. The liability for unpaid rebates is included in accrued expenses on the accompanying consolidated balance sheets. To date, actual government rebates have not differed materially from the Company’s estimates. Other Incentives: Other incentives include a branded co-pay assistance program for eligible patients with commercial insurance in the United States. The branded co-pay assistance program assists commercially insured patients who have coverage for the Company's approved medicines and is intended to reduce each participating patient’s portion of the financial responsibility of the purchase price up to a specified dollar amount of assistance. The calculation of the accrual for co-pay assistance is based upon an identification of claims and the cost per claims associated with product that has been recognized as revenue. The Company records amounts paid under the brand specific co-pay assistance program for each patient as a reduction of revenue from product sales. To date, actual other incentives have not differed materially from the Company’s estimates. Product Returns: The Company records revenue for product sales, net of estimated product returns. Customers have limited return rights related only to the product’s damage or defect identified upon delivery of the product. The Company estimates the amount of product sales that may be returned and records the estimate as a reduction of revenue and a refund liability in the period the related product revenue is recognized. To date, actual returns have not differed materially from the Company’s estimates. The following table presents Total revenues and disaggregates Product sales, net by approved medicine (in thousands): Year Ended December 31, 2023 2022 2021 Product sales, net: Livmarli $ 141,795 $ 75,062 $ 3,138 Bile Acid Medicines 37,079 — — Total product sales, net 178,874 75,062 3,138 License revenue 7,500 2,000 16,000 Total revenues $ 186,374 $ 77,062 $ 19,138 The following table sets forth Product sales, net by geographic area based on the ship-to location (in thousands): Year Ended December 31, 2023 2022 2021 United States $ 146,699 $ 67,920 $ 2,913 Rest of world 32,175 7,142 225 Total product sales, net $ 178,874 $ 75,062 $ 3,138 License and Collaboration Arrangements The Company enters into collaborative arrangements with partners and analyzes the collaboration arrangements to assess whether they are within the scope of Collaborative Arrangements (Topic 808) ("Topic 808") and determine whether such arrangements involve joint operating activities performed by parties that are both active participants in the activities and exposed to significant risks and rewards dependent on the commercial success of such activities. This assessment is performed throughout the life of the arrangement based on changes in the responsibilities of all parties in the arrangement. The accounting for some of the activities under collaboration arrangements may be subject to Revenue from Contracts with Customers (Topic 606) (“Topic 606”) for distinct units of account that are reflective of a vendor-customer relationship. For other elements of collaboration arrangements, such as reimbursements of certain development costs, the Company generally records reimbursements received as a reduction of research and development expenses. In determining the appropriate amount of revenue to be recognized under Topic 606 as the Company fulfills its obligations under each of its agreements, the Company performs the following steps: (i) identification of the contracts with customers; (ii) determination of whether the promised goods or services are performance obligations including whether they are distinct in the context of the contract; (iii) determination and measurement of the transaction price, including any constraint on variable consideration; (iv) allocation of the transaction price to the performance obligations in the contract; and (v) recognition of revenue when (or as) the Company satisfies each performance obligation. The terms of the Company’s license and collaborative research and development agreements include upfront license fees, research, development and other funding or reimbursements, milestone and other contingent payments for the achievement of defined collaboration objectives and certain development, regulatory and sales-based events, as well as royalties on sales of commercialized products. Arrangements that include upfront payments may require deferral of revenue recognition to a future period until the Company satisfies performance obligations under these arrangements. A performance obligation is a promise in a contract to transfer a distinct good or service and is the unit of accounting in Topic 606. A contract’s transaction price is allocated among each distinct performance obligation based on relative standalone selling price and recognized as revenue when, or as, the applicable performance obligation is satisfied. If a license to the Company’s intellectual property is determined to be distinct from the other performance obligations identified in the arrangement, the Company recognizes revenues attributed to the license when the license is transferred to the customer and the customer is able to use and benefit from the license. At the inception of each arrangement that includes development milestone payments, the Company evaluates whether the milestones are considered probable of being achieved and estimates the amount to be included in the transaction price as variable consideration using the most likely amount method or expected value method, depending on the nature of the contingency and the variable payments. If it is probable that a significant reversal of cumulative revenue recognized for the contract would not occur, the associated milestone value is included in the transaction price. Milestone payments that are not within the control of the Company or the licensee, such as regulatory approvals, are not generally considered probable of being achieved until those approvals are received. Given the high degree of uncertainty around the occurrence of these events, the Company generally determines the milestone and other contingent amounts to be fully constrained until the uncertainty associated with these payments is resolved. At the end of each reporting period, the Company re-evaluates the probability of achievement of any development milestones, and if necessary, adjusts its estimate of the transaction price. Any such adjustments would be recorded on a cumulative catch-up basis, which would affect revenues and earnings in the period of adjustment. For arrangements that include sales-based royalties, including milestone payments based on the level of sales, the Company recognizes revenue at the later of (i) when or as the related sales occur, or (ii) when the performance obligation to which some or all of the royalty has been allocated has been satisfied (or partially satisfied). Accounting for these arrangements requires the Company to develop assumptions that require judgment to determine the stand-alone selling price of each performance obligation identified in the contract. The Company has never sold the performance obligations in its collaborative arrangements separately; therefore, an observable stand-alone selling price does not exist. Accordingly, the Company estimates a stand-alone selling price through maximizing the use of observable inputs such as market data, project cost estimates, and targeted margins. Cost of Product Sales Prior to receiving approval from the U.S. Food and Drug Administration ("FDA") or other foreign regulatory authorities for a new medicine or new formulation, the Company expenses all costs incurred related to the manufacture of such medicines as research and development expense because of the inherent risks associated with the development of a drug candidate, the uncertainty about the regulatory approval process and the lack of history for the Company of regulatory approval of drug candidates. Subsequent to receiving FDA or other foreign regulatory authority approval, when commercialization is considered probable and the future economic benefit is expected to be realized, the Company begins capitalizing inventory costs incurred. Cost of product sales consist of manufacturing costs, transportation and freight, amortization of capitalized intangible assets, royalties and indirect overhead costs associated with the manufacturing and distribution of the Company's approved products. Cost of product sales may also include period costs related to certain manufacturing services and inventory adjustment charges. Research and Development Expenses Research and development expenses consists primarily of fees paid to contract research organizations and other vendors for clinical, non-clinical and manufacturing services, salaries and employee benefits, including stock-based compensation, consultant expenses, costs related to acquiring manufacturing materials, costs related to compliance with regulatory requirements and license payments related to acquiring intellectual property rights for the Company’s product candidates. Research and development expenses are expensed as incurred. Selling, General and Administrative Expenses Selling, general and administrative (“SG&A”) expenses relate to sales and marketing, finance, human resources, legal and other administrative activities. SG&A expenses consist primarily of personnel costs, facilities and overhead costs, outside marketing, advertising and legal expenses, and other general and administrative costs. The Company expenses the costs of advertising, including promotional expenses, as incurred. Advertising expenses were $ 6.3 million, $ 4.0 million and $ 9.2 million for the years ended December 31, 2023, 2022 and 2021 , respectively. Stock-Based Compensation The Company recognizes stock-based compensation for all stock-based awards based on the grant date fai |