.grid {
	display: grid;
	gap: 1rem;

	@include respond(desktop-sm) {
		gap: 1.25rem;
	}

	@include respond(desktop-lg) {
		grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.8fr) minmax(16rem, 0.9fr);
	}
}

.panel {
	display: grid;
	gap: 1rem;
	padding: 1rem;
	border-radius: var(--radius-2xl);
	background: var(--surface-panel);
	border: 1px solid var(--border-soft);
	box-shadow: var(--shadow-soft);

	@include respond(phablet) {
		padding: 1.15rem;
	}

	@include respond(desktop-sm) {
		padding: 1.35rem;
	}

	h2 {
		font-size: 1.2rem;
		line-height: 1.12;
		letter-spacing: -0.03em;
	}
}

.barChart,
.usageList {
	display: grid;
	gap: 0.9rem;
}

.barRow,
.usageItem {
	display: grid;
	gap: 0.45rem;
}

.barMeta,
.usageMeta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	color: var(--text-muted);
	flex-wrap: wrap;
}

.barMeta {
	justify-content: flex-start;

	span:last-child {
		color: var(--text);
	}
}

.dot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: var(--radius-full);
	display: inline-block;
	margin-right: 0.55rem;
}

.track {
	height: 0.75rem;
	border-radius: var(--radius-full);
	background: var(--surface-soft);
	overflow: hidden;
}

.fill {
	height: 100%;
	border-radius: inherit;
}

.blue { background: var(--blue-400); }
.purple { background: var(--purple-400); }
.teal { background: var(--teal-400); }
.pink { background: var(--red-300); }
.yellow { background: var(--yellow-300); }

.donutWrap {
	display: grid;
	place-items: center;
	padding: 0.5rem 0;
	position: relative;
	min-height: 12rem;

	@include respond(phablet) {
		padding: 1rem 0;
		min-height: 15rem;
	}
}

.donut {
	width: 9.5rem;
	height: 9.5rem;
	border-radius: 50%;
	background: conic-gradient(var(--purple-400) 0 54%, var(--blue-400) 54% 74%, var(--surface-soft) 74% 100%);
	position: relative;

	@include respond(phablet) {
		width: 12rem;
		height: 12rem;
	}

	&::after {
		content: "";
		position: absolute;
		inset: 1.45rem;
		border-radius: 50%;
		background: var(--surface-panel-strong);
		border: 1px solid var(--border-divider);

		@include respond(phablet) {
			inset: 1.8rem;
		}
	}
}

.donutLabel {
	position: absolute;
	display: grid;
	place-items: center;
	gap: 0.15rem;

	strong {
		font-size: 1.6rem;
		font-weight: 700;

		@include respond(phablet) {
			font-size: 2rem;
		}
	}

	span {
		color: var(--text-muted);
	}
}

.usageNote {
	color: var(--info);
	font-weight: 500;
	font-size: 0.92rem;
}
