.sgp-ons-console {
	min-width: 0;
}

.sgp-ons-console__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.sgp-ons-console__preset.is-active {
	background: var(--sgp-rc-primary);
	color: #fff;
	border-color: transparent;
}

.sgp-ons-console__custom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 12px;
}

.sgp-ons-console__custom[hidden] {
	display: none;
}

.sgp-ons-console__date {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	opacity: 0.82;
}

.sgp-ons-console__date input[type="date"] {
	box-sizing: border-box;
	min-height: 44px;
	min-width: 10.5rem;
	max-width: 100%;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid rgba(248, 250, 252, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: inherit;
	font: inherit;
}

.sgp-ons-console .sgp-rc-dash__metrics {
	margin: 0;
}

.sgp-ons-console__hint,
.sgp-ons-console__legal,
.sgp-ons-console__empty,
.sgp-ons-console__error {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 500;
	opacity: 0.72;
	white-space: normal;
	overflow-wrap: anywhere;
}

.sgp-ons-console__legal {
	margin-top: 6px;
}

.sgp-ons-console__error {
	opacity: 0.9;
}

.sgp-ons-console__hint[hidden],
.sgp-ons-console__empty[hidden],
.sgp-ons-console__error[hidden] {
	display: none;
}

.sgp-ons-console__sub {
	margin: 16px 0 8px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}

.sgp-ons-console__chart-wrap {
	position: relative;
	overflow: visible;
}

.sgp-ons-console__plot {
	position: relative;
	overflow: visible;
}

.sgp-ons-console__chart {
	position: relative;
	min-height: 132px;
	height: 132px;
	padding: 8px 4px 0;
	border-radius: 12px;
	border: 1px solid rgba(248, 250, 252, 0.08);
	background: rgba(255, 255, 255, 0.03);
	overflow: visible;
}

.sgp-ons-console__chart svg {
	display: block;
	width: 100%;
	height: 116px;
}

.sgp-ons-console__bar {
	fill: var(--sgp-rc-accent, var(--sgp-rc-primary));
	transition: opacity 0.12s ease;
}

.sgp-ons-console__bar.is-dim {
	opacity: 0.42;
}

.sgp-ons-console__slots {
	position: absolute;
	inset: 0;
	display: flex;
	touch-action: pan-y;
}

.sgp-ons-console__slot {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	appearance: none;
}

.sgp-ons-console__slot:focus {
	outline: none;
}

.sgp-ons-console__slot:focus-visible {
	outline: 2px solid var(--sgp-rc-accent, var(--sgp-rc-primary));
	outline-offset: -2px;
}

.sgp-ons-console__slot.is-active {
	background: rgba(248, 250, 252, 0.06);
}

.sgp-ons-console__axis {
	position: relative;
	height: 1.7em;
	margin: 6px 4px 0;
	overflow: visible;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0.72;
	pointer-events: none;
}

.sgp-ons-console__tick {
	position: absolute;
	top: 0;
	white-space: nowrap;
	line-height: 1.4;
}

.sgp-ons-console__tick.is-first {
	left: 0;
	transform: none;
	text-align: left;
}

.sgp-ons-console__tick.is-last {
	left: auto;
	right: 0;
	transform: none;
	text-align: right;
}

.sgp-ons-console__tooltip {
	position: absolute;
	z-index: 8;
	min-width: 11.5rem;
	max-width: min(18rem, calc(100% - 16px));
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(248, 250, 252, 0.14);
	background: rgba(12, 16, 22, 0.96);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
	color: #f8fafc;
	pointer-events: none;
	opacity: 0;
	transform: translateY(2px);
	transition: opacity 0.12s ease, transform 0.12s ease;
}

.sgp-ons-console__tooltip.is-open {
	opacity: 1;
	transform: none;
}

.sgp-ons-console__tooltip[hidden] {
	display: none;
}

.sgp-ons-console__tooltip-date {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.sgp-ons-console__tooltip-total {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.sgp-ons-console__tooltip-rows {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.sgp-ons-console__tooltip-rows[hidden] {
	display: none;
}

.sgp-ons-console__tooltip-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	font-weight: 500;
	opacity: 0.82;
}

.sgp-ons-console__tooltip-row span:last-child {
	font-weight: 700;
	opacity: 1;
}

.sgp-ons-console__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}


.sgp-ons-console__breakdown {
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 2.5rem;
	display: grid;
	gap: 8px;
}

.sgp-ons-console__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(248, 250, 252, 0.08);
	background: rgba(255, 255, 255, 0.03);
}

.sgp-ons-console__row-label {
	min-width: 0;
	font-weight: 600;
}

.sgp-ons-console__row-value {
	font-weight: 700;
	white-space: nowrap;
}

.sgp-ons-console.is-busy [data-sgp-ons-console-value] {
	opacity: 0.72;
}

@media (max-width: 1023px) {
	.sgp-ons-console__date input[type="date"] {
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 782px) {
	.sgp-ons-console__custom {
		flex-direction: column;
		align-items: stretch;
		min-width: 0;
		max-width: 100%;
	}

	.sgp-ons-console__date {
		width: 100%;
		max-width: 100%;
		flex: 1 1 100%;
	}

	.sgp-ons-console__date input[type="date"] {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.sgp-ons-console__chart,
	.sgp-ons-console__chart svg {
		min-height: 112px;
		height: 112px;
	}

	.sgp-ons-console__preset {
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.sgp-ons-console__chart {
		min-height: 100px;
		height: 100px;
	}

	.sgp-ons-console__chart svg {
		height: 84px;
	}
}
