.boot-screen {
	--boot-blue: #2868d8;
	--boot-ink: #203b61;
	--boot-muted: #60728a;
	--boot-line: #dbe6f3;
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 28px;
	overflow: hidden;
	box-sizing: border-box;
	color: var(--boot-ink);
	background:
		radial-gradient(ellipse at 18% 30%, #dceaff 0%, transparent 55%),
		radial-gradient(ellipse at 90% 90%, #e0efff 0%, transparent 50%),
		#f5f8fd;
	font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
	font-size: 13px;
	line-height: 1.5;
}

.boot-screen *,
.boot-screen *::before,
.boot-screen *::after {
	box-sizing: border-box;
}

.boot-screen * {
	font-family: inherit;
}

.boot-screen::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(#9bb7dc 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(110deg, #000, transparent 65%);
	opacity: 0.3;
	content: "";
	pointer-events: none;
}

.boot-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	grid-template-rows: minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	width: min(820px, 100%);
	height: 100%;
	max-height: 520px;
	min-height: 0;
}

.boot-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	min-width: 0;
	text-align: center;
}

.boot-logo {
	display: block;
	width: min(250px, 100%);
	height: auto;
	object-fit: contain;
}

.boot-orbit {
	position: relative;
	display: grid;
	place-items: center;
	width: 188px;
	height: 188px;
	border: 1px solid #c8daf3;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, #edf4ff 50%, transparent 70%);
}

.boot-orbit::before {
	position: absolute;
	inset: 18px;
	border: 1px dashed #a9c3e8;
	border-radius: inherit;
	content: "";
}

.boot-orbit::after {
	position: absolute;
	inset: -10px;
	border-top: 2px solid #6c9ee7;
	border-right: 2px solid transparent;
	border-radius: inherit;
	content: "";
	animation: boot-orbit-turn 18s linear infinite;
}

.boot-orbit__core {
	display: grid;
	place-items: center;
	width: 94px;
	height: 94px;
	border: 1px solid #fff;
	border-radius: 28px;
	background: linear-gradient(145deg, #fff, #dfebff);
	box-shadow: 0 12px 28px #4b7dc51a, inset 0 0 0 6px #ffffff80;
	transform: rotate(-12deg);
}

.boot-orbit__core svg {
	width: 48px;
	height: 48px;
	color: var(--boot-blue);
	transform: rotate(12deg);
}

.boot-caption {
	margin: 0;
	color: #526f94;
	font-size: 12px;
	letter-spacing: 0.16em;
}

.boot-card {
	min-width: 0;
	min-height: 0;
	max-height: 100%;
	padding: 30px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid #fff;
	border-radius: 22px;
	background: #ffffffed;
	box-shadow: 0 18px 60px #385e9512, 0 0 0 1px #c7d9f14d;
	scrollbar-width: thin;
	scrollbar-color: #bfd1e9 transparent;
}

.boot-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--boot-blue);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.boot-eyebrow::before {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px #2868d80d;
	content: "";
}

