/**
 * Mourabitoune Strategic Map — front-end styles.
 * Dark Ops Center · Glass + Glow · Gold #c9a86a · Green #0a1f14
 */

.msm-app {
	--gold: #c9a86a;
	--gold-dim: rgba(201, 168, 106, 0.35);
	--bg: #070d09;
	--bg-2: #0a1f14;
	--panel: rgba(10, 31, 20, 0.82);
	--line: rgba(201, 168, 106, 0.22);
	--text: #d7e0d9;
	--muted: #8fa396;
	--red: #ef4444;
	--orange: #f97316;
	--yellow: #eab308;
	--green: #22c55e;
	--blue: #38bdf8;
	--purple: #c084fc;

	direction: rtl;
	color: var(--text);
	background:
		radial-gradient(1200px 500px at 80% -10%, rgba(201, 168, 106, 0.07), transparent 60%),
		radial-gradient(900px 500px at 10% 110%, rgba(34, 197, 94, 0.06), transparent 60%),
		linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg));
	border-top: 2px solid var(--gold);
	font-family: Tajawal, Cairo, "Segoe UI", Tahoma, sans-serif;
	line-height: 1.6;
	width: 100%;
	min-height: 60vh;
	overflow: hidden;
	position: relative;
}

.msm-app *,
.msm-app *::before,
.msm-app *::after {
	box-sizing: border-box;
}

.msm-app button,
.msm-app select,
.msm-app input {
	font-family: inherit;
}

.msm-app h1,
.msm-app h2,
.msm-app h3,
.msm-app h4 {
	margin: 0;
	font-weight: 700;
}

/* ---------------- Header ---------------- */
.msm-header {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 14px 22px 10px;
	background: rgba(7, 13, 9, 0.9);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(6px);
	position: relative;
	z-index: 5;
}

.msm-brand {
	font-weight: 800;
	letter-spacing: 3px;
	font-size: 20px;
	color: var(--gold);
	text-shadow: 0 0 18px rgba(201, 168, 106, 0.35);
	direction: ltr;
}

.msm-org {
	font-size: 13px;
	color: var(--muted);
	border-right: 1px solid var(--line);
	padding-right: 14px;
}

.msm-org strong {
	display: block;
	color: var(--text);
	font-size: 14px;
}

.msm-head-title {
	flex: 1 1 320px;
	min-width: 240px;
}

.msm-head-title h1 {
	font-size: 17px;
	color: #fff;
}

.msm-head-title span {
	display: block;
	font-size: 11px;
	letter-spacing: 2px;
	color: var(--gold);
	direction: ltr;
	text-align: right;
	opacity: 0.8;
}

.msm-live {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	color: var(--muted);
	flex-wrap: wrap;
	justify-content: flex-end;
}

.msm-live .msm-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
	animation: msm-pulse 1.8s infinite;
}

.msm-live .msm-badge {
	border: 1px solid var(--gold-dim);
	color: var(--gold);
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 1px;
	direction: ltr;
}

.msm-clock {
	direction: ltr;
	font-variant-numeric: tabular-nums;
	color: var(--text);
	background: rgba(201, 168, 106, 0.1);
	border: 1px solid var(--line);
	padding: 3px 8px;
	border-radius: 6px;
}

@keyframes msm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.msm-pulse {
	animation: msm-pulse 1.9s infinite;
	transform-box: fill-box;
	transform-origin: center;
}

/* ---------------- Layer tabs ---------------- */
.msm-tabs {
	display: flex;
	gap: 6px;
	padding: 8px 18px 0;
	flex-wrap: wrap;
	background: rgba(7, 13, 9, 0.75);
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 4;
}

.msm-tab {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-bottom: none;
	color: var(--muted);
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: 0.18s;
}

.msm-tab:hover {
	color: var(--text);
	background: rgba(201, 168, 106, 0.07);
}

.msm-tab.is-active {
	color: var(--gold);
	background: rgba(10, 31, 20, 0.95);
	border-color: var(--line);
	font-weight: 700;
	box-shadow: inset 0 -2px 0 var(--gold);
}

.msm-tab small {
	font-size: 10px;
	opacity: 0.7;
	direction: ltr;
}

/* ---------------- Alert ---------------- */
.msm-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 18px 0;
	padding: 7px 12px;
	background: rgba(153, 27, 27, 0.28);
	border: 1px solid rgba(239, 68, 68, 0.45);
	border-right: 3px solid var(--red);
	border-radius: 6px;
	font-size: 12.5px;
}

