﻿:root {
			--bg: #eef2f6;
			--panel: #ffffff;
			--panel-soft: #f7fafc;
			--text: #17324d;
			--muted: #5e7388;
			--line: #d7e2ec;
			--brand: #0058a3;
			--brand-dark: #003a70;
			--accent: #0c8a6a;
			--warn: #b45309;
			--danger: #b91c1c;
			--ink: #0a1628;
			--shadow: 0 18px 40px rgba(23, 50, 77, 0.11);
			--radius: 22px;
		}

		* {
			box-sizing: border-box;
		}

		body {
			position: relative;
			margin: 0;
			min-height: 100vh;
			font-family: "Segoe UI", Tahoma, sans-serif;
			color: var(--text);
			background: var(--bg);
		}

		a {
			color: var(--brand);
			text-decoration: none;
		}

		a:hover {
			text-decoration: underline;
		}

		.page {
			width: 100%;
			margin: 0 auto;
			padding: 28px;
		}

		.hero {
			position: relative;
			overflow: hidden;
			padding: 16px 24px;
			border-radius: 28px;
			background: linear-gradient(135deg, #0a4d8c 0%, #0b67bd 46%, var(--ink) 100%);
			color: #ffffff;
			box-shadow: var(--shadow);
		}

		.hero-top {
			position: relative;
			z-index: 2;
			display: flex;
			align-items: flex-start;
			justify-content: space-between;
			gap: 18px;
			flex-wrap: wrap;
		}

		.eyebrow {
			display: inline-flex;
			align-items: center;
			padding: 7px 12px;
			border-radius: 999px;
			background: rgba(255, 255, 255, 0.16);
			border: 1px solid rgba(255, 255, 255, 0.22);
			font-size: 0.8rem;
			font-weight: 700;
			letter-spacing: 0.04em;
			text-transform: uppercase;
		}

		.hero-logo {
			display: block;
			height: 30px;
			width: auto;
			margin-bottom: 8px;
			filter: brightness(0) invert(1);
			opacity: 0.92;
		}

		.hero h1 {
			position: relative;
			margin: 6px 0 8px;
			font-size: clamp(1.4rem, 2.4vw, 2rem);
			line-height: 1.15;
		}

		.hero p {
			position: relative;
			max-width: 880px;
			margin: 0;
			font-size: 1rem;
			line-height: 1.65;
			color: rgba(255, 255, 255, 0.92);
		}

		.hero-meta {
			position: relative;
			display: flex;
			flex-direction: column;
			align-items: stretch;
			gap: 6px;
			min-width: 200px;
			flex-shrink: 0;
		}

		.meta-box {
			padding: 8px 12px;
			border-radius: 12px;
			background: rgba(255, 255, 255, 0.12);
			border: 1px solid rgba(255, 255, 255, 0.18);
			backdrop-filter: blur(8px);
		}

		.meta-label {
			display: block;
			font-size: 0.68rem;
			text-transform: uppercase;
			letter-spacing: 0.06em;
			opacity: 0.75;
		}

		.meta-value {
			display: block;
			margin-top: 2px;
			font-size: 0.88rem;
			font-weight: 700;
		}

		.meta-value a {
			color: inherit;
			text-decoration: none;
			border-bottom: 1px solid rgba(255, 255, 255, 0.5);
		}

		.meta-value a:hover {
			border-bottom-color: #fff;
		}

		.grid {
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 20px;
			margin-top: 22px;
			align-items: start;
		}

		.grid-col {
			display: grid;
			gap: 20px;
		}

		.card {
			background: rgba(255, 255, 255, 0.9);
			border: 1px solid rgba(215, 226, 236, 0.95);
			border-radius: var(--radius);
			padding: 22px;
			box-shadow: var(--shadow);
			display: flex;
			flex-direction: column;
			min-height: 100%;
		}

		.card-header {
			display: flex;
			align-items: flex-start;
			justify-content: space-between;
			gap: 12px;
			margin-bottom: 16px;
		}

		.card-title {
			margin: 0;
			font-size: 1.2rem;
			line-height: 1.2;
		}

		.card-subtitle {
			margin: 6px 0 0;
			color: var(--muted);
			font-size: 0.94rem;
			line-height: 1.55;
		}

		.badge {
			display: inline-block;
			flex-shrink: 0;
			padding: 3px 10px;
			line-height: 1.4;
			border-radius: 999px;
			font-size: 0.78rem;
			font-weight: 700;
			background: #e8f2fb;
			color: var(--brand-dark);
			border: 1px solid rgba(0, 58, 112, 0.22);
		}

		.badge.warm {
			background: #fff4e8;
			color: var(--warn);
			border-color: rgba(180, 83, 9, 0.28);
		}

		.badge.safe {
			background: #e7f7f2;
			color: var(--accent);
			border-color: rgba(12, 138, 106, 0.28);
		}

		.list {
			display: grid;
			gap: 12px;
		}

		.item {
			padding: 14px 15px;
			border-radius: 16px;
			background: var(--panel-soft);
			border: 1px solid var(--line);
		}

		.item-top {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 10px;
			margin-bottom: 6px;
		}

		.item-title {
			margin: 0;
			font-size: 0.99rem;
			font-weight: 700;
			line-height: 1.35;
		}

		.item-date {
			flex-shrink: 0;
			font-size: 0.78rem;
			font-weight: 700;
			color: var(--muted);
			background: #ffffff;
			padding: 5px 8px;
			border-radius: 999px;
			border: 1px solid var(--line);
		}

		.item p,
		.note p,
		.summary p {
			margin: 0;
			color: var(--muted);
			font-size: 0.93rem;
			line-height: 1.55;
		}

		.item-link {
			display: inline-flex;
			align-items: center;
			margin-top: 8px;
			font-size: 0.9rem;
			font-weight: 700;
		}

		.embed-shell {
			display: grid;
			gap: 12px;
			height: 100%;
		}

		.card-embed {
			height: 800px;
		}

		.card-embed .embed-shell {
			display: flex;
			flex: 1;
		}

		.embed-viewport {
			position: relative;
			flex: 1;
			border: 1px solid var(--line);
			border-radius: 18px;
			background: #ffffff;
			overflow: clip;
		}

		.embed-frame {
			width: 100%;
			height: 100%;
			border: 0;
			background: #ffffff;
		}

		.summary {
			display: grid;
			gap: 10px;
		}

		.summary-box,
		.note {
			position: relative;
			padding: 15px 16px;
			border-radius: 18px;
			border: 1px solid var(--line);
			background: var(--panel-soft);
		}

		.note-title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 12px;
			margin: 0 0 10px;
			padding: 10px 14px;
			border-radius: 12px;
			background: rgba(255, 255, 255, 0.72);
			border: 1px solid rgba(215, 226, 236, 0.9);
			box-shadow: 0 2px 6px rgba(23, 50, 77, 0.06);
		}

		.note-title strong {
			flex: 1;
			font-size: 1.15rem;
			font-weight: 800;
			line-height: 1.4;
			color: var(--ink);
		}

		.note-date {
			flex-shrink: 0;
			font-size: 0.75rem;
			font-weight: 700;
			color: var(--muted);
			background: #ffffff;
			padding: 4px 9px;
			border-radius: 999px;
			border: 1px solid var(--line);
			white-space: nowrap;
		}

		.summary-box strong,
		.note strong {
			display: block;
			margin-bottom: 6px;
			font-size: 0.94rem;
			color: var(--text);
		}

		.summary-links {
			display: flex;
			flex-wrap: wrap;
			gap: 10px;
			margin-top: 4px;
		}

		.summary-links a {
			display: inline-flex;
			align-items: center;
			padding: 8px 11px;
			border-radius: 999px;
			background: #ffffff;
			border: 1px solid var(--line);
			font-size: 0.86rem;
			font-weight: 700;
		}

		.note.warn {
			background: #fff8ef;
			border-color: #f3d3b2;
		}

		.note.alert {
			background: #fff3f2;
			border-color: #f0c7c3;
		}

		.note.safe {
			background: #eef9f5;
			border-color: #ccebdd;
		}

		.footer {
			margin-top: 18px;
			text-align: center;
			font-size: 0.82rem;
			color: var(--muted);
		}

		@media (max-width: 980px) {
			.grid {
				grid-template-columns: 1fr;
			}
		}

		@media (max-width: 640px) {
			.page {
				padding: 14px;
			}

			.hero,
			.card {
				padding: 18px;
				border-radius: 20px;
			}

			.hero-top,
			.card-header,
			.item-top {
				flex-direction: column;
				align-items: flex-start;
			}

			.hero-meta {
				width: 100%;
				min-width: 0;
				flex-direction: row;
				flex-wrap: wrap;
			}
		}

