:root,
[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0f1012;
	--panel: #17181b;
	--raise: #202125;
	--line: #27282d;
	--line-2: #34353b;
	--text: #ededee;
	--text-2: #a5a6ac;
	--text-3: #85868d;
	--accent: #3987e5;
	--accent-soft: rgba(57, 135, 229, 0.16);
	--good: #2bb32b;
	--good-soft: rgba(12, 163, 12, 0.16);
	--warn: #fab219;
	--warn-soft: rgba(250, 178, 25, 0.14);
	--bad: #ec6a6a;
	--bad-soft: rgba(208, 59, 59, 0.2);
	--shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f4f4f2;
	--panel: #ffffff;
	--raise: #efefec;
	--line: #e4e4e0;
	--line-2: #d2d2cd;
	--text: #141416;
	--text-2: #55565c;
	--text-3: #6c6d73;
	--accent: #2a78d6;
	--accent-soft: rgba(42, 120, 214, 0.1);
	--good: #0b850b;
	--good-soft: rgba(12, 163, 12, 0.1);
	--warn: #9a6200;
	--warn-soft: rgba(250, 178, 25, 0.18);
	--bad: #c33131;
	--bad-soft: rgba(208, 59, 59, 0.1);
	--shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	background: var(--bg);
}

body,
.shell,
.gate {
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

code,
pre,
.mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
}

h1,
h2,
h3,
p {
	margin: 0;
}

svg {
	flex: none;
}

.i {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

[hidden] {
	display: none !important;
}

.shell {
	display: flex;
	min-height: 100vh;
	background: var(--bg);
}

.side {
	width: 232px;
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 12px;
	border-right: 1px solid var(--line);
}

body > .shell > .side {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 2px 8px 18px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.mark {
	width: 28px;
	height: 28px;
	padding: 6px;
	border-radius: 7px;
	background: var(--accent);
	color: #fff;
}

.side h2,
.subnav h2 {
	margin: 20px 10px 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-3);
}

.nav {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 34px;
	padding: 0 10px;
	border-radius: 7px;
	color: var(--text-2);
	font-weight: 500;
	text-decoration: none;
}

.nav:hover,
.nav[aria-current] {
	background: var(--raise);
	color: var(--text);
}

.nav svg {
	width: 16px;
	height: 16px;
}

.nav .count {
	margin-left: auto;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--text-3);
}

.nav .count.bad {
	padding: 0 6px;
	border-radius: 5px;
	background: var(--bad-soft);
	color: var(--bad);
}

.side-foot {
	display: flex;
	gap: 4px;
	margin-top: auto;
	padding-top: 16px;
}

main {
	flex: 1;
	min-width: 0;
	padding: 32px 40px 64px;
}

.page {
	max-width: 1240px;
	margin: 0 auto;
}

.head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.head h1 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.crumbs {
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--text-3);
}

.crumbs a {
	color: var(--text-2);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--text);
}

.sub {
	color: var(--text-2);
	font-size: 13px;
}

.head .sub {
	margin-top: 4px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--good);
	animation: beat 2s ease-in-out infinite;
}

@keyframes beat {
	50% {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.live::before {
		animation: none;
	}
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
	background: var(--text-3);
}

.dot.good {
	background: var(--good);
}

.dot.warn {
	background: var(--warn);
}

.dot.bad {
	background: var(--bad);
}

.state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 8px;
	border-radius: 5px;
	background: var(--raise);
	color: var(--text-2);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	white-space: nowrap;
}

.state::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.state.good {
	background: var(--good-soft);
	color: var(--good);
}

.state.warn {
	background: var(--warn-soft);
	color: var(--warn);
}

.state.bad {
	background: var(--bad-soft);
	color: var(--bad);
}

.banner {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 40px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
}

.banner > svg {
	width: 32px;
	height: 32px;
	color: var(--good);
}

.banner.warn {
	border-color: transparent;
	background: var(--warn-soft);
}

.banner.warn > svg {
	color: var(--warn);
}

