/* A focused, responsive workspace built on the existing HMBD identity. */
body.atlas-expanded {
	overflow: hidden;
}
.home-page .atlas-head-compact h2 {
	font-size: clamp(32px, 3.2vw, 48px);
}
.home-page .atlas-console {
	background: radial-gradient(ellipse at 40% 40%, #173f50, transparent 65%), #0a2535;
	padding: 24px;
	border: 1px solid #254c5a;
	box-shadow: 0 25px 70px #0b244520;
}
.atlas-workspace-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ffffff18;
	margin-bottom: 8px;
}
.atlas-workspace-bar > div:first-child {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.atlas-workspace-dot {
	width: 8px;
	height: 8px;
	background: #bdd8ff;
	box-shadow: 0 0 0 5px #bdd8ff13;
	border-radius: 50%;
	margin: 0 8px 0 4px;
}
.atlas-workspace-bar strong {
	font-size: 16px;
	color: #f0f5ff;
	font-weight: 500;
}
.atlas-workspace-caption {
	font-size: 11px;
	color: #bdd8ff;
	margin-left: 8px;
}
.atlas-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.atlas-actions button,
.atlas-export-menu summary,
.atlas-preview-footer button {
	min-height: 44px;
	border: 1px solid #9bb9dd44;
	background: #ffffff07;
	border-radius: 9px;
	color: #e6efff;
	padding: 10px 14px;
	font-size: 12px;
	cursor: pointer;
	list-style: none;
	font-family: inherit;
	line-height: 1.5;
}
.atlas-actions #atlas-pdf,
.atlas-preview-footer button {
	background: #e6efff;
	border-color: #e6efff;
	color: #0b2445;
	font-weight: 600;
}
.atlas-actions button:hover:not(:disabled),
.atlas-export-menu summary:hover {
	border-color: #bdd8ff;
	background: #ffffff13;
}
.atlas-actions #atlas-pdf:hover:not(:disabled) {
	background: #e6efff;
}
.atlas-action-status {
	font-size: 12px;
	line-height: 1.7;
	color: #bdd8ff;
	min-height: 24px;
	padding: 5px 0 10px;
}
.atlas-export-menu {
	position: relative;
}
.atlas-export-menu summary::-webkit-details-marker {
	display: none;
}
.atlas-export-menu > div {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 20;
	width: 260px;
	background: #123a49;
	border: 1px solid #23466c;
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 12px 35px #00141b66;
}
.atlas-export-menu > div button,
.atlas-export-menu > div a {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: #f0f5ff;
	padding: 12px;
	min-height: 44px;
	font-size: 12px;
	border-radius: 6px;
}
.atlas-export-menu > div a:hover {
	background: #ffffff12;
}
.atlas-share-fallback {
	width: 100%;
	border: 1px solid #52667f;
	border-radius: 8px;
	padding: 12px;
	background: #f0f5ff;
	color: #102d55;
	margin-bottom: 15px;
	font-size: 14px;
}
.home-page .atlas-console .rail-stat span,
.home-page .atlas-console .rail-heading {
	font-size: 11px;
	color: #bdd8ff;
}
.home-page .atlas-console .atlas-settings {
	gap: 14px;
	padding-block: 16px;
}
.home-page .atlas-console .atlas-settings label {
	font-size: 12px;
	color: #d3e3fc;
}
.home-page .atlas-console .atlas-settings select {
	background: #133748;
	color: #f0f5ff;
	border: 1px solid #52667f;
	min-height: 44px;
	font-size: 13px;
}
.home-page .atlas-console .atlas-layout {
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
}
.home-page .atlas-console .map-shell {
	height: 690px;
	border: 1px solid #9bb9dd2a;
	border-radius: 16px;
	background: radial-gradient(ellipse at 50% 50%, #23466c30, transparent 70%), #0b2a3b;
}
.home-page .atlas-console .map-stage {
	height: 100%;
	cursor: grab;
	touch-action: none;
	outline-offset: -5px;
}
.home-page .atlas-console .map-stage.is-panning {
	cursor: grabbing;
	touch-action: none;
}
.home-page .atlas-console .map-stage svg {
	height: 100%;
	width: 100%;
	display: block;
}
.home-page .atlas-console .map-controls {
	right: 14px;
	bottom: 76px;
	background: #0c2b3be8;
	border-color: #52667f6b;
	border-radius: 12px;
}
.home-page .atlas-console .map-controls button {
	color: #d3e3fc;
	font-size: 12px;
	border-radius: 7px;
}
.home-page .atlas-console .map-controls button.active {
	background: #d3e3fc;
	color: #0b2445;
}
.home-page .atlas-console .map-controls button:disabled {
	opacity: 0.4;
}
.home-page .atlas-console .map-control-label {
	font-size: 8px;
	color: #bdd8ff;
	letter-spacing: 0.05em;
}
.home-page .atlas-console .map-hint {
	font-size: 10px;
	max-width: 300px;
	color: #d3e3fc;
	pointer-events: none;
}
.home-page .atlas-console .map-legend,
.home-page .atlas-console .map-context {
	font-size: 10px;
	color: #bdd8ff;
}
.home-page .atlas-console .inspector {
	max-height: 690px;
	border-color: #9bb9dd3a;
	border-radius: 16px;
	background: #16394b;
}
.home-page .atlas-console .inspector-body {
	font-size: 12px;
}
.home-page .atlas-console .panel-note,
.home-page .atlas-console .panel-label {
	font-size: 11px;
	line-height: 1.7;
}
.home-page .atlas-console .featured-row small,
.home-page .atlas-console .metric-card span {
	font-size: 11px;
}
.home-page .atlas-console .featured-row strong {
	font-size: 13px;
}
.home-page .atlas-console .division-switcher {
	flex-wrap: wrap;
	margin-top: 18px;
}
.home-page .atlas-console .division-switcher button,
.home-page .atlas-console .sector-legend button {
	font-size: 12px;
	min-height: 44px;
}
.home-page .atlas-console .atlas-settings-status {
	font-size: 12px;
	color: #d3e3fc;
	flex-wrap: wrap;
}
.home-page .atlas-console .atlas-filter-panel summary {
	font-size: 12px;
}
.home-page .atlas-console .atlas-filter-description,
.home-page .atlas-console .atlas-filter-count {
	font-size: 11px;
}
.home-page .atlas-source-note {
	font-size: 12px;
	line-height: 1.8;
	color: #52667f;
	margin-top: 18px;
}
.atlas-retry {
	padding: 12px 22px;
	margin: 20px;
	border: 1px solid #d3e3fc;
	border-radius: 8px;
	background: #e6efff;
	color: #102d55;
}
.atlas-preview-dialog {
	border: 1px solid #365867;
	border-radius: 20px;
	width: min(1100px, 94vw);
	max-height: 92dvh;
	padding: 24px;
	color: #e6efff;
	background: #0c2939;
	box-shadow: 0 32px 100px #00152088;
	overflow: auto;
}
.atlas-preview-dialog::backdrop {
	background: #061a28bb;
	backdrop-filter: blur(8px);
}
.atlas-preview-heading {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
	margin-bottom: 18px;
}
.atlas-preview-heading span {
	font-size: 10px;
	color: #bdd8ff;
	letter-spacing: 0.14em;
}
.atlas-preview-heading h2 {
	font-size: 30px;
	margin: 8px 0;
	color: #f0f5ff;
}
.atlas-preview-heading p {
	font-size: 12px;
	color: #bdd8ff;
}
.atlas-preview-heading button {
	height: 44px;
	width: 44px;
	border: 1px solid #61818c;
	border-radius: 50%;
	background: transparent;
	color: #e6efff;
	font-size: 25px;
	flex-shrink: 0;
}
.atlas-preview-image {
	border: 1px solid #59778250;
	border-radius: 12px;
	overflow: hidden;
}
.atlas-preview-image svg {
	display: block;
	width: 100%;
	height: auto;
}
.atlas-preview-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 18px;
}
.atlas-preview-footer p {
	font-size: 12px;
	max-width: 550px;
	line-height: 1.7;
	color: #bdd8ff;
}
.atlas-preview-footer button {
	flex-shrink: 0;
}
#atlas-preview-status {
	font-size: 12px;
	color: #d3e3fc;
	padding-top: 12px;
}
.atlas-actions :focus-visible,
.atlas-preview-dialog :focus-visible,
.home-page .atlas-console :focus-visible {
	outline: 3px solid #d3e3fc;
	outline-offset: 3px;
}
body.home-page .atlas-console .map-shell.map-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 500;
	height: 100dvh;
	max-height: none;
	width: 100vw;
	background: #0b2939;
	border-radius: 0;
	margin: 0;
}
@media (max-width: 1100px) {
	.atlas-workspace-bar {
		align-items: flex-start;
		flex-direction: column;
	}
	.home-page .atlas-console .atlas-layout {
		grid-template-columns: minmax(0, 1fr) 290px;
	}
}
@media (max-width: 900px) {
	.home-page .atlas-console .atlas-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.home-page .atlas-console .inspector {
		max-height: none;
	}
	.home-page .atlas-console .map-shell {
		height: 650px;
	}
}
@media (max-width: 600px) {
	.home-page .atlas-console {
		padding: 16px 12px;
	}
	.atlas-workspace-caption {
		display: none;
	}
	.atlas-actions {
		width: 100%;
		gap: 7px;
	}
	.atlas-actions > button {
		flex: 1;
		font-size: 11px;
		padding: 10px;
	}
	.atlas-export-menu {
		width: 100%;
	}
	.atlas-export-menu summary {
		width: 100%;
		text-align: center;
	}
	.atlas-export-menu > div {
		width: 100%;
	}
	.home-page .atlas-console .map-shell {
		height: 590px;
	}
	.home-page .atlas-console .map-hint {
		max-width: 230px;
		font-size: 9px;
	}
	.home-page .atlas-console .map-controls {
		bottom: 84px;
		right: 9px;
	}
	.home-page .atlas-console .map-context {
		font-size: 8px;
		bottom: 40px;
	}
	.home-page .atlas-console .map-legend {
		font-size: 8px;
	}
	.home-page .atlas-console .atlas-settings select {
		font-size: 16px;
	}
	.home-page .atlas-console .rail-stat {
		padding-inline: 9px;
	}
	.home-page .atlas-console .rail-stat span {
		font-size: 9px;
	}
	.home-page .atlas-console .division-switcher {
		flex-wrap: nowrap;
	}
	.atlas-preview-dialog {
		padding: 16px;
		border-radius: 14px;
	}
	.atlas-preview-heading h2 {
		font-size: 24px;
	}
	.atlas-preview-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}
	.atlas-preview-footer button {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.atlas-preview-dialog::backdrop {
		backdrop-filter: none;
	}
}
