:root {
	--bg: #03060d;
	--ink: #eaf0fa;
	--ink-2: #b6c1d6;
	--muted: #7a869d;
	--faint: #465067;
	--line: rgba(150, 185, 255, 0.10);
	--line-2: rgba(150, 185, 255, 0.18);
	--cyan: #5fe1ff;
	--blue: #4d8bff;
	--violet: #9b87ff;
	--amber: #ffbf5e;
	--green: #47e0a1;
	--rose: #ff6e8e;
	--radius: 18px;
	--gap: clamp(10px, 1.05vw, 16px);
	--font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
	background: var(--bg);
	color: var(--ink);
	font: 400 14px/1.4 var(--font);
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Background: deep night, two glows, a faint grid and grain */
.bg {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(55% 60% at 50% 46%, rgba(38, 104, 255, 0.17), transparent 70%),
		radial-gradient(42% 42% at 8% -4%, rgba(139, 116, 255, 0.16), transparent 72%),
		radial-gradient(36% 46% at 104% 104%, rgba(47, 220, 196, 0.09), transparent 72%),
		linear-gradient(180deg, #060a15 0%, #03050b 100%);
}
.bg::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(150, 185, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 185, 255, 0.07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 62% at 50% 44%, #000 0%, transparent 78%);
	mask-image: radial-gradient(70% 62% at 50% 44%, #000 0%, transparent 78%);
	opacity: 0.55;
}
.bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	opacity: 0.07;
	mix-blend-mode: overlay;
}

/* Frame */
.app {
	position: relative; z-index: 1;
	display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
	gap: var(--gap);
	height: 100vh; height: 100dvh;
	padding: var(--gap) calc(var(--gap) + 4px) calc(var(--gap) * 0.6);
}
.main {
	display: grid;
	grid-template-columns: minmax(300px, 22vw) minmax(0, 1fr) minmax(296px, 23vw);
	gap: var(--gap);
	min-height: 0;
	overflow-x: clip;
}
.col { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }

/* Header */
.top { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-height: 44px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 36px; height: 36px; filter: drop-shadow(0 6px 18px rgba(95, 225, 255, 0.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand__text span { color: var(--muted); font-size: 12px; }
.live {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 11px 5px 9px; border-radius: 99px;
	font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
	color: #ffd6df; background: rgba(255, 110, 142, 0.10); border: 1px solid rgba(255, 110, 142, 0.28);
}
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(255, 110, 142, 0.7); animation: beat 1.6s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255, 110, 142, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(255, 110, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 110, 142, 0); } }
.clocks { display: flex; gap: clamp(12px, 1.6vw, 26px); margin-left: auto; }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.clock span { font-size: 11px; color: var(--muted); }
.clock time { font: 500 15px var(--mono); letter-spacing: 0.02em; color: var(--ink); }
.clock time i { font-style: normal; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.demo-tag {
	font-size: 11px; color: var(--muted); max-width: 150px; line-height: 1.25;
	padding-left: clamp(12px, 1.6vw, 24px); border-left: 1px solid var(--line-2);
}

/* Cards */
.card {
	position: relative;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(12px, 1.6vh, 18px) clamp(14px, 1.2vw, 18px);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}
.card::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(140deg, rgba(127, 233, 255, 0.38), transparent 28%, transparent 72%, rgba(155, 135, 255, 0.28));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0.55;
}
.card__title {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
	font-size: 11px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
	color: var(--ink-2); margin-bottom: clamp(8px, 1.3vh, 12px);
}
.card__title em { font: 400 11px var(--mono); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.up { color: var(--green); }
.down { color: var(--rose); }

/* KPIs */
.kpi-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
	background: var(--line); border-radius: 12px; overflow: hidden;
	border: 1px solid var(--line);
}
.kpi { container-type: inline-size; position: relative; background: rgba(6, 11, 24, 0.72); padding: clamp(9px, 1.3vh, 13px) 12px clamp(6px, 1vh, 10px); min-width: 0; }
.kpi__label { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { margin-top: 2px; font-size: clamp(22px, 3.2vh, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.kpi__value small { font-size: 0.5em; font-weight: 500; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.kpi__delta { font: 500 11px var(--mono); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__delta span { color: var(--muted); font-weight: 400; }
.kpi__spark { display: block; width: 100%; height: clamp(20px, 3.2vh, 30px); margin-top: 6px; overflow: visible; }
.kpi__spark .area { opacity: 0.9; }
.kpi__spark path { transition: d 0.9s var(--ease); }
.kpi__spark .line { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.kpi__spark circle { transition: cy 0.9s var(--ease); }
@container (max-width: 96px) { .kpi__delta span { display: none; } }
.kpi.is-flash .kpi__value { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { text-shadow: 0 0 0 transparent; } 25% { text-shadow: 0 0 18px rgba(95, 225, 255, 0.85); color: #fff; } 100% { text-shadow: 0 0 0 transparent; } }
.kpi__budget { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin-top: 8px; overflow: hidden; }
.kpi__budget i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width 1.4s var(--ease); }

/* Regions */
.regions { flex: 0 0 auto; }
.bars { display: flex; flex-direction: column; gap: clamp(7px, 1.2vh, 11px); }
.bar__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.bar__row b { font: 500 12.5px var(--mono); }
.bar__row span { color: var(--ink-2); }
.bar__row em { font: 400 11px var(--mono); font-style: normal; color: var(--muted); margin-left: 8px; }
.bar__track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); margin-top: 5px; overflow: hidden; }
.bar__fill {
	height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit;
	background: linear-gradient(90deg, var(--c1, var(--blue)), var(--c2, var(--cyan)));
	box-shadow: 0 0 14px -2px var(--c2, var(--cyan));
	transition: width 1.6s var(--ease);
}

/* Service and sustainability */
.pulse { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pulse__grid { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.pulse__side { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); }
.pulse__value { font-size: clamp(20px, 3vh, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.pulse__value small { font-size: 0.48em; color: var(--ink-2); letter-spacing: 0; }
.pulse__label { font-size: 11.5px; color: var(--muted); margin: 4px 0 7px; }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), #b4ff8a); box-shadow: 0 0 12px rgba(71, 224, 161, 0.6); transition: width 1.6s var(--ease); }
.ticks { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 4px; }
.ticks i { display: block; background: var(--cyan); border-radius: 1px; opacity: 0.18; transition: opacity 0.4s; }
.ticks i.on { opacity: 0.95; box-shadow: 0 0 6px rgba(95, 225, 255, 0.7); }

/* Gauge */
.gauge { position: relative; text-align: center; }
.gauge__svg { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto; overflow: visible; }
.gauge__track, .gauge__fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge__track { stroke: rgba(255, 255, 255, 0.07); }
.gauge__fill { stroke: url(#gg); stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 7px rgba(95, 225, 255, 0.55)); transition: stroke-dashoffset 1.8s var(--ease); }
#gauge-target line { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; opacity: 0.85; }
.gauge__value { position: absolute; left: 0; right: 0; top: 34%; font-size: clamp(22px, 3.3vh, 30px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.gauge__value small { font-size: 0.5em; color: var(--ink-2); letter-spacing: 0; }
.gauge__label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.gauge__note { margin-top: 3px; font: 400 10.5px var(--mono); color: var(--muted); }
.gauge__note span { font-weight: 500; margin-right: 4px; }

/* Stage */
.stage { position: relative; min-height: 0; }
.globe-wrap { position: absolute; inset: 0; z-index: 0; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.6s ease; }
#globe.is-on { opacity: 1; }
#globe.is-dragging { cursor: grabbing; }
#globe.is-pointing { cursor: pointer; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.label {
	position: absolute; left: 0; top: 0; padding: 2px 7px; border-radius: 6px;
	font: 500 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
	color: #d6e8ff; background: rgba(4, 9, 20, 0.55); border: 1px solid rgba(150, 185, 255, 0.14);
	opacity: 0; will-change: transform, opacity;
	transition: background 0.25s, color 0.25s, border-color 0.25s, font-size 0.25s;
}
.label.is-hq { color: #fff; }
.label.is-on { color: #04101f; background: var(--cyan); border-color: transparent; font-size: 11px; box-shadow: 0 0 22px rgba(95, 225, 255, 0.6); }

.stage__head { position: absolute; left: 4px; top: 0; z-index: 3; pointer-events: none; max-width: 60%; }
.stage__head::before {
	content: ""; position: absolute; inset: -40px -90px -40px -60px; z-index: -1;
	background: radial-gradient(closest-side, rgba(3, 6, 13, 0.72), rgba(3, 6, 13, 0.35) 60%, transparent);
}
.kicker { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.stage__head h1 {
	margin-top: 6px;
	font-size: clamp(30px, 3.4vw, 54px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
	background: linear-gradient(180deg, #ffffff 20%, #9fdcff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-wrap: balance;
}
.stage__sub { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.stage__sub b { font: 500 13px var(--mono); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -2px 0 8px; font-size: 11px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.role-hq { --c: #ffffff; }
.role-plant { --c: var(--amber); }
.role-hub { --c: var(--cyan); }
.role-rd { --c: var(--violet); }

/* Chart */
.chart { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: clamp(168px, 25vh, 232px); display: flex; flex-direction: column; padding-bottom: 8px; }
.chart__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.chart__head .card__title { margin-bottom: 0; }
.chart__total { font-size: 12.5px; color: var(--ink-2); }
.chart__total b { font: 500 15px var(--mono); color: var(--ink); }
.chart__total span { font: 500 11px var(--mono); margin-left: 8px; }
.chart__legend { display: flex; gap: 14px; margin-left: auto; font-size: 11.5px; color: var(--muted); }
.chart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend li::before { content: ""; width: 16px; height: 0; border-top: 2px solid var(--cyan); }
.chart__legend .is-goal::before { border-top: 2px dashed rgba(255, 255, 255, 0.55); }
.chart__legend .is-fore::before { border-top: 2px dotted var(--violet); }
.chart__plot { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 6px; }
.chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__plot .grid line { stroke: rgba(255, 255, 255, 0.06); }
.chart__plot .axis text { font: 400 10.5px var(--mono); fill: var(--muted); }
.chart__plot .real { fill: none; stroke: url(#cl); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(95, 225, 255, 0.55)); }
.chart__plot .goal { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.4; stroke-dasharray: 5 5; }
.chart__plot .fore { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
.chart__plot .area { fill: url(#ca); }
.chart__plot .pt { fill: #04101f; stroke: var(--cyan); stroke-width: 1.8; }
.chart__plot .now { fill: var(--cyan); }
.chart__plot .now-ring { fill: none; stroke: var(--cyan); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.chart__plot .hover-line { stroke: rgba(255, 255, 255, 0.25); stroke-dasharray: 2 3; }
.tip {
	position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2;
	padding: 7px 10px; border-radius: 10px; background: rgba(6, 12, 26, 0.92); border: 1px solid var(--line-2);
	font: 400 11px var(--mono); color: var(--ink-2); white-space: nowrap;
	opacity: 0; transform: translate(-50%, -110%); transition: opacity 0.15s;
}
.tip b { color: var(--ink); font-weight: 500; }
.tip strong { display: block; font: 600 11px var(--font); color: var(--ink); margin-bottom: 3px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Site panel */
.site-panel {
	position: absolute; right: 0; top: 0; z-index: 4;
	width: clamp(250px, 21vw, 300px);
	background: linear-gradient(180deg, rgba(14, 26, 52, 0.78), rgba(7, 12, 26, 0.82));
	opacity: 0; transform: translateX(24px) scale(0.98); pointer-events: none; visibility: hidden;
	transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s 0.6s;
}
.site-panel.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s; }
.panel__close { position: absolute; right: 10px; top: 8px; width: 28px; height: 28px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--muted); }
.panel__close:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.panel__role { display: inline-flex; align-items: center; gap: 7px; font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, var(--cyan)); }
.panel__role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); }
.panel__name { margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.panel__where { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.panel__where time { font-family: var(--mono); color: var(--ink-2); }
.panel__state { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; color: var(--muted); }
.panel__status { display: inline-block; padding: 3px 9px; border-radius: 99px; font: 500 11px var(--mono); color: var(--green); background: rgba(71, 224, 161, 0.1); border: 1px solid rgba(71, 224, 161, 0.3); }
.panel__status.is-watch { color: var(--amber); background: rgba(255, 191, 94, 0.1); border-color: rgba(255, 191, 94, 0.32); }
.panel__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin: 14px 0 12px; }
.panel__stats dt { font-size: 11px; color: var(--muted); }
.panel__stats dd { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; margin-top: 1px; }
.panel__stats dd small { font-size: 0.6em; color: var(--ink-2); letter-spacing: 0; }
.panel__sub { font-size: 11px; color: var(--muted); margin: 12px 0 6px; display: flex; justify-content: space-between; }
.panel__sub b { font: 500 11px var(--mono); color: var(--ink); }
.panel__week { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.panel__week i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--c, var(--cyan)), rgba(95, 225, 255, 0.08)); height: 4%; transition: height 0.9s var(--ease); opacity: 0.85; }
.panel__week i:last-child { opacity: 1; box-shadow: 0 0 12px var(--c, var(--cyan)); }

/* Sites list */
.sites { flex: 0 0 auto; }
.sites__list { display: flex; flex-direction: column; margin: 0 -8px; }
.site-row {
	display: grid; grid-template-columns: 9px minmax(0, 1fr) 54px 36px; align-items: center; gap: 9px;
	height: clamp(22px, 3.05vh, 28px); padding: 0 8px; border-radius: 8px; cursor: pointer;
	font-size: 12.5px; transition: background 0.2s;
}
.site-row:hover { background: rgba(255, 255, 255, 0.04); }
.site-row.is-on { background: rgba(95, 225, 255, 0.10); box-shadow: inset 0 0 0 1px rgba(95, 225, 255, 0.25); }
.site-row:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.site-row__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.site-row__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-row__name small { color: var(--muted); margin-left: 6px; font-size: 11px; }
.site-row__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.site-row__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); opacity: 0.85; transition: width 1.4s var(--ease); }
.site-row__val { font: 500 11.5px var(--mono); text-align: right; color: var(--ink-2); }

/* Feed */
.feed { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.feed__list {
	position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
	mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.ev {
	position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
	padding: 9px 0; border-top: 1px solid var(--line);
}
.ev:first-child { border-top: 0; }
.ev.is-new { animation: evIn 0.9s var(--ease) both; }
@keyframes evIn { from { opacity: 0; transform: translateY(-16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ev__icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: var(--c); }
.ev__icon svg { width: 14px; height: 14px; }
.ev.is-new .ev__icon { box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.ev__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.ev__top b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__top time { font: 400 10.5px var(--mono); color: var(--muted); flex: none; }
.ev__text { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__text span { color: var(--muted); }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--faint); padding: 0 4px; }

/* Intro choreography */
.rise { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.is-in .rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 350ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* Laptops of small height */
@media (max-height: 860px) and (min-width: 1101px) {
	.card { padding: 11px 14px; }
	.card__title { margin-bottom: 8px; }
	.kpi { padding: 8px 11px 6px; }
	.kpi__value { font-size: clamp(20px, 3vh, 26px); }
	.kpi__spark { height: 20px; margin-top: 4px; }
	.bars { gap: 5px; }
	.bar__track { margin-top: 4px; height: 5px; }
	.bar__row, .bar__row b { font-size: 12px; }
	.gauge__svg { max-width: 150px; }
	.pulse__grid { gap: 10px; }
	.site-row { height: clamp(21px, 2.9vh, 26px); }
	.stage__sub { margin-top: 6px; }
	.pulse__label { margin: 3px 0 6px; }
	.legend { margin-bottom: 4px; }
	.ev { padding: 7px 0; }
}

/* Tablets */
@media (max-width: 1100px) {
	.app { height: auto; min-height: 100vh; }
	.main { grid-template-columns: 1fr 1fr; }
	.stage { grid-column: 1 / -1; order: -1; height: min(86vh, 760px); }
	.col--left, .col--right { min-height: 0; }
	.feed { min-height: 360px; }
	.site-row { height: 28px; }
}

/* Phones */
@media (max-width: 700px) {
	.app { padding: 12px 16px 14px; }
	.top { flex-wrap: wrap; gap: 10px 14px; }
	.live { margin-left: auto; }
	.clocks { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
	.clock { align-items: flex-start; }
	.demo-tag { order: 4; max-width: none; border-left: 0; padding-left: 0; }
	.main { grid-template-columns: minmax(0, 1fr); }
	.stage { height: auto; display: flex; flex-direction: column; gap: var(--gap); }
	.stage__head { position: relative; max-width: none; order: 0; }
	.globe-wrap { position: relative; inset: auto; order: 1; height: min(100vw, 440px); margin: -6px -16px 0; }
	.chart { position: relative; order: 3; height: 230px; }
	.chart__legend { margin-left: 0; width: 100%; }
	.site-panel {
		position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; z-index: 20;
		max-height: 72vh; overflow: auto; transform: translateY(30px);
	}
	.foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.rise, .is-in .rise { animation: none; opacity: 1; transform: none; filter: none; }
	.live__dot, .clock time i, .chart__plot .now-ring { animation: none; }
	.ev.is-new { animation: none; }
	*, *::before, *::after { transition: none !important; }
}