.boot-title {
	margin: 0;
	color: var(--boot-ink);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.boot-description {
	margin: 10px 0 24px;
	color: var(--boot-muted);
	font-size: 12px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.boot-progress-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 9px;
	color: var(--boot-muted);
	font-size: 11px;
}

.boot-percent {
	flex: none;
	color: var(--boot-blue);
	font-family: "Segoe UI", sans-serif;
	font-size: 28px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.boot-percent small {
	margin-left: 2px;
	font-size: 13px;
}

.boot-progress {
	height: 6px;
	overflow: hidden;
	border-radius: 6px;
	background: #e9eff8;
}

.boot-progress__fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #2868d8, #68b4ed);
	transition: width 180ms ease-out;
}

.boot-progress--indeterminate .boot-progress__fill {
	width: 36%;
	animation: boot-progress-travel 1.8s ease-in-out infinite;
}

.boot-tasks {
	display: grid;
	gap: 2px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.boot-task {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	min-height: 30px;
	color: var(--boot-muted);
	font-size: 12px;
}

.boot-task__icon {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	flex: none;
	border: 1px solid #c8d5e7;
	border-radius: 50%;
	color: #526f94;
	font-size: 10px;
	line-height: 1;
}

.boot-task__state {
	margin-left: auto;
	color: var(--boot-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.boot-task.is-loading .boot-task__icon {
	border: 2px solid #dce8fb;
	border-top-color: var(--boot-blue);
	animation: boot-orbit-turn 1s linear infinite;
}

.boot-task.is-loading,
.boot-task.is-loading .boot-task__state {
	color: var(--boot-blue);
}

.boot-task.is-success .boot-task__icon {
	border-color: #dce8fb;
	background: #edf4ff;
	color: var(--boot-blue);
}

.boot-task.is-error,
.boot-task.is-error .boot-task__icon,
.boot-task.is-error .boot-task__state {
	border-color: #efc3c0;
	color: #b63c35;
}

.boot-details {
	margin-top: 16px;
	border-top: 1px solid var(--boot-line);
}

.boot-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	color: var(--boot-muted);
	font-size: 11px;
	list-style: none;
	cursor: pointer;
}

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

.boot-details summary::after {
	width: 6px;
	height: 6px;
	margin-right: 3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: rotate(45deg);
}

.boot-details[open] summary::after {
	transform: rotate(225deg);
}

.boot-details summary:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--boot-blue);
	outline-offset: 2px;
}

.boot-details__count {
	margin-left: auto;
	font-variant-numeric: tabular-nums;
}

.boot-details__tasks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.boot-details__tasks .boot-task {
	align-items: flex-start;
	min-height: 26px;
	padding: 3px 0;
	font-size: 10px;
}

.boot-details__tasks .boot-task__icon {
	width: 13px;
	height: 13px;
	margin-top: 1px;
	font-size: 9px;
}

.boot-details__status {
	margin: 8px 0 0;
	color: var(--boot-muted);
	font-size: 11px;
	overflow-wrap: anywhere;
}

.boot-error {
	max-height: 140px;
	margin: 12px 0 0;
	padding: 10px;
	overflow: auto;
	border: 1px solid #f0d1cf;
	border-radius: 8px;
	color: #a7352f;
	background: #fff6f5;
	font: 11px/1.6 "Microsoft YaHei", sans-serif;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	user-select: text;
}

.boot-note {
	margin: 20px 0 0;
	color: var(--boot-muted);
	font-size: 11px;
	line-height: 1.7;
}

.boot-screen.is-failed .boot-eyebrow,
.boot-screen.is-failed .boot-percent {
	color: #b63c35;
}

.boot-screen.is-failed .boot-progress__fill {
	background: #ce7771;
}

.boot-screen.is-failed *,
.boot-screen.is-failed *::before,
.boot-screen.is-failed *::after {
	animation-play-state: paused;
}

.boot-screen.is-narrow .boot-layout {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 20px;
	width: min(400px, 100%);
}

.boot-screen.is-narrow .boot-brand {
	gap: 0;
}

.boot-screen.is-narrow .boot-logo {
	width: 180px;
}

.boot-screen.is-narrow .boot-orbit,
.boot-screen.is-narrow .boot-caption {
	display: none;
}

.boot-screen.is-narrow .boot-card {
	padding: 24px;
	border-radius: 18px;
}

.boot-screen.is-narrow .boot-title {
	font-size: 25px;
}

@media (max-width: 620px) {
	.boot-screen--client .boot-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		gap: 20px;
		width: min(400px, 100%);
	}

	.boot-screen--client .boot-brand {
		gap: 0;
	}

	.boot-screen--client .boot-logo {
		width: 180px;
	}

	.boot-screen--client .boot-orbit,
	.boot-screen--client .boot-caption {
		display: none;
	}

	.boot-screen--client .boot-card {
		padding: 24px;
		border-radius: 18px;
	}

	.boot-screen--client .boot-title {
		font-size: 25px;
	}
}

