/* MSP Portal — shared admin + front-end styles. Everything is scoped to .msp-app. */

.msp-app {
	--msp-bg: #f6f5f8;
	--msp-surface: #ffffff;
	--msp-surface-2: #f3f1f7;
	--msp-text: #18161f;
	--msp-muted: #6c6879;
	--msp-border: #e5e2ec;
	--msp-border-strong: #d3cfdc;
	--msp-accent: #6d28d9;
	--msp-accent-hover: #5b21b6;
	--msp-accent-soft: #f1ebfc;
	--msp-on-accent: #ffffff;
	--msp-ok: #15803d;
	--msp-minor: #b45309;
	--msp-major: #c0262d;
	--msp-maint: #1d5fd1;
	--msp-unknown: #7a7687;
	--msp-radius: 10px;
	--msp-shadow: 0 1px 2px rgb(20 10 40 / 0.04), 0 1px 1px rgb(20 10 40 / 0.03);

	color: var(--msp-text);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	color-scheme: light;
}

:root[data-msp-theme="dark"] .msp-app,
:root[data-msp-theme="dark"] body.msp-screen {
	--msp-bg: #100e15;
	--msp-surface: #17151d;
	--msp-surface-2: #1f1c27;
	--msp-text: #ecebf1;
	--msp-muted: #9c98aa;
	--msp-border: #2a2733;
	--msp-border-strong: #3a3645;
	--msp-accent: #a68bfa;
	--msp-accent-hover: #c0aefc;
	--msp-accent-soft: #261e3a;
	--msp-on-accent: #150c28;
	--msp-ok: #4ade80;
	--msp-minor: #fbbf24;
	--msp-major: #f87171;
	--msp-maint: #7aa7ff;
	--msp-unknown: #8b8799;
	--msp-shadow: none;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-msp-theme="light"]) .msp-app,
	:root:not([data-msp-theme="light"]) body.msp-screen {
		--msp-bg: #100e15;
		--msp-surface: #17151d;
		--msp-surface-2: #1f1c27;
		--msp-text: #ecebf1;
		--msp-muted: #9c98aa;
		--msp-border: #2a2733;
		--msp-border-strong: #3a3645;
		--msp-accent: #a68bfa;
		--msp-accent-hover: #c0aefc;
		--msp-accent-soft: #261e3a;
		--msp-on-accent: #150c28;
		--msp-ok: #4ade80;
		--msp-minor: #fbbf24;
		--msp-major: #f87171;
		--msp-maint: #7aa7ff;
		--msp-unknown: #8b8799;
		--msp-shadow: none;
		color-scheme: dark;
	}
}

.msp-app *, .msp-app *::before, .msp-app *::after { box-sizing: border-box; }
.msp-app a { color: var(--msp-accent); text-decoration: none; }
.msp-app a:hover { color: var(--msp-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.msp-app :focus-visible { outline: 2px solid var(--msp-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Admin canvas ---------- */
.msp-admin.wrap { margin: 0; padding: 24px 24px 0 4px; max-width: 1280px; }
@media (max-width: 782px) { .msp-admin.wrap { padding: 16px 12px 0 0; } }

/* ---------- Headings ---------- */
.msp-head, .msp-front-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 20px; flex-wrap: wrap;
}
.msp-head h1 { margin: 0; padding: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; color: var(--msp-text); }
.msp-head-actions { display: flex; gap: 8px; align-items: center; }
.msp-title { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.015em; color: var(--msp-text); line-height: 1.2; }
.msp-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--msp-accent); }
.msp-lede { margin: 0 0 16px; color: var(--msp-muted); max-width: 72ch; }

/* ---------- Panels ---------- */
.msp-panel {
	background: var(--msp-surface); border: 1px solid var(--msp-border); border-radius: var(--msp-radius);
	padding: 18px 20px; margin: 0 0 16px; box-shadow: var(--msp-shadow); min-width: 0;
}
.msp-panel-flush { padding: 0; overflow: hidden; }
.msp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.msp-panel-flush > .msp-panel-head { padding: 16px 20px 0; }
.msp-panel-head h2, .msp-panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--msp-text); }
.msp-panel-head a { font-size: 13px; }
.msp-empty { margin: 0; padding: 18px 20px; color: var(--msp-muted); }
.msp-panel:not(.msp-panel-flush) > .msp-empty { padding: 0; }
.msp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.msp-grid-2 > .msp-panel { margin: 0; }
.msp-scroll { overflow-x: auto; }

/* ---------- Stats ---------- */
.msp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.msp-stat {
	background: var(--msp-surface); border: 1px solid var(--msp-border); border-radius: var(--msp-radius);
	padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--msp-shadow);
}
.msp-stat span { font-size: 12px; color: var(--msp-muted); }
.msp-stat strong { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.msp-stat em { font-style: normal; font-size: 12px; color: var(--msp-accent); font-weight: 600; }
.msp-stat-accent { border-color: color-mix(in srgb, var(--msp-accent) 35%, var(--msp-border)); background: linear-gradient(var(--msp-accent-soft), var(--msp-accent-soft)) padding-box; }

/* ---------- Tables ---------- */
.msp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.msp-table th, .msp-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--msp-border); }
.msp-table thead th {
	font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--msp-muted);
	background: var(--msp-surface-2); border-bottom-color: var(--msp-border); white-space: nowrap;
}
.msp-table tbody tr:last-child td { border-bottom: 0; }
.msp-table tbody tr:hover td { background: color-mix(in srgb, var(--msp-accent-soft) 45%, transparent); }
.msp-table tfoot th, .msp-table tfoot td { font-weight: 600; background: var(--msp-surface-2); border-bottom: 0; border-top: 1px solid var(--msp-border-strong); }
.msp-table th:first-child, .msp-table td:first-child { padding-left: 20px; }
.msp-table th:last-child, .msp-table td:last-child { padding-right: 20px; }
.msp-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.msp-row-muted td { opacity: 0.55; }
.msp-actions { white-space: nowrap; text-align: right; }
.msp-actions > * + * { margin-left: 10px; }
.msp-panel-flush .msp-panel-head + .msp-table, .msp-panel-flush .msp-panel-head + .msp-scroll, .msp-panel-flush .msp-panel-head + .msp-empty { margin-top: 4px; }

/* ---------- Text utilities ---------- */
.msp-muted { color: var(--msp-muted); }
.msp-small { font-size: 12.5px; }
.msp-strong { font-weight: 600; color: var(--msp-text); }
a.msp-strong { color: var(--msp-text); }
a.msp-strong:hover { color: var(--msp-accent); }
.msp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.msp-neg { color: var(--msp-major) !important; }
.msp-warn { color: var(--msp-minor); }
.msp-group { margin: 14px 20px 6px; font-size: 12px; font-weight: 600; color: var(--msp-accent); letter-spacing: 0.02em; }

/* ---------- Chips, tags, badges ---------- */
.msp-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 520px; }
.msp-chip {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
	font-size: 12px; line-height: 18px; background: var(--msp-surface-2); border: 1px solid var(--msp-border); color: var(--msp-text);
}
.msp-chip::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--msp-unknown); }
.msp-chip b { font-weight: 600; color: var(--msp-muted); }
.msp-tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 17px; color: var(--msp-muted); border: 1px solid var(--msp-border); text-transform: lowercase; }
.msp-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.msp-badge-ok, .msp-badge-active { color: var(--msp-ok); background: color-mix(in srgb, var(--msp-ok) 12%, transparent); }
.msp-badge-pending { color: var(--msp-maint); background: color-mix(in srgb, var(--msp-maint) 12%, transparent); }
.msp-badge-suspended { color: var(--msp-minor); background: color-mix(in srgb, var(--msp-minor) 14%, transparent); }
.msp-badge-cancelled { color: var(--msp-unknown); background: color-mix(in srgb, var(--msp-unknown) 14%, transparent); }

/* ---------- Buttons ---------- */
.msp-app .msp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
	border-radius: 8px; border: 1px solid var(--msp-accent); background: var(--msp-accent); color: var(--msp-on-accent);
	font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.msp-app .msp-btn:hover { background: var(--msp-accent-hover); border-color: var(--msp-accent-hover); color: var(--msp-on-accent); text-decoration: none; }
.msp-app .msp-btn-ghost { background: transparent; color: var(--msp-text); border-color: var(--msp-border-strong); }
.msp-app .msp-btn-ghost:hover { background: var(--msp-surface-2); color: var(--msp-text); border-color: var(--msp-border-strong); }
.msp-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--msp-accent); cursor: pointer; }
.msp-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.msp-link-danger { color: var(--msp-major); }
.msp-inline { display: inline; margin: 0; }

.msp-theme-toggle {
	display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 8px; cursor: pointer;
	background: transparent; border: 1px solid var(--msp-border-strong); color: var(--msp-text);
}
.msp-theme-toggle:hover { background: var(--msp-surface-2); }
.msp-theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msp-theme-toggle .msp-i-sun { display: none; }
:root[data-msp-theme="dark"] .msp-theme-toggle .msp-i-sun { display: block; }
:root[data-msp-theme="dark"] .msp-theme-toggle .msp-i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-msp-theme="light"]) .msp-theme-toggle .msp-i-sun { display: block; }
	:root:not([data-msp-theme="light"]) .msp-theme-toggle .msp-i-moon { display: none; }
}

