/* Optidata Cloud status page. Tokens and measurements follow docs/design/Status Page.dc.html. */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("/assets/inter-latin-ext.34b9c504ca.woff2") format("woff2-variations"), url("/assets/inter-latin-ext.34b9c504ca.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
		U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("/assets/inter-latin.3100e775e8.woff2") format("woff2-variations"), url("/assets/inter-latin.3100e775e8.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--subtle: #f8fafc;
	--border: #e2e8f0;
	--strong: #0f172a;
	--text: #334155;
	--soft: #475569;
	--muted: #64748b;
	--icon: #94a3b8;
	--primary: #8d0de3;
	--primary-hover: #7800c6;
	--primary-text: #8d0de3;
	--primary-sel: rgba(141, 13, 227, 0.1);
	--header: rgba(255, 255, 255, 0.8);
	--shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
	--ok: #10b981;
	--warn: #f59200;
	--orange: #f97316;
	--err: #ef4444;
	--info: #0284c7;
	--nodata: #e2e8f0;
	--ok-fg: #047857;
	--ok-bg: rgba(4, 120, 87, 0.07);
	--warn-fg: #db7c00;
	--warn-bg: rgba(219, 124, 0, 0.07);
	--orange-fg: #ea580c;
	--orange-bg: rgba(234, 88, 12, 0.07);
	--err-fg: #e52e00;
	--err-bg: rgba(229, 46, 0, 0.07);
	--info-fg: #0369a1;
	--info-bg: rgba(3, 105, 161, 0.07);
	--code-bg: #15161a;
	--code-text: #d0d2db;
	--scrim: rgba(15, 23, 42, 0.5);
	--tip: #0f172a;
	--logo-l: block;
	--logo-d: none;
	--hover-border: #cba5fd;
	--seg-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	--map-land: #f1f5f9;
	--map-focus: #e2e8f0;
	--map-stroke: #ffffff;
	--map-text: #334155;
	--map-muted: #64748b;
	--map-halo: #ffffff;
	--mono: "JetBrains Mono", ui-monospace, monospace;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0e0f11;
	--surface: #1c1d21;
	--subtle: #232429;
	--border: #232429;
	--strong: #ffffff;
	--text: #d0d2db;
	--soft: #b7bac4;
	--muted: #838794;
	--icon: #4c4f57;
	--primary: #a13de8;
	--primary-hover: #af63fd;
	--primary-text: #cba5fd;
	--primary-sel: rgba(175, 99, 253, 0.1);
	--header: rgba(14, 15, 17, 0.8);
	--shadow: none;
	--info: #38bdf8;
	--nodata: #2a2c32;
	--ok-fg: #34d399;
	--ok-bg: rgba(52, 211, 153, 0.1);
	--warn-fg: #ffba42;
	--warn-bg: rgba(255, 186, 66, 0.1);
	--orange-fg: #fb923c;
	--orange-bg: rgba(251, 146, 60, 0.1);
	--err-fg: #f87171;
	--err-bg: rgba(248, 113, 113, 0.12);
	--info-fg: #38bdf8;
	--info-bg: rgba(56, 189, 248, 0.1);
	--code-bg: #15161a;
	--scrim: rgba(0, 0, 0, 0.4);
	--tip: #2a2c32;
	--logo-l: none;
	--logo-d: block;
	--map-land: #232429;
	--map-focus: #2a2c32;
	--map-stroke: #1c1d21;
	--map-text: #d0d2db;
	--map-muted: #838794;
	--map-halo: #1c1d21;
	color-scheme: dark;
}

/* Status modifiers: foreground, background and bar colors of each status. */
.st-ok {
	--fg: var(--ok-fg);
	--bgc: var(--ok-bg);
	--bar: var(--ok);
}
.st-maintenance {
	--fg: var(--info-fg);
	--bgc: var(--info-bg);
	--bar: var(--info);
}
.st-degraded {
	--fg: var(--warn-fg);
	--bgc: var(--warn-bg);
	--bar: var(--warn);
}
.st-partial_outage {
	--fg: var(--orange-fg);
	--bgc: var(--orange-bg);
	--bar: var(--orange);
}
.st-outage {
	--fg: var(--err-fg);
	--bgc: var(--err-bg);
	--bar: var(--err);
}
.st-nodata {
	--fg: var(--muted);
	--bgc: var(--subtle);
	--bar: var(--nodata);
}

/* Base */
html {
	scrollbar-gutter: stable;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 14px;
	line-height: 20px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
[hidden] {
	display: none !important;
}
a {
	color: var(--primary-text);
	text-decoration: none;
}
a:hover {
	color: var(--primary-hover);
}
button {
	font-family: inherit;
}
:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}
.mono {
	font-family: var(--mono);
}
.strong {
	font-weight: 600;
	color: var(--strong);
}
@keyframes topo-dot-pulse {
	0% {
		transform: scale(1);
		opacity: 0.5;
	}
	70% {
		transform: scale(2.7);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.app {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	display: flex;
	flex-direction: column;
}
body.modal-open {
	overflow: hidden;
}

/* Header */
.hdr {
	position: sticky;
	top: 0;
	z-index: 20;
	height: 65px;
	flex-shrink: 0;
	border-bottom: 1px solid var(--border);
	background: var(--header);
	backdrop-filter: blur(8px) saturate(1.5);
	-webkit-backdrop-filter: blur(8px) saturate(1.5);
}
.hdr-inner {
	max-width: 1152px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.hdr-left {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.logo-l,
.logo-d {
	height: 22px;
	width: auto;
}
.logo-l {
	display: var(--logo-l);
}
.logo-d {
	display: var(--logo-d);
}
.brand-sep {
	width: 1px;
	height: 20px;
	background: var(--border);
}
.brand-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--strong);
}
.nav {
	display: flex;
	align-items: center;
	gap: 4px;
}
.nav-link,
.nav-link:hover {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--soft);
	background: transparent;
}
.nav-link.is-active,
.nav-link.is-active:hover {
	background: var(--primary-sel);
	color: var(--primary-text);
}
.hdr-right {
	display: flex;
	align-items: center;
	gap: 12px;
}
.theme-btn {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--soft);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.theme-btn:hover {
	border-color: var(--hover-border);
}
.icon-sun {
	display: none;
}
:root[data-theme="dark"] .icon-sun {
	display: block;
}
:root[data-theme="dark"] .icon-moon {
	display: none;
}

/* Buttons */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 32px;
	padding: 0 16px;
	border-radius: 8px;
	border: 0;
	background: var(--primary);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.025em;
	cursor: pointer;
}
.btn-primary:hover {
	background: var(--primary-hover);
	color: #fff;
}
.btn-primary:disabled {
	opacity: 0.6;
	cursor: default;
}
.btn-lg {
	height: 38px;
	font-size: 14px;
}
.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}
.btn-outline:hover {
	border-color: var(--hover-border);
	color: var(--text);
}
.btn-block {
	width: 100%;
	margin-top: 4px;
	font-size: 13px;
}
.btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 16px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--err-fg);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.025em;
	cursor: pointer;
}
.btn-danger:hover {
	border-color: var(--err-fg);
}
.btn-danger:disabled {
	opacity: 0.6;
	cursor: default;
}
.btn-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}
.arrow-link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--primary-text);
}