.boot-screen.is-short .boot-layout {
	gap: 20px;
}

.boot-screen.is-short .boot-brand {
	gap: 18px;
}

.boot-screen.is-short .boot-logo {
	width: 180px;
}

.boot-screen.is-short .boot-orbit {
	width: 124px;
	height: 124px;
}

.boot-screen.is-short .boot-orbit__core {
	width: 68px;
	height: 68px;
	border-radius: 20px;
}

.boot-screen.is-short .boot-orbit__core svg {
	width: 36px;
	height: 36px;
}

.boot-screen.is-short .boot-card {
	padding: 20px;
}

.boot-screen.is-short .boot-eyebrow {
	margin-bottom: 8px;
}

.boot-screen.is-short .boot-title {
	font-size: 23px;
}

.boot-screen.is-short .boot-description {
	margin: 8px 0 16px;
}

.boot-screen.is-short .boot-tasks {
	margin-top: 12px;
}

.boot-screen.is-short .boot-task {
	min-height: 26px;
}

.boot-screen.is-short .boot-note,
.boot-screen.is-short .boot-details {
	margin-top: 10px;
}

@media (max-height: 440px) {
	.boot-screen--client .boot-layout {
		gap: 20px;
	}

	.boot-screen--client .boot-brand {
		gap: 18px;
	}

	.boot-screen--client .boot-logo {
		width: 180px;
	}

	.boot-screen--client .boot-orbit {
		width: 124px;
		height: 124px;
	}

	.boot-screen--client .boot-orbit__core {
		width: 68px;
		height: 68px;
		border-radius: 20px;
	}

	.boot-screen--client .boot-orbit__core svg {
		width: 36px;
		height: 36px;
	}

	.boot-screen--client .boot-card {
		padding: 20px;
	}

	.boot-screen--client .boot-eyebrow {
		margin-bottom: 8px;
	}

	.boot-screen--client .boot-title {
		font-size: 23px;
	}

	.boot-screen--client .boot-description {
		margin: 8px 0 16px;
	}

	.boot-screen--client .boot-tasks {
		margin-top: 12px;
	}

	.boot-screen--client .boot-task {
		min-height: 26px;
	}

	.boot-screen--client .boot-note,
	.boot-screen--client .boot-details {
		margin-top: 10px;
	}
}

.boot-screen.is-flat .boot-orbit,
.boot-screen.is-flat .boot-caption {
	display: none;
}

.boot-screen.is-flat .boot-logo {
	width: 140px;
}

.boot-screen.is-flat .boot-layout {
	gap: 12px;
}

@media (max-height: 300px) {
	.boot-screen--client .boot-orbit,
	.boot-screen--client .boot-caption {
		display: none;
	}

	.boot-screen--client .boot-logo {
		width: 140px;
	}

	.boot-screen--client .boot-layout {
		gap: 12px;
	}
}

.boot-screen.is-narrow.is-flat .boot-brand {
	display: none;
}

.boot-screen.is-narrow.is-flat .boot-layout {
	grid-template-rows: minmax(0, 1fr);
}

@media (max-width: 620px) and (max-height: 300px) {
	.boot-screen--client .boot-brand {
		display: none;
	}

	.boot-screen--client .boot-layout {
		grid-template-rows: minmax(0, 1fr);
	}
}

@keyframes boot-orbit-turn {
	to { transform: rotate(360deg); }
}

@keyframes boot-progress-travel {
	from { transform: translateX(-110%); }
	to { transform: translateX(380%); }
}

@media (prefers-reduced-motion: reduce) {
	.boot-screen *,
	.boot-screen *::before,
	.boot-screen *::after {
		animation: none !important;
		transition: none !important;
	}

	.boot-progress--indeterminate .boot-progress__fill {
		width: 36%;
		margin-inline: auto;
		background: #6a94d4;
	}
}