.hex-bg-global {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
	width: 100%;
}

.hex-bg-global .hex-cluster {
	position: absolute;
	pointer-events: none;
	opacity: 0.6;
}

.hex-bg-hero {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}

.hex-bg-hero .hex-cluster {
	position: absolute;
	pointer-events: none;
	opacity: 0.7;
}

.status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.status-tile {
	padding: 13px 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--panel-soft);
	border-left: 3px solid var(--line);
}

.status-tile.is-up {
	border-left-color: #16a34a;
}

.status-tile.is-down {
	border-left-color: #dc2626;
}

.status-tile-top {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.status-tile-state {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--muted);
}

.status-tile-name {
	display: block;
	font-size: 0.9rem;
	color: var(--text);
	margin-bottom: 3px;
}

.status-tile-desc {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--muted);
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.is-up .status-dot {
	background: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.is-down .status-dot {
	background: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.badge-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.badge-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	padding: 7px 11px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	font-family: inherit;
	background: #ffffff;
	border: 1px solid var(--line);
	color: var(--brand-dark);
	cursor: pointer;
}

.badge-link:hover {
	text-decoration: none;
	border-color: var(--brand);
}

.badge-link:disabled {
	opacity: 0.6;
	cursor: default;
}

.badge-link .icon-refresh {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.badge-link.is-refreshing .icon-refresh {
	animation: ksefinfo-spin 0.8s linear infinite;
}

@keyframes ksefinfo-spin {
	to { transform: rotate(360deg); }
}

.phone-hours {
	margin-bottom: 4px;
}

.phone-line {
	display: flex;
	align-items: center;
	gap: 6px;
}

.phone-line + .phone-line {
	margin-top: 2px;
}

.icon-phone {
	flex-shrink: 0;
	color: var(--muted);
}

.status-tile-ping {
	margin-left: auto;
	flex-shrink: 0;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--muted);
	background: rgba(23, 50, 77, 0.06);
	padding: 2px 7px;
	border-radius: 999px;
}

.status-tile.is-checking .status-dot {
	background: var(--muted);
	animation: ksefinfo-pulse 1.2s ease-in-out infinite;
}

@keyframes ksefinfo-pulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

.ping-quality {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 10px;
}

.ping-quality-main {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ping-quality-bar {
	flex: 1;
	height: 5px;
	border-radius: 999px;
	background: rgba(23, 50, 77, 0.08);
	overflow: hidden;
}

.ping-quality-fill {
	display: block;
	position: relative;
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: var(--muted);
	transition: width 0.6s ease, background-color 0.3s ease;
}

.status-tile.is-checking .ping-quality-fill {
	width: 100%;
	background: transparent;
}

.status-tile.is-checking .ping-quality-fill::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	width: 40%;
	border-radius: 999px;
	background: var(--brand);
	animation: ksefinfo-indeterminate 1.1s ease-in-out infinite;
}

@keyframes ksefinfo-indeterminate {
	0%   { left: -40%; }
	100% { left: 100%; }
}

.ping-quality-fill.quality-great {
	background: #16a34a;
}

.ping-quality-fill.quality-good {
	background: #65a30d;
}

.ping-quality-fill.quality-ok {
	background: #d97706;
}

.ping-quality-fill.quality-poor {
	background: #dc2626;
}

.ping-quality-pct {
	flex-shrink: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text);
	line-height: 1.2;
}

.ping-quality-ref {
	font-size: 0.68rem;
	color: var(--muted);
}