/* Layout */
.main {
	flex: 1;
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.stack-12,
.stack-16,
.stack-24 {
	display: flex;
	flex-direction: column;
}
.stack-12 {
	gap: 12px;
}
.stack-16 {
	gap: 16px;
}
.stack-24 {
	gap: 24px;
}
.card {
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.h-caps {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}
.h2 {
	margin: 0;
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
	color: var(--strong);
}
.sub {
	margin: 0;
	color: var(--muted);
}
.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.empty-box {
	padding: 32px;
	text-align: center;
	border: 1px dashed var(--border);
	border-radius: 8px;
	color: var(--muted);
}
.link-row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

/* Badges, chips, dots */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 12px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.025em;
	white-space: nowrap;
}
.badge-st {
	color: var(--fg);
	background: var(--bgc);
}
.badge-outline {
	border: 1px solid var(--border);
	color: var(--soft);
}
.dot6 {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	background: currentColor;
}
.dot-bar {
	background: var(--bar);
}
.chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 12px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.025em;
	border: 1px solid var(--border);
	color: var(--text);
}
.chip-zone {
	background: var(--surface);
}

/* Segmented control */
.seg {
	display: flex;
	gap: 2px;
	padding: 2px;
	border-radius: 8px;
	background: var(--subtle);
	border: 1px solid var(--border);
}
.seg-btn {
	height: 26px;
	padding: 0 10px;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	background: transparent;
	color: var(--muted);
	box-shadow: none;
}
.seg-btn.is-active {
	background: var(--surface);
	color: var(--strong);
	box-shadow: var(--seg-shadow);
}
.seg-btn-sm {
	height: 24px;
}
.seg-tab {
	flex: 1;
	height: 30px;
	font-size: 13px;
}

