.dmon {
	--dm-blue: #3164ff;
	--dm-cyan: #54d8ff;
	--dm-ink: #0b1327;
	--dm-muted: #68738a;
	--dm-line: #e2e7f0;
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	padding: 100px 0 44px;
	background:
		linear-gradient(rgba(49, 100, 255, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(49, 100, 255, .025) 1px, transparent 1px),
		#f4f6fa;
	background-size: 36px 36px;
	color: var(--dm-ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.dmon * { box-sizing: border-box; }

.dmon__glow {
	position: absolute;
	top: -470px;
	right: -170px;
	width: 780px;
	height: 780px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(49, 100, 255, .16), transparent 69%);
	pointer-events: none;
}

.dmon__shell {
	position: relative;
	width: min(1460px, calc(100% - 32px));
	margin: auto;
}

.dmon-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 56px;
	margin-bottom: 12px;
}

.dmon-toolbar__title {
	display: grid;
	grid-template-columns: auto auto;
	align-items: baseline;
	gap: 5px 16px;
}

.dmon .eyebrow,
.dmon-kicker {
	margin: 0;
	color: var(--dm-blue);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.dmon-toolbar__title .eyebrow { grid-column: 1 / -1; }

.dmon h1 {
	margin: 0;
	color: var(--dm-ink);
	font-size: clamp(25px, 2.4vw, 34px);
	font-weight: 680;
	letter-spacing: -.04em;
	line-height: 1;
}

.dmon-toolbar__title > p:last-child {
	margin: 0;
	color: var(--dm-muted);
	font-size: 12px;
}

.dmon-live {
	display: grid;
	grid-template-columns: 8px auto;
	align-items: center;
	column-gap: 9px;
	padding: 8px 12px;
	border: 1px solid var(--dm-line);
	border-radius: 11px;
	background: rgba(255, 255, 255, .82);
	box-shadow: 0 8px 24px rgba(17, 30, 66, .05);
	color: #47516b;
}

.dmon-live i {
	grid-row: 1 / 3;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #25c985;
	box-shadow: 0 0 0 4px rgba(37, 201, 133, .13);
}

.dmon-live span { font-size: 11px; font-weight: 750; line-height: 1.2; }
.dmon-live small { color: var(--dm-muted); font-size: 9px; line-height: 1.2; }

.dmon-metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 9px;
	margin-bottom: 18px;
}

.dmon-metric,
.dmon-panel,
.dmon-table {
	border: 1px solid rgba(216, 223, 236, .94);
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 10px 34px rgba(18, 31, 68, .055);
}

.dmon-metric {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0 12px;
	min-height: 70px;
	padding: 12px 15px;
	border-radius: 13px;
}

.dmon-metric strong {
	grid-row: 1 / 3;
	min-width: 38px;
	font-size: 26px;
	font-weight: 680;
	letter-spacing: -.045em;
	line-height: 1;
}

.dmon-metric span {
	align-self: end;
	font-size: 12px;
	font-weight: 760;
	line-height: 1.25;
}

.dmon-metric small {
	align-self: start;
	margin-top: 3px;
	color: var(--dm-muted);
	font-size: 9px;
	line-height: 1.25;
}

.dmon-metric--good strong { color: #119c68; }
.dmon-metric--bad strong { color: #d93f48; }

.dmon-group { margin: 0 0 18px; }

.dmon-group__heading,
.dmon-panel__heading,
.dmon-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.dmon-group__heading { margin: 0 3px 7px; }

.dmon-group h2,
.dmon-panel h2 {
	margin: 0;
	color: var(--dm-ink) !important;
	font-size: 15px;
	font-weight: 740;
	letter-spacing: -.015em;
}

.dmon-group__heading > span,
.dmon-panel__heading > p {
	margin: 0;
	color: var(--dm-muted);
	font-size: 10px;
}

.dmon-table {
	overflow: hidden;
	border-radius: 13px;
}

.dmon-row {
	display: grid;
	grid-template-columns: minmax(230px, 1.65fr) minmax(130px, .75fr) minmax(105px, .62fr) minmax(95px, .58fr) minmax(90px, .5fr);
	align-items: center;
	gap: 18px;
	min-height: 51px;
	padding: 8px 14px;
	border-bottom: 1px solid var(--dm-line);
}

.dmon-row:last-child { border-bottom: 0; }

.dmon-row--head {
	min-height: 30px;
	padding-top: 6px;
	padding-bottom: 6px;
	background: #f8f9fc;
	color: #8a93a7;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.dmon-row--head span:last-child { text-align: right; }

.dmon-row__identity {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.dmon-row__identity div { min-width: 0; }

.dmon-row__identity a {
	display: block;
	overflow: hidden;
	color: var(--dm-ink);
	font-size: 12px;
	font-weight: 760;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dmon-row__identity a:hover { color: var(--dm-blue); }

.dmon-row small {
	display: block;
	overflow: hidden;
	margin-top: 2px;
	color: var(--dm-muted);
	font-size: 8px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dmon-dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #aeb6c8;
	box-shadow: 0 0 0 4px rgba(174, 182, 200, .14);
}

.dmon-dot--up { background: #25c985; box-shadow: 0 0 0 4px rgba(37, 201, 133, .13); }
.dmon-dot--down { background: #ef5252; box-shadow: 0 0 0 4px rgba(239, 82, 82, .12); }
.dmon-row__spark canvas { display: block; width: 100%; height: 26px; }
.dmon-row__stat strong { font-size: 11px; font-weight: 740; }
.dmon-row__status { text-align: right; }

.dmon-row__status span {
	display: inline-flex;
	padding: 3px 7px;
	border-radius: 999px;
	background: #edf0f5;
	color: #687188;
	font-size: 8px;
	font-weight: 800;
	text-transform: uppercase;
}

.dmon-row__status--up span { background: #e4f8f0; color: #12865b; }
.dmon-row__status--down span { background: #ffebeb; color: #c63131; }

.dmon-panel {
	margin-top: 25px;
	margin-bottom: 0;
	padding: 18px;
	border-radius: 15px;
}

.dmon-panel__heading { align-items: end; }
.dmon-panel__heading > div { display: grid; gap: 3px; }
.dmon-chart { display: block; width: 100%; height: 155px; margin-top: 13px; }

.dmon-footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--dm-line);
	color: var(--dm-muted);
	font-size: 10px;
}

.dmon-footer a { color: var(--dm-blue); font-weight: 750; text-decoration: none; }
.dmon-access { padding: 120px 20px; text-align: center; }

@media (max-width: 900px) {
	.dmon { padding-top: 90px; }
	.dmon__shell { width: min(100% - 24px, 1460px); }
	.dmon-toolbar { align-items: flex-start; }
	.dmon-toolbar__title { grid-template-columns: 1fr; gap: 4px; }
	.dmon-toolbar__title > p:last-child { display: none; }
	.dmon-metrics { grid-template-columns: repeat(2, 1fr); }
	.dmon-row { grid-template-columns: minmax(200px, 1.4fr) minmax(115px, .7fr) minmax(90px, .55fr) minmax(82px, .5fr); }
	.dmon-row > :nth-child(2) { display: none; }
}

@media (max-width: 620px) {
	.dmon { padding: 84px 0 34px; }
	.dmon__shell { width: calc(100% - 18px); }
	.dmon-toolbar { min-height: 49px; gap: 10px; }
	.dmon h1 { font-size: 24px; }
	.dmon-live { padding: 7px 9px; }
	.dmon-live span { font-size: 9px; }
	.dmon-live small { font-size: 8px; }
	.dmon-metrics { gap: 6px; margin-bottom: 14px; }
	.dmon-metric { min-height: 61px; gap: 0 8px; padding: 9px 10px; }
	.dmon-metric strong { min-width: 28px; font-size: 22px; }
	.dmon-metric span { font-size: 10px; }
	.dmon-metric small { font-size: 8px; }
	.dmon-group { margin-bottom: 13px; }
	.dmon-row { grid-template-columns: minmax(0, 1fr) 66px 68px; gap: 8px; min-height: 48px; padding: 7px 10px; }
	.dmon-row > :nth-child(2),
	.dmon-row > :nth-child(4) { display: none; }
	.dmon-row--head { min-height: 27px; font-size: 7px; }
	.dmon-row__identity { gap: 9px; }
	.dmon-row__identity a { font-size: 11px; }
	.dmon-row__status small { max-width: 68px; }
	.dmon-panel { padding: 14px 11px; }
	.dmon-panel__heading > p { display: none; }
	.dmon-chart { height: 130px; }
	.dmon-footer { align-items: flex-start; flex-direction: column; }
}
