:root {
	font-family:
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	font-size: 14px;
	font-synthesis: none;
	color: #202123;
	background: #fff;
	--green: #59b99e;
	--amber: #e7bc4e;
	--red: #df7c6a;
	--line: #efefef;
	--muted: #929292;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
[hidden] {
	display: none !important;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input,
select {
	font: inherit;
}
h1,
h2,
h3,
p {
	margin: 0;
}
h1,
h2 {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
}
h3 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}
#summary-title,
#system-title {
	font-weight: 500;
}
.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 712px;
	padding: 32px 24px 40px;
	margin: 0 auto;
}
main {
	flex: 1 0 auto;
	min-width: 0;
}
.topbar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 34px;
	margin-bottom: 24px;
	gap: 16px;
}
.brand {
	font-size: 27px;
	line-height: 34px;
	font-weight: 650;
	letter-spacing: -1px;
}
.summary {
	border: 1px solid #68b9a4;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px #0000000d;
}
.summary-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #dff7f0;
	padding: 16px;
}
.summary p {
	padding: 16px;
	font-size: 14px;
	line-height: 20px;
}
.summary.unknown,
.summary.paused {
	border-color: #d7d7db;
}
.summary.unknown .summary-heading,
.summary.paused .summary-heading {
	background: #f3f3f5;
}
.summary.degraded {
	border-color: #e6c367;
}
.summary.degraded .summary-heading {
	background: #fff6da;
}
.summary.down {
	border-color: #df9386;
}
.summary.down .summary-heading {
	background: #fdece8;
}
.status-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #aaa;
	align-items: center;
	justify-content: center;
	flex: 0 0 16px;
	color: #fff;
	position: relative;
}
.status-icon:after {
	content: '?';
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}
.status-icon.operational {
	background: #24c19a;
}
.status-icon.operational:after {
	content: '';
	width: 6px;
	height: 3px;
	border-left: 1.5px solid #fff;
	border-bottom: 1.5px solid #fff;
	transform: translateY(-1px) rotate(-45deg);
}
.status-icon.degraded {
	background: var(--amber);
}
.status-icon.down {
	background: var(--red);
}
.status-icon.degraded:after,
.status-icon.down:after {
	content: '!';
}
.status-icon.paused:after {
	content: 'Ⅱ';
	font-size: 9px;
}
.system-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 1px 3px #0000000b;
}
.section-heading {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--line);
}
.range-navigation {
	display: flex;
	align-items: center;
	gap: 2px;
	white-space: nowrap;
}
.range-navigation button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #92929c;
	cursor: pointer;
}
.range-navigation button:disabled {
	color: #dedee2;
	cursor: default;
}
.range-chevron {
	width: 7px;
	height: 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
}
.range-chevron.previous {
	transform: rotate(135deg);
}
.range-chevron.next {
	transform: rotate(-45deg);
}
.status-system + .status-system {
	border-top: 1px solid var(--line);
}
.period {
	color: var(--muted);
	font-size: 14px;
	line-height: 20px;
}
.system-group > summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 16px 16px 8px;
}
.system-group > summary::-webkit-details-marker {
	display: none;
}
.component-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #8a8a8a;
	margin-left: 8px;
	font-weight: 400;
}
.chevron {
	display: inline-block;
	width: 6px;
	height: 6px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(-45deg);
	transition: transform 150ms ease;
}
.system-group[open] .chevron {
	transform: rotate(45deg) translateY(-2px);
}
.system-group[open] > summary .status-icon,
.system-group[open] > summary .status-label {
	display: none;
}
.system-group[open] > summary {
	padding-bottom: 0;
}
.system-group[open] + .group-history {
	display: none;
}
.status-label {
	margin-left: auto;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}