/* ---------- Forms ---------- */
.msp-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.msp-fields-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.msp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.msp-field-wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .msp-fields-4 .msp-field-wide { grid-column: span 2; } }
.msp-field > label { font-size: 12.5px; font-weight: 550; color: var(--msp-text); }
.msp-req { color: var(--msp-major); }
.msp-help { margin: 0; font-size: 12px; color: var(--msp-muted); }
.msp-app input[type="text"], .msp-app input[type="email"], .msp-app input[type="tel"], .msp-app input[type="url"],
.msp-app input[type="number"], .msp-app input[type="date"], .msp-app input[type="datetime-local"], .msp-app input[type="password"], .msp-app input[type="search"],
.msp-app select, .msp-app textarea {
	width: 100%; max-width: none; min-height: 34px; margin: 0; padding: 6px 10px; border-radius: 8px;
	border: 1px solid var(--msp-border-strong); background: var(--msp-surface); color: var(--msp-text);
	font: inherit; font-size: 13.5px; box-shadow: none; line-height: 1.4;
}
.msp-app select { padding-right: 28px; }
.msp-app textarea { min-height: 70px; resize: vertical; }
.msp-app input:focus, .msp-app select:focus, .msp-app textarea:focus {
	outline: none; border-color: var(--msp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--msp-accent) 22%, transparent);
}
.msp-money-input { display: flex; align-items: stretch; }
.msp-money-input span {
	display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--msp-border-strong); border-right: 0;
	border-radius: 8px 0 0 8px; background: var(--msp-surface-2); color: var(--msp-muted); font-size: 13px;
}
.msp-app .msp-money-input input { border-radius: 0 8px 8px 0; }
.msp-check { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 13px; }
.msp-app .msp-check input[type="checkbox"] { margin: 0; accent-color: var(--msp-accent); }
.msp-form-actions { display: flex; gap: 8px; margin-top: 16px; }
.msp-toolbar { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.msp-toolbar input[type="search"] { flex: 1 1 260px; max-width: 380px; }
.msp-toolbar select { width: auto; }

.msp-tabs { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid var(--msp-border); flex-wrap: wrap; }
.msp-app .msp-tabs a {
	padding: 8px 12px; color: var(--msp-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.msp-app .msp-tabs a:hover { color: var(--msp-text); text-decoration: none; }
.msp-app .msp-tabs a.is-active { color: var(--msp-accent); border-bottom-color: var(--msp-accent); }

.msp-notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; border: 1px solid; font-size: 13.5px; }
.msp-notice-ok { color: var(--msp-ok); border-color: color-mix(in srgb, var(--msp-ok) 35%, transparent); background: color-mix(in srgb, var(--msp-ok) 8%, var(--msp-surface)); }
.msp-notice-warn { color: var(--msp-minor); border-color: color-mix(in srgb, var(--msp-minor) 35%, transparent); background: color-mix(in srgb, var(--msp-minor) 8%, var(--msp-surface)); }

/* ---------- Status ---------- */
.msp-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--msp-unknown); }
.msp-dot-ok { background: var(--msp-ok); }
.msp-dot-minor { background: var(--msp-minor); }
.msp-dot-major { background: var(--msp-major); box-shadow: 0 0 0 3px color-mix(in srgb, var(--msp-major) 22%, transparent); }
.msp-dot-maintenance { background: var(--msp-maint); }
.msp-text-ok { color: var(--msp-ok); }
.msp-text-minor { color: var(--msp-minor); }
.msp-text-major { color: var(--msp-major); }
.msp-text-maintenance { color: var(--msp-maint); }
.msp-text-unknown { color: var(--msp-unknown); }

.msp-status-list { list-style: none; margin: 0; padding: 0; }
.msp-status-list li {
	border-bottom: 1px solid var(--msp-border); font-size: 13.5px;
}
.msp-status-list summary { display: grid; grid-template-columns: auto 120px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; }
.msp-vfold summary { cursor: pointer; list-style: none; }
.msp-vfold summary::-webkit-details-marker { display: none; }
.msp-status-list summary::after, .msp-vendor-top::after { content: ''; width: 7px; height: 7px; border: solid var(--msp-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.2s; }
.msp-vfold[open] summary::after, .msp-vfold[open] .msp-vendor-top::after { transform: rotate(225deg); }
.msp-status-list summary::after, .msp-vendor summary::after { flex: none; }
.msp-vendor summary::after { content: none; }
.msp-status-list .msp-incidents { margin-bottom: 8px; }
.msp-status-list li:last-child { border-bottom: 0; }
.msp-status-name { font-weight: 600; }
.msp-status-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.msp-status-level { font-size: 12.5px; font-weight: 600; }

.msp-board { display: flex; flex-direction: column; gap: 12px; }
.msp-overall {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--msp-radius);
	border: 1px solid var(--msp-border); background: var(--msp-surface);
}
.msp-overall strong { font-weight: 600; }
.msp-overall [data-msp-updated] { margin-left: auto; }
.msp-overall-minor { border-color: color-mix(in srgb, var(--msp-minor) 40%, var(--msp-border)); }
.msp-overall-major { border-color: color-mix(in srgb, var(--msp-major) 45%, var(--msp-border)); }
.msp-overall-maintenance { border-color: color-mix(in srgb, var(--msp-maint) 40%, var(--msp-border)); }
.msp-vendors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.msp-vendor {
	display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px 16px; border-radius: var(--msp-radius);
	background: var(--msp-surface); border: 1px solid var(--msp-border); box-shadow: var(--msp-shadow);
}
.msp-vendor-top { display: flex; align-items: center; gap: 8px; }
.msp-vendor-name { font-weight: 600; }
.msp-vendor-level { margin-left: auto; font-size: 12px; font-weight: 600; }
.msp-vendor-sum { margin: 0; font-size: 13px; color: var(--msp-muted); }
.msp-incidents { list-style: none; margin: 2px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--msp-border); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.msp-incidents li { margin: 0; }
.msp-vendor-link { margin-top: auto; padding-top: 4px; font-size: 12.5px; }
.msp-panel .msp-overall, .msp-panel .msp-vendor { box-shadow: none; }
.msp-panel .msp-vendor { background: var(--msp-surface-2); }

.msp-provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
@media (max-width: 600px) { .msp-provider-grid { grid-template-columns: 1fr; } }
.msp-provider { margin: 0; }
.msp-provider-head { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 15px; float: left; width: 100%; margin-bottom: 4px; }
.msp-provider-head + * { clear: both; }
.msp-provider-head span:last-child { margin-left: auto; font-size: 12.5px; font-weight: 600; }

/* ---------- Front end ---------- */
.msp-front { max-width: 1100px; margin: 0 auto; padding: 24px; background: var(--msp-bg); border-radius: 16px; }
@media (max-width: 600px) { .msp-front { padding: 16px; border-radius: 12px; } }
.msp-login.msp-front { background: transparent; padding: 0; }
.msp-front .msp-panel-head h3 { font-size: 15px; }

.msp-login { max-width: 400px; }
.msp-login-card {
	background: var(--msp-surface); border: 1px solid var(--msp-border); border-radius: 14px; padding: 28px;
	box-shadow: 0 10px 30px -12px rgb(40 10 90 / 0.18);
}
.msp-login-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.msp-login-card .msp-title { margin-bottom: 4px; }
.msp-login-main > .msp-muted { margin: 0 0 18px; }
.msp-login form p { margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.msp-login form label { font-size: 12.5px; font-weight: 550; }
.msp-login form .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.msp-login form .login-remember input { accent-color: var(--msp-accent); }
.msp-login form input[type="submit"] {
	width: 100%; height: 38px; border-radius: 8px; border: 0; background: var(--msp-accent); color: var(--msp-on-accent);
	font: inherit; font-weight: 600; cursor: pointer;
}
.msp-login form input[type="submit"]:hover { background: var(--msp-accent-hover); }

@media (max-width: 600px) {
	.msp-status-list summary { grid-template-columns: auto 1fr auto auto; }
	.msp-status-sum { display: none; }
	.msp-panel { padding: 16px; }
	.msp-table th, .msp-table td { padding: 9px 10px; }
	.msp-table th:first-child, .msp-table td:first-child { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.msp-app * { transition: none !important; }
}

/* ---------- Combobox, lookups, grouped fields ---------- */
.msp-combo { position: relative; display: flex; flex-direction: column; gap: 5px; }
.msp-combo-list {
	position: absolute; top: 38px; left: 0; right: 0; z-index: 50; max-height: 220px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
	background: var(--msp-surface); border: 1px solid var(--msp-border-strong); border-radius: 8px; box-shadow: 0 8px 24px rgb(20 10 40 / 0.18);
}
.msp-combo-list[hidden] { display: none; }
.msp-combo-list li { margin: 0; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; cursor: pointer; overflow-wrap: anywhere; }
.msp-combo-list li:hover, .msp-combo-list li[aria-selected="true"] { background: var(--msp-accent-soft); }
.msp-alerts li:has(.msp-alert-x) { display: flex; align-items: center; }
.msp-alerts li:has(.msp-alert-x) > a { flex: 1; min-width: 0; }
.msp-alerts .msp-inline { padding: 0 14px; }
.msp-role-area { padding: 8px 0; border-bottom: 1px solid var(--msp-border); }
.msp-role-pages { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 4px 0 2px 26px; }
.msp-role-perms { display: grid; gap: 6px; padding: 2px 0 4px; }
.msp-combo-add { color: var(--msp-accent); font-weight: 600; }
.msp-fields-head { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--msp-border); font-size: 13.5px; font-weight: 600; color: var(--msp-text); }
.msp-lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.msp-lookup-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; }
.msp-app .msp-lookup-form input { flex: 1 1 160px; width: auto; }
details.msp-panel > summary { cursor: pointer; }
.msp-front .msp-head-actions { flex-wrap: wrap; }
.msp-actions > .msp-inline + .msp-inline, .msp-actions > a + .msp-inline { margin-left: 10px; }

/* ---------- Portal shell ---------- */
.msp-shell { display: grid; min-height: calc(100vh - 66px); margin: 0 auto; }
.msp-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.msp-main { padding: 28px clamp(16px, 3vw, 36px) 64px; min-width: 0; }
.msp-main .msp-head { margin-bottom: 22px; }
.msp-main .msp-head h1 { font-size: 24px; line-height: 1.2; }
.msp-main .msp-panel.msp-scroll { overflow-x: auto; }
.msp-main .msp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.msp-main .msp-provider-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.msp-app [hidden] { display: none !important; }
.msp-seg { display: inline-flex; padding: 3px; gap: 2px; margin-bottom: 8px; border: 1px solid var(--msp-border-strong); border-radius: 10px; }
.msp-seg button { padding: 6px 14px; border: 0; border-radius: 7px; background: none; color: var(--msp-muted); font: inherit; font-weight: 550; cursor: pointer; }
.msp-seg button[aria-pressed="true"] { background: var(--msp-accent-soft); color: var(--msp-accent); }
.msp-portal-page .msp-login.msp-front { padding: clamp(40px, 8vw, 96px) 16px; margin: 0 auto; max-width: 440px; }
.msp-portal-page main { margin-block-start: 0; }
.msp-portal-page .site-footer { margin-block-start: 0; }

