main.content {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.version {
	font-size: 1.2em;
	font-style: italic;
	color: #666;
	float:right;
	background: #f5f5f5;
	padding: 5px;
	border-radius: 5px;
}

main p {
	font-size: 1em;
	margin: 0 0 1em 0;
}

main h3 {
	margin-top: 0;
}

main .timestamp {
	font-size: 0.8em;
	font-weight: normal;
	color: #666;
	float:right;
}

main ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

main ul li {
	padding: 0;
	margin: 0.5em 0;
}


#debugger {
	display: grid;
	grid-template-areas:
		"header header"
		"listing listing"
		"sidebar details";
	grid-template-columns: 300px 1fr;
	grid-template-rows: auto auto 1fr;
	gap: 20px;
	/* height: 100vh; */
	padding: 20px;
}

#debugger-header {
	grid-area: header;
	background: transparent;
	padding: 0;
	border-radius: 5px;
}

#debugger-listing {
	grid-area: listing;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
	overflow-x: auto;
	max-height: 150px;
}

#debugger-toc button {
	display: inline-block;
	width: 100%;
	text-align: center;
	font-size: 1.2em;
}

#debugger-toc button .model {
	font-size: 0.8em;
	color: #666;
}



#debugger-api .price {
	font-size: 1.5em;
}

.token-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}


/* Sidebar container for API and TOC */
.sidebar-container {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#debugger-api {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
}

#debugger-toc {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
}

#debugger-detail {
	grid-area: details;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
	overflow-y: auto;
} 

#debugger-detail h3 {
	margin: 0;
}

#debugger-detail h5 {
	margin: 0 0 1em 0;
}

/* Common styles */
#debugger h2 {
	margin: 0;
	font-size: 1.2em;
	color: #333;
}

/* Tree View Styles */
.tree-container {
	font-family: monospace;
	margin: 10px 0;
}

.tree-item {
	padding: 3px 0;
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
}

.tree-toggle {
	background: none;
	border: none;
	padding: 0 5px;
	cursor: pointer;
	font-size: 12px;
	color: #666;
	width: 20px;
	text-align: center;
}

.tree-key {
	color: #881391;
	margin-right: 5px;
}

.tree-value {
	color: #1a1aa6;
}

.tree-content {
	width: 100%;
	transition: height 0.2s ease-out;
}

.tree-content.collapsed {
	display: none;
}

/* Detail view styles */
.detail {
	padding: 10px;
}

.detail .key {
	margin-bottom: 15px;
}

.detail h4 {
	margin: 10px 0;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

/* Mobile layout */
@media screen and (max-width: 768px) {
	#debugger {
		grid-template-areas:
			"header"
			"listing"
			"toc"
			"details"
			"api";
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto 1fr auto;
		gap: 10px;
		padding: 10px;
	}

	.sidebar-container {
		grid-area: unset;
		display: contents; /* This allows direct placement of children in grid */
	}

	#debugger-toc {
		grid-area: toc;
	}

	#debugger-api {
		grid-area: api;
	}

	#debugger-detail {
		grid-area: details;
	}

	/* Adjust heights for mobile scrolling */
	#debugger-listing {
		max-height: 200px;
	}

	#debugger-detail {
		max-height: 400px;
	}
}