.group-history {
	padding: 0 16px 16px;
}
.component {
	padding: 16px 16px 0;
}
.component:last-child {
	padding-bottom: 16px;
}
.component-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.component-name {
	font-size: 14px;
	font-weight: 500;
}
.group-info {
	display: inline-flex;
	position: relative;
}
.info-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	border: 1px solid #bdbdbd;
	border-radius: 50%;
	color: #a5a5a5;
	font-size: 9px;
	font-style: normal;
	padding: 0;
	background: transparent;
	cursor: pointer;
}
.group-tooltip {
	position: absolute;
	z-index: 2;
	top: 22px;
	left: -20px;
	width: 280px;
	max-width: 70vw;
	background: #fff;
	border: 1px solid #e4e4e4;
	box-shadow: 0 3px 15px #00000012;
	border-radius: 6px;
	padding: 8px 10px;
	color: #656565;
	font-size: 12px;
	line-height: 1.6;
	font-style: normal;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 120ms ease;
}
.info-button:hover + .group-tooltip,
.info-button:focus-visible + .group-tooltip {
	visibility: visible;
	opacity: 1;
}
.group-info[data-dismissed] .group-tooltip {
	visibility: hidden;
	opacity: 0;
}
.history-bars {
	display: grid;
	grid-template-columns: repeat(90, minmax(0, 1fr));
	gap: 2px;
	height: 16px;
}
.history-bar {
	display: block;
	min-width: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #f0f0f0;
	border-radius: 1px;
	cursor: pointer;
	transition: filter 120ms ease;
}
.history-bar:hover {
	filter: brightness(0.88);
}
.history-bar:focus-visible {
	outline-offset: 2px;
}
.history-bars .operational {
	background: var(--green);
}
.history-bars .degraded {
	background: var(--amber);
}
.history-bars .down {
	background: var(--red);
}
.history-bars .paused {
	background: #b7b7c4;
}
.bar-panel {
	position: fixed;
	z-index: 20;
	top: 12px;
	left: 12px;
	width: 260px;
	max-width: calc(100vw - 24px);
	max-height: min(320px, calc(100dvh - 24px));
	overflow-y: auto;
	padding: 14px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 20px #00000014;
	font-size: 14px;
	line-height: 21px;
	animation: bar-panel-appear 160ms ease-out;
}
@keyframes bar-panel-appear {
	from {
		opacity: 0;
		transform: translateY(3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.bar-panel-date {
	color: #92929c;
	font-size: 14px;
}
.bar-panel-issue {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 8px;
}
.bar-panel-issue p {
	overflow-wrap: anywhere;
}
.bar-panel-more {
	display: inline-block;
	margin-top: 10px;
	color: inherit;
	text-decoration: underline;
}
.bar-panel-issue.operational,
.bar-panel-issue.unknown,
.bar-panel-issue.paused {
	color: #92929c;
}
.bar-panel-issue .status-icon {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex-basis: 18px;
}
.bar-panel-issue .status-icon:is(.degraded, .down) {
	border-radius: 0;
	clip-path: polygon(43% 5%, 57% 5%, 100% 83%, 100% 94%, 94% 100%, 6% 100%, 0 94%, 0 83%);
}
.bar-panel-issue .status-icon.degraded {
	background: #ffbf24;
}
.bar-panel-issue .status-icon.down {
	background: #ef7964;
}
.bar-panel-issue .status-icon:is(.degraded, .down):after {
	transform: translateY(2px);
}
.history-action {
	display: flex;
	justify-content: center;
	margin: 24px 0 0;
}
/* Match the main connector's secondary action button. */
.button {
	--button-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 0 #b9b9b9, 0 3px 5px rgba(0, 0, 0, 0.1);
	--button-pressed-shadow:
		inset 0 1px 1px rgba(0, 0, 0, 0.12), 0 1px 0 #b9b9b9, 0 2px 3px rgba(0, 0, 0, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	gap: 8px;
	height: 30px;
	min-height: 30px;
	padding: 0 12px;
	border: 1px solid #c9c9c9;
	border-radius: 8.8px;
	background: #fff;
	color: #303030;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: var(--button-shadow);
	transition:
		box-shadow 75ms ease,
		background-color 75ms ease;
	cursor: pointer;
}
.button:is(:hover, :focus-visible) {
	background: #f7f7f7;
	text-decoration: none;
}
.button:active {
	box-shadow: var(--button-pressed-shadow);
}
.button:focus-visible {
	outline: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}
footer {
	flex-shrink: 0;
	margin-top: 42px;
	text-align: center;
	font-size: 12px;
	line-height: 18px;
	color: #9a9a9a;
}
#checked {
	min-height: 18px;
}
footer p + p {
	margin-top: 20px;
	font-size: 11px;
	line-height: 17px;
}
.breadcrumb {
	display: flex;
	gap: 4px;
	border-top: 1px solid #e4e4e4;
	padding: 24px 0;
	line-height: 20px;
}
.breadcrumb a {
	color: #858585;
}
.breadcrumb a:hover {
	color: #202123;
}
.history-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.filter-dropdown {
	position: relative;
	display: inline-flex;
	margin-left: auto;
}
.filter-dropdown-trigger {
	justify-content: space-between;
	gap: 12px;
}
.filter-dropdown-trigger svg {
	flex-shrink: 0;
}
/* Match the connector's TableFilterDropdown surface and choices. */
.filter-dropdown-panel {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	z-index: 40;
	width: 260px;
	max-width: calc(100vw - 32px);
	max-height: min(400px, calc(100dvh - 200px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px;
	border: 1px solid #00000014;
	border-radius: 10px;
	background: white;
	box-shadow: 0 12px 30px #00000024;
	font-family:
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	scrollbar-width: thin;
	scrollbar-color: #8d8d91 transparent;
}
.filter-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	padding: 6px 10px;
	border-radius: 6px;
	color: #353942;
	font-size: 13px;
	line-height: 20px;
	cursor: pointer;
}
.filter-choice:hover,
.filter-choice:has(:focus-visible) {
	background: #f3f3f4;
}
.filter-group {
	padding: 0;
}
.filter-group + .filter-group {
	border-top: 1px solid var(--line);
	margin-top: 4px;
	padding-top: 4px;
}
.filter-group > .filter-choice:first-child {
	font-weight: 600;
}
.filter-child {
	padding-left: 30px;
}
.filter-choice input {
	appearance: none;
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	margin: 0;
	border: 1px solid #858585;
	border-radius: 2px;
	background: #fff center / 13px 13px no-repeat;
	box-shadow: none;
	transition: none;
	cursor: pointer;
}
.filter-choice input:checked {
	border-color: #002e99;
	background-color: #002e99;
}
.filter-choice input:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.5 2.5L11 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filter-choice input:focus-visible {
	outline: 2px solid #002e99;
	outline-offset: 2px;
}
.incident-month h2 {
	font-size: 14px;
	margin: 22px 0 8px;
}
.incident-day {
	display: grid;
	grid-template-columns: 55px minmax(0, 1fr);
	column-gap: 16px;
	padding: 25px 0;
	border-bottom: 1px solid #fafafa;
}
.incident-date {
	white-space: nowrap;
	font-weight: 550;
	line-height: 20px;
}
.incident-date span {
	color: #929292;
	font-size: 12px;
	font-weight: 400;
	margin-left: 4px;
}
.incident + .incident {
	margin-top: 22px;
}
.incident {
	border-left: 4px solid var(--amber);
	padding-left: 12px;
}
.incident.down {
	border-color: var(--red);
}
.incident-title {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	line-height: 20px;
}
.incident-title h3 {
	font-weight: 550;
}
.incident-title time {
	color: var(--muted);
	white-space: nowrap;
	font-size: 12px;
}
.incident p {
	margin-top: 5px;
	color: #858585;
	line-height: 21px;
}
.incident-detail {
	font-size: 12px;
}
.incident-empty {
	text-align: center;
	color: #858585;
	padding: 52px 16px;
	border-bottom: 1px solid var(--line);
	line-height: 22px;
}
.incident-empty strong {
	display: block;
	font-weight: 500;
	color: #454545;
	margin-bottom: 4px;
}
.history-error {
	margin-top: 16px;
	padding: 12px;
	background: #f6f6f6;
	color: #666;
	border-radius: 6px;
	line-height: 20px;
}
.login {
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	padding: 24px;
	max-width: 420px;
	margin: 35px auto;
}
.login p {
	color: #858585;
	line-height: 20px;
	margin-top: 10px;
}
.login label {
	display: block;
	margin: 24px 0 8px;
}
.login input {
	width: 100%;
	padding: 10px;
	border: 1px solid #d9d9d9;
	background: #fff;
	border-radius: 6px;
}
.login button {
	width: 100%;
	margin-top: 12px;
	padding: 10px;
	background: #202123;
	color: white;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.login button:disabled {
	opacity: 0.5;
}
#login-error {
	color: #a74233;
}
:focus-visible {
	outline: 2px solid #909090;
	outline-offset: 4px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 560px) {
	.page {
		padding: 24px 16px 32px;
	}
	.brand {
		font-size: 25px;
	}
	.component-toggle {
		margin-left: 2px;
		font-size: 12px;
		gap: 6px;
	}
	.status-label {
		font-size: 11px;
	}
	.component-heading {
		gap: 6px;
	}
	.component-name {
		font-size: 12px;
	}
	.info-button {
		width: 12px;
		height: 12px;
		flex-basis: 12px;
	}
	.group-tooltip {
		left: -60px;
	}
	.history-bars {
		gap: 1.5px;
	}
	.section-heading {
		gap: 8px;
		flex-wrap: wrap;
	}
	.period {
		font-size: 12px;
	}
	.range-navigation {
		gap: 2px;
	}
	.history-heading {
		gap: 12px;
		flex-wrap: wrap;
	}
	.history-heading .filter-dropdown {
		margin-left: 0;
	}
	.incident-day {
		grid-template-columns: 45px minmax(0, 1fr);
		column-gap: 10px;
	}
	.incident-title {
		flex-wrap: wrap;
		gap: 4px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		transition: none !important;
		animation: none !important;
	}
}
