:root {
	--customer-bg: #f7f8fa;
	--customer-surface: #ffffff;
	--customer-text: #10201e;
	--customer-muted: #66736f;
	--customer-border: #dce4e1;
	--customer-accent: #0a8f7a;
	--customer-accent-dark: #076858;
	--customer-ok: #147a3d;
	--customer-warn: #a86600;
	--customer-danger: #b42318;
	--customer-shadow: 0 14px 32px rgba(16, 32, 30, 0.08);
}

* {
	box-sizing: border-box;
}

.customer-body {
	background: var(--customer-bg);
	color: var(--customer-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.45;
	margin: 0;
}

.customer-app,
.customer-auth {
	margin: 0 auto;
	max-width: 440px;
	min-height: 100vh;
	padding: 18px 16px 96px;
}

.customer-auth {
	display: grid;
	align-content: center;
	gap: 20px;
}

.customer-header,
.customer-section-head,
.customer-actions {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.customer-header {
	margin-bottom: 22px;
}

.customer-brand {
	align-items: center;
	color: var(--customer-text);
	display: inline-flex;
	gap: 10px;
	text-decoration: none;
}

.customer-brand span {
	align-items: center;
	background: #dff8f2;
	border-radius: 8px;
	color: var(--customer-accent-dark);
	display: inline-flex;
	font-size: 12px;
	font-weight: 850;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.customer-brand strong {
	font-size: 20px;
}

.customer-hero,
.customer-panel {
	background: var(--customer-surface);
	border: 1px solid var(--customer-border);
	border-radius: 8px;
	box-shadow: var(--customer-shadow);
	margin-bottom: 14px;
	padding: 18px;
}

.customer-hero h1,
.customer-panel h1,
.customer-panel h2 {
	line-height: 1.1;
	margin: 0;
}

.customer-hero h1 {
	font-size: 28px;
	margin-bottom: 8px;
}

.customer-panel h1 {
	font-size: 24px;
	margin-bottom: 16px;
}

.customer-panel h2 {
	font-size: 17px;
}

.customer-label {
	color: var(--customer-accent-dark);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.customer-muted {
	color: var(--customer-muted);
	font-size: 13px;
	margin: 0;
}

.customer-meter {
	background: #e6efec;
	border-radius: 999px;
	height: 8px;
	margin: 16px 0 8px;
	overflow: hidden;
}

.customer-meter span {
	background: var(--customer-accent);
	display: block;
	height: 100%;
	width: 0;
}

.node-picker,
.device-list,
.customer-stack {
	display: grid;
	gap: 10px;
}

.node-option,
.device-card {
	background: #fbfcfc;
	border: 1px solid var(--customer-border);
	border-radius: 8px;
	padding: 12px;
}

.node-option {
	align-items: center;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	text-align: left;
	width: 100%;
}

.node-option.selected {
	border-color: var(--customer-accent);
	box-shadow: inset 0 0 0 1px var(--customer-accent);
}

.node-option strong,
.device-card strong {
	display: block;
	font-size: 16px;
}

.node-option small,
.device-card small {
	color: var(--customer-muted);
	display: block;
	font-size: 12px;
	margin-top: 3px;
}

.customer-chip {
	background: #e6f6ee;
	border-radius: 999px;
	color: var(--customer-ok);
	display: inline-flex;
	font-size: 12px;
	font-weight: 850;
	padding: 4px 8px;
}

.customer-chip.warn {
	background: #fff5df;
	color: var(--customer-warn);
}

.customer-chip.danger {
	background: #fff0ee;
	color: var(--customer-danger);
}

label,
.customer-stack p {
	color: var(--customer-text);
	display: grid;
	font-size: 13px;
	font-weight: 760;
	gap: 6px;
	margin: 0;
}

input,
select,
textarea {
	background: #ffffff;
	border: 1px solid var(--customer-border);
	border-radius: 8px;
	color: var(--customer-text);
	font: inherit;
	min-height: 42px;
	padding: 9px 10px;
	width: 100%;
}

.customer-button,
.customer-icon-button,
.customer-text-button {
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	min-height: 40px;
}

.customer-button {
	background: var(--customer-accent);
	border: 1px solid var(--customer-accent);
	color: #ffffff;
	padding: 9px 12px;
	width: 100%;
}

.customer-button.secondary {
	width: auto;
}

.customer-button.ghost,
.customer-icon-button {
	background: #ffffff;
	border: 1px solid var(--customer-border);
	color: var(--customer-text);
	padding: 9px 12px;
}

.customer-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.customer-text-button {
	background: transparent;
	border: 0;
	color: var(--customer-accent-dark);
	padding: 0;
	text-decoration: none;
}

.customer-config {
	background: #10211f;
	border-radius: 8px;
	color: #e5fff8;
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	min-height: 160px;
	overflow: auto;
	padding: 14px;
	white-space: pre-wrap;
}

.customer-tabbar {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--customer-border);
	border-radius: 8px 8px 0 0;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	left: 50%;
	max-width: 440px;
	position: fixed;
	transform: translateX(-50%);
	width: 100%;
}

.customer-tabbar a {
	color: var(--customer-muted);
	font-size: 12px;
	font-weight: 850;
	padding: 12px 6px;
	text-align: center;
	text-decoration: none;
}

.errorlist {
	color: var(--customer-danger);
	font-size: 13px;
	margin: 0;
	padding-left: 18px;
}

@media (min-width: 900px) {
	.customer-app {
		display: grid;
		gap: 16px;
		grid-template-columns: 1fr 1fr;
		max-width: 980px;
	}

	.customer-header,
	.customer-hero,
	.customer-tabbar {
		grid-column: 1 / -1;
	}

	.customer-tabbar {
		display: none;
	}
}