.msm-alert b {
	color: #fecaca;
}

.msm-alert .msm-alert__tag {
	background: var(--red);
	color: #fff;
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 700;
	white-space: nowrap;
}

.msm-alert__text {
	flex: 1;
}

.msm-alert__short {
	display: none;
}

.msm-alert button {
	background: transparent;
	border: 0;
	color: #fca5a5;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

/* ---------------- Grid ---------------- */
.msm-grid {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) 300px;
	gap: 12px;
	padding: 12px 18px;
	align-items: start;
}

.msm-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.msm-panel + .msm-panel {
	margin-top: 12px;
}

.msm-panel__title {
	font-size: 12px;
	color: var(--gold);
	letter-spacing: 0.5px;
	border-bottom: 1px dashed var(--line);
	padding-bottom: 6px;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.msm-panel__title small {
	color: var(--muted);
	font-weight: 400;
	font-size: 10px;
}

/* ---------------- Left column ---------------- */
.msm-select {
	width: 100%;
	background: #06120c;
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
}

.msm-country-card {
	margin-top: 10px;
	background: rgba(6, 18, 12, 0.9);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 10px;
}

.msm-country-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.msm-country-card__flag {
	font-size: 24px;
}

.msm-country-card__name {
	font-weight: 700;
	font-size: 15px;
	color: #fff;
}

.msm-country-card__en {
	font-size: 10px;
	color: var(--muted);
	direction: ltr;
	text-align: right;
}

.msm-risk {
	margin-inline-start: auto;
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 700;
	white-space: nowrap;
}

.msm-risk--low { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.5); }
.msm-risk--medium { background: rgba(234, 179, 8, 0.16); color: #fde68a; border: 1px solid rgba(234, 179, 8, 0.5); }
.msm-risk--high { background: rgba(249, 115, 22, 0.16); color: #fed7aa; border: 1px solid rgba(249, 115, 22, 0.5); }
.msm-risk--critical { background: rgba(239, 68, 68, 0.18); color: #fecaca; border: 1px solid rgba(239, 68, 68, 0.55); }

.msm-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 8px;
	font-size: 11.5px;
}

.msm-meta div {
	background: rgba(201, 168, 106, 0.07);
	border: 1px solid rgba(201, 168, 106, 0.14);
	border-radius: 6px;
	padding: 4px 7px;
}

.msm-meta span {
	display: block;
	color: var(--muted);
	font-size: 10px;
}

.msm-meta b {
	color: var(--text);
	font-weight: 600;
}

.msm-meta .msm-meta--wide {
	grid-column: 1 / -1;
}

/* axes list */
.msm-axes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.msm-axes li button {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: right;
	background: rgba(6, 18, 12, 0.75);
	border: 1px solid rgba(201, 168, 106, 0.16);
	border-radius: 8px;
	padding: 7px 9px;
	color: var(--text);
	cursor: pointer;
	transition: 0.15s;
	font-size: 12.5px;
}

.msm-axes li button:hover {
	border-color: var(--gold);
	background: rgba(201, 168, 106, 0.1);
	transform: translateX(-2px);
}

.msm-axes .msm-axes__label {
	font-weight: 700;
	color: #fff;
	display: block;
}

.msm-axes .msm-axes__detail {
	color: var(--muted);
	font-size: 11px;
	display: block;
	line-height: 1.45;
}

.msm-note {
	font-size: 11px;
	color: var(--muted);
	white-space: pre-line;
	margin-top: 8px;
	line-height: 1.7;
	direction: rtl;
}

.msm-note b {
	color: var(--gold);
}

.msm-link-btn {
	width: 100%;
	margin-top: 8px;
	background: linear-gradient(180deg, rgba(201, 168, 106, 0.2), rgba(201, 168, 106, 0.08));
	border: 1px solid var(--gold-dim);
	color: var(--gold);
	border-radius: 8px;
	padding: 8px;
	font-weight: 700;
	font-size: 12.5px;
	cursor: pointer;
}

.msm-link-btn:hover {
	background: rgba(201, 168, 106, 0.28);
	color: #fff;
}

/* ---------------- Center / map ---------------- */
.msm-center {
	position: relative;
}

.msm-map-shell {
	position: relative;
	background:
		radial-gradient(700px 420px at 60% 30%, rgba(16, 60, 45, 0.55), transparent 70%),
		linear-gradient(180deg, #06140e, #04100a);
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 760 / 520;
}

.msm-map-shell svg {
	display: block;
	width: 100%;
	height: 100%;
}

.msm-zoom {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 3;
}

.msm-zoom button {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(6, 18, 12, 0.9);
	border: 1px solid var(--line);
	color: var(--gold);
	font-size: 15px;
	cursor: pointer;
	line-height: 1;
}

.msm-zoom button:hover {
	background: rgba(201, 168, 106, 0.2);
}

.msm-legend {
	position: absolute;
	bottom: 52px;
	inset-inline-end: 10px;
	background: rgba(4, 12, 8, 0.88);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 11px;
	z-index: 3;
	max-width: 46%;
}

.msm-legend__title {
	color: var(--gold);
	font-size: 10px;
	margin-bottom: 4px;
}

.msm-legend__item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	line-height: 1.7;
}

.msm-legend__swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	flex: 0 0 auto;
}

.msm-chips {
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: center;
	z-index: 3;
}

.msm-chip {
	background: rgba(4, 12, 8, 0.85);
	border: 1px solid rgba(201, 168, 106, 0.25);
	color: var(--muted);
	font-size: 11px;
	border-radius: 999px;
	padding: 3px 9px;
	cursor: pointer;
	transition: 0.15s;
}

.msm-chip:hover {
	color: #fff;
	border-color: var(--gold);
}

.msm-chip.is-active {
	background: var(--gold);
	color: #0a1f14;
	font-weight: 700;
}

.msm-map-foot {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 10.5px;
	color: var(--muted);
	padding: 6px 4px 0;
	flex-wrap: wrap;
}

/* svg pieces */
.msm-ctry {
	cursor: pointer;
	transition: filter 0.15s;
	stroke: #04100a;
	stroke-width: 0.8;
}

.msm-ctry:hover {
	filter: brightness(1.5);
}

.msm-ctx {
	fill: #0e2019;
	stroke: #173226;
	stroke-width: 0.5;
	pointer-events: none;
}

.msm-label {
	font-size: 9.5px;
	fill: #e8f2ea;
	paint-order: stroke;
	stroke: #04100a;
	stroke-width: 2.4;
	stroke-linejoin: round;
	pointer-events: none;
	text-anchor: middle;
	font-weight: 600;
}

.msm-label--dim {
	fill: #9fb3a6;
	font-size: 8.5px;
	font-weight: 400;
}

.msm-rel {
	stroke: var(--gold);
	stroke-width: 1.1;
	stroke-dasharray: 5 4;
	fill: none;
	opacity: 0.85;
	animation: msm-dash 14s linear infinite;
}

@keyframes msm-dash {
	to { stroke-dashoffset: -200; }
}

.msm-ocean {
	font-size: 11px;
	fill: rgba(148, 190, 170, 0.28);
	letter-spacing: 4px;
	text-anchor: middle;
	pointer-events: none;
}

/* ---------------- Right column ---------------- */
.msm-ind {
	margin-bottom: 10px;
}

.msm-ind__head {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
}

.msm-ind__head b {
	color: #fff;
}

.msm-ind__trend {
	margin-inline-start: auto;
	font-size: 11px;
}

.msm-ind__val {
	font-size: 11px;
	font-weight: 700;
}

.msm-bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
	margin-top: 5px;
	position: relative;
}