/* Banner */
.banner {
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.banner-icon {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bgc);
	color: var(--fg);
}
.banner-body {
	flex: 1;
	min-width: 240px;
}
.banner-title {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: var(--strong);
}
.banner-sub {
	margin: 2px 0 0;
	color: var(--muted);
	text-wrap: pretty;
}
.banner-message {
	white-space: pre-line;
	color: var(--soft);
}
.banner-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.banner-meta-k {
	font-size: 12px;
	color: var(--muted);
}
.banner-meta-v {
	font-size: 13px;
	font-weight: 500;
	color: var(--strong);
}

/* Active incidents */
.active-card {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.active-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.active-state {
	font-size: 12px;
	font-weight: 600;
	color: var(--strong);
}
.active-time {
	font-size: 12px;
	color: var(--muted);
}
.active-title {
	align-self: flex-start;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--strong);
}
.active-title:hover {
	color: var(--primary-text);
}
.active-text {
	margin: 0;
	color: var(--soft);
	text-wrap: pretty;
	max-width: 760px;
}
.active-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 4px;
}

/* Scheduled maintenance */
.mnt-card {
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.mnt-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--info-bg);
	color: var(--info-fg);
}
.mnt-body {
	flex: 1;
	min-width: 220px;
}
.mnt-title {
	display: block;
	font-weight: 600;
	color: var(--strong);
}
.mnt-title:hover {
	color: var(--primary-text);
}
.mnt-where {
	font-size: 13px;
	color: var(--muted);
}
.mnt-impact {
	font-size: 13px;
	color: var(--soft);
	max-width: 340px;
	text-wrap: pretty;
}
.mnt-level {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}

