:root {
	--rail: #083a78;
	--rail-deep: #062e60;
	--rail-ink: #f4f7fb;
	--gold: #c9a227;
	--ground: #e8eef5;
	--surface: #ffffff;
	--raised: #f3f6fa;
	--border: #d0dae6;
	--text: #142033;
	--muted: #4a5a70;
	--primary: #0a4c9c;
	--primary-hover: #083a78;
	--primary-ink: #ffffff;
	font-family: "Noto Sans", "Segoe UI", system-ui, sans-serif;
	color: var(--text);
}

* { box-sizing: border-box; }
html, body {
	margin: 0;
	min-height: 100%;
	background: #1a2b40;
}
body {
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: 100vh;
}

/* Brand chip putih seperti dashboard — satu-satunya kotak logo yang diizinkan */
.brand-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
}
.brand-chip .wordmark {
	height: 32px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	display: block;
}

/* —— Studio panel —— */
.studio {
	background: linear-gradient(180deg, #0d2748 0%, #081a30 100%);
	color: #e8eef5;
	padding: 22px 18px;
	border-right: 1px solid rgba(201, 162, 39, 0.35);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.studio-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	width: 100%;
}
.studio-brand > div {
	min-width: 0;
	width: 100%;
}
.studio-chip {
	max-width: 100%;
}
.studio-chip .wordmark {
	height: 28px;
	max-width: min(220px, 100%);
}
.studio-org {
	margin: 0;
	font-size: 11px;
	opacity: 0.85;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.studio-title {
	margin: 2px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.step-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.step {
	text-align: left;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: #e8eef5;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.step:hover { background: rgba(255,255,255,0.08); }
.step.active {
	background: var(--rail);
	border-color: var(--gold);
	box-shadow: inset 3px 0 0 var(--gold);
}
/* —— Stage / window chrome —— */
.stage {
	display: grid;
	place-items: center;
	padding: 28px 20px;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.12), transparent 45%),
		linear-gradient(160deg, #4a6078 0%, #31485f 45%, #24384c 100%);
}
.win {
	width: 560px;
	height: 460px;
	background: var(--ground);
	border-radius: 8px;
	overflow: hidden;
	box-shadow:
		0 24px 60px rgba(0,0,0,0.38),
		0 0 0 1px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
}
.win[hidden],
.winsearch-only[hidden],
.win.is-hidden,
.winsearch-only.is-hidden {
	display: none !important;
}
body.mode-winsearch .win {
	display: none !important;
}
.win-titlebar {
	height: 32px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px 0 10px;
	background: #f0f3f7;
	border-bottom: 1px solid #cfd7e2;
	flex-shrink: 0;
	user-select: none;
}
.win-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
}
.win-title {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #2a3545;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.win-controls { display: flex; gap: 2px; }
.win-btn {
	width: 34px;
	height: 24px;
	display: grid;
	place-items: center;
	font-size: 12px;
	color: #334155;
	border-radius: 3px;
}
.win-btn.close { font-size: 16px; line-height: 1; }

/* —— Installer body —— */
.installer {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--ground);
	user-select: none;
}

.official-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	min-height: 64px;
	flex-shrink: 0;
	background: linear-gradient(180deg, var(--rail) 0%, var(--rail-deep) 100%);
	color: var(--rail-ink);
}
.official-text { min-width: 0; }
.official-text .org {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0.95;
}
.official-text .product {
	margin: 2px 0 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}
.gold-rule {
	height: 3px;
	background: var(--gold);
	flex-shrink: 0;
}

.sheet {
	flex: 1;
	margin: 10px 16px 0;
	padding: 14px 18px 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	min-height: 0;
}
.page { display: none; }
.page.active { display: block; }

h1 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--rail);
}
.lead {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--muted);
}
.points {
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.45;
}
.points li { margin-bottom: 4px; }
.points li::marker { color: var(--gold); }

.info-card {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	background: var(--raised);
	border: 1px solid var(--border);
	border-radius: 6px;
}
.info-org { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.info-product { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--rail); }
.info-meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.win-search {
	background: #202020;
	color: #f3f3f3;
	border-radius: 8px;
	padding: 12px;
	border: 1px solid #3a3a3a;
}
.win-search-bar {
	background: #2c2c2c;
	border: 1px solid #4a4a4a;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 12px;
	color: #d0d0d0;
	margin-bottom: 10px;
}
.win-search-hit {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 6px;
	background: #2b2b2b;
}
.win-search-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 4px;
	background: #fff;
	padding: 2px;
	flex-shrink: 0;
}
.win-search-name {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
}
.win-search-type {
	margin: 2px 0 0;
	font-size: 11px;
	color: #b0b0b0;
}
.win-search-notes { display: none; }

