:root {
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	color: #172033;
	background: #f5f7fb;
}

body {
	margin: 0;
}

.page {
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px;
}

.header {
	background: linear-gradient(135deg, #113b5f, #2c7da0);
	color: white;
	border-radius: 18px;
	padding: 26px 30px;
	margin-bottom: 18px;
}

.header h1 {
	margin: 0 0 8px 0;
}

.header p {
	margin: 0;
	opacity: 0.9;
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

button {
	border: 0;
	background: #113b5f;
	color: white;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
}

button:hover {
	background: #19517d;
}

button:disabled {
	background: #9aa8b7;
	cursor: not-allowed;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.card {
	background: white;
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
}

.label {
	color: #667085;
	font-size: 0.85rem;
	margin-bottom: 4px;
}

.value {
	font-size: 1.3rem;
	font-weight: 700;
}

.layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.panel {
	background: white;
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
	min-height: 600px;
}

.panel h2 {
	margin-top: 0;
}

.tree {
	font-size: 0.95rem;
}

.tree-node {
	margin: 3px 0;
}

.tree-children {
	margin-left: 22px;
	border-left: 1px solid #e4e7ec;
	padding-left: 10px;
}

.node-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
}

.node-meta {
	color: #667085;
	font-size: 0.85rem;
}

.muted {
	color: #667085;
}

.manifest-summary {
	background: #f2f4f7;
	border-radius: 12px;
	padding: 12px;
	margin-bottom: 14px;
}

.download-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

textarea {
	width: 100%;
	min-height: 170px;
	box-sizing: border-box;
	border: 1px solid #d0d5dd;
	border-radius: 12px;
	padding: 12px;
	font-family:
		ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	resize: vertical;
}

@media (max-width: 950px) {
	.summary-grid {
		grid-template-columns: repeat(2, minmax(160px, 1fr));
	}

	.layout {
		grid-template-columns: 1fr;
	}
}
.selector-panel {
	background: white;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(20, 35, 60, 0.08);
	margin-bottom: 18px;
	overflow: hidden;
}

.choice-section {
	padding: 24px;
	border-bottom: 12px solid #f0f2f6;
}

.choice-section:last-child {
	border-bottom: 0;
}

.choice-header {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 8px;
}

.choice-header h2 {
	margin: 0;
	font-size: 1.3rem;
}

.choice-header a {
	font-size: 0.95rem;
}

.validation-message {
	color: red;
	min-height: 22px;
	margin-bottom: 12px;
}

.choice-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(90px, 1fr));
	gap: 14px 20px;
}

.choice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
}

.choice input {
	width: 18px;
	height: 18px;
}

.choice.disabled {
	color: #b8c0cc;
}

.choice.disabled input {
	opacity: 0.55;
}

@media (max-width: 1100px) {
	.choice-grid {
		grid-template-columns: repeat(5, minmax(90px, 1fr));
	}
}

@media (max-width: 750px) {
	.choice-grid {
		grid-template-columns: repeat(3, minmax(80px, 1fr));
	}
}