/* Locations */
.search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	width: 220px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted);
}
.search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	padding: 0;
}
.search-input::placeholder {
	color: var(--muted);
}
.search:focus-within {
	border-color: var(--primary);
}
.map {
	position: relative;
	height: 340px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	overflow: hidden;
}
.map-canvas,
.map-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.map-svg {
	display: block;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.map-land {
	fill: var(--map-land);
	stroke: var(--map-stroke);
	stroke-width: 0.75;
}
.map-land.is-focus {
	fill: var(--map-focus);
}
.metro {
	cursor: pointer;
}
.metro:focus-visible {
	outline: none;
}
.metro:focus-visible .metro-dot,
.metro:focus-visible .metro-halo {
	stroke: var(--primary);
	stroke-width: 2;
}
.metro-dot {
	fill: var(--bar);
	stroke: var(--map-halo);
	stroke-width: 2;
}
/* Metro with several locations: count inside a ring split by status (map.ts clusterDot). */
.metro-halo {
	fill: var(--map-halo);
}
.metro-ring {
	fill: none;
	stroke: var(--bar);
	stroke-width: 3.5;
}
.metro-count {
	fill: var(--map-text);
	font-size: 10px;
	font-weight: 700;
}
.metro-sub-state {
	fill: var(--fg);
	font-weight: 500;
}
.metro-cluster.is-open .metro-halo {
	stroke: var(--primary);
	stroke-width: 2;
}

/* List of a cluster's locations, opened by site.js next to the marker. */
.metro-pop {
	position: absolute;
	z-index: 5;
	width: 260px;
	max-height: calc(100% - 16px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	font-size: 13px;
}
.metro-pop-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px 8px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 4px;
}
.metro-pop-title {
	font-weight: 600;
	color: var(--strong);
}
.metro-pop-count {
	font-size: 12px;
	color: var(--muted);
}
.metro-pop-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 6px;
	color: var(--text);
	text-decoration: none;
}
.metro-pop-item:hover,
.metro-pop-item:focus-visible {
	background: var(--subtle);
	outline: none;
}
.metro-pop-dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bar);
}
.metro-pop-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: var(--strong);
}
.metro-pop-status {
	margin-left: auto;
	font-size: 12px;
	color: var(--fg);
	white-space: nowrap;
}
.metro-leader {
	stroke: var(--map-muted);
	stroke-width: 1;
}
.metro-anchor {
	fill: var(--map-muted);
}
.metro-pulse {
	fill: var(--bar);
	transform-box: fill-box;
	transform-origin: center;
	animation: topo-dot-pulse 2.1s infinite;
}
.metro-lbl {
	fill: var(--map-text);
	font-size: 12px;
	font-weight: 600;
}
.metro-sub {
	fill: var(--map-muted);
	font-size: 11px;
}
.metro:hover .metro-lbl,
.metro:focus-visible .metro-lbl {
	text-decoration: underline;
}
.map-legend {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 12px;
	color: var(--soft);
}
.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
}
.legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bar);
}

.grid4 {
	display: grid;
	grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr) 168px 20px;
	align-items: center;
	gap: 20px;
}
.loc {
	overflow: hidden;
	scroll-margin-top: 80px;
}
.loc-head {
	width: 100%;
	padding: 16px 20px;
	cursor: pointer;
	text-align: left;
	color: inherit;
	list-style: none;
}
.loc-head::-webkit-details-marker {
	display: none;
}
.loc-head:hover {
	background: var(--subtle);
}
.loc-name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.loc-flag {
	font-size: 18px;
	line-height: 1;
}
.loc-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.loc-city {
	font-weight: 500;
	color: var(--text);
}
.loc-code {
	color: var(--muted);
	font-weight: 400;
}
.loc-place {
	font-size: 12px;
	color: var(--muted);
}
.bars {
	display: flex;
	gap: 2px;
	height: 24px;
	min-width: 0;
}
.bars-sm {
	height: 20px;
}
.bar {
	flex: 1;
	min-width: 2px;
	border-radius: 2px;
	background: var(--bar);
}
.status-cell {
	display: flex;
	justify-content: flex-end;
}
.chev {
	color: var(--icon);
	transition: transform 0.2s;
}
.loc[open] .chev {
	transform: rotate(180deg);
}
.loc-body {
	border-top: 1px solid var(--border);
	background: var(--subtle);
	padding: 4px 20px 16px;
}
.svc-row {
	padding: 10px 0;
	border-bottom: 1px dashed var(--border);
}
.svc-name {
	padding-left: 28px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
}
.svc-status {
	display: flex;
	justify-content: flex-end;
	font-size: 12px;
	font-weight: 500;
	color: var(--fg);
}
.axis {
	align-items: stretch;
	padding-top: 6px;
	font-size: 11px;
	color: var(--muted);
}
.axis-range {
	display: flex;
	justify-content: space-between;
}
.zones {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 14px 0 0 28px;
}
.zones-label {
	font-size: 12px;
	color: var(--muted);
	margin-right: 4px;
}

