@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
	font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	color: #07110b;
	background: #e8eee3;
	--fuel: #00db7d;
	--fuel-dark: #00a862;
	--ink: #07110b;
	--muted: #536057;
	--line: #bfcabe;
	--panel: #fbfff8;
	--panel-2: #e8eee3;
	--warn: #8a5d00;
}
* {
	box-sizing: border-box;
}
::selection {
	color: var(--ink);
	background: var(--fuel);
}
body {
	margin: 0;
	background: var(--panel-2);
}
main {
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
}
.hero {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 10px;
	margin-bottom: 8px;
}
.hero > div,
.price-card,
.toolbar,
.meta,
.warning,
.table-wrap {
	border: 1px solid var(--line);
	background: var(--panel);
}
.hero > div {
	position: relative;
	min-height: 132px;
	padding: clamp(18px, 3vw, 30px);
	overflow: hidden;
}
.hero > div:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 219, 125, 0.18), transparent 48%);
	pointer-events: none;
}
.hero > div > * {
	position: relative;
}
.eyebrow {
	margin: 0 0 16px;
	color: var(--fuel-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
h1 {
	margin: 0 0 8px;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 0.9;
	letter-spacing: -0.05em;
}
p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	max-width: 720px;
}
.price-card {
	min-height: 132px;
	padding: 18px;
	display: grid;
	align-content: space-between;
}
.stats-card h2 {
	margin: 0 0 8px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.stats-card dl {
	display: grid;
	gap: 6px;
	margin: 0;
}
.stats-card div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.stats-card dt {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
}
.stats-card dd {
	margin: 0;
	text-align: right;
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	font-weight: 700;
}
.stats-card strong {
	font-size: 16px;
}
.stats-card small {
	display: block;
	color: var(--muted);
	font-size: 10px;
}
.compact-value {
	display: none;
}
a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 4px;
}
a:hover {
	text-decoration: underline;
}
.toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 10px;
	margin-bottom: 10px;
}
label {
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}
select {
	min-height: 38px;
	min-width: 170px;
	padding: 0 38px 0 12px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-weight: 650;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 8px),
		calc(100% - 8px) 100%,
		0 100%
	);
}
#source {
	min-width: 300px;
}
#status {
	margin-left: auto;
	color: var(--muted);
	font-family: "IBM Plex Mono", monospace;
	font-size: 13px;
}
.meta,
.warning {
	padding: 12px 14px;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 14px;
}
.warning {
	color: var(--warn);
	background: #fff7dc;
	border-color: #e5c66f;
}
.table-wrap {
	overflow: auto;
	flex: 1;
}
table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1180px;
}
th,
td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
th {
	background: #f4f8ef;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	position: sticky;
	top: 0;
	z-index: 1;
}
td {
	font-size: 15px;
}
tr.clickable {
	cursor: pointer;
}
tr.clickable:hover,
tr[data-open="true"] {
	background: #f3faef;
}
.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
td:nth-child(1) {
	color: var(--muted);
	white-space: nowrap;
}
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
#status {
	font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.account {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	vertical-align: bottom;
	font-weight: 650;
}
.owner-badge {
	display: inline-flex;
	align-items: center;
	max-width: 260px;
	min-height: 26px;
	padding: 3px 9px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 7px),
		calc(100% - 7px) 100%,
		0 100%
	);
}
.owner-badge.foundation_owned,
.owner-badge.foundation_controlled {
	border-color: #008f52;
	background: var(--fuel);
	color: var(--ink);
}
.owner-badge.foundation_attributed {
	border-color: #8fbca7;
	background: #edfff5;
	color: #007241;
}
.owner-badge.fuel_labs_controlled {
	border-color: #8fbca7;
	background: #e2fff0;
	color: #006b3d;
}
.owner-badge.fuel_labs_attributed {
	border-color: #b8d2c4;
	background: #f2fff7;
	color: #32624d;
}
.owner-badge.registry_labeled {
	background: #f4f8ef;
	color: var(--muted);
}
.registry-label {
	display: block;
	max-width: 260px;
	margin-top: 5px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.owner-badge.explicitly_not_foundation {
	background: #f4f8ef;
}
.badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	margin-left: 8px;
	padding: 2px 8px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 6px),
		calc(100% - 6px) 100%,
		0 100%
	);
}
.breakdown {
	background: #f4f8ef;
}
.breakdown td {
	padding: 0;
}
.breakdown-grid {
	display: grid;
	gap: 8px;
	padding: 16px 18px 18px 62px;
}
.chain-row {
	display: grid;
	grid-template-columns: 220px 1fr 1fr 130px 1.5fr;
	gap: 14px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--ink);
}
.chain-row span:first-child {
	color: var(--muted);
	font-weight: 700;
}
.chain-row span:nth-child(n + 2) {
	text-align: right;
	font-family: "IBM Plex Mono", monospace;
	font-variant-numeric: tabular-nums;
}
[hidden] {
	display: none !important;
}

