:root {
	--sidebar-width: 460px;
	--accent: #0E6E7D;
	--accent-dark: #0A5460;
	--accent-soft: rgba(14,110,125,0.10);
	--coral: #D85A30;
	--ink: #1F2933;
	--muted: #6B7280;
	--faint: #9AA0AB;
	--panel: #FFFFFF;
	--card: #F7F9FA;
	--border: #E2E7EC;
	--selected: #F0F7F8;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Inter", sans-serif;
	overflow: hidden;
	color: var(--ink);
}

#map {
	position: absolute !important;
	top: 0;
	left: var(--sidebar-width);
	width: calc(100vw - var(--sidebar-width));
	height: 100vh;
	z-index: 1;
	background-color: #38526C;
}

.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width);
	height: 100vh;
	z-index: 10;
	background: var(--panel);
	border-right: 1px solid var(--border);
	box-shadow: 8px 0 28px rgba(16, 24, 40, 0.08);
	overflow: hidden;
}

.sidebar-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 28px 28px 20px;
	overflow-y: auto;
}

.brand-mark {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 52px;
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
	margin-bottom: 14px;
}

.subtitle {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 22px;
}

.section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--faint);
	margin-bottom: 10px;
}

.copy {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0 0 22px;
}

.choice-stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 18px;
}

.choice-card {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--card);
	padding: 14px;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.choice-card:hover {
	border-color: var(--accent);
	box-shadow: 0 6px 18px rgba(14, 110, 125, 0.16);
	transform: translateY(-1px);
}

.choice-card:focus-visible,
.back-btn:focus-visible {
	outline: 3px solid rgba(14, 110, 125, 0.35);
	outline-offset: 2px;
}

.choice-card-primary {
	border-color: var(--accent);
	background: #F0F8FA;
}

.release-schedule-tooltip {
	position: fixed;
	left: 0;
	top: 0;
	transform: translate3d(0, 0, 0);
	max-width: min(82vw, 360px);
	padding: 6px 8px;
	border-radius: 6px;
	background: rgba(20, 28, 38, 0.96);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	white-space: pre-line;
	box-shadow: 0 8px 16px rgba(16, 24, 40, 0.24);
	z-index: 1250;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.1s ease;
}