/* Global services */
.global-card {
	padding: 4px 20px;
}
.global-row {
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.global-row:last-child {
	border-bottom: 0;
}
.global-name {
	font-weight: 500;
	color: var(--text);
}

/* Incident history */
.hist-row {
	width: 100%;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto 20px;
	align-items: center;
	gap: 20px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	color: inherit;
}
.hist-row:hover {
	background: var(--subtle);
	color: inherit;
}
.hist-row:last-child,
.hist-row.is-last {
	border-bottom: 0;
}
.hist-row:first-child {
	border-radius: 7px 7px 0 0;
}
.hist-row:last-child,
.hist-row.is-last {
	border-radius: 0 0 7px 7px;
}
.hist-row:only-child {
	border-radius: 7px;
}
.hist-when {
	display: flex;
	flex-direction: column;
}
.hist-day {
	font-size: 13px;
	font-weight: 600;
	color: var(--strong);
}
.hist-time {
	font-size: 12px;
	color: var(--muted);
}
.hist-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.hist-title {
	font-weight: 500;
	color: var(--strong);
}
.hist-where {
	font-size: 12px;
	color: var(--muted);
}
.hist-badges {
	display: flex;
	align-items: center;
	gap: 8px;
}
.icon-muted {
	color: var(--icon);
}

/* Event detail */
.back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}
.back:hover {
	color: var(--text);
}
.detail-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.detail-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.detail-id {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	color: var(--muted);
}
.detail-title,
.page-title {
	margin: 0;
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	color: var(--strong);
	text-wrap: pretty;
}
.detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}
.updates-card {
	padding: 24px;
}
.updates-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.updates-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--strong);
}
.tl {
	display: flex;
	flex-direction: column;
}
.tl-item {
	position: relative;
	display: flex;
	padding-bottom: 24px;
}
.tl-item:last-child {
	padding-bottom: 0;
}
.tl-line {
	position: absolute;
	left: 5.5px;
	top: 12px;
	bottom: 0;
	width: 1px;
	background: var(--border);
}
.tl-item:last-child .tl-line {
	background: transparent;
}
.tl-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 4px;
	background: var(--ufg);
	box-shadow: 0 0 0 3px var(--surface);
}
.tl-body {
	flex: 1;
	min-width: 0;
	padding-left: 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tl-meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}
.tl-label {
	font-weight: 600;
	color: var(--ufg);
}
.tl-time {
	font-size: 12px;
	color: var(--muted);
}
.tl-text {
	color: var(--soft);
	text-wrap: pretty;
	overflow-wrap: anywhere;
}
.tl-text > * {
	margin: 0;
}
.tl-text > * + * {
	margin-top: 8px;
}
.tl-text ul,
.tl-text ol {
	padding-left: 20px;
}
.tl-text code {
	font-family: var(--mono);
	font-size: 12px;
}
.tl-text pre {
	padding: 12px;
	border-radius: 8px;
	background: var(--code-bg);
	color: var(--code-text);
	overflow: auto;
}
.tl-text blockquote {
	padding-left: 12px;
	border-left: 2px solid var(--border);
}
.us-investigating {
	--ufg: var(--err-fg);
}
.us-identified {
	--ufg: var(--warn-fg);
}
.us-monitoring,
.us-scheduled,
.us-in_progress {
	--ufg: var(--info-fg);
}
.us-resolved,
.us-completed {
	--ufg: var(--ok-fg);
}
.us-cancelled {
	--ufg: var(--muted);
}
.side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.meta-card {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.meta-item {
	display: flex;
	flex-direction: column;
}
.meta-k {
	font-size: 12px;
	color: var(--muted);
}
.meta-v {
	font-size: 13px;
	font-weight: 500;
	color: var(--strong);
}
.comp-card {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.comp-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--strong);
}
.comp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.comp-name {
	font-size: 13px;
	color: var(--text);
}
.comp-st {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--fg);
	white-space: nowrap;
}
.fetch-box {
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--subtle);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fetch-k {
	font-size: 12px;
	color: var(--muted);
}
.fetch-code {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--strong);
	word-break: break-all;
}

