:root {
	--bg: #f6f8fa;
	--surface: #ffffff;
	--surface-2: #f1f4f7;
	--border: #e1e6ec;
	--text: #1b2430;
	--text-2: #5a6676;
	--link: #205081;
	--ok: #1f9d55;
	--degraded: #d4a106;
	--partial: #e8772e;
	--outage: #d64545;
	--maintenance: #3b82c4;
	--unknown: #9aa5b1;
	--nodata: #dde3ea;
	--ok-soft: #e7f6ee;
	--degraded-soft: #fdf6dc;
	--outage-soft: #fdecec;
	--maintenance-soft: #e6f0fa;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06);
	--radius: 10px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f141a;
		--surface: #161d25;
		--surface-2: #1c2530;
		--border: #2a3542;
		--text: #e6ebf1;
		--text-2: #9aa7b6;
		--link: #8fc1ee;
		--ok: #34c174;
		--degraded: #e3b628;
		--partial: #f08c4a;
		--outage: #ef6666;
		--maintenance: #5aa2e0;
		--unknown: #6b7785;
		--nodata: #2a3542;
		--ok-soft: #12291d;
		--degraded-soft: #2c2610;
		--outage-soft: #2f1717;
		--maintenance-soft: #132538;
		--shadow: none;
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* header, same as the labii-docs navbar */
.navbar { background: #01579b; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); position: relative; z-index: 5; }
.navbar-inner { display: flex; align-items: center; min-height: 60px; padding: 8px 16px; gap: 8px; }
.navbar-logo { display: flex; align-items: center; margin-right: 6px; flex: none; }
.navbar-logo img { display: block; height: 34px; width: auto; }
.navbar-items { display: flex; align-items: center; flex: 1; gap: 8px; }
.navbar-left, .navbar-right { display: flex; align-items: center; }
.navbar-right { margin-left: auto; }
.navbar-link { color: #fff; font-weight: 500; padding: 4px 12px; }
.navbar-link:hover, .navbar-link.active { color: #b0e1f7; text-decoration: none; }
.navbar-button {
	display: inline-flex; align-items: center; height: 2.25rem; padding: 0 .9rem; margin-left: .35rem;
	border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
	color: #fff; font-size: .82rem; font-weight: 700; line-height: 1; white-space: nowrap;
}
.navbar-button:hover { box-shadow: 0 4px 9px rgba(0, 0, 0, .24); text-decoration: none; }
.navbar-button--signup { background: #2196f3; }
.navbar-button--signup:hover { background: #1e88e5; }
.navbar-button--demo { background: #26a69a; }
.navbar-button--demo:hover { background: #00897b; }
.navbar-toggle { display: none; margin-left: auto; padding: 4px; background: none; border: 0; color: #fff; cursor: pointer; }
.navbar-toggle:focus-visible, .navbar a:focus-visible { outline: 2px solid #b0e1f7; outline-offset: 2px; }
@media (max-width: 996px) {
	.navbar-inner { flex-wrap: wrap; }
	.navbar-toggle { display: block; order: 2; }
	.navbar-items { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 12px; }
	.navbar.open .navbar-items { display: flex; }
	.navbar-left { flex-direction: column; align-items: flex-start; width: 100%; }
	.navbar-link { padding: 8px 0; }
	.navbar-right { margin-left: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
	.navbar-button { margin-left: 0; }
}

main.wrap { padding-top: 28px; padding-bottom: 24px; min-height: 60vh; }
.loading, .empty { color: var(--text-2); }
section { margin-bottom: 32px; }
.section-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }

/* banner */
.banner {
	display: flex; align-items: center; gap: 12px;
	padding: 18px 20px; border-radius: var(--radius);
	background: var(--ok); color: #fff; font-size: 18px; font-weight: 600;
	margin-bottom: 24px;
}
.banner.degraded { background: var(--degraded); color: #1b1600; }
.banner.outage { background: var(--outage); }
.banner.unknown { background: var(--unknown); }
.banner-icon { width: 26px; height: 26px; flex: none; }
.notice {
	padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px;
	background: var(--degraded-soft); border: 1px solid var(--degraded); font-size: 14px;
}

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.group { margin-bottom: 20px; overflow: hidden; }
.group-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.group-head h2 { font-size: 15px; font-weight: 600; }

/* service rows */
.service { border-bottom: 1px solid var(--border); }
.service:last-child { border-bottom: 0; }
.service-head {
	display: flex; align-items: center; gap: 10px; width: 100%;
	padding: 14px 18px 6px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.service-head:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.chevron { width: 12px; height: 12px; flex: none; transition: transform .15s; color: var(--text-2); }
.service.open .chevron { transform: rotate(90deg); }
.service-name { font-weight: 600; }
.service-name small { font-weight: 400; color: var(--text-2); margin-left: 6px; }
.state { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.state.operational { color: var(--ok); }
.state.degraded { color: var(--degraded); }
.state.outage { color: var(--outage); }
.state.unknown { color: var(--unknown); }
.service-body { padding: 0 18px 14px; }

/* uptime bars */
.bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--nodata); }
.bar.ok { background: var(--ok); }
.bar.degraded { background: var(--degraded); }
.bar.partial { background: var(--partial); }
.bar.major { background: var(--outage); }
.bar:hover { opacity: .7; }
.bars-legend { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 12px; margin-top: 6px; }
.bars-legend .rule { flex: 1; border-top: 1px solid var(--border); margin-top: 9px; }
.d30 { display: none; }
@media (max-width: 640px) {
	.bar:nth-child(-n+60) { display: none; }
	.d90 { display: none; }
	.d30 { display: inline; }
}

/* components */
.components { margin-top: 14px; border-top: 1px dashed var(--border); }
.component { padding: 12px 0 4px 22px; }
.component + .component { border-top: 1px dashed var(--border); }
.component-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.component-head .msg { color: var(--text-2); font-size: 13px; }
.component .bars { height: 22px; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); margin: -4px 0 28px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--nodata); flex: none; }
.dot.ok, .dot.operational { background: var(--ok); }
.dot.degraded { background: var(--degraded); }
.dot.partial { background: var(--partial); }
.dot.major, .dot.outage { background: var(--outage); }
.dot.maintenance { background: var(--maintenance); }
.dot.unknown { background: var(--unknown); }

/* incidents */
.incident { padding: 16px 18px; margin-bottom: 12px; border-left: 4px solid var(--outage); }
.incident.degraded { border-left-color: var(--degraded); }
.incident.maintenance { border-left-color: var(--maintenance); }
.incident.resolved { border-left-color: var(--border); }
.incident h3 { font-size: 16px; margin-bottom: 4px; }
.incident h3 a { color: inherit; }
.meta { color: var(--text-2); font-size: 13px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: var(--outage-soft); color: var(--outage); vertical-align: 2px; margin-left: 6px; }
.badge.degraded { background: var(--degraded-soft); color: var(--degraded); }
.badge.maintenance { background: var(--maintenance-soft); color: var(--maintenance); }
.badge.resolved { background: var(--ok-soft); color: var(--ok); }
.latest { margin: 8px 0 0; font-size: 14px; }
.latest b { text-transform: capitalize; }

.day { padding: 14px 0; border-bottom: 1px solid var(--border); }
.day:last-child { border-bottom: 0; }
.day h3 { font-size: 15px; margin-bottom: 6px; }
.day-item { margin: 6px 0; }
.day-item a { font-weight: 600; }
.more { display: inline-block; margin-top: 8px; font-size: 14px; }

/* incident detail */
.back { display: inline-block; margin-bottom: 16px; font-size: 14px; }
.detail h1 { font-size: 24px; margin-bottom: 6px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; }
.timeline li { position: relative; padding: 0 0 20px 22px; border-left: 2px solid var(--border); margin-left: 5px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-2); }
.timeline li.resolved::before, .timeline li.completed::before { border-color: var(--ok); background: var(--ok); }
.timeline .status { font-weight: 600; text-transform: capitalize; }
.timeline p { margin: 2px 0; }

.month { margin-bottom: 24px; }
.month h2 { font-size: 17px; margin-bottom: 10px; }

/* tooltip */
.tooltip {
	position: fixed; z-index: 10; max-width: 260px; pointer-events: none;
	padding: 10px 12px; border-radius: 8px; font-size: 13px;
	background: var(--surface); color: var(--text); border: 1px solid var(--border);
	box-shadow: 0 6px 24px rgba(16, 24, 40, .18);
}
.tooltip b { display: block; margin-bottom: 2px; }
.tooltip .row { display: flex; align-items: center; gap: 6px; }
.tooltip ul { margin: 6px 0 0; padding-left: 16px; }


.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; }

/* static description, always in the html for search engines and AI agents */
.about { color: var(--text-2); font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.about h2 { font-size: 15px; color: var(--text); margin-bottom: 6px; }
.about p { margin: 0 0 8px; }
.about dl { margin: 0; }
.about dt { font-weight: 600; color: var(--text); margin-top: 8px; }
.about dd { margin: 2px 0 0; }

/* footer, same as the labii-docs footer */
.updated { color: var(--text-2); font-size: 13px; margin: 0 auto; padding-bottom: 8px; }
.footer { background: #009688; color: #fff; font-size: .92rem; line-height: 1.35; margin-top: 3rem; }
.footer-grid {
	display: grid; gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(13rem, .85fr) minmax(20rem, 1.2fr) minmax(24rem, 1.4fr);
	max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem 2.75rem;
}
.footer-section + .footer-section { margin-top: 1.5rem; }
.footer-section h2 { color: #fff; font-size: 1.38rem; font-weight: 400; margin: 0 0 .75rem; }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin: .18rem 0; }
.footer-section a { color: #fff; }
.footer-section a:hover { color: #ffca28; text-decoration: underline; text-underline-offset: .15em; }
.footer-children { padding-left: 1.5rem !important; }
.footer-children li { display: flex; align-items: baseline; gap: .25rem; }
.footer-children span { color: rgba(255, 255, 255, .78); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.footer-bottom {
	display: flex; align-items: center; justify-content: space-between; min-height: 64px;
	background: rgba(0, 77, 70, .18); padding: .8rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
}
.footer-socials { display: flex; align-items: center; gap: 1rem; }
.footer-social {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	color: #fff; font-size: .78rem; font-weight: 800;
}
.footer-social:hover { text-decoration: none; opacity: .85; }
.footer-social--x { background: #000; }
.footer-social--facebook { background: #3b5998; font-size: 1rem; }
.footer-social--instagram { background: linear-gradient(135deg, #405de6, #c13584 48%, #fd1d1d 72%, #fcb045); font-size: 1.1rem; }
.footer-social--linkedin { background: #0e76a8; }
.footer-social--youtube { background: #f00; }
@media (max-width: 996px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
	.footer-grid > :last-child { grid-column: auto; }
	.footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
}