/* ---------- Sites, domains, messages ---------- */
.msp-site .msp-panel-head { align-items: flex-start; }
.msp-site .msp-empty { padding: 0 !important; }
.msp-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px 24px; }
.msp-site-block h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--msp-accent); }
.msp-site-block ul { list-style: none; margin: 0; padding: 0; }
.msp-site-block li { padding: 6px 0; border-top: 1px solid var(--msp-border); font-size: 13.5px; overflow-wrap: anywhere; }
.msp-site-block li strong { font-weight: 550; }
.msp-site-block li .msp-small { display: block; }
.msp-rowform { display: flex; gap: 6px; margin: 0; align-items: center; }
.msp-app .msp-rowform select { width: auto; min-width: 120px; max-width: 220px; }
.msp-wrap { overflow-wrap: anywhere; min-width: 180px; }
.msp-chip + .msp-chip { margin-left: 4px; }
.msp-incident-msg { margin: 4px 0 6px; color: var(--msp-muted); }
.msp-toolbar .msp-check { min-height: 34px; }

/* ---------- Customer record ---------- */
.msp-subline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -14px 0 18px; color: var(--msp-muted); font-size: 13.5px; }
.msp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.msp-app .msp-pills a { padding: 4px 12px; border: 1px solid var(--msp-border-strong); border-radius: 999px; font-size: 13px; color: var(--msp-muted); }
.msp-app .msp-pills a:hover { color: var(--msp-text); text-decoration: none; }
.msp-app .msp-pills a.is-active { background: var(--msp-accent-soft); border-color: var(--msp-accent); color: var(--msp-accent); font-weight: 600; }
.msp-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--msp-surface-2); color: var(--msp-muted); font-size: 11.5px; font-weight: 600; line-height: 18px; text-align: center; }
.msp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.msp-app .msp-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); background: var(--msp-surface); color: var(--msp-text); }
.msp-app .msp-card:hover { border-color: var(--msp-accent); text-decoration: none; color: var(--msp-text); }
.msp-card span, .msp-card em { font-size: 12px; color: var(--msp-muted); font-style: normal; }
.msp-card strong { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.msp-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .msp-split { grid-template-columns: minmax(0, 1fr); } }
.msp-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13.5px; }
.msp-facts dt { color: var(--msp-muted); }
.msp-facts dd { margin: 0; overflow-wrap: anywhere; }
.msp-notices { list-style: none; margin: 0; padding: 0; }
.msp-n { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0 10px 12px; border-left: 3px solid var(--msp-unknown); margin-bottom: 8px; background: linear-gradient(90deg, var(--msp-surface-2), transparent); border-radius: 0 8px 8px 0; }
.msp-n-major { border-color: var(--msp-major); }
.msp-n-warn { border-color: var(--msp-minor); }
.msp-n-info { border-color: var(--msp-maint); }
.msp-n-body { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.msp-app .msp-n-body a, .msp-n-body strong { font-weight: 600; color: var(--msp-text); }
.msp-n-who { font-size: 12px; font-weight: 600; color: var(--msp-accent); }
.msp-n-act { flex: none; display: flex; align-items: flex-start; gap: 10px; padding-right: 8px; }
.msp-n-act .msp-link { color: var(--msp-muted); font-size: 12.5px; }
.msp-pin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msp-app .msp-pin input[type="text"] { flex: 1 1 220px; width: auto; }
.msp-app .msp-pin input[type="date"] { width: auto; }
@media (max-width: 600px) { .msp-n { flex-direction: column; gap: 6px; } }
.msp-netgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.msp-net { padding: 16px; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); background: var(--msp-surface-2); }
.msp-net header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.msp-net footer { display: flex; gap: 12px; margin-top: 12px; }
.msp-speed { display: flex; align-items: baseline; gap: 5px; margin: 0 0 12px; }
.msp-speed b { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.msp-speed span { margin-right: 12px; font-size: 12px; color: var(--msp-muted); }
.msp-links { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.msp-linkrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 14px; border: 1px dashed var(--msp-border-strong); border-radius: 8px; font-size: 13.5px; }
.msp-linkrow .msp-actions { display: flex; align-items: center; }
.msp-menu { position: relative; }
.msp-menu summary { list-style: none; }
.msp-menu summary::-webkit-details-marker { display: none; }
.msp-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 250px; padding: 6px; background: var(--msp-surface); border: 1px solid var(--msp-border-strong); border-radius: 12px; box-shadow: 0 16px 40px -12px rgb(20 10 40 / 0.4); }
.msp-app .msp-menu > div a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--msp-text); }
.msp-app .msp-menu > div a:hover { background: var(--msp-accent-soft); text-decoration: none; }
.msp-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0 22px 22px; border: 1px solid var(--msp-border-strong); border-radius: 14px; background: var(--msp-surface); color: var(--msp-text); overflow-y: auto; }
.msp-dialog:not([open]) { display: none; }
.msp-dialog::backdrop { background: rgb(8 6 14 / 0.6); }
.msp-dialog > header { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; margin: 0 -22px 16px; padding: 14px 22px; background: var(--msp-surface); border-bottom: 1px solid var(--msp-border); }
.msp-dialog > header h2 { margin: 0; font-size: 16px; }
.msp-app .msp-x { font-size: 22px; line-height: 1; color: var(--msp-muted); text-decoration: none; }
.msp-option + .msp-option { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--msp-border); }
.msp-option h3 { margin: 0; font-size: 14px; }
.msp-option > .msp-help { margin: 2px 0 12px; }
.msp-more { margin-top: 18px; }
.msp-more > summary { cursor: pointer; font-weight: 600; color: var(--msp-accent); }
.msp-crumb { margin: 0 0 10px; }
.msp-h2 { margin: 0 0 12px; font-size: 17px; }
.msp-linklist { display: flex; flex-direction: column; gap: 6px; margin: 0; }

.msp-zones { list-style: none; margin: 10px 0 0; padding: 0; }
.msp-zones li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--msp-border); }
.msp-zones .msp-btn { margin-left: auto; }
.msp-actions .msp-btn + .msp-inline { margin-left: 10px; }

/* ---------- Sign-in ---------- */
.msp-login-links { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.msp-login input[readonly] { opacity: 0.75; }

/* ---------- User management ---------- */
.msp-app .msp-plus { width: 36px; padding: 0; font-size: 22px; line-height: 1; }
.msp-users td { vertical-align: middle; }
.msp-users .msp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.msp-users .msp-actions > * + * { margin-left: 0; }
.msp-rowmenu summary { font-size: 18px; line-height: 1; padding: 2px 6px; }
.msp-rowmenu > div { width: 210px; text-align: left; }
.msp-rowmenu form { display: block; }
.msp-rowmenu form + form { margin-left: 0 !important; }
.msp-rowmenu .msp-link { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--msp-text); }
.msp-rowmenu .msp-link:hover { background: var(--msp-accent-soft); text-decoration: none; }
.msp-rowmenu .msp-link-danger { color: var(--msp-major); }
.msp-main .msp-panel-flush:has(.msp-users) { overflow: visible; }
.msp-clear { align-self: center; }
.msp-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 16px; }
.msp-kinds label { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--msp-border-strong); border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.msp-kinds label:has(:checked) { border-color: var(--msp-accent); background: var(--msp-accent-soft); font-weight: 600; }
.msp-check-result { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--msp-muted); }
.msp-check-result.is-found { color: var(--msp-ok); }
.msp-check-result.is-unknown, .msp-check-result.is-invalid { color: var(--msp-minor); }
.msp-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; padding: 0; border: 0; font-size: 13.5px; }
.msp-app .msp-ticks input, .msp-app .msp-kinds input { accent-color: var(--msp-accent); margin: 0 4px 0 0; }
.msp-dialog [data-for] { margin-top: 14px; }
.msp-dialog [data-for] [data-for] { margin-top: 0; }
.msp-temp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--msp-border); }
.msp-switch { margin: 0 0 14px; }
.msp-users { table-layout: fixed; }
.msp-users th:nth-child(1) { width: 32%; }
.msp-users th:nth-child(3) { width: 130px; }
.msp-users th:nth-child(4) { width: 130px; }
.msp-users th:nth-child(5) { width: 120px; }
.msp-users td { overflow-wrap: anywhere; }
.msp-users .msp-actions { display: table-cell; }
.msp-users .msp-actions > * { display: inline-block; vertical-align: middle; }
.msp-users .msp-actions > * + * { margin-left: 10px; }
@media (max-width: 760px) { .msp-users th:nth-child(4), .msp-users td:nth-child(4) { display: none; } .msp-users th:nth-child(3) { width: 100px; } .msp-users th:nth-child(5) { width: 90px; } }

/* ---------- Microsoft 365 fill and picker ---------- */
.msp-m365 { margin: 0 0 18px; }
div.msp-m365 { padding: 14px 16px; border: 1px dashed var(--msp-border-strong); border-radius: 10px; }
.msp-m365 h3 { margin: 0 0 8px; font-size: 14px; }
.msp-m365-row { display: flex; flex-wrap: wrap; gap: 8px; }
.msp-app .msp-m365-row input { flex: 1 1 240px; width: auto; max-width: 420px; }
.msp-m365 .msp-check-result { margin: 8px 0 0; }
.msp-m365 [data-found] { margin-top: 10px; max-width: 420px; }
.msp-m365 .msp-field span { font-size: 12.5px; font-weight: 550; }
.msp-pick { max-height: 300px; overflow-y: auto; margin: 10px 0 16px; border: 1px solid var(--msp-border); border-radius: 10px; }
.msp-pick label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--msp-border); font-size: 13.5px; cursor: pointer; }
.msp-pick label:first-child { border-top: 0; }
.msp-pick label:hover { background: var(--msp-accent-soft); }
.msp-pick small { display: block; color: var(--msp-muted); font-size: 12px; }
.msp-app .msp-pick input { accent-color: var(--msp-accent); margin: 0; }