/* API */
.api-intro {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 720px;
}
.api-lead {
	margin: 0;
	color: var(--soft);
	text-wrap: pretty;
}
.base-box {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--subtle);
	padding: 12px 16px;
}
.base-k {
	font-size: 12px;
	color: var(--muted);
}
.base-code {
	flex: 1;
	font-size: 13px;
	color: var(--strong);
}
.api-grid {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.ep-list {
	padding: 6px;
}
.ep {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 6px;
	text-align: left;
	background: transparent;
}
.ep:hover {
	background: var(--subtle);
}
.ep.is-active {
	background: var(--primary-sel);
}
.ep-line {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ep-method {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ok-fg);
}
.ep-path {
	font-size: 12px;
	color: var(--strong);
	word-break: break-all;
}
.ep.is-active .ep-path {
	color: var(--primary-text);
}
.ep-desc {
	font-size: 12px;
	color: var(--muted);
}
.api-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.resp {
	overflow: hidden;
}
.resp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
}
.resp-curl {
	font-size: 13px;
	color: var(--strong);
	word-break: break-all;
}
.resp-meta {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}
.resp-body {
	margin: 0;
	padding: 16px;
	background: var(--code-bg);
	color: var(--code-text);
	font-size: 12px;
	line-height: 18px;
	overflow: auto;
	max-height: 440px;
}
.api-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.info-card {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.info-title {
	font-weight: 600;
	color: var(--strong);
}
.info-desc {
	font-size: 12px;
	color: var(--muted);
}
.info-code {
	font-size: 12px;
	color: var(--text);
}

/* Footer */
.ftr {
	border-top: 1px solid var(--border);
}
.ftr-inner {
	max-width: 1152px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--muted);
}
.ftr-links {
	display: flex;
	gap: 16px;
}

/* Bar tooltip */
.tip {
	position: fixed;
	z-index: 50;
	pointer-events: none;
	left: 0;
	top: 0;
	transform: translate(-50%, calc(-100% - 8px));
	min-width: 180px;
	max-width: 260px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--tip);
	color: #fff;
	font-size: 12px;
	line-height: 16px;
	box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.35);
}
.tip-date {
	font-weight: 600;
}
.tip-status {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}
.tip-status .dot6 {
	background: var(--bar);
}
.tip-title {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.75);
}
.tip-title:empty {
	display: none;
}