.release-schedule-tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}
.choice-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.choice-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.choice-subtitle {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.partner-block {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.partner-logos {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: nowrap;
}

.partner-logos img {
	height: 36px;
	width: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}

.placeholder-view {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.explore-view {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.scenario-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 8px;
}

.scenario-card {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	padding: 12px;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.scenario-card:hover {
	border-color: var(--accent);
	box-shadow: 0 6px 14px rgba(14, 110, 125, 0.1);
}

.scenario-card:focus-visible,
.years-slider:focus-visible,
.run-btn:focus-visible {
	outline: 3px solid rgba(14, 110, 125, 0.35);
	outline-offset: 2px;
}

.scenario-card.is-selected {
	border: 2px solid var(--accent);
	background: var(--selected);
	padding: 11px;
}

.scenario-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	border: 1px solid #C6D1DB;
	background: #fff;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	flex: 0 0 20px;
	margin-left: 2px;
}

.scenario-card.is-selected .scenario-check {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.scenario-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.scenario-name {
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--ink);
}

.scenario-desc {
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.scenario-meta {
	font-size: 12px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--accent-dark);
}

.projection-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: -2px;
	margin-bottom: 6px;
	gap: 12px;
}

.projection-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.projection-value {
	font-size: 14px;
	font-weight: 700;
	color: var(--accent-dark);
}

.years-slider {
	width: 100%;
	accent-color: var(--accent);
	margin: 0 0 16px;
	cursor: pointer;
}

.run-btn {
	width: 100%;
	border: 1px solid var(--accent);
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.run-btn:hover {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
}

.run-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.run-icon {
	font-size: 17px;
	line-height: 1;
	margin-top: 1px;
}

.run-footnote {
	font-size: 12px;
	line-height: 1.45;
	color: var(--faint);
	margin: 10px 0 0;
}

/* Explore mode is intentionally denser so all scenario controls fit in view. */
.explore-view {
	gap: 7px;
}

.explore-view .back-btn {
	padding: 7px 11px;
	font-size: 13px;
	border-radius: 9px;
}

.explore-view .placeholder-title {
	font-size: 20px;
	line-height: 1.15;
	margin: 4px 0 0;
}

.explore-view .copy {
	font-size: 12px;
	line-height: 1.45;
	margin: 0 0 10px;
}

.explore-view .section-label {
	font-size: 10px;
	margin-bottom: 6px;
}

.explore-view .scenario-list {
	gap: 7px;
	margin-bottom: 4px;
}

.explore-view .scenario-card {
	padding: 9px 10px;
	border-radius: 10px;
	gap: 10px;
}

.explore-view .scenario-card.is-selected {
	padding: 8px 9px;
}

.explore-view .scenario-check {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	font-size: 11px;
	margin-left: 0;
}

.explore-view .scenario-name {
	font-size: 14px;
	line-height: 1.25;
}

.explore-view .scenario-desc {
	font-size: 11px;
	line-height: 1.35;
}

.explore-view .scenario-meta {
	font-size: 11px;
	line-height: 1.3;
}

.explore-view .projection-row {
	margin-top: 0;
	margin-bottom: 3px;
}

.explore-view .projection-label,
.explore-view .projection-value {
	font-size: 12px;
}

.explore-view .years-slider {
	margin: 0 0 10px;
}

.explore-view .run-btn {
	font-size: 14px;
	padding: 10px 12px;
	border-radius: 10px;
}

.explore-view .run-icon {
	font-size: 15px;
}

.explore-view .run-footnote {
	font-size: 11px;
	line-height: 1.4;
	margin-top: 6px;
}

.design-view {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.empty-state {
	border: 1px dashed var(--border);
	border-radius: 12px;
	padding: 14px;
	background: #fff;
}

.empty-state h3 {
	margin: 4px 0 6px;
	font-size: 16px;
	font-weight: 700;
}

.empty-state p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.empty-icon {
	font-size: 18px;
	color: var(--coral);
}

.design-sites-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding-right: 2px;
}

.design-site-card {
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.design-site-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.site-card-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.design-site-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
}

.design-pin {
	width: 10px;
	height: 10px;
	border-radius: 50% 50% 50% 0;
	background: var(--coral);
	transform: rotate(-45deg);
	display: inline-block;
}

.site-remove-btn {
	border: 1px solid var(--border);
	background: #fff;
	color: #8d99a8;
	border-radius: 8px;
	width: 30px;
	height: 30px;
	cursor: pointer;
}

.site-delete-btn {
	border: 1px solid var(--border);
	background: #fff;
	color: #8d99a8;
	border-radius: 8px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.site-remove-btn:hover {
	border-color: var(--coral);
	color: var(--coral);
}

.site-delete-btn:hover {
	border-color: var(--coral);
	color: var(--coral);
	background: #fff6f3;
}

.design-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.design-row label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}

.num-input,
.select-input {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 9px;
	padding: 7px 9px;
	font-size: 13px;
	font-family: "Inter", sans-serif;
	background: #fff;
}

.num-input:focus-visible,
.select-input:focus-visible,
.schedule-btn:focus-visible,
.seg-btn:focus-visible,
.season-chip:focus-visible,
.site-collapse-btn:focus-visible,
.site-remove-btn:focus-visible,
.site-delete-btn:focus-visible,
.text-btn:focus-visible {
	outline: 3px solid rgba(14, 110, 125, 0.35);
	outline-offset: 2px;
}

.site-collapse-btn {
	border: 1px solid var(--border);
	background: #fff;
	color: #8d99a8;
	border-radius: 8px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.site-collapse-btn:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
	background: #f4fbfd;
}

.design-site-summary {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
	padding-top: 2px;
}

.design-site-card.is-minimized {
	gap: 6px;
	background: #fbfdff;
	cursor: pointer;
}

.design-site-card.is-minimized:hover {
	border-color: var(--accent);
	background: #f4fbfd;
}

.design-site-card.is-minimized .design-site-title {
	font-size: 13px;
}

.saved-site-summary {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
}

.design-limit-note {
	background: #fff4ee;
	border: 1px solid #f3c5b2;
	color: #8d3a1f;
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.4;
}

.source-row {
	gap: 8px;
}

.source-segmented,
.stream-switch {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.stream-switch {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 8px;
}

.seg-btn {
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink);
	border-radius: 9px;
	padding: 7px 8px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.seg-btn.is-on {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.inline-years {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.inline-years .num-input {
	width: 92px;
}

.inline-years span {
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
}

.release-schedule-controls {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.release-schedule-viz {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.schedule-btn {
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink);
	border-radius: 9px;
	padding: 7px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
}

.schedule-btn.is-on {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.release-schedule-chart {
	margin-top: 8px;
	height: 48px;
	padding: 6px 6px 4px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(4px, 1fr);
	align-items: end;
	gap: 2px;
	overflow: visible;
}

.release-schedule-bar {
	background: linear-gradient(180deg, #7fb8c2 0%, var(--accent) 100%);
	border-radius: 2px 2px 0 0;
	min-height: 3px;
	position: relative;
	cursor: pointer;
}

.release-schedule-axis {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
	text-align: center;
}

.design-advanced-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.text-btn {
	border: 0;
	background: transparent;
	padding: 0;
	color: var(--accent-dark);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.muted-right {
	font-size: 11px;
	color: var(--faint);
}

.advanced-panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.slider-value {
	font-weight: 700;
	color: var(--accent-dark);
	margin-left: 6px;
}

.range-ends {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--faint);
	margin-top: -2px;
}

.toggle-row {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.season-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.season-chip {
	border: 1px solid var(--border);
	background: #fff;
	border-radius: 999px;
	padding: 6px 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
}

.season-chip.is-on {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.add-site-hint {
	font-size: 12px;
	color: var(--muted);
	margin: 2px 0 4px;
}

.hex-hover-label {
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}

.back-btn {
	align-self: flex-start;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink);
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.back-btn:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
}

.placeholder-title {
	margin: 6px 0 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	font-family: "Space Grotesk", "Inter", sans-serif;
	color: var(--ink);
}

.todo {
	margin: 0;
	border: 1px dashed var(--border);
	border-radius: 10px;
	padding: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--faint);
	background: #FCFDFD;
}

.site-pin-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transform: translateY(10px);
}

.site-pin {
	width: 15px;
	height: 15px;
	border-radius: 50% 50% 50% 0;
	background: var(--coral);
	transform: rotate(-45deg);
	position: relative;
	box-shadow: 0 0 0 2px #fff;
}

.site-pin::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #fff;
	top: 4px;
	left: 4px;
}

.site-tag {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 3px 8px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	color: #3B4957;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.locator-map {
	display: none;
	position: absolute;
	left: 0px;
	bottom: 12px;
	width: 220px;
	height: 145px;
	z-index: 2;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	background: transparent;
	pointer-events: none;
}

.locator-map .mapboxgl-canvas-container,
.locator-map .mapboxgl-canvas {
	overflow: visible !important;
}

.locator-svg {
	display: block;
}

.locator-map .mapboxgl-ctrl-top-right,
.locator-map .mapboxgl-ctrl-bottom-right,
.locator-map .mapboxgl-ctrl-bottom-left,
.locator-map .mapboxgl-ctrl-top-left {
	display: none !important;
}

.app-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 24, 40, 0.24);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, visibility 0.16s ease;
}

.app-loading-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.app-loading-dialog {
	min-width: 230px;
	max-width: min(90vw, 380px);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.app-loading-spinner {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2px solid rgba(14, 110, 125, 0.24);
	border-top-color: var(--accent);
	animation: app-loading-spin 0.8s linear infinite;
	flex: 0 0 18px;
}

.app-loading-message {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-transform: lowercase;
}

@keyframes app-loading-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.app-notice {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) translateY(14px);
	opacity: 0;
	background: #19495a;
	color: #fff;
	border: 1px solid #9ac3cf;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.2);
	z-index: 1200;
	transition: opacity 0.16s ease, transform 0.16s ease;
	pointer-events: none;
	max-width: min(92vw, 520px);
	text-align: center;
}

.app-notice.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.app-notice--error {
	background: #8d3a1f;
	border-color: #f3c5b2;
}

.app-notice--warning {
	background: #7a4a0c;
	border-color: #f1d3a7;
}

.app-notice--success {
	background: #0f5f3b;
	border-color: #9fd8b8;
}

.app-notice--info {
	background: #19495a;
	border-color: #9ac3cf;
}

@media (max-width: 760px) {
	body {
		overflow: auto;
	}

	#map {
		left: 0;
		width: 100vw;
	}

	.sidebar {
		width: 100%;
		height: min(420px, 62vh);
		border-right: 0;
		border-bottom: 1px solid var(--border);
		box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	}

	.sidebar-content {
		padding: 20px 18px 14px;
	}

	.brand-mark {
		font-size: 40px;
	}

	.partner-logos img {
		height: 30px;
	}

	.choice-title {
		font-size: 15px;
	}

	.choice-subtitle {
		font-size: 12px;
	}

	.scenario-name {
		font-size: 17px;
	}

	.projection-label {
		font-size: 14px;
	}

	.projection-value {
		font-size: 16px;
	}

	.run-btn {
		font-size: 16px;
	}

	.design-sites-list {
		padding-right: 0;
	}

	.locator-map {
		left: 10px;
		bottom: 10px;
		width: 170px;
		height: 112px;
	}
}

@media (max-width: 720px) {
	.locator-map {
		left: 10px;
		bottom: 10px;
	}
}