/* Langkah 6: di luar jendela Setup */
.winsearch-only {
	width: min(720px, 100%);
	max-width: 100%;
}
.win11-search-solo {
	min-height: 420px;
	height: 420px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
body.mode-winsearch .stage {
	align-items: center;
}

/* Windows 11 search mock — langkah 6 */
.win11-search {
	height: 100%;
	min-height: 220px;
	background: #1f1f1f;
	color: #f3f3f3;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #333;
	display: flex;
	flex-direction: column;
}
.win11-search-top {
	padding: 10px 12px 0;
	border-bottom: 1px solid #333;
}
.win11-search-input {
	background: #2b2b2b;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 12px;
	color: #eee;
}
.win11-tabs {
	display: flex;
	gap: 14px;
	padding: 8px 2px 0;
	font-size: 11px;
	color: #aaa;
}
.win11-tabs .on {
	color: #fff;
	border-bottom: 2px solid #ff6b8a;
	padding-bottom: 6px;
}
.win11-search-body {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	flex: 1;
	min-height: 0;
}
.win11-left {
	padding: 10px 12px;
	border-right: 1px solid #333;
}
.win11-label {
	margin: 0 0 8px;
	font-size: 11px;
	color: #aaa;
}
.win11-hit {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 6px;
	background: #2a2a2a;
}
.win11-hit img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
	padding: 2px;
	flex-shrink: 0;
}
.win11-name { margin: 0; font-size: 12.5px; font-weight: 700; }
.win11-type { margin: 2px 0 0; font-size: 11px; color: #aaa; }
.win11-right {
	padding: 16px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 4px;
}
.win11-preview-icon {
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	padding: 6px;
	margin-bottom: 8px;
}
.win11-preview-name {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}
.win11-preview-type {
	margin: 0 0 10px;
	font-size: 11px;
	color: #aaa;
}
.win11-actions {
	display: flex;
	gap: 8px;
}
.win11-actions span {
	font-size: 11px;
	padding: 5px 10px;
	border-radius: 4px;
	background: #2f2f2f;
	border: 1px solid #444;
	color: #ddd;
}

.field-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}
.path-row { display: flex; gap: 8px; }
.input {
	flex: 1;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0 10px;
	font-size: 13px;
	background: var(--raised);
	color: var(--text);
	font-family: inherit;
}

.progress-wrap {
	height: 12px;
	background: var(--raised);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
}
.progress-fill {
	height: 100%;
	width: 0%;
	background: var(--primary);
	transition: width 0.25s ease;
}
.progress-label {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
}

.check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin-top: 8px;
}

.actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px 6px;
	gap: 10px;
	flex-shrink: 0;
}
.actions-right { display: flex; gap: 8px; margin-left: auto; }

.btn {
	min-height: 36px;
	padding: 0 14px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.secondary {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border);
}
.btn.secondary:hover { background: var(--raised); }

.foot-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px 10px;
	font-size: 11px;
	color: var(--muted);
	font-weight: 600;
	flex-shrink: 0;
}

@media (max-width: 920px) {
	body { grid-template-columns: 1fr; }
	.studio {
		border-right: 0;
		border-bottom: 1px solid rgba(201,162,39,0.35);
		padding: 16px;
		gap: 14px;
	}
	.studio-brand {
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}
	.studio-brand > div { width: auto; flex: 1; min-width: 0; }
	.studio-chip .wordmark {
		height: 26px;
		max-width: 160px;
	}
	.stage { padding: 16px 12px; }
	.win {
		width: min(560px, 100%);
		height: auto;
		min-height: 460px;
		max-width: 100%;
	}
}

@media (max-width: 560px) {
	.studio-brand {
		flex-direction: column;
		align-items: flex-start;
	}
	.studio-brand > div { width: 100%; }
	.studio-chip .wordmark {
		height: 24px;
		max-width: 100%;
	}
	.win { min-height: 0; border-radius: 6px; }
	.win-title { font-size: 11px; }
	.installer .official-bar { min-height: 56px; padding: 8px 12px; }
	.installer .sheet { margin: 8px 10px 0; padding: 12px 12px 8px; }
	.installer h1 { font-size: 16px; }
	.installer .actions { padding: 8px 10px 4px; flex-wrap: wrap; }
}