.banner.bad {
	border-color: transparent;
	background: var(--bad-soft);
}

.banner.bad > svg {
	color: var(--bad);
}

.banner h2 {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.banner p {
	margin-top: 2px;
	color: var(--text-2);
}

.banner .actions {
	margin-left: auto;
}

section {
	margin-bottom: 40px;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.section-head h2 {
	font-size: 15px;
	font-weight: 600;
}

.section-head > :last-child:not(:first-child):not(.sub) {
	margin-left: auto;
}

.grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.grid.tiles {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
	text-decoration: none;
}

a.card:hover {
	border-color: var(--line-2);
}

.card h3 {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-2);
}

.card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.card-top h3 {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text);
}

.server .sub {
	margin-top: 2px;
}

.meters {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
}

.meters div {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 52px;
	align-items: center;
	gap: 12px;
}

.meters dt {
	font-size: 13px;
	color: var(--text-2);
}

.meters dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.down .meters {
	opacity: 0.4;
}

.bar {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: var(--raise);
	overflow: hidden;
}

.bar i {
	display: block;
	height: 100%;
	min-width: 2px;
	border-radius: 3px;
	background: var(--accent);
}

.bar i.warn {
	background: var(--warn);
}

.bar i.bad {
	background: var(--bad);
}

.spark {
	display: block;
	width: 100%;
	height: 22px;
	overflow: visible;
	color: var(--accent);
}

.spark polyline {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.spark polygon {
	fill: currentColor;
	opacity: 0.14;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
	color: var(--text-2);
	font-size: 13px;
}

.facts li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.facts svg {
	width: 14px;
	height: 14px;
	color: var(--text-3);
}

.facts .bad,
.facts .bad svg {
	color: var(--bad);
}

.big {
	margin-top: 4px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.tile .bars {
	margin-top: 14px;
	height: 44px;
}

.bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 160px;
}

.bars i {
	position: relative;
	flex: 1;
	min-height: 2px;
	border-radius: 2px 2px 0 0;
	background: var(--accent);
}

.bars i.zero {
	background: var(--line-2);
}

.bars i:hover {
	opacity: 0.75;
}

.bars i:hover::after,
.plot b {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 8px;
	border: 1px solid var(--line-2);
	border-radius: 6px;
	background: var(--panel);
	box-shadow: var(--shadow);
	color: var(--text);
	font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	white-space: nowrap;
	pointer-events: none;
	z-index: 2;
}

.bars i:hover::after {
	content: attr(data-tip);
}

.axis {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
}

.stack {
	display: flex;
	gap: 2px;
	height: 8px;
	margin-top: 16px;
}

.stack i {
	border-radius: 2px;
	background: var(--text-3);
}

.stack i.good {
	background: var(--good);
}

.stack i.warn {
	background: var(--warn);
}

.stack i.bad {
	background: var(--bad);
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--text-2);
}

