root = Card([header, kpis, expensesSection, transactionsSection, toolsRow], "card", "column", "l")
header = CardHeader("Runway Finance", "Month-end summary · December 2025")
kpis = Card([cashKpi, burnKpi, runwayKpi], "sunk", "row", "l")
cashKpi = Card([cashLabel, cashValue], "clear", "column")
cashLabel = TextContent("Cash on hand", "small")
cashValue = TextContent("$1,240,000", "large-heavy")
burnKpi = Card([burnLabel, burnValue], "clear", "column")
burnLabel = TextContent("Monthly burn", "small")
burnValue = TextContent("$185,000", "large-heavy")
runwayKpi = Card([runwayLabel, runwayValue], "clear", "column")
runwayLabel = TextContent("Runway", "small")
runwayValue = TextContent("6.7 months", "large-heavy")
expensesSection = Card([expensesHeading, expensesChart], "card", "column", "m")
expensesHeading = Heading("Expenses by category", "h3")
expensesChart = PieChart(["R&D", "Marketing", "Sales", "G&A", "Infrastructure"], [78000, 42000, 31000, 22000, 12000], "donut")
transactionsSection = Card([transactionsHeading, transactionsTable], "card", "column", "m")
transactionsHeading = Heading("Transactions over $10,000", "h3")
transactionsTable = Table([dateCol, merchantCol, categoryCol, amountCol])
dateCol = Col("Date", ["Dec 3", "Dec 8", "Dec 11", "Dec 19", "Dec 27"])
merchantCol = Col("Merchant", ["Snowflake", "Google Cloud", "Rippling", "Salesloft", "AWS"])
categoryCol = Col("Category", ["Infrastructure", "Infrastructure", "G&A", "Sales", "Infrastructure"])
amountCol = Col("Amount", ["$22,400", "$18,750", "$15,200", "$12,800", "$10,400"])
toolsRow = Card([monthTools, downloadTools], "clear", "row", "l", null, "between")
monthTools = Form("month-form", monthButtons, [monthField])
monthField = FormControl("View month", monthSelect)
monthSelect = Select("month", [monthDec, monthNov, monthOct], "Pick a month", null, "2025-12")
monthDec = SelectItem("2025-12", "December 2025")
monthNov = SelectItem("2025-11", "November 2025")
monthOct = SelectItem("2025-10", "October 2025")
monthButtons = Buttons([loadMonthButton])
loadMonthButton = Button("Load month", null, "primary")
downloadTools = Buttons([downloadButton])
downloadButton = Button("Download statement", null, "secondary")