:root {
	--bg: #06090d;
	--panel: #0a1017;
	--panel2: #0f1823;
	--line: #16212c;
	--line3: #22313f;
	--text: #e6edf3;
	--text2: #b6c2cf;
	--muted: #8b9aab;
	--mint: #6ee7a8;
	--amber: #f5b54a;
	--red: #ff7a7a;
	--mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
	--sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color-scheme: dark;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	background:
		radial-gradient(ellipse at 50% 18%, rgba(245, 181, 74, 0.08), rgba(245, 181, 74, 0) 50%),
		var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	min-height: 100vh;
}
.wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	letter-spacing: 0.16em;
}
.brand {
	font-weight: 700;
	letter-spacing: 0.22em;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 10px var(--amber);
}
.mono {
	font-family: var(--mono);
}
.muted {
	color: var(--muted);
}
.card {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 26px 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.card.amber {
	border-color: rgba(245, 181, 74, 0.4);
}
.card::before,
.card::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
}
.card::before {
	top: -1px;
	left: -1px;
	border-top: 1px solid rgba(245, 181, 74, 0.7);
	border-left: 1px solid rgba(245, 181, 74, 0.7);
}
.card::after {
	bottom: -1px;
	right: -1px;
	border-bottom: 1px solid rgba(245, 181, 74, 0.7);
	border-right: 1px solid rgba(245, 181, 74, 0.7);
}
h1 {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
	text-align: center;
}
p {
	margin: 0;
}
.label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: center;
}
.label.amber {
	color: var(--amber);
}
.label.ok {
	color: var(--mint);
}
.label.bad {
	color: var(--red);
}
dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 16px;
	margin: 0;
	padding: 14px;
	border-radius: 8px;
	background: var(--panel2);
	border: 1px solid #1c2733;
}
dt {
	color: var(--muted);
}
dd {
	margin: 0;
	overflow-wrap: anywhere;
}
pre {
	margin: 0;
	padding: 14px;
	border-radius: 8px;
	background: var(--panel2);
	border: 1px solid #1c2733;
	font-family: var(--mono);
	font-size: 13px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	color: var(--text2);
}
ul.changes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
ul.changes li {
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--panel2);
	border: 1px solid #1c2733;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 12px;
}
.diff {
	font-family: var(--mono);
	white-space: nowrap;
}
.diff .new {
	color: var(--amber);
	font-weight: 600;
}
button,
input {
	font: inherit;
}
.btn {
	min-height: 52px;
	border-radius: 12px;
	border: 1px solid var(--line3);
	background: transparent;
	color: var(--text);
	cursor: pointer;
	font-size: 16px;
	width: 100%;
}
.btn.primary {
	background: var(--amber);
	border-color: var(--amber);
	color: #1a1204;
	font-weight: 600;
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
input[type='text'] {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 10px;
	border: 1px solid var(--line3);
	background: var(--panel2);
	color: var(--text);
}
label {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.notice {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--line3);
	background: var(--panel2);
}
.notice.error {
	border-color: rgba(255, 122, 122, 0.5);
	background: rgba(255, 122, 122, 0.08);
	color: #ffc2c2;
}
.notice.ok {
	border-color: rgba(110, 231, 168, 0.45);
	background: rgba(110, 231, 168, 0.07);
	color: #c9f7dd;
}
.fp {
	font-family: var(--mono);
	font-size: 18px;
	letter-spacing: 0.08em;
	text-align: center;
	color: var(--mint);
}
.foot {
	font-size: 12.5px;
	text-align: center;
}
a {
	color: var(--mint);
}
.orb {
	position: relative;
	width: 104px;
	height: 104px;
	margin: 0 auto;
}
.orb .ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(245, 181, 74, 0.28);
}
.orb .arc {
	position: absolute;
	inset: 12px;
	border-radius: 50%;
	border: 2px solid transparent;
	border-top-color: var(--amber);
	border-left-color: rgba(245, 181, 74, 0.35);
	animation: spin 14s linear infinite;
}
.orb .core {
	position: absolute;
	inset: 30px;
	border-radius: 50%;
	background: radial-gradient(circle, #fff8ea 0%, #f9d58f 30%, #e0952a 60%, rgba(224, 149, 42, 0) 76%);
	box-shadow: 0 0 32px 10px rgba(245, 181, 74, 0.3);
	animation: pulse 2.6s ease-in-out infinite;
}
.orb.ok .ring {
	border-color: rgba(110, 231, 168, 0.3);
}
.orb.ok .arc {
	border-top-color: var(--mint);
	border-left-color: rgba(110, 231, 168, 0.35);
}
.orb.ok .core {
	background: radial-gradient(circle, #f4fff9 0%, #a6f5cb 28%, #3fbf7f 58%, rgba(63, 191, 127, 0) 74%);
	box-shadow: 0 0 32px 10px rgba(110, 231, 168, 0.3);
}
.orb.bad .ring {
	border-color: rgba(255, 122, 122, 0.3);
}
.orb.bad .arc {
	border-top-color: var(--red);
	border-left-color: rgba(255, 122, 122, 0.35);
}
.orb.bad .core {
	background: radial-gradient(circle, #fff1f1 0%, #ffb3b3 28%, #d94c4c 58%, rgba(217, 76, 76, 0) 74%);
	box-shadow: 0 0 32px 10px rgba(255, 122, 122, 0.3);
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
}
@media (prefers-reduced-motion: reduce) {
	.orb .arc,
	.orb .core {
		animation: none;
	}
}

.center {
	text-align: center;
}
.small {
	font-size: 13px;
}

.brand {
	white-space: nowrap;
}
#host {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 480px) {
	#host {
		font-size: 11px;
		letter-spacing: 0.04em;
	}
}