.legend li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.legend b {
	color: var(--text);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.gauges {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gauge {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	flex: none;
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ring svg {
	position: absolute;
	inset: 0;
	transform: rotate(-90deg);
}

.ring circle {
	fill: none;
	stroke-width: 3.4;
	stroke: var(--raise);
}

.ring circle + circle {
	stroke: var(--accent);
	stroke-linecap: round;
}

.ring.warn circle + circle {
	stroke: var(--warn);
}

.ring.bad circle + circle {
	stroke: var(--bad);
}

.gauge h3 {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}

.gauge p {
	margin-top: 2px;
	font-size: 13px;
	color: var(--text-2);
}

.strip {
	display: flex;
	flex-wrap: wrap;
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
}

.strip div {
	flex: 1 1 180px;
	padding: 14px 20px;
	border-right: 1px solid var(--line);
}

.strip div:last-child {
	border-right: 0;
}

.strip dt {
	font-size: 12px;
	color: var(--text-3);
}

.strip dd {
	margin: 2px 0 0;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.charts {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
}

.chart {
	margin: 0;
}

.chart figcaption {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.chart figcaption b {
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.chart figcaption span {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-3);
}

.plot {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	gap: 8px;
	height: 140px;
	margin-top: 14px;
}

.plot .y {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: right;
	font-size: 11px;
	line-height: 1;
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
}

.plot svg {
	width: 100%;
	height: 100%;
	overflow: visible;
	color: var(--accent);
}

.plot .grid-lines {
	fill: none;
	stroke: var(--line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.plot polyline {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.plot polygon {
	fill: currentColor;
	opacity: 0.12;
}

.plot .cursor {
	stroke: var(--text-3);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.plot b {
	bottom: auto;
	top: -8px;
	transform: translate(-50%, -100%);
}

.chart .axis {
	margin-left: 44px;
}

.table {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

th {
	padding: 10px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-3);
	white-space: nowrap;
}

td {
	padding: 10px 16px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	white-space: nowrap;
}

tbody tr:last-child td {
	border-bottom: 0;
}

tbody tr:hover {
	background: var(--raise);
}

.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

td.dim,
.dim {
	color: var(--text-3);
}

td.name {
	font-weight: 500;
}

.cell-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	white-space: nowrap;
}

.cell-name svg {
	width: 16px;
	height: 16px;
	color: var(--text-3);
}

.inline-bar {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.inline-bar .bar {
	width: 72px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--line-2);
	border-radius: 7px;
	background: var(--panel);
	color: var(--text);
	font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.btn:hover {
	background: var(--raise);
}

.btn svg {
	width: 15px;
	height: 15px;
}

.btn.primary {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.btn.primary:hover {
	filter: brightness(1.1);
}

.btn.ghost {
	border-color: transparent;
	background: none;
	color: var(--text-2);
}

.btn.ghost:hover {
	background: var(--raise);
	color: var(--text);
}

.btn.icon {
	width: 32px;
	padding: 0;
}

.btn.large {
	height: 44px;
	padding: 0 18px;
	font-size: 14px;
}

.btn[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.seg {
	display: inline-flex;
	gap: 2px;
	padding: 2px;
	border-radius: 8px;
	background: var(--raise);
}

.seg a,
.seg button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--text-2);
	font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.seg a:hover,
.seg button:hover {
	color: var(--text);
}

.seg [aria-current],
.seg [aria-pressed="true"] {
	background: var(--panel);
	color: var(--text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.seg span {
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.toolbar .actions {
	margin-left: auto;
}

input,
select,
textarea {
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--line-2);
	border-radius: 7px;
	background: var(--panel);
	color: var(--text);
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

textarea {
	display: block;
	width: 100%;
	height: auto;
	padding: 10px 12px;
	resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline-offset: -1px;
}

.search {
	position: relative;
	display: flex;
}

.search svg {
	position: absolute;
	top: 9px;
	left: 10px;
	width: 14px;
	height: 14px;
	color: var(--text-3);
	pointer-events: none;
}

.search input {
	width: 300px;
	max-width: 100%;
	padding-left: 32px;
}

label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-2);
}

label input {
	width: 100%;
}

.faults {
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
}

.fault + .fault {
	border-top: 1px solid var(--line);
}

.fault summary {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto 120px auto;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	list-style: none;
	cursor: pointer;
}

.fault summary::-webkit-details-marker {
	display: none;
}

.fault summary:hover,
.fault[open] summary {
	background: var(--raise);
}

.fault:first-child summary {
	border-radius: 9px 9px 0 0;
}

.fault h3 {
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fault .where {
	overflow: hidden;
	margin-top: 2px;
	color: var(--text-3);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.level {
	justify-self: start;
	padding: 2px 8px;
	border-radius: 5px;
	background: var(--raise);
	color: var(--text-2);
	font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.fault[open] .level,
.fault summary:hover .level {
	background: var(--panel);
}

.level.bad,
.fault summary:hover .level.bad {
	background: var(--bad-soft);
	color: var(--bad);
}

.times {
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.times small {
	font-weight: 400;
	color: var(--text-3);
}

.when {
	font-size: 13px;
	text-align: right;
	color: var(--text-2);
}

.when small {
	display: block;
	font-size: 12px;
	color: var(--text-3);
}

.fault-body {
	display: grid;
	gap: 16px;
	padding: 16px;
	border-top: 1px solid var(--line);
}

.facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px 24px;
	margin: 0;
}

.facts-grid dt {
	font-size: 12px;
	color: var(--text-3);
}

.facts-grid dd {
	margin: 2px 0 0;
	overflow-wrap: anywhere;
}

pre.code {
	max-height: 360px;
	margin: 0;
	padding: 12px 14px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg);
	line-height: 1.6;
	white-space: pre;
}

.empty {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 56px 24px;
	text-align: center;
	color: var(--text-2);
}

.empty svg {
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	color: var(--good);
}

.empty h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.empty p {
	max-width: 420px;
}

.split {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	align-items: start;
	gap: 32px;
}

.subnav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.subnav h2:first-child {
	margin-top: 0;
}

.pane {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.env td:nth-child(2) {
	width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

#env-edit {
	width: min(720px, calc(100vw - 32px));
}

.log {
	max-height: calc(100vh - 220px);
	min-height: 320px;
	margin: 0;
	padding: 12px 0;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel);
	line-height: 1.65;
	counter-reset: line;
}

.log span {
	display: block;
	padding: 0 16px 0 0;
	white-space: pre;
	counter-increment: line;
}

.log span::before {
	content: counter(line);
	display: inline-block;
	width: 56px;
	margin-right: 16px;
	padding-right: 12px;
	border-right: 1px solid var(--line);
	text-align: right;
	color: var(--text-3);
}

.log.wrap span {
	padding-left: 72px;
	text-indent: -72px;
	white-space: pre-wrap;
}

.log time {
	margin-right: 12px;
	color: var(--text-3);
}

.log .e {
	background: var(--bad-soft);
	color: var(--bad);
}

.log .w {
	background: var(--warn-soft);
}

.gate {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px;
	background: var(--bg);
}

.gate-card {
	display: grid;
	justify-items: start;
	gap: 12px;
	width: min(400px, 100%);
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
}

.gate-card .mark {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 10px;
	margin-bottom: 8px;
}

.gate-card h1 {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.gate-card p {
	color: var(--text-2);
}

.gate-card .btn {
	width: 100%;
	margin-top: 12px;
}

.gate-card .hint {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-size: 12px;
	color: var(--text-3);
}

dialog {
	width: min(520px, calc(100vw - 32px));
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: var(--panel);
	color: var(--text);
	box-shadow: var(--shadow);
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

dialog form {
	display: grid;
	gap: 16px;
	padding: 24px;
}

dialog h2 {
	font-size: 17px;
	font-weight: 600;
}

dialog .actions {
	justify-content: flex-end;
}

@media (pointer: coarse) {
	.btn,
	.nav,
	input,
	select {
		min-height: 44px;
	}

	input,
	select,
	textarea {
		font-size: 16px;
	}
}

@media (max-width: 900px) {
	.shell {
		flex-direction: column;
	}

	.side,
	body > .shell > .side {
		position: static;
		width: auto;
		height: auto;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		padding: 12px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.brand {
		padding: 0 8px 0 0;
	}

	.side h2 {
		display: none;
	}

	.side-foot {
		margin: 0 0 0 auto;
		padding: 0;
	}

	main {
		padding: 24px 16px 48px;
	}

	.split {
		grid-template-columns: minmax(0, 1fr);
	}

	.subnav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.subnav h2 {
		display: none;
	}

	.fault summary {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.fault .level {
		grid-column: 1 / -1;
	}

	.fault .when {
		display: none;
	}

	.search,
	.search input {
		width: 100%;
	}
}

.chart .bars {
	margin-top: 20px;
}

.pane .strip {
	margin-top: 0;
}

.side-foot form {
	display: contents;
}

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

.console .btn {
	justify-self: start;
}