@media (max-width: 720px) {
	body {
		overflow-x: hidden;
	}
	main {
		padding: 8px;
	}
	.hero {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.hero > div {
		min-height: auto;
		padding: 18px;
	}
	.price-card {
		min-height: auto;
		padding: 14px;
	}
	h1 {
		font-size: 40px;
	}
	p {
		font-size: 14px;
	}
	.stats-card dl {
		grid-template-columns: 1fr 1fr;
	}
	.stats-card div {
		display: block;
		min-width: 0;
	}
	.stats-card dd {
		text-align: left;
		overflow-wrap: anywhere;
	}
	.full-value {
		display: none;
	}
	.compact-value {
		display: inline;
	}
	.toolbar {
		display: grid;
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 6px;
	}
	#status {
		margin-left: 0;
		min-height: 24px;
	}
	select,
	#source {
		width: 100%;
		min-width: 0;
	}
	.meta,
	.warning {
		font-size: 12px;
		padding: 10px;
	}
	.table-wrap {
		overflow: visible;
		border: 0;
		background: transparent;
	}
	table,
	thead,
	tbody,
	tr,
	td {
		display: block;
		width: 100%;
	}
	table {
		min-width: 0;
		border-collapse: separate;
	}
	thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
	tbody {
		display: grid;
		gap: 8px;
	}
	tr.clickable {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0;
		min-height: 44px;
		padding: 10px;
		border: 1px solid var(--line);
		background: var(--panel);
	}
	tr.clickable:hover,
	tr[data-open="true"] {
		background: var(--panel);
	}
	td {
		display: flex;
		justify-content: space-between;
		gap: 10px;
		min-width: 0;
		padding: 8px 0;
		border-bottom: 1px solid #e0e8dc;
		font-size: 14px;
		overflow-wrap: anywhere;
	}
	td::before {
		content: attr(data-label);
		color: var(--muted);
		font-size: 11px;
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}
	td:nth-child(2),
	td:nth-child(3) {
		grid-column: 1 / -1;
	}
	.registry-label {
		max-width: 100%;
	}
	td:nth-child(4),
	td:nth-child(5) {
		font-size: 16px;
		font-weight: 800;
	}
	.raw-balance {
		display: none;
	}
	.num {
		text-align: right;
	}
	.account {
		max-width: none;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
	.badge,
	.owner-badge {
		max-width: 100%;
		min-height: 30px;
		white-space: normal;
		overflow-wrap: anywhere;
	}
	.breakdown {
		background: transparent;
	}
	.breakdown td {
		padding: 0;
		border: 0;
	}
	.breakdown-grid {
		padding: 0;
		gap: 8px;
	}
	.chain-row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 10px;
		border: 1px solid var(--line);
		background: #f4f8ef;
	}
	.chain-row span {
		display: flex;
		justify-content: space-between;
		gap: 10px;
		text-align: right;
		overflow-wrap: anywhere;
	}
	.chain-row span::before {
		content: attr(data-label);
		color: var(--muted);
		font-family: "Space Grotesk", sans-serif;
		font-size: 11px;
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}
	.chain-row span:nth-child(n + 2) {
		text-align: right;
	}
}
