:root {
	font-family:
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		'PingFang SC',
		'Microsoft YaHei',
		sans-serif;
	color: #182338;
	background: #f5f7fb;
	font-synthesis: none;
	--accent: #2369ee;
	--muted: #798399;
	--border: #e7ebf2;
	--card: #fff;
	--bg: #f5f7fb;
	--text: #182338;
	--soft: #edf3ff;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
button,
input,
a {
	-webkit-tap-highlight-color: transparent;
}
button,
input {
	font: inherit;
}
button,
a {
	touch-action: manipulation;
}
button {
	cursor: pointer;
}
button:disabled {
	cursor: wait;
	opacity: 0.55;
}
a {
	color: inherit;
	text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 3px solid #79a8ff;
	outline-offset: 3px;
}
[hidden] {
	display: none !important;
}
h1,
h2,
h3,
p {
	margin: 0;
}
h1 {
	font-size: clamp(25px, 2.7vw, 35px);
	letter-spacing: -1px;
	font-weight: 700;
	line-height: 1.4;
}
h2 {
	font-size: 21px;
	letter-spacing: -0.4px;
}
h3 {
	font-size: 16px;
}
p {
	line-height: 1.8;
}
code {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.9em;
	overflow-wrap: anywhere;
}
small {
	display: block;
}
.shell {
	display: flex;
	min-height: 100vh;
}
.sidebar {
	width: 228px;
	background: var(--card);
	border-right: 1px solid var(--border);
	padding: 34px 22px;
	position: fixed;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
}
.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	font-weight: 760;
	font-size: 22px;
	letter-spacing: -0.5px;
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 39px;
	height: 39px;
	background: var(--accent);
	color: white;
	border-radius: 12px;
	font-size: 30px;
}
.brand small {
	font-size: 8px;
	letter-spacing: 1.8px;
	margin-top: 4px;
	color: var(--muted);
}
.workspace-label {
	font-size: 11px;
	color: var(--muted);
	margin: 48px 14px 16px;
	letter-spacing: 1px;
}
nav {
	display: grid;
	gap: 8px;
}
.nav-item {
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	text-align: left;
	border-radius: 10px;
	color: #718097;
	font-size: 13px;
	font-weight: 600;
}
.nav-item span {
	font-size: 18px;
	width: 20px;
}
.nav-item:hover {
	background: var(--bg);
}
.nav-item.active {
	background: var(--soft);
	color: var(--accent);
}
.sidebar-bottom {
	margin-top: auto;
	padding: 24px 8px 0;
}
.connection-note {
	font-size: 11px;
	color: #53627a;
	display: flex;
	gap: 8px;
	align-items: center;
}
.dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #49a58d;
}
.sidebar-bottom p {
	font-size: 10px;
	color: var(--muted);
	margin-top: 10px;
}
.version {
	font-size: 10px;
	color: #a1a9b8;
	display: block;
	margin-top: 24px;
	letter-spacing: 1px;
}
.workspace {
	margin-left: 228px;
	flex: 1;
	min-width: 0;
}
.topbar {
	height: 79px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 42px;
	background: var(--card);
}
.breadcrumb {
	font-size: 12px;
	color: var(--muted);
}
.breadcrumb span {
	padding: 0 12px;
	color: #c7cdd9;
}
.breadcrumb b {
	font-weight: 500;
	color: #43516a;
}
.top-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}
.text-link {
	font-size: 12px;
	color: #687a96;
}
.text-link:hover {
	color: var(--accent);
}
main {
	padding: 38px 42px 22px;
	max-width: 1450px;
	margin: auto;
}
.page-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
}
.eyebrow {
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 2.1px;
	color: var(--accent);
	margin-bottom: 12px;
}
.page-heading p {
	font-size: 13px;
	color: var(--muted);
	margin-top: 10px;
}
.login-layout {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 24px;
	max-width: 1120px;
}
.welcome-panel {
	background: linear-gradient(135deg, #edf4ff, #f4f8ff 65%, #e9f1ff);
	border: 1px solid #e3ebfa;
	border-radius: 18px;
	padding: 40px 34px;
	display: flex;
	flex-direction: column;
	min-height: 510px;
	overflow: hidden;
}
.pill {
	display: inline-flex;
	align-self: flex-start;
	background: #fff9;
	border: 1px solid #dbe6fb;
	color: #4b75bc;
	font-size: 11px;
	padding: 6px 12px;
	border-radius: 30px;
}
.welcome-panel h2 {
	font-size: clamp(25px, 2.8vw, 35px);
	line-height: 1.55;
	letter-spacing: -1px;
	margin: 25px 0 16px;
}
.welcome-panel p {
	font-size: 13px;
	color: #7c8aa2;
}
.flow-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 44px 0 34px;
	gap: 14px;
}
.flow-node {
	text-align: center;
	position: relative;
}
.flow-node > span {
	height: 55px;
	width: 55px;
	display: grid;
	place-items: center;
	background: #fff;
	border-radius: 15px;
	font-size: 27px;
	box-shadow: 0 8px 25px #3164b20a;
}
.flow-node .telegram-icon {
	color: #38a0d9;
}
.flow-node .agent-icon {
	background: var(--accent);
	color: white;
}
.flow-node .server-icon {
	color: #667c9f;
}
.flow-node small {
	font-size: 9px;
	margin-top: 11px;
	color: #8795ac;
}
.flow-line {
	width: 44px;
	height: 1px;
	border-top: 1px dashed #aac0e7;
	margin-top: -22px;
}
.welcome-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 10px;
	color: #8593aa;
	border-top: 1px solid #dce6f8;
	padding-top: 22px;
}
.login-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 24px 32px 22px;
	min-width: 0;
}
.login-tabs {
	display: flex;
	border-bottom: 1px solid var(--border);
	margin-bottom: 20px;
	gap: 22px;
}
.login-tabs button {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	padding: 12px 0 14px;
	font-size: 12px;
	white-space: nowrap;
}
.login-tabs button.selected {
	color: var(--accent);
	border-bottom-color: var(--accent);
	font-weight: 600;
}
.qr-frame {
	width: 214px;
	height: 214px;
	margin: 20px auto 15px;
	background: white;
	border: 1px solid var(--border);
	border-radius: 15px;
	display: grid;
	place-items: center;
	padding: 10px;
}
.qr-frame canvas {
	max-width: 100%;
	height: auto;
}
#qr-placeholder {
	display: flex;
	align-items: center;
	flex-direction: column;
	color: #8a9ab5;
	font-size: 11px;
	gap: 12px;
}
.qr-placeholder-icon {
	font-size: 70px;
	font-weight: 300;
	color: #cedaee;
}
.login-status {
	text-align: center;
	font-size: 12px;
	color: #657792;
	min-height: 22px;
}
.micro {
	font-size: 10px;
	color: var(--muted);
	text-align: center;
	margin: 10px 0;
	line-height: 1.6;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid transparent;
	padding: 11px 17px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	min-height: 39px;
	background: var(--card);
	color: var(--text);
}
.button:hover {
	filter: brightness(0.97);
}
.button.primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 3px 7px #2369ee15;
}
.button.ghost {
	border-color: var(--border);
	background: var(--card);
	color: #67768e;
}
.button.danger {
	background: #dc4354;
	color: white;
}
.button.full {
	display: flex;
	width: 100%;
	margin-top: 12px;
}
.button.small {
	font-size: 11px;
	padding: 7px 12px;
	min-height: 33px;
}
.button[aria-disabled='true'] {
	pointer-events: none;
	opacity: 0.5;
}
.code-intro {
	text-align: center;
	margin: 30px 0;
}
.code-icon {
	font-size: 32px;
	color: var(--accent);
	background: var(--soft);
	padding: 16px;
	border-radius: 14px;
	display: inline-block;
	margin-bottom: 20px;
}
.code-intro p {
	font-size: 12px;
	color: var(--muted);
	margin-top: 12px;
}
label {
	font-size: 12px;
	display: block;
	margin-bottom: 8px;
	color: #53627a;
}
input {
	width: 100%;
	border: 1px solid #dce2ed;
	background: var(--card);
	color: var(--text);
	padding: 12px;
	border-radius: 8px;
	min-height: 43px;
}
input::placeholder {
	color: #b0bacb;
}
#login-code {
	font-size: 21px;
	text-align: center;
	letter-spacing: 2px;
}
.account {
	display: flex;
	gap: 11px;
	align-items: center;
	font-size: 12px;
}
.account small {
	font-size: 10px;
	color: var(--muted);
	margin-top: 4px;
}
.avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	background: #e9effa;
	color: #5578b9;
	border-radius: 12px;
	font-size: 17px;
}
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin: 12px 0 22px;
}
.section-header p {
	font-size: 11px;
	color: var(--muted);
	margin-top: 7px;
}
.metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.metric {
	background: var(--card);
	padding: 23px;
	border: 1px solid var(--border);
	border-radius: 12px;
}
.metric > span {
	font-size: 11px;
	color: #6e7d95;
}
.metric strong {
	display: block;
	font-size: 29px;
	margin: 17px 0 10px;
	font-weight: 650;
	letter-spacing: -1px;
	font-variant-numeric: tabular-nums;
}
.metric small {
	font-size: 10px;
	color: var(--muted);
}
.overview-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 20px;
	margin-top: 22px;
}
.panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 13px;
	padding: 26px;
}
.panel-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.legend {
	font-size: 10px;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 5px;
}
.legend i {
	width: 6px;
	height: 6px;
	background: #6c9cfc;
	border-radius: 2px;
}
.chart {
	height: 190px;
	display: flex;
	align-items: flex-end;
	gap: 14px;
	padding: 25px 4px 0;
	margin: 12px 0 5px;
	background: repeating-linear-gradient(to top, transparent, transparent 45px, var(--border) 46px);
}
.chart-column {
	flex: 1;
	height: 100%;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 0;
}
.chart-bar {
	width: 70%;
	background: #80a9f7;
	border-radius: 4px 4px 0 0;
	min-height: 2px;
	max-height: 130px;
}
.chart-column small {
	font-size: 9px;
	color: var(--muted);
	padding: 10px 0 0;
	background: var(--card);
	width: 100%;
	text-align: center;
}
.chart-value {
	font-size: 9px;
	color: #6780a7;
	margin-bottom: 5px;
}
.activity details {
	font-size: 11px;
	color: var(--muted);
	margin-top: 14px;
}
.activity summary {
	cursor: pointer;
}
.table-wrap {
	overflow-x: auto;
}
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 11px;
	margin-top: 15px;
}
td,
th {
	padding: 10px;
	border-bottom: 1px solid var(--border);
	text-align: right;
	white-space: nowrap;
}
td:first-child,
th:first-child {
	text-align: left;
}
.checklist ol {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}
.checklist li {
	display: flex;
	gap: 13px;
	margin: 20px 0;
}
.step {
	display: inline-grid;
	place-items: center;
	width: 27px;
	height: 27px;
	background: var(--soft);
	color: var(--accent);
	border-radius: 8px;
	font-size: 11px;
	flex-shrink: 0;
}
.checklist strong {
	font-size: 12px;
}
.checklist p {
	font-size: 11px;
	color: var(--muted);
	margin-top: 4px;
}
.count {
	font-size: 11px;
	background: var(--soft);
	color: var(--accent);
	padding: 4px 8px;
	border-radius: 6px;
	vertical-align: middle;
	margin-left: 8px;
}
.key-list {
	display: grid;
	gap: 18px;
}
.key-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 13px;
	overflow: hidden;
}
.key-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 23px 25px;
	border-bottom: 1px solid var(--border);
}
.key-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.key-icon {
	background: var(--soft);
	color: var(--accent);
	font-size: 21px;
	border-radius: 10px;
	padding: 9px 13px;
}
.key-heading h3 {
	overflow-wrap: anywhere;
}
.key-heading small {
	font-size: 10px;
	color: var(--muted);
	margin-top: 6px;
}
.key-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.badge {
	font-size: 10px;
	padding: 4px 8px;
	border-radius: 20px;
	white-space: nowrap;
	background: #edf7f3;
	color: #448973;
}
.badge.disabled {
	background: #fff5e4;
	color: #a78034;
}
.badge.revoked {
	background: #f1f2f6;
	color: #8a93a4;
}
.key-body {
	padding: 22px 25px;
}
.secret-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 17px;
	background: var(--bg);
	padding: 11px 13px;
	border-radius: 8px;
	min-width: 0;
}
.secret-line code {
	flex: 1;
	min-width: 0;
	font-size: 11px;
	word-break: break-all;
}
.text-button {
	background: none;
	border: 0;
	color: var(--accent);
	font-size: 11px;
	padding: 5px;
	white-space: nowrap;
}
.text-button.danger {
	color: #ce5567;
}
.endpoint-label {
	font-size: 10px;
	color: var(--muted);
	margin-bottom: 7px;
}
.endpoint {
	display: flex;
	gap: 12px;
	align-items: center;
	font-size: 11px;
	margin-bottom: 22px;
	color: #627494;
}
.endpoint code {
	flex: 1;
	min-width: 0;
}
.domain-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--border);
	padding-top: 16px;
	margin-bottom: 12px;
}
.domain-heading strong {
	font-size: 12px;
}
.domain-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--border);
}
.domain-info {
	display: flex;
	gap: 9px;
	align-items: center;
	flex-wrap: wrap;
	min-width: 0;
}
.domain-info strong {
	font-size: 12px;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.region {
	font-size: 9px;
	text-transform: uppercase;
	padding: 3px 6px;
	background: var(--bg);
	border-radius: 4px;
	color: #798aa6;
}
.health {
	font-size: 10px;
	color: #bb8434;
}
.domain-empty {
	font-size: 11px;
	color: var(--muted);
	padding: 14px 0;
}
.empty-state {
	background: var(--card);
	border: 1px dashed #d3ddef;
	text-align: center;
	padding: 65px 25px;
	border-radius: 14px;
}
.empty-state > span {
	font-size: 36px;
	color: #86a5d9;
}
.empty-state h3 {
	margin: 18px 0 10px;
}
.empty-state p {
	font-size: 12px;
	color: var(--muted);
}
.empty-state button {
	margin-top: 20px;
}
.guide-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.guide-grid h3 {
	margin: 14px 0;
}
.guide-grid p {
	color: #74829a;
	font-size: 12px;
	margin: 10px 0;
}
.code-block {
	display: block;
	background: var(--bg);
	padding: 14px;
	border-radius: 8px;
	font-size: 11px;
}
.page-footer {
	display: flex;
	justify-content: space-between;
	color: #a1aaba;
	font-size: 10px;
	border-top: 1px solid var(--border);
	margin-top: 42px;
	padding: 20px 0 0;
}
.page-footer span:first-child {
	font-weight: 650;
	color: #8996aa;
}
.notice {
	padding: 14px 18px;
	font-size: 12px;
	border-radius: 8px;
	margin: 18px 0;
}
.notice.error {
	background: #fff1f3;
	color: #b64c5b;
	border: 1px solid #f7dfe3;
}
dialog {
	width: min(460px, calc(100% - 32px));
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 26px;
	background: var(--card);
	color: var(--text);
	box-shadow: 0 25px 100px #172c6030;
}
dialog::backdrop {
	background: #10234766;
	backdrop-filter: blur(3px);
}
.dialog-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.dialog-heading h2 {
	font-size: 20px;
}
.icon-button {
	border: 0;
	background: none;
	font-size: 25px;
	color: var(--muted);
	padding: 3px 8px;
}
.muted {
	font-size: 12px;
	color: var(--muted);
	margin: 14px 0 22px;
}
.field {
	margin: 17px 0;
}
.field small {
	font-size: 10px;
	color: var(--muted);
	margin-top: 7px;
}
.dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}
.form-error {
	font-size: 12px;
	color: #c84b5e;
	margin-top: 12px;
}
.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	background: #243752;
	color: #fff;
	padding: 13px 22px;
	border-radius: 9px;
	font-size: 12px;
	max-width: 90vw;
	box-shadow: 0 8px 40px #172c6026;
}
.skip {
	position: fixed;
	left: 10px;
	top: -100px;
	z-index: 100;
	background: var(--accent);
	color: white;
	padding: 12px;
}
.skip:focus {
	top: 10px;
}
@media (min-width: 1450px) {
	main {
		padding-top: 48px;
	}
	.login-layout {
		margin-top: 40px;
	}
	.welcome-panel {
		padding: 46px;
	}
}
@media (max-width: 1100px) {
	.sidebar {
		width: 195px;
		padding: 30px 15px;
	}
	.workspace {
		margin-left: 195px;
	}
	main {
		padding: 30px 26px;
	}
	.topbar {
		padding: 0 26px;
	}
	.login-layout {
		gap: 18px;
		grid-template-columns: 1fr 1fr;
	}
	.welcome-panel {
		padding: 30px 24px;
	}
	.login-card {
		padding: 20px;
	}
	.welcome-footer {
		flex-direction: column;
		gap: 6px;
	}
	.metric {
		padding: 18px;
	}
	.metric strong {
		font-size: 25px;
	}
	.metric small {
		line-height: 1.6;
	}
	.overview-grid {
		grid-template-columns: 1fr;
	}
	.checklist ol {
		display: flex;
		gap: 20px;
	}
	.checklist .button {
		max-width: 240px;
	}
	.flow-visual {
		gap: 8px;
	}
	.flow-line {
		width: 20px;
	}
}
@media (max-width: 760px) {
	.shell {
		display: block;
	}
	.sidebar {
		position: static;
		width: 100%;
		padding: 16px 20px 0;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}
	.brand {
		font-size: 19px;
	}
	.brand-mark {
		width: 33px;
		height: 33px;
		border-radius: 10px;
		font-size: 24px;
	}
	.brand small {
		font-size: 7px;
	}
	.workspace-label,
	.sidebar-bottom {
		display: none;
	}
	nav {
		display: flex;
		margin-top: 18px;
		gap: 8px;
	}
	.nav-item {
		justify-content: center;
		font-size: 12px;
		padding: 12px 7px;
		border-radius: 8px 8px 0 0;
		gap: 7px;
	}
	.nav-item span {
		font-size: 15px;
		width: auto;
	}
	.workspace {
		margin: 0;
	}
	.topbar {
		height: 55px;
		padding: 0 20px;
	}
	.breadcrumb {
		font-size: 10px;
	}
	.top-actions {
		gap: 10px;
	}
	.text-link {
		font-size: 10px;
	}
	main {
		padding: 27px 20px 15px;
	}
	.page-heading {
		margin-bottom: 25px;
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.page-heading p {
		font-size: 12px;
	}
	.eyebrow {
		font-size: 8px;
	}
	.login-layout {
		grid-template-columns: 1fr;
	}
	.welcome-panel {
		min-height: 0;
		padding: 24px;
	}
	.welcome-panel h2 {
		font-size: 24px;
		margin: 16px 0 10px;
	}
	.welcome-panel h2 br {
		display: none;
	}
	.welcome-panel p {
		font-size: 12px;
	}
	.welcome-panel p br {
		display: none;
	}
	.flow-visual {
		margin: 24px 0 0;
		gap: 20px;
	}
	.flow-line {
		width: 40px;
	}
	.flow-node > span {
		width: 42px;
		height: 42px;
		border-radius: 12px;
		font-size: 23px;
	}
	.welcome-footer {
		display: none;
	}
	.login-card {
		padding: 20px 24px;
	}
	.login-tabs {
		justify-content: center;
	}
	.section-header h2 {
		font-size: 18px;
	}
	.section-header p {
		font-size: 10px;
		max-width: 220px;
	}
	.metrics {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.metric {
		padding: 18px;
	}
	.metric strong {
		font-size: 27px;
	}
	.panel {
		padding: 22px;
	}
	.checklist ol {
		display: block;
	}
	.checklist .button {
		max-width: none;
	}
	.guide-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.key-header {
		padding: 18px;
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.key-body {
		padding: 18px;
	}
	.key-actions {
		margin-left: auto;
	}
	.key-heading h3 {
		font-size: 14px;
	}
	.key-icon {
		padding: 8px 10px;
	}
	.domain-row {
		align-items: flex-start;
	}
	.domain-info {
		gap: 6px;
	}
	.domain-row .key-actions {
		gap: 3px;
		flex-wrap: nowrap;
	}
	.secret-line {
		gap: 5px;
	}
	.endpoint {
		align-items: flex-start;
	}
	.button {
		font-size: 11px;
	}
	.chart {
		gap: 8px;
	}
	.account {
		font-size: 11px;
	}
	.page-footer {
		margin-top: 30px;
	}
	.page-footer span:last-child {
		font-size: 9px;
	}
	.qr-frame {
		margin-top: 14px;
	}
}
@media (prefers-reduced-motion: no-preference) {
	button,
	a {
		transition:
			background-color 0.15s,
			opacity 0.15s;
	}
	.login-card,
	.panel,
	.key-card {
		animation: appear 0.25s ease-out;
	}
	@keyframes appear {
		from {
			opacity: 0.6;
			transform: translateY(4px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
html.dark {
	--card: #182332;
	--bg: #111a26;
	--text: #e0e8f4;
	--border: #2b3749;
	--muted: #93a3bb;
	--soft: #203653;
	color: var(--text);
	background: var(--bg);
}
html.dark .welcome-panel {
	background: linear-gradient(135deg, #20324f, #17263e);
	border-color: var(--border);
}
html.dark .pill {
	background: #ffffff0d;
	border-color: #3d5376;
	color: #adc7ef;
}
html.dark .welcome-panel h2 {
	color: #e4edfb;
}
html.dark .welcome-panel p,
html.dark .welcome-footer,
html.dark .text-link,
html.dark label {
	color: #9aaecb;
}
html.dark .qr-frame {
	border-color: white;
}
html.dark .badge {
	background: #1e3a33;
	color: #8ecbb8;
}
html.dark .badge.disabled {
	background: #493c27;
	color: #e6c17b;
}
html.dark .badge.revoked {
	background: #2a3341;
	color: #a4acba;
}
html.dark .notice.error {
	background: #3e2832;
	border-color: #663444;
	color: #f3b4c0;
}
html.dark .button.ghost {
	color: #afbed3;
}
html.dark .breadcrumb b {
	color: #b0c0d8;
}
html.dark input {
	border-color: #43506a;
}
html.dark .avatar {
	background: #29415f;
	color: #aec8f1;
}

@media (max-width: 760px) {
	.login-card {
		order: -1;
	}
}