.msp-fields-gap { margin-top: 14px; }
.msp-perms { list-style: none; margin: 8px 0 14px; padding: 0; }
.msp-perms li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 0; }

/* ---------- Microsoft 365 users, devices, licences ---------- */
.msp-tabhead .msp-panel-head { margin-bottom: 12px; }
.msp-acc > summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.msp-acc > summary::-webkit-details-marker { display: none; }
.msp-acc > summary:hover { background: var(--msp-surface-2); }
.msp-acc > summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(-90deg); transition: transform 0.15s; }
.msp-acc[open] > summary svg { transform: none; }
.msp-acc-body { border-top: 1px solid var(--msp-border); }
.msp-acc-tools { margin: 0; padding: 12px 20px; }
.msp-acc-note { padding: 10px 20px; }
.msp-more-row { margin: 0; padding: 12px 20px; text-align: center; }
.msp-main .msp-panel-flush:has(.msp-m365t) { overflow: visible; }
.msp-m365t { table-layout: fixed; }
.msp-m365t th:nth-child(1) { width: 27%; }
.msp-m365t th:nth-child(4) { width: 110px; }
.msp-m365t th:nth-child(5) { width: 64px; }
.msp-m365t td { overflow-wrap: anywhere; vertical-align: middle; }
.msp-m365t tr[data-item] { cursor: pointer; }
.msp-m365t .msp-link.msp-strong { color: var(--msp-text); font-size: 13.5px; text-align: left; }
.msp-rowmenu button.msp-link { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--msp-text); }
.msp-rowmenu button.msp-link:hover { background: var(--msp-accent-soft); text-decoration: none; }
.msp-lics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; padding: 18px 20px; }
.msp-lic { padding: 14px 16px; border: 1px solid var(--msp-border); border-radius: 10px; background: var(--msp-surface-2); }
.msp-lic header { display: flex; justify-content: space-between; gap: 8px; min-height: 40px; }
.msp-lic footer { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; }
.msp-bar { height: 6px; border-radius: 999px; background: var(--msp-border); overflow: hidden; }
.msp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--msp-accent); }
.msp-bar i.is-full { background: var(--msp-ok); }
.msp-bar i.is-over { background: var(--msp-major); }
.msp-sub-acc { border-top: 1px solid var(--msp-border); padding: 10px 20px; }
.msp-sub-acc summary { cursor: pointer; font-size: 13.5px; font-weight: 550; color: var(--msp-muted); }
.msp-sub-acc ul { list-style: none; margin: 8px 0 4px; padding: 0; }
.msp-sub-acc li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.msp-u-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.msp-u-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.msp-u-confirm { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--msp-minor); border-radius: 10px; }
.msp-u-confirm p { margin: 0; }
.msp-app .msp-btn-danger { background: var(--msp-major); border-color: var(--msp-major); color: #fff; }
.msp-app .msp-btn-danger:hover { background: var(--msp-major); border-color: var(--msp-major); color: #fff; filter: brightness(0.9); }
.msp-u-h { margin: 20px 0 8px; font-size: 14px; }
.msp-u-lics, .msp-u-log { list-style: none; margin: 0; padding: 0; }
.msp-u-lics li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--msp-border); font-size: 13.5px; }
.msp-u-lics button[disabled] { color: var(--msp-muted); cursor: default; }
.msp-u-log li { padding: 5px 0; font-size: 12.5px; color: var(--msp-muted); }
.msp-u-pw { display: flex; gap: 12px; align-items: center; }
.msp-u-pw code { padding: 6px 10px; border-radius: 6px; background: var(--msp-surface); color: var(--msp-text); font-size: 15px; user-select: all; }
.msp-dialog .msp-notice p { margin: 0 0 6px; }
@media (max-width: 760px) { .msp-m365t th:nth-child(3), .msp-m365t td:nth-child(3) { display: none; } .msp-m365t th:nth-child(1) { width: 34%; } .msp-m365t th:nth-child(4) { width: 88px; } .msp-m365t th:nth-child(5) { width: 48px; } }
.msp-lic header { flex-wrap: wrap; align-items: flex-start; }
.msp-lic .msp-badge { font-size: 11.5px; }

/* ---------- Requests ---------- */
.msp-app .msp-req form input[type="text"] { margin-top: 10px; max-width: 520px; }
.msp-req .msp-facts { margin-bottom: 12px; }

.msp-main .msp-panel-save { overflow: visible; padding: 0; }
.msp-panel-save > .msp-scroll { border-radius: var(--msp-radius) var(--msp-radius) 0 0; }
.msp-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--msp-border); border-radius: 0 0 var(--msp-radius) var(--msp-radius); background: var(--msp-surface); }
.msp-app .msp-savebar .msp-btn:disabled { opacity: .5; cursor: default; }

/* ---------- Phones ---------- */
.msp-subtabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--msp-border); }
.msp-app .msp-subtabs button { padding: 8px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--msp-muted); font: inherit; font-weight: 500; cursor: pointer; }
.msp-app .msp-subtabs button:hover { color: var(--msp-text); }
.msp-app .msp-subtabs button[aria-selected="true"] { color: var(--msp-accent); border-bottom-color: var(--msp-accent); }
.msp-main .msp-panel-flush:has(.msp-phonest) { overflow: visible; }
.msp-phonest td { vertical-align: middle; }
@media (max-width: 640px) { .msp-phonest th:nth-child(4), .msp-phonest td:nth-child(4) { display: none; } }
.msp-calls-bar { padding: 4px 20px 0; }
.msp-calls td { font-size: 13.5px; }
.msp-nowrap { white-space: nowrap; }

