.ar-analytics-wrap {
	margin-top: 20px;
}

.ar-analytics-filters {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 20px;
}

.ar-analytics-summary {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 30px;
}

.ar-analytics-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 1px 1px rgb(0 0 0 / 8%);
}

.ar-metric-label {
	margin: 0;
	font-size: 13px;
	color: #50575e;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ar-metric-value {
	margin: 6px 0 0;
	font-size: 24px;
	font-weight: 600;
	color: #1d2327;
}

.ar-analytics-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
	box-shadow: 0 1px 1px rgb(0 0 0 / 8%);
}

.ar-analytics-section > header > h2 {
	margin-top: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.ar-analytics-chart {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
	gap: 12px;
	align-items: end;
	margin-top: 20px;
}

.ar-analytics-bar {
	display: grid;
	grid-template-rows: 1fr auto auto;
	justify-items: center;
	height: 180px;
	gap: 6px;
	text-align: center;
}

.ar-analytics-bar::before {
	content: '';
	grid-row: 1;
	justify-self: center;
	width: 100%;
	max-width: 48px;
	height: 140px;
	background: #f6f7f7;
	border-radius: 10px;
}

.ar-analytics-bar-inner {
	grid-row: 1;
	justify-self: center;
	width: 100%;
	max-width: 48px;
	background: linear-gradient(180deg, #3858e9 0%, #273897 100%);
	border-radius: 6px;
	min-height: 6px;
	transition: height 0.3s ease;
}

.ar-analytics-bar-count {
	grid-row: 2;
	font-size: 12px;
	color: #1d2327;
}

.ar-analytics-bar-label {
	grid-row: 3;
	font-size: 11px;
	color: #646970;
}

.ar-analytics-bar.has-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: auto;
}

.ar-analytics-bar.has-visual::before {
	display: none;
}

.ar-analytics-bar-visual {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	max-width: 48px;
	height: 140px;
	background: #f6f7f7;
	border-radius: 10px;
	padding: 6px 8px;
	box-sizing: border-box;
}

.ar-analytics-bar.has-visual .ar-analytics-bar-inner {
	width: 100%;
	max-width: none;
}

.ar-analytics-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-bottom: 32px;
}

.ar-analytics-table th,
.ar-analytics-table td {
	padding: 10px 12px;
}

.ar-analytics-device-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.ar-analytics-device-list li {
	display: grid;
	grid-template-columns: minmax(60px, 1fr) 70px 1fr 60px;
	gap: 8px;
	align-items: center;
	font-size: 13px;
}

.ar-device-name {
	font-weight: 600;
	color: #1d2327;
}

.ar-device-count {
	text-align: right;
	color: #1d2327;
}

.ar-device-progress {
	background: #f0f0f1;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.ar-device-progress div {
	height: 100%;
	background: #5056f6;
}

.ar-device-percent {
	text-align: right;
	color: #50575e;
}

.ar-dashboard-insights table.widefat .column-events,
.ar-dashboard-insights table.widefat .column-ar-launches,
.ar-dashboard-insights table.widefat .column-variant-changes {
	text-align: right;
	width: 120px;
}

.ar-variant-tag {
	display: inline-block;
	background: #f0f6ff;
	color: #1d39b3;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 11px;
	margin-left: 6px;
}

@media (max-width: 782px) {
	.ar-analytics-device-list li {
		grid-template-columns: 1fr 60px;
		grid-template-areas:
			"name name"
			"count percent"
			"progress progress";
	}

	.ar-device-name {
		grid-area: name;
	}

	.ar-device-count {
		grid-area: count;
	}

	.ar-device-progress {
		grid-area: progress;
	}

	.ar-device-percent {
		grid-area: percent;
	}
}