.msm-bar > i {
	display: block;
	height: 100%;
	border-radius: 999px;
}

.msm-ind__date {
	font-size: 10px;
	color: var(--muted);
	direction: ltr;
	text-align: right;
}

.msm-force {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	margin-bottom: 6px;
	background: rgba(6, 18, 12, 0.6);
	font-size: 12.5px;
}

.msm-force__bar {
	flex: 1;
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	overflow: hidden;
}

.msm-force__bar i {
	display: block;
	height: 100%;
}

.msm-force__count {
	direction: ltr;
	font-weight: 700;
	color: var(--gold);
	font-size: 12px;
}

.msm-force__note {
	flex: 1 1 100%;
	font-size: 11px;
	line-height: 1.6;
	color: var(--muted);
	border-top: 1px dashed rgba(255, 255, 255, 0.08);
	padding-top: 5px;
}

.msm-status {
	font-size: 10px;
	padding: 1px 6px;
	border-radius: 999px;
	border: 1px solid;
	white-space: nowrap;
}

.msm-status--active { color: #86efac; border-color: rgba(34, 197, 94, 0.5); }
.msm-status--expanding { color: #fecaca; border-color: rgba(239, 68, 68, 0.5); }
.msm-status--reducing { color: #fde68a; border-color: rgba(234, 179, 8, 0.5); }

.msm-sources {
	font-size: 11px;
	color: var(--muted);
	line-height: 1.9;
}

.msm-sources span {
	display: inline-block;
	border: 1px solid rgba(201, 168, 106, 0.3);
	color: var(--gold);
	border-radius: 5px;
	padding: 1px 7px;
	margin: 2px 3px 0 0;
	font-size: 10.5px;
	direction: ltr;
}

/* ---------------- Bottom panel ---------------- */
.msm-bottom {
	margin: 0 18px 16px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.msm-btabs {
	display: flex;
	gap: 4px;
	padding: 8px 10px 0;
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
	background: rgba(7, 13, 9, 0.6);
}

.msm-btab {
	background: transparent;
	border: 1px solid transparent;
	color: var(--muted);
	font-size: 12.5px;
	padding: 7px 13px;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
}

.msm-btab.is-active {
	color: var(--gold);
	border-color: var(--line);
	border-bottom-color: transparent;
	background: rgba(10, 31, 20, 0.95);
	font-weight: 700;
}

.msm-btab:hover {
	color: var(--text);
}

.msm-bcontent {
	padding: 12px 14px;
	min-height: 150px;
}

.msm-events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 10px;
}

.msm-event {
	background: rgba(6, 18, 12, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-right: 3px solid var(--gold);
	border-radius: 8px;
	padding: 9px 11px;
}

.msm-event__top {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 5px;
	flex-wrap: wrap;
}

.msm-event__flag {
	font-size: 15px;
}

.msm-event__domain {
	background: rgba(201, 168, 106, 0.15);
	border: 1px solid var(--gold-dim);
	color: var(--gold);
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 10px;
}

.msm-event__time {
	margin-inline-start: auto;
	direction: rtl;
}

.msm-event__desc {
	font-size: 12.5px;
	color: #e7f0e9;
	line-height: 1.6;
}

.msm-event__foot {
	display: flex;
	gap: 8px;
	font-size: 10.5px;
	color: var(--muted);
	margin-top: 6px;
	direction: rtl;
}

.msm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.msm-table th,
.msm-table td {
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 6px 8px;
	text-align: right;
}

.msm-table th {
	background: rgba(201, 168, 106, 0.12);
	color: var(--gold);
	font-size: 11px;
}

.msm-table tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.02);
}

.msm-lvl {
	font-size: 10px;
	padding: 1px 7px;
	border-radius: 999px;
	font-weight: 700;
}

.msm-lvl--critical { background: rgba(239, 68, 68, 0.2); color: #fecaca; }
.msm-lvl--high { background: rgba(249, 115, 22, 0.2); color: #fed7aa; }
.msm-lvl--medium { background: rgba(234, 179, 8, 0.18); color: #fde68a; }
.msm-lvl--low { background: rgba(34, 197, 94, 0.16); color: #bbf7d0; }

.msm-threats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.msm-threat-col h4 {
	color: var(--gold);
	font-size: 12.5px;
	border-bottom: 1px dashed var(--line);
	padding-bottom: 5px;
	margin-bottom: 7px;
}

.msm-threat-col ul {
	margin: 0;
	padding-inline-start: 16px;
	font-size: 12.5px;
	color: var(--text);
	line-height: 2;
}

.msm-early {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}

.msm-early__card {
	background: rgba(6, 18, 12, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	padding: 9px 11px;
}

.msm-early__k {
	font-size: 11px;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	gap: 6px;
}

.msm-early__v {
	font-size: 13px;
	color: #fff;
	margin-top: 3px;
}

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

.msm-btn {
	background: rgba(201, 168, 106, 0.14);
	border: 1px solid var(--gold-dim);
	color: var(--gold);
	border-radius: 7px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
}

.msm-btn:hover {
	background: rgba(201, 168, 106, 0.3);
	color: #fff;
}

.msm-empty {
	color: var(--muted);
	font-size: 12.5px;
	text-align: center;
	padding: 20px;
}

/* ---------------- Footer ---------------- */
.msm-footer {
	border-top: 1px solid var(--line);
	padding: 12px 20px 16px;
	font-size: 11.5px;
	color: var(--muted);
	text-align: center;
	line-height: 1.9;
}

.msm-footer b {
	color: var(--gold);
}

/* ---------------- Modal (Mauritania panel) ---------------- */
.msm-modal {
	position: fixed;
	inset: 0;
	background: rgba(3, 8, 5, 0.86);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	overflow: auto;
}

.msm-modal.is-open {
	display: flex;
}

.msm-modal__box {
	width: min(1040px, 100%);
	background: linear-gradient(180deg, #0a1f14, #07130d);
	border: 1px solid var(--gold-dim);
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
	overflow: hidden;
}

.msm-modal__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	background: rgba(201, 168, 106, 0.07);
}

.msm-modal__head h3 {
	font-size: 16px;
	color: #fff;
}

.msm-modal__head p {
	margin: 2px 0 0;
	font-size: 11.5px;
	color: var(--muted);
}

.msm-modal__close {
	margin-inline-start: auto;
	background: transparent;
	border: 1px solid var(--line);
	color: var(--gold);
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
}

.msm-modal__close:hover {
	background: rgba(239, 68, 68, 0.25);
	border-color: var(--red);
	color: #fecaca;
}

.msm-modal__body {
	padding: 16px 18px 20px;
	display: grid;
	gap: 14px;
}

.msm-gauge {
	background: rgba(6, 18, 12, 0.8);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13px;
	color: var(--gold);
	text-align: center;
	font-weight: 700;
}

.msm-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 8px;
}

.msm-stat {
	background: rgba(6, 18, 12, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 12.5px;
}

.msm-stat span {
	display: block;
	font-size: 10.5px;
	color: var(--muted);
}

.msm-stat b {
	color: #fff;
}

.msm-modal-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 14px;
}

.msm-axes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 8px;
}

.msm-axis {
	background: rgba(6, 18, 12, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 12px;
	transition: 0.15s;
}

.msm-axis.is-hi {
	border-color: var(--gold);
	box-shadow: 0 0 0 1px var(--gold-dim), 0 0 22px rgba(201, 168, 106, 0.25);
	background: rgba(201, 168, 106, 0.1);
}

.msm-axis__head {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 3px;
}

.msm-axis__detail {
	color: var(--muted);
	line-height: 1.6;
	font-size: 11.5px;
}

.msm-network {
	background: rgba(4, 12, 8, 0.85);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px;
}

.msm-network svg {
	width: 100%;
	height: auto;
	display: block;
}

.msm-network__line {
	stroke: rgba(201, 168, 106, 0.55);
	stroke-width: 1.4;
}

.msm-network__node {
	fill: #0e2a1d;
	stroke: var(--gold);
	stroke-width: 1.2;
}

.msm-network__label {
	font-size: 9.5px;
	fill: #e8f2ea;
	text-anchor: middle;
}

.msm-network__center {
	fill: var(--gold);
	stroke: #04100a;
	stroke-width: 1.5;
}

.msm-range {
	background: rgba(6, 18, 12, 0.8);
	border: 1px dashed var(--gold-dim);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12.5px;
	line-height: 2;
}

.msm-range b {
	color: var(--gold);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
	.msm-grid {
		grid-template-columns: 260px minmax(0, 1fr) 260px;
	}
}

@media (max-width: 1024px) {
	.msm-grid {
		grid-template-columns: 1fr;
	}

	.msm-left,
	.msm-right {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 12px;
		align-items: start;
	}

	.msm-left .msm-panel + .msm-panel,
	.msm-right .msm-panel + .msm-panel {
		margin-top: 0;
	}

	.msm-modal-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.msm-header {
		gap: 10px;
		padding: 12px 14px 8px;
	}

	.msm-live .msm-cycle,
	.msm-live .msm-updated {
		display: none;
	}

	.msm-alert__text {
		display: none;
	}

	.msm-alert__short {
		display: inline;
	}

	.msm-grid,
	.msm-bottom {
		margin-inline: 0;
		padding-inline: 10px;
	}

	.msm-grid {
		padding: 10px;
	}

	.msm-bottom {
		margin: 0 10px 12px;
	}

	.msm-alert {
		margin: 8px 10px 0;
	}

	.msm-legend {
		max-width: 60%;
		bottom: 48px;
		font-size: 10px;
	}
}