/* Subscribe modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: var(--scrim);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.modal-panel {
	width: 100%;
	max-width: 480px;
	max-height: 100%;
	overflow: auto;
	border-radius: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.35);
}
.modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}
.modal-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--strong);
}
.modal-close {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.modal-close:hover {
	background: var(--subtle);
}
.modal-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.sub-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.field-8 {
	gap: 8px;
}
.field-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
}
.input {
	height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	outline: none;
}
.input:focus {
	border-color: var(--primary);
}
.input::placeholder {
	color: var(--muted);
}
.loc-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.loc-chip {
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
}
.loc-chip.is-on {
	border-color: var(--primary);
	background: var(--primary-sel);
	color: var(--primary-text);
}
.submit-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.turnstile:empty {
	display: none;
}
.form-error {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--err-fg);
}
.form-note {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--ok-fg);
}
.consent {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--muted);
}
.sub-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 0;
	text-align: center;
}
.sub-done-icon,
.state-icon {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ok-bg);
	color: var(--ok-fg);
}
.state-icon {
	background: var(--bgc);
	color: var(--fg);
}
.sub-done-title {
	font-weight: 600;
	color: var(--strong);
}
.sub-done-text {
	font-size: 13px;
	color: var(--muted);
	text-wrap: pretty;
}
.feeds {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.feed-code {
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--subtle);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--text);
	word-break: break-all;
}
.feed-code:hover {
	color: var(--primary-text);
}

/* Subscription, 404 pages */
.center-page {
	display: flex;
	justify-content: center;
	padding-top: 32px;
}
.center-card {
	width: 100%;
	max-width: 480px;
	padding: 24px;
}
.center-state {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.center-state.is-centered {
	align-items: center;
	gap: 8px;
	text-align: center;
}
.center-state.is-centered .arrow-link {
	align-self: center;
	margin-top: 8px;
}
.card-title {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: var(--strong);
	text-wrap: pretty;
}
.card-text {
	margin: 2px 0 0;
	color: var(--muted);
	text-wrap: pretty;
}
.divider {
	height: 1px;
	background: var(--border);
}
.big-code {
	font-size: 40px;
	line-height: 48px;
	font-weight: 700;
	color: var(--primary-text);
	font-variant-numeric: tabular-nums;
}

/* Live updates (site.js): refreshed content flashes once; a new incident keeps a ring and a "New" pill. */
.live-new,
.live-changed {
	animation: live-flash 4s ease-out;
}
@keyframes live-flash {
	from {
		background-color: var(--primary-sel);
	}
}
.active-card.live-new {
	border-color: var(--bar);
	box-shadow: 0 0 0 1px var(--bar);
	animation-name: live-flash-status;
}
@keyframes live-flash-status {
	from {
		background-color: color-mix(in srgb, var(--bar) 16%, var(--surface));
	}
}
.live-pill {
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg);
	background: var(--bgc);
	box-shadow: inset 0 0 0 1px currentColor;
}
.live-toasts {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 55;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(360px, calc(100vw - 32px));
}
.live-toast {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-left: 3px solid var(--bar);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.25);
	animation: live-toast-in 0.2s ease-out;
}
@keyframes live-toast-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}
.live-toast-head {
	display: flex;
	align-items: center;
	gap: 8px;
}
.live-toast-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}
.live-toast-close {
	margin-left: auto;
	padding: 0 4px;
	border: 0;
	background: none;
	font-size: 18px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
}
.live-toast-close:hover {
	color: var(--strong);
}
.live-toast-title {
	font-weight: 600;
	color: var(--strong);
}
.live-toast-title:hover {
	color: var(--primary-text);
}

@media (prefers-reduced-motion: reduce) {
	.metro-pulse {
		animation: none;
		opacity: 0;
	}
	.chev {
		transition: none;
	}
	.live-new,
	.live-changed,
	.active-card.live-new,
	.live-toast {
		animation: none;
	}
}

/* Narrow screens (below the design's width): stack the grids. */
@media (max-width: 860px) {
	.detail-grid,
	.api-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 720px) {
	.hdr-inner {
		padding: 0 16px;
		gap: 8px;
	}
	.hdr-left {
		gap: 8px;
	}
	.logo-l,
	.logo-d {
		height: 18px;
	}
	.brand-sep,
	.brand-name,
	.btn-label {
		display: none;
	}
	.nav {
		gap: 0;
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.hdr-left {
		flex: 1;
	}
	.nav-link {
		flex-shrink: 0;
	}
	.banner-meta {
		align-items: flex-start;
	}
	.nav-link,
	.nav-link:hover {
		padding: 0 6px;
		font-size: 12px;
	}
	.hdr-right {
		gap: 8px;
	}
	.hdr-right .btn-primary {
		padding: 0 9px;
	}
	.main {
		padding: 24px 16px 48px;
	}
	.grid4 {
		grid-template-columns: minmax(0, 1fr) auto 20px;
		gap: 8px 12px;
	}
	.grid4 > .bars {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.grid4 > .axis-range {
		grid-column: 1 / -1;
	}
	.axis > span:first-child {
		display: none;
	}
	.svc-name {
		padding-left: 0;
	}
	.zones {
		padding-left: 0;
	}
	.hist-row {
		grid-template-columns: minmax(0, 1fr) 16px;
		gap: 8px 12px;
	}
	.hist-badges {
		grid-column: 1;
	}
	.hist-row > svg {
		grid-column: 2;
		grid-row: 1 / span 3;
	}
	.search {
		width: 100%;
	}
	.map {
		height: auto;
		aspect-ratio: 1104 / 340;
	}
	.map-legend {
		display: none;
	}
}
