/* ===== Pulse dashboard ===== */
.pulse {
	--panel: var(--glass);
	--muted: var(--dim);
	--violet: var(--wine);
	--live: #3fd9a8;
	--quiet: var(--cream);
	--dead: var(--coral);
	max-width: 1100px;
	margin: 0 16px 80px;
	color: #fff;
}
.pulse div, .pulse p, .pulse a:not([class*="p-"]) { color: inherit; }
.pulse a { text-decoration: none; }

.pulse section { margin: 0 0 24px; }
.panel {
	background: var(--panel);
	border-radius: 14px;
	padding: 22px 24px 26px;
	border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
}
.panel h2 {
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
}
.panel h2 small {
	font-size: 13px;
	font-weight: 200;
	color: var(--muted);
}
.panel h2 .admin {
	margin-left: auto;
	font-size: 13px;
	color: var(--cyan);
}
.empty { color: var(--muted); font-weight: 200; }

/* Hero KPIs */
.hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-top: 24px !important;
}
.kpi {
	background: var(--panel);
	border-radius: 14px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	display: flex;
	flex-direction: column;
}
.kpi b {
	font-size: 54px;
	color: #fff;
	line-height: 1;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.kpi b small { font-size: 26px; color: var(--muted); }
.kpi span { font-size: 16px; margin-top: 4px; }
.kpi em { font-style: normal; font-weight: 200; font-size: 13px; color: var(--muted); margin-top: 6px; }
.kpi em.up { color: var(--live); }
.kpi em.down { color: var(--quiet); }

/* Rhythm */
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-left: 6px; }
.key.other, .stack .other { background: var(--cyan); }
.key.forums, .stack .forums { background: var(--violet); }
.bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 160px;
	padding-bottom: 16px;
}
.day {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 0;
}
.stack {
	display: flex;
	flex-direction: column;
	border-radius: 3px 3px 0 0;
	overflow: hidden;
	min-height: 2px;
	transition: filter .15s;
}
.stack i { display: block; flex-basis: 0; }
.day:hover .stack { filter: brightness(1.35); }
.day { position: relative; }
.day label {
	position: absolute;
	top: 100%;
	left: 0;
	white-space: nowrap;
	font-size: 10px;
	color: var(--muted);
	margin-top: 3px;
	font-variant-numeric: tabular-nums;
}

/* Rising */
.trends { display: flex; flex-wrap: wrap; gap: 8px; }
.trends a {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #ffffff0d;
	font-size: 17px;
	transition: background .15s, border-color .15s;
}
.trends a:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.trends a b { font-size: 12px; font-weight: 700; }
.trends a em { font-style: normal; font-size: 12px; font-weight: 200; color: var(--muted); }
.trends a:hover em { color: #fff; }

/* Signal */
.signal { list-style: none; margin: 0; padding: 0; }
.signal li {
	display: grid;
	grid-template-columns: 150px 1fr auto;
	gap: 14px;
	align-items: baseline;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}
.signal li:first-child { border-top: 0; }
.signal .src {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-family: var(--mono);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.signal .title { font-size: 18px; font-weight: 200; line-height: 1.25; }
.signal .title:hover { text-decoration: underline; }
.signal time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Sources */
.sources { width: 100%; border-collapse: collapse; }
.sources td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.sources tr:first-child td { border-top: 0; }
.sources .dot { display: block; width: 9px; height: 9px; border-radius: 50%; }
.sources .live .dot { background: var(--live); box-shadow: 0 0 8px var(--live); }
.sources .quiet .dot { background: var(--quiet); }
.sources .dead .dot { background: var(--dead); }
.sources .silent .dot { border: 1px solid var(--muted); }
.sources .name a { font-size: 16px; }
.sources .name a:hover { text-decoration: underline; }
.sources .name small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.sources .spark { width: 120px; }
.sources .spark div { height: 26px; display: flex; align-items: flex-end; gap: 2px; }
.sources .spark i { flex: 1; min-height: 1px; background: var(--cyan); border-radius: 1px; opacity: .85; }
.sources .num { text-align: right; font-variant-numeric: tabular-nums; font-size: 16px; white-space: nowrap; }
.sources .num small, .sources .last { font-size: 12px; color: var(--muted); }
.sources .last { white-space: nowrap; text-align: right; }
.sources .status { font-size: 11px; font-weight: 700; text-transform: uppercase; text-align: right; }
.sources .live .status { color: var(--live); }
.sources .quiet .status { color: var(--quiet); }
.sources .dead .status { color: var(--dead); }
.sources .silent .status { color: var(--muted); }
.sources .dead, .sources .silent { opacity: .7; }

@media (max-width: 700px) {
	.pulse { margin: 0 12px 60px; }
	.panel { padding: 18px 16px 20px; }
	.kpi b { font-size: 40px; }
	.signal li { grid-template-columns: 1fr auto; gap: 2px 10px; }
	.signal .src { grid-column: 1 / -1; }
	.sources .spark, .sources .status { display: none; }
	.day label { display: none; }
	.bars { padding-bottom: 0; }
}

@media (min-width: 961px) {
	.pulse { margin: 0 40px 80px 300px; padding-top: 12px; }
}