/* ---------- Seamless pages, undo and the audit log ---------- */
.msp-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; overflow: hidden; }
.msp-progress[hidden] { display: none; }
.msp-progress::before { content: ""; position: absolute; inset: 0; background: #a68bfa; transform-origin: left; animation: msp-progress 1.6s ease-out infinite; animation-delay: .12s; transform: scaleX(0); }
@keyframes msp-progress { from { transform: scaleX(0); } 70% { transform: scaleX(.8); } to { transform: scaleX(.95); } }
@media (prefers-reduced-motion: reduce) { .msp-progress::before { animation: none; transform: scaleX(.6); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
.msp-main h1:focus { outline: none; }
.msp-main .msp-panel-flush:has(.msp-audit) { overflow: visible; }
.msp-audit td { vertical-align: top; }
.msp-audit h4 { margin: 10px 0 4px; font-size: 13px; }
.msp-diff { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: 12.5px; }
.msp-diff dt { color: var(--msp-muted); }
.msp-diff dd { margin: 0; overflow-wrap: anywhere; }
.msp-diff del { color: var(--msp-major); }
.msp-diff ins { color: var(--msp-ok); text-decoration: none; }

/* ---------- Icon rail and its pages ---------- */
.msp-app.msp-shell { grid-template-columns: 84px 206px minmax(0, 1fr); max-width: none; align-items: start; }
.msp-rail, .msp-sub { position: sticky; top: 0; box-sizing: border-box; height: 100vh; overflow-y: auto; border-right: 1px solid var(--msp-border); scrollbar-width: thin; }
.msp-rail { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--msp-surface); }
.msp-app .msp-rail a { position: relative; display: grid; justify-items: center; gap: 5px; padding: 10px 2px 8px; border-radius: 10px; color: var(--msp-muted); font-size: 11px; font-weight: 550; line-height: 1.2; text-align: center; }
.msp-app .msp-rail a:hover { background: var(--msp-surface-2); color: var(--msp-text); text-decoration: none; }
.msp-app .msp-rail a.is-open { background: var(--msp-surface-2); color: var(--msp-text); }
.msp-app .msp-rail a.is-active { background: var(--msp-accent-soft); color: var(--msp-accent); }
.msp-rail .msp-icon { width: 22px; height: 22px; }
.msp-rail span { max-width: 100%; overflow-wrap: anywhere; }
.msp-rail-count { position: absolute; top: 5px; right: 12px; min-width: 17px; padding: 0 4px; border-radius: 999px; background: var(--msp-accent); color: var(--msp-on-accent); font-size: 10.5px; line-height: 17px; }
.msp-app .msp-rail .msp-rail-you { margin-top: auto; }
.msp-sub { display: flex; flex-direction: column; padding: 20px 12px 14px; }
.msp-sub-head { margin: 0 10px 10px; font-size: 15px; font-weight: 650; }
.msp-app .msp-sub a { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 1px 0; padding: 7px 10px; border-radius: 8px; color: var(--msp-muted); font-size: 13.5px; font-weight: 500; }
.msp-app .msp-sub a:hover { background: var(--msp-surface-2); color: var(--msp-text); text-decoration: none; }
.msp-app .msp-sub a.is-active { background: var(--msp-accent-soft); color: var(--msp-accent); font-weight: 600; }
.msp-app .msp-fold { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--msp-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.msp-app .msp-fold:hover { background: var(--msp-surface-2); color: var(--msp-text); }
.msp-fold .msp-icon { width: 16px; height: 16px; }
.msp-shell > .msp-main { box-sizing: border-box; width: 100%; max-width: 1440px; margin: 0 auto; }
@media (min-width: 861px) {
	.msp-app.msp-shell.is-folded { grid-template-columns: 84px minmax(0, 1fr); position: relative; }
	.is-folded > .msp-sub { display: none; }
	.is-folded.is-peek > .msp-sub { display: flex; position: fixed; left: 84px; z-index: 45; width: 220px; background: var(--msp-surface); box-shadow: 18px 0 40px -18px rgb(20 10 40 / 0.4); }
	.is-folded .msp-fold .msp-icon { transform: scaleX(-1); }
}
.msp-tabbar-more { display: none; }
.msp-subnav, .msp-back { display: none; }
@media (max-width: 860px) {
	/* The website's own header and footer step aside: the portal is an app here. */
	body:has([data-msp-nav]) .wp-site-blocks > header, body:has([data-msp-nav]) .wp-site-blocks > footer, body:has([data-msp-nav]) .site-header, body:has([data-msp-nav]) .site-footer { display: none; }
	body:has([data-msp-nav]) { overscroll-behavior-y: none; }
	.msp-app.msp-shell { display: block; min-height: 100vh; min-height: 100dvh; background: var(--msp-bg); -webkit-tap-highlight-color: transparent; font-size: 15px; }
	.msp-main { padding: 0 16px calc(150px + env(safe-area-inset-bottom)); }

	/* Tab bar */
	.msp-rail { position: fixed; inset: auto 0 0 0; z-index: 46; flex-direction: row; gap: 0; width: 100%; height: auto; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow: hidden; border-right: 0; border-top: 1px solid var(--msp-border); background: color-mix(in srgb, var(--msp-surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
	.msp-app .msp-rail > a, .msp-app .msp-tabbar-more { position: relative; display: grid; justify-items: center; flex: 1 1 0; min-width: 0; gap: 3px; margin: 0; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--msp-muted); font: inherit; font-size: 11px; font-weight: 550; line-height: 1.2; text-align: center; cursor: pointer; }
	.msp-app .msp-rail > a:nth-of-type(n + 5), .msp-app .msp-rail > .msp-rail-you { display: none; }
	.msp-app .msp-rail > a.is-open, .msp-app .msp-rail > a.is-active, .msp-app .msp-tabbar-more.is-active { background: none; }
	.msp-app .msp-rail > a.is-open:not(.is-active) { color: var(--msp-muted); }
	.msp-app .msp-rail > a.is-active, .msp-app .msp-tabbar-more.is-active { color: var(--msp-accent); }
	.msp-rail > a .msp-icon, .msp-tabbar-more .msp-icon { box-sizing: content-box; width: 23px; height: 23px; padding: 4px 18px; border-radius: 999px; transition: background-color .15s; }
	.msp-rail > a.is-active .msp-icon, .msp-tabbar-more.is-active .msp-icon { background: var(--msp-accent-soft); }
	.msp-rail > a span, .msp-tabbar-more span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.msp-rail-count { top: 2px; right: calc(50% - 24px); }
	.msp-shell > .msp-sub { display: none; }
	.msp-portal-page { padding-bottom: 0; }

	/* App bar: the title stays, its buttons scroll away */
	.msp-main .msp-admin > .msp-head { display: contents; }
	.msp-main .msp-admin > .msp-head h1 { position: sticky; top: var(--wp-admin--admin-bar--position-offset, 0px); z-index: 30; display: flex; align-items: center; gap: 4px; margin: 0 -16px 12px; padding: calc(13px + env(safe-area-inset-top)) 16px 13px; border-bottom: 1px solid var(--msp-border); background: color-mix(in srgb, var(--msp-surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
	.msp-app .msp-back { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: -10px 0 -10px -12px; border-radius: 50%; color: var(--msp-accent); }
	.msp-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
	.msp-main .msp-admin > .msp-head .msp-head-actions { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
	.msp-main .msp-admin > .msp-head .msp-head-actions > * { flex: none; margin-bottom: 12px; }
	.msp-main .msp-admin > .msp-head .msp-head-actions:empty { display: none; }
	/* The main button floats within reach */
	.msp-app .msp-admin > .msp-head .msp-head-actions > a.msp-btn:not(.msp-btn-ghost):last-of-type { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; height: 52px; margin: 0; padding: 0 22px; border-radius: 18px; font-size: 15px; font-weight: 650; box-shadow: 0 10px 26px -8px rgb(40 10 90 / .55); }
	body:has(.msp-bulk:not([hidden])) .msp-admin > .msp-head .msp-head-actions > a.msp-btn:not(.msp-btn-ghost) { display: none !important; }

	.msp-main .msp-front-head { padding-top: calc(18px + env(safe-area-inset-top)); }
	.msp-main > .msp-notice { margin: calc(12px + env(safe-area-inset-top)) 0 12px; }

	/* Rows of pages, tabs and filters slide sideways */
	.msp-subnav { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
	.msp-app .msp-subnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--msp-surface-2); color: var(--msp-muted); font-size: 14px; font-weight: 550; }
	.msp-app .msp-subnav a.is-active { background: var(--msp-accent); color: var(--msp-on-accent); }
	.msp-main .msp-tabs, .msp-main .msp-pills, .msp-main .msp-subtabs { flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
	.msp-main .msp-panel .msp-subtabs, .msp-main .msp-panel .msp-pills { margin-inline: 0; }
	.msp-main .msp-tabs a, .msp-main .msp-pills a, .msp-main .msp-subtabs button { flex: none; white-space: nowrap; }
	.msp-app .msp-tabs a { padding-block: 11px; font-size: 14.5px; }
	.msp-app .msp-pills a { padding: 8px 14px; font-size: 14px; }
	.msp-subnav::-webkit-scrollbar, .msp-tabs::-webkit-scrollbar, .msp-pills::-webkit-scrollbar, .msp-subtabs::-webkit-scrollbar, .msp-head-actions::-webkit-scrollbar { display: none; }

	/* Touch sizes; 16px text stops phones zooming in on fields */
	.msp-app .msp-btn { height: 46px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
	.msp-app input[type="text"], .msp-app input[type="email"], .msp-app input[type="tel"], .msp-app input[type="url"], .msp-app input[type="number"], .msp-app input[type="date"], .msp-app input[type="time"], .msp-app input[type="datetime-local"], .msp-app input[type="password"], .msp-app input[type="search"], .msp-app select, .msp-app textarea { min-height: 48px; padding-block: 10px; border-radius: 12px; font-size: 16px; }
	.msp-app textarea { min-height: 110px; }
	.msp-app input[type="checkbox"], .msp-app input[type="radio"] { width: 20px; height: 20px; }
	.msp-check { min-height: 44px; font-size: 15px; }
	.msp-field > label { font-size: 13.5px; }
	.msp-help { font-size: 13px; }
	.msp-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.msp-form-actions { flex-wrap: wrap; }
	.msp-form-actions > .msp-btn { flex: 1 1 auto; }
	.msp-link { font-size: 15px; }
	.msp-toolbar input[type="search"] { flex: 1 1 100%; max-width: none; }
	.msp-app .msp-toolbar select { flex: 1 1 140px; }

	/* Panels, stats and rows */
	.msp-panel { margin-bottom: 14px; padding: 16px; border-radius: 16px; box-shadow: none; }
	.msp-panel-flush, .msp-main .msp-panel-save { padding: 0; }
	.msp-panel-flush > .msp-panel-head { padding: 16px 16px 0; }
	.msp-panel-head { flex-wrap: wrap; }
	.msp-panel-head h2, .msp-panel-head h3 { font-size: 16px; }
	.msp-stats, .msp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.msp-stat, .msp-app .msp-card { border-radius: 16px; box-shadow: none; }
	.msp-split { gap: 0; }
	.msp-app .msp-rowmenu summary { padding: 10px 12px; }
	.msp-rowmenu .msp-link, .msp-rowmenu button.msp-link { padding: 12px; }
	.msp-table.is-cards, .msp-table.is-cards tbody, .msp-table.is-cards tfoot, .msp-table.is-cards tr, .msp-table.is-cards td, .msp-table.is-cards tfoot th { display: block; width: auto; }
	.msp-table.is-cards thead { display: none; }
	.msp-table.is-cards tr { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--msp-border); }
	.msp-table.is-cards tbody:last-child tr:last-child { border-bottom: 0; }
	.msp-table.is-cards td, .msp-table.is-cards tfoot th { padding: 3px 0 !important; border: 0; background: none; text-align: left !important; white-space: normal; overflow-wrap: anywhere; font-size: 14.5px; }
	.msp-table.is-cards tbody tr:hover td { background: none; }
	.msp-table.is-cards td.is-blank { display: none; }
	.msp-table.is-cards td[data-label]:not(:first-child) { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: baseline; }
	.msp-table.is-cards td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--msp-muted); font-size: 13px; }
	.msp-table.is-cards td[data-label]:not(:first-child) > * { grid-column: 2; min-width: 0; }
	.msp-table.is-cards td.msp-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 8px !important; }
	.msp-table.is-cards td.msp-actions::before { display: none; }
	.msp-table.is-cards td.msp-actions > * { margin: 0 !important; }
	.msp-table.is-cards td:first-child .msp-strong { font-size: 15.5px; }
	.msp-main .msp-panel:has(.is-cards), .msp-main .msp-scroll:has(.is-cards) { overflow: visible; }

	/* Dialogs slide up from the bottom */
	.msp-app .msp-dialog, .msp-dialog { box-sizing: border-box; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; padding: 0 18px calc(20px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 22px 22px 0 0; overscroll-behavior: contain; }
	.msp-dialog[open] { animation: msp-up .22s cubic-bezier(.2, .8, .2, 1); }
	.msp-dialog > header { margin: 0 -18px 14px; padding: 18px 18px 12px; }
	.msp-dialog > header::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--msp-border-strong); }
	.msp-dialog > header h2 { font-size: 18px; }
	.msp-app .msp-x { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; font-size: 26px; }

	/* Bars sit above the tab bar */
	.msp-app .msp-savebar { bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 20; }
	.msp-bulk { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; transform: none; }
	.msp-app .msp-bulk select { flex: 1 1 100px; min-width: 0; }
}
@keyframes msp-up { from { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .msp-dialog[open] { animation: none; } }
.msp-more-list { display: grid; gap: 2px; margin: 0 0 14px; }
.msp-more-list h3 { margin: 8px 4px 4px; font-size: 13px; font-weight: 600; color: var(--msp-muted); }
.msp-app .msp-more-list a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--msp-surface-2); color: var(--msp-text); font-size: 15.5px; }
.msp-app .msp-more-list a.is-active { color: var(--msp-accent); font-weight: 600; }
.msp-app .msp-more-list a.msp-more-out { color: var(--msp-major); }
/* Networks (UniFi beta): a card per client, a section per console. */
.msp-stat.is-hot { border-color: color-mix(in srgb, var(--msp-minor) 45%, var(--msp-border)); }
.msp-stat.is-hot em { color: var(--msp-minor); }
a.msp-stat { color: var(--msp-text); text-decoration: none; }
a.msp-stat:hover { border-color: var(--msp-accent); text-decoration: none; }
.msp-net-rows .msp-row-main strong { white-space: normal; }
.msp-net-client { margin: 0 0 12px; padding: 0; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); background: var(--msp-surface); box-shadow: var(--msp-shadow); }
.msp-net-client > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--msp-text); list-style: none; }
.msp-net-client > summary::-webkit-details-marker { display: none; }
.msp-net-client > summary::after { content: ''; flex: none; width: 7px; height: 7px; border: solid var(--msp-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.2s; }
.msp-net-client[open] > summary::after { transform: rotate(-135deg); }
.msp-net-client > summary .msp-row-main strong { font-size: 16px; }
.msp-net-client > p { margin: 0 18px 10px; }
.msp-net-client .msp-inline { display: inline; }
.msp-net { border-top: 1px solid var(--msp-border); }
.msp-net[open] { padding-bottom: 18px; }
.msp-net > :not(summary) { margin-right: 18px; margin-left: 18px; }
.msp-net-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 30px; cursor: pointer; list-style: none; }
.msp-net-head::-webkit-details-marker { display: none; }
.msp-net-head::after { content: ''; flex: none; width: 6px; height: 6px; border: solid var(--msp-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 0.2s; }
.msp-net[open] > .msp-net-head::after { transform: rotate(45deg); }
.msp-net-head:hover { background: var(--msp-surface-2); }
.msp-net-head strong { font-size: 15px; font-weight: 600; }
.msp-net-head small { white-space: normal !important; }
.msp-net .msp-subline { margin: 2px 0 10px; color: var(--msp-muted); font-size: 13px; }
.msp-net > .msp-notice, .msp-net > .msp-warn, .msp-net > .msp-muted { margin: 0 0 6px; font-size: 13.5px; }
.msp-net h4 { margin: 16px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--msp-muted); }
.msp-net-rows { border: 1px solid var(--msp-border); border-radius: 10px; overflow: hidden; }
.msp-net-rows .msp-row { padding: 10px 14px; }
.msp-net-rows .msp-row-main small { white-space: normal; }
.msp-net-facts { margin-top: 14px; }
.msp-cog { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; }
/* Rows that open another page, as in Settings. */
.msp-setlist { display: grid; gap: 2px; margin: 0 0 16px; padding: 0; list-style: none; }
.msp-setlist li { margin: 0; }
.msp-setlist a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 12px; background: var(--msp-surface-2); color: var(--msp-text); text-decoration: none; }
.msp-setlist a:hover { background: var(--msp-accent-soft); }
.msp-setlist a > span:first-child { display: grid; flex: 1; min-width: 0; }
.msp-setlist strong { font-size: 15.5px; font-weight: 500; }
.msp-setlist small { color: var(--msp-muted); font-size: 13px; }
.msp-setlist a::after { content: ''; flex: none; width: 7px; height: 7px; border: solid var(--msp-muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }

/* ---------- Service desk ---------- */
.msp-hidden { display: none; }
.msp-app input[type="time"] { width: auto; min-height: 34px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--msp-border-strong); background: var(--msp-surface); color: var(--msp-text); font: inherit; font-size: 13.5px; }
.msp-hours { display: grid; gap: 8px; margin-bottom: 10px; }
.msp-hours > div { display: grid; grid-template-columns: 100px auto auto auto; gap: 10px; align-items: center; justify-content: start; }
.msp-picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 240px; padding: 6px 12px; overflow-y: auto; border: 1px solid var(--msp-border); border-radius: 8px; }
.msp-inline-add { display: flex; gap: 8px; margin-top: 8px; }
.msp-app .msp-inline-add input { flex: 1 1 auto; width: auto; min-width: 0; }
.msp-filters[open] { flex-basis: 100%; }
.msp-filters > summary { list-style: none; width: max-content; }
.msp-filters > summary::-webkit-details-marker { display: none; }
.msp-filters > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-top: 10px; }
.msp-filters label { display: grid; gap: 4px; font-size: 12.5px; color: var(--msp-muted); }
.msp-app .msp-filters select { width: 100%; }
.msp-saveview { margin: 0 0 14px; }
.msp-saveview > :not(summary) { margin-top: 10px; }
.msp-app .msp-pick { display: inline-flex; margin: 2px 10px 0 0; vertical-align: top; }
.msp-app .msp-pick input { margin: 0; accent-color: var(--msp-accent); }
.msp-bulk { position: fixed; bottom: 20px; left: 50%; z-index: 42; display: flex; align-items: center; gap: 10px; padding: 10px 14px; transform: translateX(-50%); border: 1px solid var(--msp-border-strong); border-radius: 14px; background: var(--msp-surface); box-shadow: 0 16px 40px -14px rgb(20 10 40 / .5); white-space: nowrap; }
.msp-app .msp-bulk select { width: auto; max-width: 260px; }
.msp-kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.msp-kcol { min-height: 180px; padding: 12px; border: 1px solid var(--msp-border); border-radius: 12px; background: var(--msp-surface-2); }
.msp-kcol.is-over { border-color: var(--msp-accent); background: var(--msp-accent-soft); }
.msp-kcol h2 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; }
.msp-app .msp-kcard { display: grid; gap: 4px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--msp-border); border-radius: 10px; background: var(--msp-surface); color: var(--msp-text); font-size: 13.5px; cursor: grab; overflow-wrap: anywhere; }
.msp-app .msp-kcard:hover { border-color: var(--msp-accent); text-decoration: none; }
.msp-kcard.is-held { opacity: .5; }
@media (max-width: 860px) {
	.msp-main .msp-kanban { grid-template-columns: repeat(4, 82vw); margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
	.msp-kcol { scroll-snap-align: start; }
	.msp-hours > div { grid-template-columns: 92px 1fr auto 1fr; gap: 6px; }
	.msp-app .msp-hours input[type="time"] { width: 100%; }
}

/* ---------- Documents ---------- */
.msp-doc-tags { padding: 0 20px; }
.msp-doc-ext { display: inline-block; min-width: 42px; margin-right: 10px; padding: 2px 6px; border-radius: 5px; background: var(--msp-surface-2); color: var(--msp-muted); font-size: 11px; font-weight: 700; text-align: center; }
.msp-doc-pdf { color: var(--msp-major); background: color-mix(in srgb, var(--msp-major) 12%, transparent); }
.msp-doc-doc, .msp-doc-docx { color: var(--msp-maint); background: color-mix(in srgb, var(--msp-maint) 12%, transparent); }
.msp-doc-xls, .msp-doc-xlsx, .msp-doc-csv { color: var(--msp-ok); background: color-mix(in srgb, var(--msp-ok) 12%, transparent); }
.msp-doc-ppt, .msp-doc-pptx { color: var(--msp-minor); background: color-mix(in srgb, var(--msp-minor) 12%, transparent); }
.msp-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.msp-doc-head h2 { flex: 1 1 240px; margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.msp-main .msp-doc-view { padding: 10px; }
.msp-doc-view iframe { display: block; width: 100%; height: min(78vh, 1000px); border: 0; border-radius: 6px; background: #fff; }
.msp-doc-view img { display: block; max-width: 100%; margin: 0 auto; border-radius: 6px; }
.msp-tagpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msp-app .msp-tagpick button { margin: 0; border: 1px solid var(--msp-border-strong); color: var(--msp-text); font: inherit; font-size: 12px; cursor: pointer; }
.msp-app .msp-tagpick button[aria-pressed="true"] { border-color: var(--msp-accent); background: var(--msp-accent-soft); color: var(--msp-accent); }
.msp-tagpick button::before { display: none; }

/* ---------- Tickets, jobs and calendar ---------- */
.msp-fields-one { grid-template-columns: minmax(0, 1fr); }
.msp-badge-major { color: var(--msp-major); background: color-mix(in srgb, var(--msp-major) 14%, transparent); }
.msp-plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.msp-checks { margin: 0; padding: 0; list-style: none; }
.msp-checks .msp-check { font-size: 14px; }
.msp-timeline { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.msp-tl { padding: 12px 14px; border: 1px solid var(--msp-border); border-radius: 10px; }
.msp-tl-note, .msp-tl-time { border-style: dashed; background: color-mix(in srgb, var(--msp-minor) 6%, transparent); }
.msp-tl-event { padding: 2px 14px; border-color: transparent; color: var(--msp-muted); }
.msp-tl-body { font-size: 14px; overflow-wrap: anywhere; }
.msp-tl-head + .msp-tl-body { margin-top: 6px; }
.msp-tl-event .msp-tl-head, .msp-tl-event .msp-tl-body { display: inline; margin: 0; font-size: 13px; }
.msp-tl-event .msp-tl-head { margin-right: 6px; }
.msp-tl-body + form, .msp-plain + form, .msp-linklist + form, .msp-form + .msp-facts, .msp-facts + .msp-linklist { margin-top: 14px; }
.msp-head-actions { flex-wrap: wrap; }
.msp-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.msp-files figure { margin: 0; width: 128px; font-size: 12px; }
.msp-files img, .msp-file-doc { display: grid; place-items: center; width: 128px; height: 96px; object-fit: cover; border: 1px solid var(--msp-border); border-radius: 8px; background: var(--msp-surface-2); }
.msp-files figcaption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msp-sign { display: grid; gap: 6px; justify-items: start; }
.msp-sign canvas { width: 100%; max-width: 640px; aspect-ratio: 900 / 260; border: 1px solid var(--msp-border-strong); border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.msp-signature { display: block; width: 100%; max-width: 420px; margin: 12px 0; border: 1px solid var(--msp-border); border-radius: 8px; background: #fff; }
.msp-sheet > header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--msp-border-strong); }
.msp-sheet h2 { margin: 2px 0 0; }
.msp-sheet h3 { margin: 20px 0 8px; font-size: 15px; }
.msp-sheet-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.msp-sheet-pics img { width: 100%; border-radius: 6px; }
.msp-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 28px; margin-top: 50px; }
.msp-lines span { padding-top: 4px; border-top: 1px solid currentColor; font-size: 12.5px; }
.msp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.msp-cal-title { align-self: center; min-width: 140px; text-align: center; }
.msp-cal-dow { padding: 8px 10px; color: var(--msp-muted); font-size: 12px; font-weight: 600; }
.msp-cal-day { min-height: 108px; padding: 6px; border-top: 1px solid var(--msp-border); border-left: 1px solid var(--msp-border); }
.msp-cal-day:nth-child(7n + 1) { border-left: 0; }
.msp-cal-day.is-out { opacity: .5; }
.msp-app .msp-cal-num { display: inline-block; min-width: 24px; padding: 1px 4px; border-radius: 6px; color: var(--msp-muted); font-size: 12.5px; text-align: center; }
.msp-app .is-today .msp-cal-num { background: var(--msp-accent); color: var(--msp-on-accent); font-weight: 700; }
.msp-cal-long { display: none; }
.msp-app .msp-cal-job { display: block; margin-top: 4px; padding: 4px 6px; border-left: 3px solid var(--msp-accent); border-radius: 5px; background: var(--msp-accent-soft); color: var(--msp-text); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.msp-app .msp-cal-job:hover { text-decoration: none; filter: brightness(1.05); }
.msp-cal-job span { display: block; color: var(--msp-muted); }
.msp-app .msp-cal-job.is-signed, .msp-app .msp-cal-job.is-done { border-left-color: var(--msp-ok); }
.msp-app .msp-cal-job.is-hold { border-left-color: var(--msp-minor); }
@media (max-width: 760px) {
	.msp-cal { display: block; }
	.msp-cal-dow, .msp-cal-day.is-empty:not(.is-today), .msp-cal-day.is-out { display: none; }
	.msp-cal-day { min-height: 0; padding: 10px 14px; border-left: 0; }
	.msp-cal-short { display: none; }
	.msp-cal-long { display: inline; }
	.msp-work th:nth-last-child(1):not(:nth-child(-n + 3)), .msp-work td:nth-last-child(1):not(:nth-child(-n + 3)) { white-space: nowrap; }
}
@media print {
	.msp-rail, .msp-sub, .msp-head, .wp-site-blocks > header, .wp-site-blocks > footer, header.wp-block-template-part, footer.wp-block-template-part, .msp-notice { display: none !important; }
	.msp-shell { display: block !important; }
	.msp-sheet { border: 0 !important; padding: 0 !important; background: #fff !important; color: #000 !important; }
	.msp-sheet * { color: #000 !important; }
	.msp-sheet img, .msp-sheet li { break-inside: avoid; }
}

/* ---------- Phone layout: app bar, tab bar with +, cards ---------- */
.msp-appbar, .msp-tabbar-add, .msp-segs { display: none; }
.msp-bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: inherit; }
.msp-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msp-bell b { position: absolute; top: 2px; right: 1px; min-width: 16px; padding: 0 4px; border-radius: 999px; background: #c0262d; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
@media (max-width: 860px) {
	.msp-app .msp-rail > a:nth-of-type(n + 4) { display: none; }
	.msp-rail > a:nth-of-type(-n + 2) { order: 1; }
	.msp-rail > a:nth-of-type(3) { order: 3; }
	.msp-app .msp-tabbar-more { order: 4; }
	.msp-app .msp-tabbar-add { order: 2; display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; margin: -12px 4px 0; padding: 0; border: 0; border-radius: 18px; background: linear-gradient(145deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 8px 20px -6px rgb(80 30 180 / .6); cursor: pointer; }
	.msp-tabbar-add svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
	.msp-rail { overflow: visible; }

	.msp-appbar { display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--msp-surface); }
	.msp-shell.is-inner .msp-appbar { display: none; }
	.msp-app .msp-appbar .msp-av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, #8b5cf6, #6d28d9); color: #fff; font-size: 13px; font-weight: 700; }
	.msp-app .msp-appbar .msp-find { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--msp-surface-2); color: var(--msp-muted); font-size: 15px; }
	.msp-find svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
	.msp-app .msp-appbar .msp-bell { flex: none; color: var(--msp-text); }

	/* Top pages: a big title that scrolls. Inner pages: a fixed bar. */
	.msp-shell:not(.is-inner) .msp-main .msp-admin > .msp-head h1 { position: static; margin: 0 -16px 4px; padding: 6px 16px 10px; border: 0; background: var(--msp-surface); font-size: 25px; font-weight: 750; letter-spacing: -.02em; }
	.msp-shell:not(.is-inner) .msp-main .msp-admin > .msp-head .msp-head-actions { margin-bottom: 4px; padding-top: 8px; }
	.msp-app .msp-admin > .msp-head .msp-head-actions > a.msp-btn, .msp-app .msp-admin > .msp-head .msp-head-actions .msp-btn { height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; }

	.msp-app .msp-tabs { gap: 8px; border: 0; }
	.msp-app .msp-tabs a { padding: 8px 15px; border: 0; border-radius: 999px; background: var(--msp-surface); box-shadow: inset 0 0 0 1px var(--msp-border); color: var(--msp-muted); font-size: 14px; }
	.msp-app .msp-tabs a.is-active { background: var(--msp-text); box-shadow: none; color: var(--msp-surface); }

	/* Each row is its own card */
	.msp-main .msp-panel-flush:has(> .msp-scroll > .is-cards), .msp-main .msp-panel-flush:has(> .is-cards) { border: 0; background: none; }
	.msp-panel-flush > .msp-panel-head { padding: 4px 4px 8px; }
	.msp-panel-flush:has(> .msp-rows) > .msp-panel-head, .msp-panel-flush:has(> .msp-alerts) > .msp-panel-head { padding: 16px 16px 0; }
	.msp-app .msp-table.is-cards tr { margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--msp-border); border-radius: 16px; background: var(--msp-surface); box-shadow: 0 1px 2px rgb(20 10 40 / .04); }
	.msp-app .msp-table.is-cards tbody:last-child tr:last-child { border-bottom: 1px solid var(--msp-border); }
	.msp-table.is-cards tfoot tr { background: var(--msp-surface-2); }
	.msp-app .msp-work.is-cards tr { border-left: 4px solid var(--msp-border-strong); }
	.msp-app .msp-work.is-cards tr.msp-pri-urgent { border-left-color: var(--msp-major); }
	.msp-app .msp-work.is-cards tr.msp-pri-high { border-left-color: var(--msp-minor); }
	.msp-app .msp-work.is-cards tr.msp-pri-normal { border-left-color: var(--msp-accent); }
	.msp-work.is-cards td:first-child { padding-bottom: 8px !important; }
	.msp-work.is-cards a.msp-strong::after { content: ""; position: absolute; inset: 0; }
	.msp-work.is-cards .msp-pick { position: relative; z-index: 2; float: right; margin: 0 0 0 12px; padding: 4px; }
	.msp-work.is-cards td[data-label]:not(:first-child) { grid-template-columns: 92px minmax(0, 1fr); }

	/* A ticket's two halves */
	.msp-segs { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 25; display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 14px; background: var(--msp-surface-2); }
	.msp-app .msp-segs button { flex: 1; height: 40px; border: 0; border-radius: 11px; background: none; color: var(--msp-muted); font: inherit; font-weight: 600; cursor: pointer; }
	.msp-app .msp-segs button[aria-pressed="true"] { background: var(--msp-surface); color: var(--msp-text); box-shadow: 0 1px 3px rgb(20 10 40 / .14); }
	.msp-split[data-seg="0"] > aside, .msp-split[data-seg="1"] > div { display: none; }
	.msp-timeline { gap: 12px; }
	.msp-tl { border-radius: 16px; }
	.msp-tl-event { text-align: center; }

	.msp-ptr { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; z-index: 90; width: 34px; height: 34px; margin-left: -17px; border: 3px solid var(--msp-border-strong); border-top-color: #8b5cf6; border-radius: 50%; background: var(--msp-surface); opacity: 0; pointer-events: none; }
	.msp-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.msp-more-list h3 { grid-column: 1 / -1; }
	.msp-app .msp-more-list a { min-height: 54px; line-height: 1.25; }
	.msp-app.msp-shell { font-size: 15.5px; }
}
/* Quick actions and my day */
.msp-quick { display: none; }
.msp-day { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.msp-app .msp-day a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--msp-border); border-radius: 14px; background: var(--msp-surface); color: var(--msp-text); }
.msp-app .msp-day a:hover { border-color: var(--msp-accent); text-decoration: none; }
.msp-day strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.msp-day span { font-size: 12.5px; color: var(--msp-muted); }
.msp-day .is-hot strong { color: var(--msp-major); }
@media (max-width: 860px) {
	.msp-day { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.msp-app .msp-day a { padding: 12px; border-radius: 16px; }
	.msp-quick { display: flex; gap: 14px; margin: 2px -16px 16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
	.msp-app .msp-quick a { display: grid; justify-items: center; gap: 6px; flex: none; width: 64px; color: var(--msp-text); font-size: 12px; text-align: center; }
	.msp-quick .msp-icon { box-sizing: border-box; width: 52px; height: 52px; padding: 14px; border-radius: 18px; background: var(--msp-accent-soft); color: var(--msp-accent); }
}
/* ---------- Lists, notifications, phone and SMS ---------- */
.msp-rows, .msp-alerts, .msp-bars, .msp-events, .msp-bubbles { margin: 0; padding: 0; list-style: none; }
.msp-rows li + li, .msp-alerts li + li { border-top: 1px solid var(--msp-border); }
.msp-app .msp-rows li > a, .msp-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--msp-text); }
.msp-app .msp-rows li > a:hover, .msp-app .msp-alerts a:hover { background: var(--msp-surface-2); text-decoration: none; }
.msp-row-main { flex: 1; display: grid; min-width: 0; }
.msp-row-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msp-row-main small, .msp-row-end small { color: var(--msp-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msp-row-end { display: grid; justify-items: end; gap: 2px; text-align: right; }
.msp-row .msp-row-end { display: flex; align-items: center; gap: 14px; }
.msp-star { font-size: 20px !important; line-height: 1; }
.msp-rows .is-new strong { font-weight: 750; }
.msp-dir { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--msp-surface-2); color: var(--msp-ok); font-weight: 700; }
.msp-dir-out { color: var(--msp-maint); }
.msp-dir-missed { color: var(--msp-major); }
.msp-app .msp-alerts a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; color: var(--msp-text); }
.msp-alerts .is-new span { font-weight: 650; }
.msp-alerts .is-new a { box-shadow: inset 3px 0 0 var(--msp-accent); }
.msp-alerts time { flex: none; }
.msp-bubbles { display: grid; gap: 10px; margin-bottom: 18px; }
.msp-bubbles li { display: grid; gap: 3px; max-width: 82%; justify-self: start; }
.msp-bubbles li > div { padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: var(--msp-surface-2); overflow-wrap: anywhere; }
.msp-bubbles .is-out { justify-self: end; justify-items: end; }
.msp-bubbles .is-out > div { border-radius: 18px 18px 5px 18px; background: var(--msp-accent-soft); }
.msp-bubbles small { color: var(--msp-muted); font-size: 11.5px; }
.msp-qr { width: 220px; max-width: 100%; padding: 12px; border-radius: 12px; background: #fff; }
.msp-qr svg { display: block; width: 100%; height: auto; }
.msp-login-qr:not([hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.msp-login-qr p { margin: 0; }
.msp-login-qr .msp-qr { transition: opacity 0.2s; }
.msp-login-qr .is-over { opacity: 0.15; }
@media (min-width: 860px) {
	.msp-portal-page .msp-login.msp-front:has(.msp-login-qr:not([hidden])) { max-width: 760px; }
	.msp-login-card:has(.msp-login-qr:not([hidden])) { display: grid; grid-template-columns: 1fr 230px; gap: 36px; }
}
.msp-apps { margin-top: 16px; }
.msp-bars { display: grid; gap: 8px; }
.msp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 46% 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.msp-bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msp-bars i { display: block; height: 10px; min-width: 2px; border-radius: 999px; background: var(--msp-accent); }
.msp-bars b { font-variant-numeric: tabular-nums; text-align: right; }
.msp-events li { padding: 0 0 16px 18px; border-left: 2px solid var(--msp-border); position: relative; overflow-wrap: anywhere; }
.msp-events li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--msp-accent); }
.msp-events .msp-ev-done::before { background: var(--msp-ok); }
.msp-events .msp-ev-note::before { background: var(--msp-minor); }
.msp-health { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--msp-ok); font-size: 15px; }
.msp-health-warn { border-color: var(--msp-minor); }
.msp-health-bad { border-color: var(--msp-major); }
.msp-text { overflow-wrap: anywhere; }
.msp-text p, .msp-text ul { margin: 0 0 10px; }
.msp-text h3 { margin: 16px 0 6px; font-size: 16px; }
.msp-ask { margin-bottom: 14px; }
.msp-timer { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.msp-timer output { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.msp-app input[type="color"] { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--msp-border-strong); border-radius: 8px; background: var(--msp-surface); }
@media print { .msp-toolbar, .msp-appbar { display: none !important; } }

/* ---------- Boards, timers, labels, invoices ---------- */
.msp-dispatch { display: grid; grid-template-columns: 130px repeat(7, minmax(120px, 1fr)); min-width: 980px; }
.msp-dispatch.is-day { grid-template-columns: 150px minmax(800px, 1fr); }
.msp-dis-head { padding: 8px 10px; color: var(--msp-muted); font-size: 12.5px; font-weight: 600; }
.msp-dis-head.is-today { color: var(--msp-accent); }
.msp-dis-hours { display: flex; padding: 8px 0; }
.msp-dis-hours span { flex: 1; }
.msp-dis-who { display: grid; align-content: start; gap: 2px; padding: 10px; border-top: 1px solid var(--msp-border); font-size: 13px; overflow-wrap: anywhere; }
.msp-dis-cell { position: relative; min-height: 58px; padding: 4px; border-top: 1px solid var(--msp-border); border-left: 1px solid var(--msp-border); }
.msp-dis-cell.is-off { background: var(--msp-surface-2); }
.msp-dis-cell.is-over { background: var(--msp-accent-soft); }
.is-day .msp-dis-cell { padding: 0; background: var(--msp-surface-2); background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 1px), var(--msp-border) calc(100% / 14 - 1px) calc(100% / 14)); }
.msp-dis-open { position: absolute; top: 0; bottom: 0; background: var(--msp-surface); opacity: .7; pointer-events: none; }
.msp-dis-away { display: block; padding: 3px 6px; border-radius: 5px; background: var(--msp-border); color: var(--msp-muted); font-size: 11.5px; }
.is-day .msp-dis-away { position: absolute; top: 0; bottom: 0; opacity: .75; pointer-events: none; }
.msp-dis-travel { position: absolute; height: 44px; border-radius: 5px 0 0 5px; background: repeating-linear-gradient(45deg, var(--msp-border) 0 4px, transparent 4px 8px); pointer-events: none; }
.msp-app .is-day .msp-dis-cell .msp-cal-job { position: absolute; height: 44px; margin: 0; overflow: hidden; }
.msp-app .msp-cal-job[draggable="true"] { cursor: grab; }
.msp-app .msp-cal-job.is-held { opacity: .5; }
.msp-app .msp-cal-job.is-asked { border-left-style: dashed; }
.msp-app .msp-dis-cell .msp-cal-job span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msp-dis-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.msp-app .msp-dis-pool .msp-cal-job { max-width: 240px; margin: 0; }
.msp-clock output { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.msp-clock-btns { display: flex; align-items: center; gap: 12px; }
.msp-clock .msp-form { margin-top: 14px; }
.msp-app .msp-timer-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--msp-accent-soft); color: var(--msp-accent); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.msp-timer-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--msp-major); }
.msp-scan { margin: 0 0 12px; }
.msp-scan:has(button[hidden]):has([data-msg]:empty) { display: none; }
.msp-scan video { display: block; width: 100%; max-width: 420px; margin-top: 8px; border-radius: 10px; }
.msp-scan video[hidden] { display: none; }
.msp-labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.msp-label { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px dashed var(--msp-border-strong); border-radius: 6px; background: #fff; color: #000; break-inside: avoid; }
.msp-label svg { flex: none; width: 84px; height: 84px; }
.msp-label div { display: grid; font-size: 12px; overflow-wrap: anywhere; }
.msp-bill-line { flex-wrap: wrap; margin: 0 0 8px; }
.msp-app .msp-bill-line input[name="what"] { flex: 1 1 260px; }
.msp-app .msp-bill-line input[type="number"] { width: 110px; }
.msp-bill-line + .msp-inline { display: block; margin: -4px 0 12px; }
.msp-app .msp-lines-in input[type="number"] { width: 110px; }
.msp-app .msp-lines-in select { max-width: 220px; }
.msp-u-h { margin: 18px 0 8px; font-size: 14px; }
.msp-app .msp-rows li { position: relative; }
.msp-rows li > .msp-inline { display: inline-block; margin: 0 0 10px 18px; }
@media print { .msp-noprint, .msp-timer-chip { display: none !important; } .msp-label { border: 1px solid #000 !important; } }
/* ---------- Quotes, projects, brands ---------- */
.msp-public { max-width: 900px; margin: 0 auto; padding: 0 16px 40px; }
.msp-brandbar { display: flex; align-items: center; min-height: 34px; margin: 18px 0; padding: 12px 0 12px 14px; border-left: 5px solid var(--msp-brand, var(--msp-accent)); font-size: 18px; }
.msp-brandbar img { max-height: 48px; max-width: 220px; }
.msp-main > .msp-brandbar { margin: 0 0 14px; padding: 4px 0 4px 12px; font-size: 15px; }
.msp-main > .msp-brandbar img { max-height: 30px; }
.msp-totals { margin-top: 16px; font-size: 16px; }
.msp-app .msp-qlines input[type="text"], .msp-app .msp-qlines textarea { min-width: 220px; margin-bottom: 4px; }
.msp-app .msp-qlines input[type="number"] { width: 96px; }
.msp-app .msp-qlines td:nth-child(5) input { min-width: 130px; }
.msp-app .msp-tickbox { font-size: 20px; line-height: 1; text-decoration: none; }
.msp-app progress { width: 110px; height: 8px; accent-color: var(--msp-accent); }
.msp-gantt { display: grid; grid-template-columns: 200px minmax(520px, 1fr); min-width: 760px; padding: 8px 0; font-size: 13px; }
.msp-g-name { padding: 6px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msp-g-track { position: relative; min-height: 30px; border-top: 1px solid var(--msp-border); }
.msp-g-dates span { position: absolute; top: 6px; color: var(--msp-muted); font-size: 11.5px; white-space: nowrap; }
.msp-g-track b { position: absolute; top: 7px; height: 16px; min-width: 6px; border-radius: 5px; background: var(--msp-accent); }
.msp-g-track b.is-done { background: var(--msp-ok); }
.msp-g-track b.is-late { background: var(--msp-major); }
.msp-g-track b.is-mile { border-radius: 2px; outline: 2px solid var(--msp-text); outline-offset: 1px; }
.msp-g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--msp-minor); }