/*
Theme Name: Mikael Linder
Theme URI: https://mikaellinder.se/
Author: Mikael Linder
Description: Ett snabbt, tillgängligt och personligt portfoliotema för mikaellinder.se.
Version: 1.5.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: mikael-linder
*/

:root {
	--ml-ink: #0c1218;
	--ml-ink-soft: #18222d;
	--ml-paper: #f5f0e7;
	--ml-paper-deep: #e8dfd1;
	--ml-white: #fffdf8;
	--ml-text: #111923;
	--ml-muted: #52606c;
	--ml-line: rgba(17, 25, 35, 0.17);
	--ml-line-dark: rgba(255, 255, 255, 0.16);
	--ml-orange: #f05a28;

	--ml-orange-dark: #b93612;
	--ml-lime: #c6f36b;
	--ml-blue: #526cff;
	--ml-green: #1e7654;
	--ml-danger: #9f2f22;
	--ml-success: #17613f;
	--ml-shadow: 0 24px 70px rgba(12, 18, 24, 0.13);
	--ml-radius-sm: 0.45rem;
	--ml-radius: 1rem;
	--ml-radius-lg: 1.6rem;
	--ml-container: 78rem;
	--ml-reading: 48rem;
	--ml-pad: clamp(1rem, 3vw, 2rem);
	--ml-section: clamp(4rem, 8vw, 8rem);
}

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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}


body {
	margin: 0;
	background: var(--ml-paper);
	color: var(--ml-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: currentColor;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration-thickness: 0.14em;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
input[type="submit"] {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--ml-lime);
	outline-offset: 4px;
}

::selection {
	background: var(--ml-lime);
	color: var(--ml-ink);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.7em;
	color: inherit;
	font-family: "Arial Narrow", "Aptos Display", "Roboto Condensed", ui-sans-serif, system-ui, sans-serif;
	font-weight: 780;
	letter-spacing: -0.04em;
	line-height: 0.98;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.8rem, 8vw, 7.8rem);
	max-width: 11ch;
}

h2 {
	font-size: clamp(2.1rem, 5vw, 4.9rem);
}

h3 {
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	line-height: 1.1;
}

p,
ul,
ol,
blockquote {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
p,
li,
a,
dt,
dd {
	overflow-wrap: anywhere;
}

.ml-container {
	width: min(100%, var(--ml-container));
	margin-inline: auto;
	padding-inline: var(--ml-pad);
}

.ml-reading {
	width: min(100%, var(--ml-reading));
	margin-inline: auto;
}

.ml-section {
	padding-block: var(--ml-section);
}

.ml-section-dark {
	background: var(--ml-ink);
	color: var(--ml-white);
}

.ml-section-paper {
	background: var(--ml-white);
}

.ml-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.3rem;
	color: var(--ml-orange-dark);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ml-section-dark .ml-kicker,
.ml-hero .ml-kicker {
	color: var(--ml-lime);
}

.ml-kicker.ml-kicker-ink {
	color: var(--ml-ink);
}

.ml-kicker::before {
	width: 2.4rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.ml-lead {
	max-width: 44rem;
	color: inherit;
	font-size: clamp(1.18rem, 2vw, 1.48rem);
	line-height: 1.5;
}

.ml-note {
	padding: 1rem 1.1rem;
	border-left: 4px solid var(--ml-orange);
	background: rgba(240, 90, 40, 0.08);
	font-size: 0.94rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.ml-skip-link:focus {
	position: fixed !important;
	top: 0.8rem;
	left: 0.8rem;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--ml-white);
	color: var(--ml-ink);
	font-weight: 800;
	white-space: normal;
}

/* Header */
.ml-site-header {
	position: relative;
	z-index: 100;
	border-bottom: 1px solid var(--ml-line-dark);
	background: var(--ml-ink);
	color: var(--ml-white);
}

.ml-header-inner {
	display: flex;
	min-height: 5.1rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.ml-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ml-white);
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.ml-brand-mark {
	position: relative;
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.72);
	color: var(--ml-white);
	font-size: 0.82rem;
	letter-spacing: -0.04em;
	overflow: hidden;
}

.ml-brand-mark::after {
	position: absolute;
	top: -0.2rem;
	right: 0.45rem;
	width: 1px;
	height: 3.2rem;
	background: var(--ml-orange);
	content: "";
	transform: rotate(34deg);
}

.ml-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2vw, 1.8rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.ml-nav a {
	position: relative;
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.9rem;
	font-weight: 720;
	text-decoration: none;
}

.ml-nav a::after {
	position: absolute;
	right: 0;
	bottom: -0.5rem;
	left: 0;
	height: 2px;
	background: var(--ml-lime);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
}

.ml-nav a:hover::after,
.ml-nav .current-menu-item > a::after,
.ml-nav .current_page_item > a::after {
	transform: scaleX(1);
}

.ml-menu-toggle {
	display: none;
	min-width: 2.8rem;
	min-height: 2.8rem;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: var(--ml-white);
}

.ml-menu-toggle-lines,
.ml-menu-toggle-lines::before,
.ml-menu-toggle-lines::after {
	display: block;
	width: 1.2rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.ml-menu-toggle-lines {
	position: relative;
}

.ml-menu-toggle-lines::before {
	position: absolute;
	top: -0.38rem;
}

.ml-menu-toggle-lines::after {
	position: absolute;
	top: 0.38rem;
}

/* Buttons */
.ml-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.ml-button {
	display: inline-flex;
	min-height: 3.25rem;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.78rem 1.2rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.ml-button:hover {
	text-decoration: none;
	transform: translateY(-2px);
}

.ml-button-primary {
	border-color: var(--ml-orange);
	background: var(--ml-orange);
	color: var(--ml-ink);
}

.ml-button-primary:hover {
	border-color: #ff7447;
	background: #ff7447;
}

.ml-button-ghost {
	border-color: rgba(255, 255, 255, 0.48);
	background: transparent;
	color: var(--ml-white);
}

.ml-button-dark {
	border-color: var(--ml-ink);
	background: var(--ml-ink);
	color: var(--ml-white);
}

/* Hero */
.ml-hero {
	position: relative;
	min-height: calc(100svh - 5.1rem);
	background:
		linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
		var(--ml-ink);
	background-size: 4rem 4rem;
	color: var(--ml-white);
	overflow: clip;
}

.ml-hero::before {
	position: absolute;
	top: 8%;
	right: -16rem;
	width: 42rem;
	height: 42rem;
	border: 1px solid rgba(198, 243, 107, 0.32);
	border-radius: 50%;
	box-shadow: 0 0 0 5rem rgba(82, 108, 255, 0.06), 0 0 0 10rem rgba(240, 90, 40, 0.04);
	content: "";
}

.ml-hero-grid {
	position: relative;
	display: grid;
	min-height: calc(100svh - 5.1rem);
	align-items: center;
	grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.ml-hero h1 .ml-accent-word {
	color: var(--ml-lime);
}

.ml-hero-copy .ml-lead {
	max-width: 39rem;
	color: rgba(255, 255, 255, 0.76);
}

.ml-hero-panel {
	position: relative;
	padding: 1rem;
	border: 1px solid var(--ml-line-dark);
	background: rgba(12, 18, 24, 0.76);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(12px);
}

.ml-hero-panel::before,
.ml-hero-panel::after {
	position: absolute;
	width: 1.2rem;
	height: 1.2rem;
	border-color: var(--ml-orange);
	content: "";
}

.ml-hero-panel::before {
	top: -1px;
	left: -1px;
	border-top: 3px solid var(--ml-orange);
	border-left: 3px solid var(--ml-orange);
}

.ml-hero-panel::after {
	right: -1px;
	bottom: -1px;
	border-right: 3px solid var(--ml-orange);
	border-bottom: 3px solid var(--ml-orange);
}

.ml-panel-label {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0.6rem 1rem;
	border-bottom: 1px solid var(--ml-line-dark);
	color: rgba(255,255,255,0.56);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ml-axis-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.ml-axis-list li {
	display: grid;
	align-items: center;
	grid-template-columns: 2.4rem 1fr auto;
	gap: 0.9rem;
	padding: 1.25rem 0.6rem;
	border-bottom: 1px solid var(--ml-line-dark);
}

.ml-axis-list li:last-child {
	border-bottom: 0;
}

.ml-axis-number {
	color: var(--ml-lime);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.72rem;
}

.ml-axis-title {
	font-size: 1.12rem;
	font-weight: 820;
}

.ml-axis-state {
	color: rgba(255,255,255,0.52);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.65rem;
	text-transform: uppercase;
}

.ml-proof-strip {
	border-top: 1px solid var(--ml-line-dark);
	background: var(--ml-ink-soft);
	color: var(--ml-white);
}

.ml-proof-list {
	display: grid;
	padding: 0;
	margin: 0;
	grid-template-columns: repeat(3, 1fr);
	list-style: none;
}

.ml-proof-list li {
	position: relative;
	padding: 1.35rem var(--ml-pad);
	border-left: 1px solid var(--ml-line-dark);
	color: rgba(255,255,255,0.68);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
}

.ml-proof-list li:last-child {
	border-right: 1px solid var(--ml-line-dark);
}

/* Intro and service cards */
.ml-split-heading {
	display: grid;
	align-items: end;
	grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
	gap: clamp(2rem, 7vw, 7rem);
	margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.ml-split-heading h2 {
	max-width: 12ch;
}

.ml-split-heading p:last-child {
	margin-bottom: 0;
}

.ml-service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--ml-line);
	border-left: 1px solid var(--ml-line);
}

.ml-service-card {
	position: relative;
	min-height: 27rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-right: 1px solid var(--ml-line);
	border-bottom: 1px solid var(--ml-line);
	background: rgba(255,255,255,0.26);
}

.ml-service-card::before {
	display: block;
	width: 3.2rem;
	height: 0.45rem;
	margin-bottom: clamp(5rem, 9vw, 9rem);
	background: var(--card-accent, var(--ml-orange));
	content: "";
}

.ml-service-card h3 {
	max-width: 10ch;
}

.ml-service-card p {
	color: var(--ml-muted);
}

.ml-service-web {
	--card-accent: #f05a28;
}

.ml-service-ai {
	--card-accent: #526cff;
}

.ml-service-calc {
	--card-accent: #1e7654;
}

.ml-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 820;
	text-decoration: none;
}

.ml-text-link::after {
	content: "→";
	transition: transform 160ms ease;
}

.ml-text-link:hover::after {
	transform: translateX(0.3rem);
}

/* Projects */
.ml-project-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
}

.ml-project-card {
	--project-accent: var(--ml-orange);
	position: relative;
	display: flex;
	min-height: 26rem;
	flex-direction: column;
	grid-column: span 4;
	padding: clamp(1.35rem, 2.5vw, 2rem);
	border: 1px solid var(--ml-line-dark);
	background-color: var(--ml-ink-soft);
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--project-accent) 16%, transparent), transparent 48%),
		var(--ml-ink-soft);
	color: var(--ml-white);
	overflow: clip;
}

.ml-project-card:nth-child(1),
.ml-project-card:nth-child(6) {
	grid-column: span 8;
}

.ml-project-card::after {
	position: absolute;
	right: -3rem;
	bottom: -3rem;
	width: 10rem;
	height: 10rem;
	border: 1px solid color-mix(in srgb, var(--project-accent) 72%, white);
	border-radius: 50%;
	content: "";
	opacity: 0.45;
}

.ml-project-topline {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: auto;
	color: rgba(255,255,255,0.58);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ml-project-dot {
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: var(--project-accent);
}

.ml-project-card h3 {
	position: relative;
	z-index: 1;
	margin-top: 6rem;
	font-size: clamp(2rem, 4vw, 3.7rem);
}

.ml-project-card h3 a {
	text-decoration: none;
}

.ml-project-card p {
	position: relative;
	z-index: 1;
	max-width: 38rem;
	color: rgba(255,255,255,0.7);
}

.ml-project-card .ml-text-link {
	position: relative;
	z-index: 1;
	margin-top: 0.8rem;
	color: var(--ml-white);
}

.ml-project-archive .ml-project-card {
	grid-column: span 6;
}

/* Method */
.ml-method-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--ml-line-dark);
	border-left: 1px solid var(--ml-line-dark);
}

.ml-method-dark {
	background: var(--ml-ink);
	color: var(--ml-white);
}

.ml-method-step {
	min-height: 19rem;
	padding: 1.5rem;
	border-right: 1px solid var(--ml-line-dark);
	border-bottom: 1px solid var(--ml-line-dark);
}

.ml-step-number {
	display: block;
	margin-bottom: 5rem;
	color: var(--ml-lime);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.76rem;
}

.ml-method-step p {
	color: rgba(255,255,255,0.64);
}

/* AI statement */
.ml-statement {
	display: grid;
	align-items: center;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 8vw, 8rem);
}

.ml-statement-graphic {
	position: relative;
	display: grid;
	min-height: 31rem;
	place-items: center;
	border: 1px solid var(--ml-line);
	background:
		linear-gradient(rgba(12,18,24,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(12,18,24,.05) 1px, transparent 1px);
	background-size: 2rem 2rem;
}

.ml-statement-graphic::before,
.ml-statement-graphic::after {
	position: absolute;
	border: 1px solid var(--ml-ink);
	border-radius: 50%;
	content: "";
}

.ml-statement-graphic::before {
	width: 18rem;
	height: 18rem;
}

.ml-statement-graphic::after {
	width: 10rem;
	height: 10rem;
	background: var(--ml-orange);
	mix-blend-mode: multiply;
	transform: translate(4rem, -2rem);
}

.ml-statement-mark {
	position: relative;
	z-index: 2;
	display: grid;
	width: 7rem;
	height: 7rem;
	place-items: center;
	background: var(--ml-ink);
	color: var(--ml-lime);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

/* Standard pages */
.ml-page-hero {
	padding-block: clamp(4.5rem, 9vw, 8rem);
	background: var(--ml-ink);
	color: var(--ml-white);
}

.ml-page-hero h1 {
	font-size: clamp(3rem, 7vw, 6.5rem);
}

.ml-page-hero .ml-lead {
	color: rgba(255,255,255,0.72);
}

.ml-entry-content {
	padding-block: clamp(3.5rem, 7vw, 7rem);
}

.ml-entry-content > * {
	max-width: var(--ml-reading);
	margin-right: auto;
	margin-left: auto;
}

.ml-entry-content > .alignwide,
.ml-entry-content > .ml-content-grid,
.ml-entry-content > .ml-contact-wrap {
	max-width: 66rem;
}

.ml-entry-content > .alignfull {
	max-width: none;
}

.ml-entry-content h2 {
	margin-top: 1.8em;
	font-size: clamp(2rem, 4vw, 3.6rem);
}

.ml-entry-content h3 {
	margin-top: 1.8em;
}

.ml-entry-content p,
.ml-entry-content li {
	font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.ml-entry-content li + li {
	margin-top: 0.55rem;
}

.ml-entry-content blockquote {
	padding: 1.6rem 0 1.6rem 1.6rem;
	border-left: 5px solid var(--ml-orange);
	font-size: clamp(1.25rem, 2.2vw, 1.7rem);
	font-weight: 650;
}

.ml-content-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.ml-content-grid section {
	padding: 1.45rem;
	border: 1px solid var(--ml-line);
	background: var(--ml-white);
}

.ml-content-grid section h3 {
	margin-top: 0;
}

.ml-content-grid section p:last-child {
	margin-bottom: 0;
}

/* Project single */
.ml-project-hero {
	--project-accent: var(--ml-orange);
	position: relative;
	padding-block: clamp(5rem, 10vw, 9rem);
	background-color: var(--ml-ink);
	background:
		linear-gradient(140deg, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 45%),
		var(--ml-ink);
	color: var(--ml-white);
	overflow: clip;
}

.ml-project-hero::after {
	position: absolute;
	right: -8rem;
	bottom: -12rem;
	width: 34rem;
	height: 34rem;
	border: 1px solid color-mix(in srgb, var(--project-accent) 80%, white);
	border-radius: 50%;
	content: "";
	opacity: 0.4;
}

.ml-project-hero h1 {
	position: relative;
	z-index: 1;
}

.ml-project-hero .ml-lead {
	position: relative;
	z-index: 1;
	color: rgba(255,255,255,.72);
}

.ml-project-facts {
	position: relative;
	z-index: 1;
	display: grid;
	max-width: 60rem;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 3rem;
	background: var(--ml-line-dark);
}

.ml-project-fact {
	padding: 1.2rem;
	background: rgba(12,18,24,.86);
}

.ml-project-fact dt {
	margin-bottom: 0.35rem;
	color: rgba(255,255,255,.48);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ml-project-fact dd {
	margin: 0;
	font-weight: 700;
}

/* Contact form */
.ml-contact-wrap {
	margin-top: 2.5rem;
}

.ml-contact-form {
	padding: clamp(1.2rem, 4vw, 2.5rem);
	border: 1px solid var(--ml-line);
	background: var(--ml-white);
	box-shadow: var(--ml-shadow);
}

.ml-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.ml-field {
	margin-bottom: 1.25rem;
}

.ml-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	font-weight: 800;
}

.ml-field input,
.ml-field textarea {
	width: 100%;
	padding: 0.85rem 0.9rem;
	border: 1px solid #8b949c;
	border-radius: var(--ml-radius-sm);
	background: #fff;
	color: var(--ml-text);
}

.ml-field input:focus,
.ml-field textarea:focus {
	border-color: var(--ml-blue);
	box-shadow: 0 0 0 3px rgba(82,108,255,.18);
	outline: 2px solid transparent;
}

.ml-field-help,
.ml-optional {
	display: block;
	margin-top: 0.35rem;
	color: var(--ml-muted);
	font-size: 0.8rem;
	font-weight: 500;
}

.ml-form-privacy {
	max-width: 46rem;
	margin-bottom: 1.25rem;
	color: var(--ml-muted);
	font-size: 0.88rem;
}

.ml-form-privacy a {
	font-weight: 750;
}

.ml-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ml-form-status {
	padding: 1rem 1.1rem;
	border-left: 5px solid currentColor;
	background: var(--ml-white);
	font-weight: 750;
}

.ml-form-status.is-success {
	color: var(--ml-success);
}

.ml-form-status.is-error {
	color: var(--ml-danger);
}

/* CTA and footer */
.ml-cta {
	position: relative;
	padding-block: clamp(4rem, 9vw, 8rem);
	background: var(--ml-orange);
	color: var(--ml-ink);
	overflow: clip;
}

.ml-cta::after {
	position: absolute;
	top: 0;
	right: 7%;
	width: 1px;
	height: 100%;
	background: rgba(12,18,24,.25);
	content: "";
	transform: rotate(17deg);
}

.ml-cta-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
}

.ml-cta h2 {
	max-width: 12ch;
	margin-bottom: 0;
}

.ml-site-footer {
	padding-block: 3.5rem 2rem;
	background: var(--ml-ink);
	color: var(--ml-white);
}

.ml-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr .7fr .7fr;
	gap: 2rem;
}

.ml-footer-intro {
	max-width: 28rem;
	color: rgba(255,255,255,.62);
}

.ml-footer-heading {
	margin-bottom: 0.75rem;
	color: rgba(255,255,255,.44);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ml-footer-links {
	padding: 0;
	margin: 0;
	list-style: none;
}

.ml-footer-links li + li {
	margin-top: 0.45rem;
}

.ml-footer-links a {
	color: rgba(255,255,255,.78);
	text-decoration: none;
}

.ml-footer-links a:hover {
	color: var(--ml-lime);
}

.ml-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	margin-top: 3rem;
	border-top: 1px solid var(--ml-line-dark);
	color: rgba(255,255,255,.44);
	font-size: 0.78rem;
}

.ml-empty-state {
	padding: 2rem;
	border: 1px solid var(--ml-line);
	background: var(--ml-white);
}

.navigation.pagination {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nav-links .page-numbers {
	display: inline-grid;
	min-width: 2.8rem;
	min-height: 2.8rem;
	place-items: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--ml-line-dark);
	color: var(--ml-white);
	text-decoration: none;
}

.nav-links .current,
.nav-links a:hover {
	border-color: var(--ml-lime);
	background: var(--ml-lime);
	color: var(--ml-ink);
}

/* Responsive */
@media (max-width: 62rem) {
	.ml-hero-grid,
	.ml-split-heading,
	.ml-statement {
		grid-template-columns: 1fr;
	}

	.ml-hero-grid {
		min-height: auto;
	}

	.ml-hero-panel {
		max-width: 37rem;
	}

	.ml-service-grid,
	.ml-content-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ml-service-card:last-child {
		grid-column: 1 / -1;
	}

	.ml-method-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ml-project-card,
	.ml-project-card:nth-child(1),
	.ml-project-card:nth-child(6),
	.ml-project-archive .ml-project-card {
		grid-column: span 6;
	}

	.ml-footer-grid {
		grid-template-columns: 1.3fr .7fr;
	}

	.ml-footer-grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 48rem) {
	.ml-js .ml-menu-toggle {
		display: inline-flex;
	}

	.ml-js .ml-nav {
		position: fixed;
		top: 5.1rem;
		right: 0;
		bottom: 0;
		left: 0;
		display: none;
		padding: 1.5rem var(--ml-pad) 3rem;
		background: var(--ml-ink);
		overflow-y: auto;
	}

	.ml-js .ml-nav.is-open {
		display: block;
	}

	.ml-js .ml-nav ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.ml-js .ml-nav li {
		border-bottom: 1px solid var(--ml-line-dark);
	}

	.ml-js .ml-nav a {
		display: block;
		padding: 1rem 0;
		font-size: 1.2rem;
	}

	.ml-js .ml-nav a::after {
		display: none;
	}

	html:not(.ml-js) .ml-header-inner {
		flex-wrap: wrap;
		padding-block: 1rem;
	}

	html:not(.ml-js) .ml-nav {
		width: 100%;
	}

	html:not(.ml-js) .ml-nav ul {
		flex-wrap: wrap;
		gap: 0.65rem 1.1rem;
	}

	.ml-proof-list {
		grid-template-columns: 1fr;
	}

	.ml-proof-list li,
	.ml-proof-list li:last-child {
		border-right: 1px solid var(--ml-line-dark);
		border-bottom: 1px solid var(--ml-line-dark);
		text-align: left;
	}

	.ml-project-card,
	.ml-project-card:nth-child(1),
	.ml-project-card:nth-child(6),
	.ml-project-archive .ml-project-card {
		grid-column: 1 / -1;
	}

	.ml-project-card {
		min-height: 23rem;
	}

	.ml-project-card h3 {
		margin-top: 4rem;
	}

	.ml-project-facts,
	.ml-form-grid,
	.ml-content-grid,
	.ml-service-grid,
	.ml-method-grid,
	.ml-footer-grid {
		grid-template-columns: 1fr;
	}

	.ml-service-card:last-child,
	.ml-footer-grid > :first-child {
		grid-column: auto;
	}

	.ml-service-card {
		min-height: auto;
	}

	.ml-service-card::before {
		margin-bottom: 3rem;
	}

	.ml-method-step {
		min-height: auto;
	}

	.ml-step-number {
		margin-bottom: 2.5rem;
	}

	.ml-statement-graphic {
		min-height: 24rem;
	}

	.ml-cta-inner,
	.ml-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 28rem) {
	:root {
		--ml-pad: 1rem;
	}

	h1 {
		font-size: clamp(2.7rem, 14vw, 4rem);
	}

	.ml-brand-name {
		display: none;
	}

	.ml-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ml-button {
		width: 100%;
	}

	.ml-axis-list li {
		grid-template-columns: 2rem 1fr;
	}

	.ml-axis-state {
		display: none;
	}

	.ml-statement-graphic::before {
		width: 14rem;
		height: 14rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.ml-site-header,
	.ml-site-footer,
	.ml-cta,
	.ml-menu-toggle,
	.ml-actions {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.ml-page-hero,
	.ml-project-hero {
		padding: 1.5rem 0;
		background: #fff;
		color: #000;
	}

	a::after {
		content: " (" attr(href) ")";
		font-size: 80%;
	}
}


/* === Mikael Linder high-tech redesign 1.1.0 — 2026-08-27 === */
:root{--ml-ink:#030704;--ml-ink-soft:#09130c;--ml-paper:#050a06;--ml-paper-deep:#0a150d;--ml-white:#f2fff5;--ml-text:#e8f6eb;--ml-muted:#9ab0a0;--ml-line:rgba(54,241,123,.22);--ml-line-dark:rgba(54,241,123,.22);--ml-orange:#ffd400;--ml-orange-dark:#d9b500;--ml-lime:#35f17b;--ml-blue:#35f17b;--ml-green:#18c95e;--ml-shadow:0 22px 60px rgba(0,0,0,.38);--ml-section:clamp(2.7rem,5vw,4.8rem)}
body{background:radial-gradient(circle at 12% -10%,rgba(53,241,123,.09),transparent 30rem),var(--ml-ink);color:var(--ml-text);line-height:1.55}
h1{font-size:clamp(2.75rem,6.4vw,6.2rem);max-width:12ch}h2{font-size:clamp(2rem,4.2vw,4rem)}
.ml-section-paper,.ml-entry-content{background:var(--ml-paper);color:var(--ml-text)}.ml-section-dark,.ml-method-dark,.ml-ai-band{background:var(--ml-ink-soft);color:var(--ml-white)}
.ml-site-header{position:sticky;top:0;border-bottom-color:rgba(53,241,123,.3);background:rgba(3,7,4,.92);box-shadow:0 10px 35px rgba(0,0,0,.28);backdrop-filter:blur(14px)}.admin-bar .ml-site-header{top:32px}.ml-header-inner{min-height:4.45rem}
.ml-brand{gap:.8rem;letter-spacing:.08em;text-transform:uppercase}.ml-brand-name{color:var(--ml-white);font-size:.9rem;font-weight:520}.ml-brand-name strong{color:var(--ml-lime);font-weight:880}
.ml-atom-logo{display:block;width:3rem;height:3rem;flex:0 0 auto;filter:drop-shadow(0 0 10px rgba(53,241,123,.38))}.ml-atom-logo-small{width:2.55rem;height:2.55rem}.ml-atom-logo svg{width:100%;height:100%;overflow:visible}
.ml-atom-core-glow{fill:rgba(53,241,123,.18);stroke:rgba(53,241,123,.45);stroke-width:1}.ml-atom-core{fill:var(--ml-lime);filter:drop-shadow(0 0 5px var(--ml-lime))}
.ml-atom-orbit{fill:none;stroke:rgba(255,212,0,.62);stroke-width:.85;transform-origin:24px 24px;transform-box:fill-box}.ml-electron{fill:var(--ml-orange);stroke:#fff7a5;stroke-width:.6;filter:drop-shadow(0 0 3px var(--ml-orange))}
.ml-atom-orbit-one{animation:ml-orbit-one 3.1s linear infinite}.ml-atom-orbit-two{animation:ml-orbit-two 4.2s linear infinite reverse}.ml-atom-orbit-three{animation:ml-orbit-three 5.1s linear infinite}
@keyframes ml-orbit-one{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes ml-orbit-two{from{transform:rotate(60deg)}to{transform:rotate(420deg)}}@keyframes ml-orbit-three{from{transform:rotate(120deg)}to{transform:rotate(480deg)}}
.ml-nav a{color:rgba(242,255,245,.78)}.ml-nav a:hover{color:var(--ml-orange)}
.ml-hero{min-height:auto;background:linear-gradient(rgba(53,241,123,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(53,241,123,.04) 1px,transparent 1px),radial-gradient(circle at 80% 30%,rgba(53,241,123,.13),transparent 27rem),var(--ml-ink);background-size:3rem 3rem,3rem 3rem,auto,auto}
.ml-hero::before{top:1rem;right:-11rem;width:31rem;height:31rem;border-color:rgba(53,241,123,.35);box-shadow:0 0 0 3.5rem rgba(255,212,0,.035),0 0 0 7rem rgba(53,241,123,.025)}
.ml-hero-grid{min-height:auto;grid-template-columns:minmax(0,1.4fr) minmax(18rem,.6fr);gap:clamp(2rem,5vw,5rem);padding-block:clamp(3rem,6vw,5.5rem)}.ml-hero-copy .ml-lead{max-width:43rem}
.ml-hero-panel{padding:.75rem;border-color:rgba(53,241,123,.42);background:rgba(5,12,7,.82);box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 0 35px rgba(53,241,123,.035)}
.ml-hero-panel::before,.ml-hero-panel::after{border-color:var(--ml-orange)}.ml-axis-list li{padding:.95rem .55rem}.ml-axis-number,.ml-kicker,.ml-section-dark .ml-kicker,.ml-hero .ml-kicker{color:var(--ml-lime)}
.ml-panel-label,.ml-project-topline{color:rgba(232,246,235,.6)}.ml-proof-strip{background:#071009}.ml-proof-list li{padding-block:1rem;color:rgba(242,255,245,.68)}
.ml-split-heading{gap:clamp(1.5rem,4vw,4rem);margin-bottom:clamp(1.8rem,3.5vw,3rem)}.ml-button{min-height:2.9rem;border-radius:.35rem}.ml-button-primary{border-color:var(--ml-orange);background:var(--ml-orange);color:#030704}.ml-button-primary:hover{border-color:#ffe34d;background:#ffe34d}.ml-button-ghost{border-color:rgba(53,241,123,.5)}
.ml-project-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem}.ml-project-card,.ml-project-card:nth-child(1),.ml-project-card:nth-child(6),.ml-project-archive .ml-project-card{display:block;min-height:0;grid-column:auto!important;padding:0;border:1px solid rgba(53,241,123,.22);background:#08110a;color:var(--ml-white);overflow:hidden}.ml-project-card::after{display:none}
.ml-project-card-link{display:flex;height:100%;flex-direction:column;color:inherit;text-decoration:none}.ml-project-card:hover,.ml-project-card:focus-within{border-color:var(--ml-lime);box-shadow:0 18px 55px rgba(0,0,0,.38),0 0 0 1px rgba(53,241,123,.22);transform:translateY(-3px)}
.ml-project-shot{position:relative;aspect-ratio:16/9;border-bottom:1px solid rgba(53,241,123,.2);background:linear-gradient(135deg,rgba(53,241,123,.12),rgba(255,212,0,.06)),#040805;overflow:hidden}.ml-project-shot::after{position:absolute;inset:0;background:linear-gradient(180deg,transparent 62%,rgba(3,7,4,.32));content:"";pointer-events:none}.ml-project-shot img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .28s ease,filter .28s ease}.ml-project-card:hover .ml-project-shot img{filter:saturate(1.08) contrast(1.03);transform:scale(1.025)}
.ml-project-shot-placeholder{display:grid;height:100%;place-items:center;color:var(--ml-lime);font:1.6rem ui-monospace,monospace}.ml-project-card-body{display:flex;min-height:12.2rem;flex:1;flex-direction:column;padding:1.15rem}.ml-project-card .ml-project-topline{margin-bottom:1.25rem}.ml-project-card h3{margin:0 0 .55rem;font-size:clamp(1.45rem,2.2vw,2.05rem);line-height:1}.ml-external-mark{color:var(--ml-orange);font: .72em ui-monospace,monospace}.ml-project-card p{margin:0;color:rgba(232,246,235,.68);font-size:.9rem;line-height:1.45}
.ml-service-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-service-card{min-height:0;padding:clamp(1.35rem,2.5vw,2rem);border-color:rgba(53,241,123,.2);background:#08110a}.ml-service-card::before{height:.25rem;margin-bottom:1.8rem}.ml-service-web{--card-accent:var(--ml-lime)}.ml-service-ai{--card-accent:var(--ml-orange)}.ml-service-card p,.ml-background-note p{color:var(--ml-muted)}
.ml-background-note{display:grid;align-items:start;grid-template-columns:minmax(10rem,.3fr) 1fr;gap:1.5rem;padding:1.15rem 0;margin-top:1.35rem;border-block:1px solid rgba(53,241,123,.2)}.ml-background-note>span{color:var(--ml-orange);font:.72rem ui-monospace,monospace;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.ml-background-note p{max-width:54rem;margin:0;font-size:.92rem}
.ml-ai-band{border-block:1px solid rgba(53,241,123,.2)}.ml-ai-band-inner{display:grid;align-items:center;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,6rem)}.ml-ai-band .ml-lead{color:rgba(242,255,245,.76)}.ml-text-link{color:var(--ml-lime)}
.ml-cta{padding-block:clamp(2.8rem,5vw,4.8rem);background:var(--ml-lime);color:#030704}.ml-cta::after{background:rgba(3,7,4,.22)}
.ml-page-hero,.ml-project-hero{padding-block:clamp(3rem,6vw,5.5rem);background:radial-gradient(circle at 85% 20%,rgba(53,241,123,.12),transparent 25rem),var(--ml-ink)}.ml-entry-content{padding-block:clamp(2.7rem,5vw,4.8rem)}.ml-entry-content h2{margin-top:1.35em}
.ml-content-grid section,.ml-contact-form,.ml-empty-state{border-color:rgba(53,241,123,.2);background:var(--ml-ink-soft);color:var(--ml-text)}.ml-field input,.ml-field textarea{border-color:rgba(53,241,123,.35);background:#f4fff6;color:#071009}
.ml-site-footer{padding-block:2.6rem 1.5rem;border-top:1px solid rgba(53,241,123,.24);background:#020503}.ml-footer-grid{grid-template-columns:1.4fr .6fr .8fr}.ml-footer-intro{color:rgba(232,246,235,.6)}.ml-footer-heading{color:var(--ml-orange)}.ml-footer-bottom{padding-top:1.3rem;margin-top:2rem}
@media(max-width:62rem){.ml-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-hero-grid{grid-template-columns:1fr}.ml-hero-panel{max-width:none}}
@media(max-width:48rem){.admin-bar .ml-site-header{top:46px}.ml-project-grid,.ml-service-grid-two,.ml-ai-band-inner,.ml-background-note{grid-template-columns:1fr}.ml-project-card-body{min-height:0}.ml-background-note{gap:.65rem}.ml-hero-grid{padding-block:2.6rem 3rem}.ml-site-header{position:relative;top:auto}.ml-js .ml-nav{top:4.45rem}}
@media(max-width:28rem){.ml-brand-name{display:inline;font-size:.76rem}.ml-atom-logo{width:2.65rem;height:2.65rem}}
@media(prefers-reduced-motion:reduce){.ml-atom-orbit{animation:none!important}.ml-atom-orbit-two{transform:rotate(60deg)}.ml-atom-orbit-three{transform:rotate(120deg)}}
/* === End high-tech redesign 1.1.0 === */


/* Desktop density refinement 1.1.1 */
@media (min-width:62.01rem){
	.ml-hero h1{font-size:clamp(3.8rem,5.5vw,4.85rem);max-width:14ch;line-height:.94}
	.ml-hero-grid{padding-block:2.6rem 3.2rem}
	.ml-hero-copy .ml-lead{font-size:1.22rem;line-height:1.48}
	.ml-hero .ml-actions{margin-top:1.35rem}
}

/* Atom orbit correction 1.1.2 */
.ml-atom-plane .ml-atom-orbit {
  animation: none;
  transform: none;
}

.ml-electron-static {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .ml-electron-moving {
    display: none;
  }

  .ml-electron-static {
    display: block;
  }
}
/* End atom orbit correction 1.1.2 */

/* Mobile footer correction 1.1.3 */
@media (max-width: 48rem) {
  .ml-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ml-footer-grid > div {
    min-width: 0;
  }

  .ml-footer-links a {
    overflow-wrap: anywhere;
  }
}
/* End mobile footer correction 1.1.3 */

/* Interface style switcher 1.2.0 */
:root {
  --ml-orbit-color: rgba(255, 212, 0, .62);
  --ml-core-glow: rgba(53, 241, 123, .18);
  --ml-core-stroke: rgba(53, 241, 123, .45);
  --ml-interface-deep: #020503;
  --ml-hero-grid-color: rgba(53, 241, 123, .045);
  --ml-hero-glow-color: rgba(53, 241, 123, .13);
}

:root[data-ml-theme="lunar"] {
  --ml-ink: #060b15;
  --ml-ink-soft: #101a2a;
  --ml-paper: #e4ebf3;
  --ml-paper-deep: #ccd8e5;
  --ml-white: #f7fbff;
  --ml-text: #0a1422;
  --ml-muted: #586a7e;
  --ml-line: rgba(10, 20, 34, .18);
  --ml-line-dark: rgba(170, 224, 255, .24);
  --ml-orange: #eef8ff;
  --ml-orange-dark: #2d7f9a;
  --ml-lime: #72e7ff;
  --ml-blue: #9ab1ff;
  --ml-green: #257d94;
  --ml-orbit-color: rgba(190, 229, 255, .72);
  --ml-core-glow: rgba(114, 231, 255, .18);
  --ml-core-stroke: rgba(114, 231, 255, .55);
  --ml-interface-deep: #020711;
  --ml-hero-grid-color: rgba(114, 231, 255, .055);
  --ml-hero-glow-color: rgba(120, 161, 255, .18);
}

:root[data-ml-theme="blueprint"] {
  --ml-ink: #03182f;
  --ml-ink-soft: #062448;
  --ml-paper: #082b54;
  --ml-paper-deep: #0b3768;
  --ml-white: #eafcff;
  --ml-text: #eafcff;
  --ml-muted: #a6ced8;
  --ml-line: rgba(134, 224, 255, .25);
  --ml-line-dark: rgba(134, 224, 255, .28);
  --ml-orange: #ffe66e;
  --ml-orange-dark: #8ae8ff;
  --ml-lime: #8ae8ff;
  --ml-blue: #d7f8ff;
  --ml-green: #45a8c7;
  --ml-orbit-color: rgba(234, 252, 255, .72);
  --ml-core-glow: rgba(138, 232, 255, .2);
  --ml-core-stroke: rgba(138, 232, 255, .65);
  --ml-interface-deep: #021226;
  --ml-hero-grid-color: rgba(138, 232, 255, .12);
  --ml-hero-glow-color: rgba(138, 232, 255, .16);
}

:root[data-ml-theme="analog"] {
  --ml-ink: #211a16;
  --ml-ink-soft: #3a2e26;
  --ml-paper: #eadfc8;
  --ml-paper-deep: #d8c7a8;
  --ml-white: #fff3dd;
  --ml-text: #2c211a;
  --ml-muted: #705d4c;
  --ml-line: rgba(44, 33, 26, .22);
  --ml-line-dark: rgba(255, 232, 195, .24);
  --ml-orange: #e7642d;
  --ml-orange-dark: #9e351a;
  --ml-lime: #d9da58;
  --ml-blue: #3f8790;
  --ml-green: #4e735f;
  --ml-orbit-color: rgba(217, 218, 88, .72);
  --ml-core-glow: rgba(217, 218, 88, .2);
  --ml-core-stroke: rgba(217, 218, 88, .6);
  --ml-interface-deep: #17110e;
  --ml-hero-grid-color: rgba(231, 100, 45, .065);
  --ml-hero-glow-color: rgba(217, 218, 88, .14);
}

.ml-theme-switcher {
  position: relative;
  z-index: 220;
  display: none;
  flex: 0 0 auto;
}

.ml-js .ml-theme-switcher {
  display: block;
}

.ml-theme-switcher summary {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border: 1px solid var(--ml-line-dark);
  background: rgba(0, 0, 0, .16);
  color: var(--ml-white);
  font: 800 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.ml-theme-switcher summary::-webkit-details-marker {
  display: none;
}

.ml-theme-switcher summary:hover,
.ml-theme-switcher[open] summary {
  border-color: var(--ml-lime);
  color: var(--ml-lime);
}

.ml-theme-signal {
  width: .62rem;
  height: .62rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--ml-lime);
  box-shadow: 0 0 .75rem var(--ml-lime);
}

.ml-theme-panel {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--ml-line-dark);
  background: var(--ml-interface-deep);
  color: var(--ml-white);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .44);
}

.ml-theme-panel::before {
  position: absolute;
  inset: .35rem;
  border: 1px solid color-mix(in srgb, var(--ml-lime) 18%, transparent);
  pointer-events: none;
  content: "";
}

.ml-theme-panel-title {
  position: relative;
  margin: 0 0 .75rem;
  color: var(--ml-lime);
  font: 800 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ml-theme-options {
  position: relative;
  display: grid;
  gap: .4rem;
}

.ml-theme-options button {
  display: grid;
  width: 100%;
  grid-template-columns: 1.1rem 1fr;
  gap: .7rem;
  align-items: center;
  padding: .7rem;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  text-align: left;
}

.ml-theme-options button:hover {
  border-color: var(--ml-line-dark);
  color: var(--ml-white);
}

.ml-theme-options button[aria-pressed="true"] {
  border-color: var(--ml-lime);
  background: color-mix(in srgb, var(--ml-lime) 9%, transparent);
  color: var(--ml-white);
}

.ml-theme-options small {
  display: block;
  margin-top: .08rem;
  color: currentColor;
  font: 500 .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: .62;
}

.ml-theme-swatch {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
}

.ml-theme-swatch-auto {
  background: conic-gradient(#35f17b, #72e7ff, #0b3768, #e7642d, #35f17b);
}

.ml-theme-swatch-atomic {
  background: linear-gradient(135deg, #35f17b 50%, #ffd400 50%);
}

.ml-theme-swatch-lunar {
  background: linear-gradient(135deg, #72e7ff 50%, #f7fbff 50%);
}

.ml-theme-swatch-blueprint {
  background: linear-gradient(135deg, #082b54 50%, #8ae8ff 50%);
}

.ml-theme-swatch-analog {
  background: linear-gradient(135deg, #eadfc8 50%, #e7642d 50%);
}

.ml-theme-status {
  position: relative;
  min-height: 1rem;
  margin: .8rem 0 0;
  color: var(--ml-muted);
  font: 600 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
  text-transform: uppercase;
}

body,
.ml-site-header,
.ml-site-footer,
.ml-hero,
.ml-section,
.ml-project-card,
.ml-service-card,
.ml-cta,
.ml-content-grid section {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease;
}

.ml-atom-core-glow {
  fill: var(--ml-core-glow);
  stroke: var(--ml-core-stroke);
}

.ml-atom-orbit {
  stroke: var(--ml-orbit-color);
}

.ml-electron {
  fill: var(--ml-orange);
  filter: drop-shadow(0 0 3px var(--ml-orange));
}

:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-hero {
  background:
    linear-gradient(var(--ml-hero-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--ml-hero-grid-color) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, var(--ml-hero-glow-color), transparent 27rem),
    var(--ml-ink);
  background-size: 3rem 3rem, 3rem 3rem, auto, auto;
}

:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-site-footer {
  background: var(--ml-interface-deep);
}

:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-project-card,
:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-service-card,
:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-content-grid section,
:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-contact-form,
:root[data-ml-theme]:not([data-ml-theme="atomic"]) .ml-empty-state {
  border-color: var(--ml-line-dark);
  background: var(--ml-ink-soft);
}

:root[data-ml-theme="blueprint"] body {
  background-color: var(--ml-paper);
  background-image:
    linear-gradient(rgba(138, 232, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 232, 255, .055) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

:root[data-ml-theme="blueprint"] h1,
:root[data-ml-theme="blueprint"] h2,
:root[data-ml-theme="blueprint"] h3,
:root[data-ml-theme="blueprint"] h4 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.055em;
}

:root[data-ml-theme="blueprint"] .ml-section-paper,
:root[data-ml-theme="blueprint"] .ml-entry-content {
  background-color: rgba(8, 43, 84, .94);
}

:root[data-ml-theme="lunar"] .ml-hero {
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, .8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, .62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 68%, rgba(114, 231, 255, .5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 30%, var(--ml-hero-glow-color), transparent 27rem),
    var(--ml-ink);
  background-size: 11rem 9rem, 17rem 13rem, 23rem 19rem, auto, auto;
}

:root[data-ml-theme="analog"] h1,
:root[data-ml-theme="analog"] h2,
:root[data-ml-theme="analog"] h3,
:root[data-ml-theme="analog"] h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

:root[data-ml-theme="analog"] .ml-hero {
  background:
    radial-gradient(circle at 82% 30%, var(--ml-hero-glow-color), transparent 25rem),
    repeating-linear-gradient(135deg, transparent 0 2.9rem, var(--ml-hero-grid-color) 3rem),
    var(--ml-ink);
  background-size: auto, auto, auto;
}

:root[data-ml-theme="analog"] .ml-project-card,
:root[data-ml-theme="analog"] .ml-service-card,
:root[data-ml-theme="analog"] .ml-theme-panel {
  border-radius: .35rem;
}

@media (max-width: 48rem) {
  .ml-brand {
    order: 1;
  }

  .ml-theme-switcher {
    order: 2;
    margin-left: auto;
  }

  .ml-menu-toggle {
    order: 3;
  }

  .ml-nav {
    order: 4;
  }

  .ml-header-inner {
    gap: .65rem;
  }

  .ml-theme-switcher summary {
    min-height: 3rem;
    padding-inline: .65rem;
  }

  .ml-theme-panel {
    position: fixed;
    top: 5.85rem;
    right: var(--ml-pad);
  }

  .admin-bar .ml-theme-panel {
    top: calc(5.85rem + 46px);
  }
}

@media (max-width: 28rem) {
  .ml-theme-switcher summary span:last-child {
    display: none;
  }

  .ml-theme-switcher summary {
    width: 3rem;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .ml-site-header,
  .ml-site-footer,
  .ml-hero,
  .ml-section,
  .ml-project-card,
  .ml-service-card,
  .ml-cta,
  .ml-content-grid section {
    transition: none;
  }
}
/* End interface style switcher 1.2.0 */


/* Temporal control panel 1.3.0 */
.ml-time-module {
	position: relative;
	padding: clamp(1.5rem, 4vw, 3rem) 0;
	overflow: clip;
	border-block: 1px solid var(--ml-line-dark);
	background:
		linear-gradient(90deg, transparent 49.9%, var(--ml-hero-grid-color) 50%, transparent 50.1%),
		linear-gradient(0deg, transparent 49.9%, var(--ml-hero-grid-color) 50%, transparent 50.1%),
		radial-gradient(circle at 82% 12%, var(--ml-hero-glow-color), transparent 32rem),
		var(--ml-interface-deep);
	background-size: 4rem 4rem, 4rem 4rem, auto, auto;
	color: var(--ml-white);
}

.ml-time-console {
	position: relative;
	border: 1px solid color-mix(in srgb, var(--ml-lime) 42%, transparent);
	background: color-mix(in srgb, var(--ml-interface-deep) 88%, transparent);
	box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .28);
}

.ml-time-console::before,
.ml-time-console::after {
	position: absolute;
	width: 2.2rem;
	height: 2.2rem;
	border-color: var(--ml-lime);
	pointer-events: none;
	content: "";
}

.ml-time-console::before {
	top: -.1rem;
	left: -.1rem;
	border-top: .38rem solid var(--ml-lime);
	border-left: .38rem solid var(--ml-lime);
}

.ml-time-console::after {
	right: -.1rem;
	bottom: -.1rem;
	border-right: .38rem solid var(--ml-lime);
	border-bottom: .38rem solid var(--ml-lime);
}

.ml-time-console-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	padding: clamp(1.35rem, 3vw, 2.4rem);
	border-bottom: 1px solid var(--ml-line-dark);
}

.ml-time-console-head h2 {
	max-width: 13ch;
	margin: 0;
	font-size: clamp(2rem, 4vw, 4.2rem);
}

.ml-time-signal {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	color: color-mix(in srgb, var(--ml-white) 62%, transparent);
	font: 800 .66rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ml-time-signal span {
	width: .58rem;
	height: .58rem;
	border-radius: 50%;
	background: var(--ml-lime);
	box-shadow: 0 0 1rem var(--ml-lime);
	animation: ml-time-pulse 1.8s ease-in-out infinite;
}

@keyframes ml-time-pulse {
	50% { opacity: .35; transform: scale(.72); }
}

.ml-time-readouts {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.ml-time-readout {
	position: relative;
	min-width: 0;
	padding: clamp(1.1rem, 2.4vw, 2rem);
	border-right: 1px solid var(--ml-line-dark);
}

.ml-time-readout:last-child {
	border-right: 0;
}

.ml-time-label {
	display: block;
	margin-bottom: .65rem;
	color: var(--ml-lime);
	font: 800 .64rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ml-time-readout strong {
	display: block;
	overflow: hidden;
	color: var(--ml-white);
	font: 780 clamp(1.2rem, 2.6vw, 2.15rem)/1.05 "Arial Narrow", "Aptos Display", "Roboto Condensed", sans-serif;
	letter-spacing: -.035em;
	text-overflow: ellipsis;
	text-transform: capitalize;
	white-space: nowrap;
}

.ml-time-readout-clock strong {
	color: var(--ml-white);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(1.55rem, 3.4vw, 3rem);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.055em;
}

.ml-time-readout small {
	display: block;
	margin-top: .45rem;
	overflow: hidden;
	color: color-mix(in srgb, var(--ml-white) 56%, transparent);
	font: 600 .72rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ml-time-progress {
	display: block;
	height: .2rem;
	margin-top: .85rem;
	overflow: hidden;
	background: color-mix(in srgb, var(--ml-white) 12%, transparent);
}

.ml-time-progress i {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--ml-lime), var(--ml-orange));
	box-shadow: 0 0 .8rem var(--ml-lime);
	transition: width .6s ease;
}

.ml-year-atlas {
	position: relative;
}

.ml-year-atlas > summary {
	display: flex;
	min-height: 5rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem clamp(1.35rem, 3vw, 2.4rem);
	border-top: 1px solid var(--ml-line-dark);
	color: var(--ml-white);
	list-style: none;
	cursor: pointer;
}

.ml-year-atlas > summary::-webkit-details-marker {
	display: none;
}

.ml-year-atlas > summary:hover,
.ml-year-atlas[open] > summary {
	background: color-mix(in srgb, var(--ml-lime) 7%, transparent);
}

.ml-year-atlas > summary b,
.ml-year-atlas > summary small {
	display: block;
}

.ml-year-atlas > summary b {
	font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ml-year-atlas > summary small {
	margin-top: .2rem;
	color: color-mix(in srgb, var(--ml-white) 55%, transparent);
	font-size: .78rem;
}

.ml-year-atlas-year {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	color: var(--ml-lime);
	font: 800 1.25rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ml-year-atlas-year::after {
	display: block;
	width: .72rem;
	height: .72rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	content: "";
	transform: rotate(45deg) translateY(-.2rem);
	transition: transform .2s ease;
}

.ml-year-atlas[open] .ml-year-atlas-year::after {
	transform: rotate(225deg) translate(-.15rem, -.15rem);
}

.ml-year-atlas-body {
	padding: 0 clamp(1rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem);
	border-top: 1px solid var(--ml-line-dark);
}

.ml-year-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
}

.ml-month-jumps {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(12, minmax(2.3rem, 1fr));
	gap: .25rem;
}

.ml-month-jumps button,
.ml-today-button {
	min-height: 2.4rem;
	border: 1px solid var(--ml-line-dark);
	background: transparent;
	color: color-mix(in srgb, var(--ml-white) 66%, transparent);
	font: 800 .63rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ml-month-jumps button:hover,
.ml-month-jumps button[aria-current="true"],
.ml-today-button:hover {
	border-color: var(--ml-lime);
	background: color-mix(in srgb, var(--ml-lime) 10%, transparent);
	color: var(--ml-white);
}

.ml-today-button {
	flex: 0 0 auto;
	padding-inline: 1rem;
	color: var(--ml-lime);
}

.ml-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding: .8rem 0;
	border-block: 1px solid var(--ml-line-dark);
	color: color-mix(in srgb, var(--ml-white) 62%, transparent);
	font: 700 .66rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.ml-calendar-legend span {
	display: inline-flex;
	align-items: center;
	gap: .42rem;
}

.ml-calendar-legend i {
	width: .78rem;
	height: .78rem;
	border: 1px solid var(--ml-line-dark);
}

.ml-legend-today {
	background: var(--ml-lime);
	box-shadow: 0 0 .6rem color-mix(in srgb, var(--ml-lime) 65%, transparent);
}

.ml-legend-week {
	background: color-mix(in srgb, var(--ml-lime) 16%, transparent);
}

.ml-legend-month {
	border-color: var(--ml-orange) !important;
}

.ml-selected-date {
	margin: 1rem 0;
	color: var(--ml-lime);
	font: 700 .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: capitalize;
}

.ml-year-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .8rem;
	scroll-margin-top: 8rem;
}

.ml-calendar-month {
	min-width: 0;
	padding: .85rem;
	border: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 82%, transparent);
	scroll-margin-top: 8rem;
}

.ml-calendar-month.is-current-month {
	border-color: var(--ml-orange);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ml-orange) 25%, transparent);
}

.ml-calendar-month h3 {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	margin: 0 0 .7rem;
	color: var(--ml-white);
	font: 800 .95rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ml-calendar-month h3 span {
	color: var(--ml-lime);
	font-size: .68rem;
}

.ml-weekday-row,
.ml-days-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: .16rem;
}

.ml-weekday-row {
	margin-bottom: .25rem;
	color: color-mix(in srgb, var(--ml-white) 42%, transparent);
	font: 700 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: center;
}

.ml-day,
.ml-day-blank {
	aspect-ratio: 1;
	min-width: 0;
}

.ml-day {
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	color: color-mix(in srgb, var(--ml-white) 70%, transparent);
	font: 650 clamp(.58rem, 1.1vw, .72rem) ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-variant-numeric: tabular-nums;
}

.ml-day:hover,
.ml-day.is-selected {
	border-color: var(--ml-white);
	color: var(--ml-white);
}

.ml-day.is-current-week {
	background: color-mix(in srgb, var(--ml-lime) 15%, transparent);
	color: var(--ml-white);
}

.ml-day.is-today {
	position: relative;
	z-index: 1;
	border-color: var(--ml-lime);
	background: var(--ml-lime);
	box-shadow: 0 0 1rem color-mix(in srgb, var(--ml-lime) 56%, transparent);
	color: var(--ml-interface-deep);
	font-weight: 900;
}

@media (max-width: 64rem) {
	.ml-time-readouts {
		grid-template-columns: repeat(2, 1fr);
	}

	.ml-time-readout:nth-child(2) {
		border-right: 0;
	}

	.ml-time-readout:nth-child(-n+2) {
		border-bottom: 1px solid var(--ml-line-dark);
	}

	.ml-year-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ml-month-jumps {
		grid-template-columns: repeat(6, minmax(2.3rem, 1fr));
	}
}

@media (max-width: 40rem) {
	.ml-time-console-head {
		display: block;
	}

	.ml-time-signal {
		margin-top: 1rem;
	}
	.ml-time-readout strong {
		white-space: normal;
	}

	.ml-time-readout-clock strong {
		white-space: nowrap;
	}

	.ml-year-atlas > summary small {
		display: none;
	}

	.ml-year-atlas-body {
		padding-inline: .75rem;
	}

	.ml-year-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.ml-month-jumps {
		grid-template-columns: repeat(4, 1fr);
	}

	.ml-year-grid {
		grid-template-columns: 1fr;
	}

	.ml-calendar-month {
		padding: .75rem;
	}

	.ml-day {
		font-size: .7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-time-signal span {
		animation: none;
	}

	.ml-time-progress i,
	.ml-year-atlas-year::after {
		transition: none;
	}
}
/* End temporal control panel 1.3.0 */


/* ML//LAB modules 1.4.0 */
body.ml-lab-open {
	overflow: hidden;
}

.ml-lab {
	position: relative;
	padding: clamp(3rem, 6vw, 5.5rem) 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 10% 20%, var(--ml-hero-glow-color), transparent 28rem),
		linear-gradient(135deg, var(--ml-interface-deep), var(--ml-ink));
	color: var(--ml-white);
}

.ml-lab::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--ml-hero-grid-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--ml-hero-grid-color) 1px, transparent 1px);
	background-size: 3rem 3rem;
	mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
	pointer-events: none;
	content: "";
}

.ml-lab > .ml-container {
	position: relative;
	z-index: 1;
}

.ml-lab-head {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .65fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: end;
	margin-bottom: 2rem;
}

.ml-lab-head h2 {
	max-width: 12ch;
	margin-bottom: 0;
}

.ml-lab-head .ml-lead {
	margin: 0;
	color: color-mix(in srgb, var(--ml-white) 68%, transparent);
}

.ml-lab-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .8rem;
}

.ml-lab-card {
	position: relative;
	display: flex;
	min-height: 23rem;
	flex-direction: column;
	align-items: stretch;
	padding: 1.25rem;
	overflow: hidden;
	border: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 84%, transparent);
	color: var(--ml-white);
	text-align: left;
	transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.ml-lab-card:hover {
	border-color: var(--ml-lime);
	background: color-mix(in srgb, var(--ml-lime) 7%, var(--ml-interface-deep));
	transform: translateY(-.25rem);
}

.ml-lab-card::after {
	position: absolute;
	right: -2.6rem;
	bottom: -2.6rem;
	width: 7rem;
	height: 7rem;
	border: 1px solid color-mix(in srgb, var(--ml-lime) 24%, transparent);
	border-radius: 50%;
	content: "";
}

.ml-lab-index {
	color: var(--ml-lime);
	font: 800 .63rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ml-lab-card > strong {
	margin: 1.15rem 0 .55rem;
	font: 780 clamp(1.55rem, 2.5vw, 2.35rem)/.98 "Arial Narrow", "Aptos Display", "Roboto Condensed", sans-serif;
	letter-spacing: -.04em;
}

.ml-lab-card > small {
	max-width: 30rem;
	color: color-mix(in srgb, var(--ml-white) 62%, transparent);
	font-size: .86rem;
	line-height: 1.55;
}

.ml-lab-launch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 1.15rem;
	border-top: 1px solid var(--ml-line-dark);
	color: var(--ml-lime);
	font: 800 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ml-lab-launch b {
	font-size: 1.1rem;
}

.ml-lab-visual {
	position: relative;
	display: block;
	height: 9.2rem;
	margin: 1rem 0 .25rem;
	overflow: hidden;
	border: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 82%, transparent);
}

.ml-config-visual {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .35rem;
	padding: .8rem;
}

.ml-config-visual i {
	border: 1px solid color-mix(in srgb, var(--ml-lime) 52%, transparent);
	background:
		linear-gradient(90deg, var(--ml-lime) 38%, transparent 38%) 50% 70% / 68% 2px no-repeat,
		linear-gradient(90deg, var(--ml-white) 62%, transparent 62%) 50% 42% / 68% 2px no-repeat,
		color-mix(in srgb, var(--ml-lime) 5%, transparent);
}

.ml-config-visual i:nth-child(2) { transform: translateY(.5rem); }
.ml-config-visual i:nth-child(3) { transform: translateY(-.5rem); }

.ml-orbit-visual {
	background:
		radial-gradient(circle at 16% 22%, #fff 0 1px, transparent 1.5px),
		radial-gradient(circle at 72% 64%, #fff 0 1px, transparent 1.5px),
		radial-gradient(circle at 52% 18%, #fff 0 1px, transparent 1.5px),
		radial-gradient(circle at 90% 28%, #fff 0 1px, transparent 1.5px),
		#02050a;
}

.ml-mini-earth,
.ml-mini-moon,
.ml-mini-station {
	position: absolute;
	display: block;
}

.ml-mini-earth {
	top: 1.25rem;
	left: 1.1rem;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background:
		radial-gradient(ellipse at 35% 35%, #79ef9e 0 10%, transparent 11%),
		radial-gradient(ellipse at 62% 60%, #2d9f60 0 14%, transparent 15%),
		radial-gradient(circle at 34% 28%, #6fc9ff, #174b8b 62%, #031427 70%);
	box-shadow: inset -1.2rem -1rem 1.5rem rgba(0, 0, 0, .68), 0 0 1.5rem rgba(74, 162, 255, .3);
}

.ml-mini-moon {
	right: 1.1rem;
	bottom: 1.2rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff, #9aa5b2 58%, #36404c 72%);
	box-shadow: inset -.55rem -.4rem .7rem rgba(0, 0, 0, .5);
}

.ml-mini-station {
	top: 52%;
	left: 51%;
	width: 4.8rem;
	height: .5rem;
	background: var(--ml-white);
	box-shadow: -2.2rem 0 0 -.05rem var(--ml-blue), 2.2rem 0 0 -.05rem var(--ml-blue);
	transform: rotate(-14deg);
}

.ml-mini-station::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.3rem;
	height: 1.3rem;
	border: 2px solid var(--ml-lime);
	border-radius: 50%;
	content: "";
	transform: translate(-50%, -50%);
}

.ml-stream-visual {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .7rem;
	padding: 1rem;
}

.ml-stream-visual i {
	display: block;
	height: .28rem;
	background: linear-gradient(90deg, var(--ml-lime), var(--ml-lime) var(--ml-stream-length, 70%), transparent var(--ml-stream-length, 70%));
	box-shadow: 0 0 .65rem color-mix(in srgb, var(--ml-lime) 34%, transparent);
	animation: ml-stream-scan 2.8s ease-in-out infinite alternate;
}

.ml-stream-visual i:nth-child(2) { --ml-stream-length: 46%; animation-delay: -.6s; }
.ml-stream-visual i:nth-child(3) { --ml-stream-length: 88%; animation-delay: -1.1s; }
.ml-stream-visual i:nth-child(4) { --ml-stream-length: 59%; animation-delay: -1.7s; }
.ml-stream-visual i:nth-child(5) { --ml-stream-length: 76%; animation-delay: -2.2s; }

@keyframes ml-stream-scan {
	to { opacity: .35; transform: scaleX(.78); transform-origin: left; }
}

.ml-lab-dialog {
	width: min(94vw, 86rem);
	max-width: none;
	max-height: 92vh;
	padding: 0;
	overflow: auto;
	border: 1px solid var(--ml-lime);
	background: var(--ml-interface-deep);
	color: var(--ml-white);
	box-shadow: 0 2rem 8rem rgba(0, 0, 0, .72);
}

.ml-lab-dialog::backdrop {
	background: rgba(0, 0, 0, .82);
	backdrop-filter: blur(.45rem);
}

.ml-dialog-shell {
	min-height: min(48rem, 88vh);
	background:
		linear-gradient(var(--ml-hero-grid-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--ml-hero-grid-color) 1px, transparent 1px),
		var(--ml-interface-deep);
	background-size: 3rem 3rem;
}

.ml-dialog-head {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1rem clamp(1rem, 3vw, 2rem);
	border-bottom: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 92%, transparent);
	backdrop-filter: blur(1rem);
}

.ml-dialog-head span,
.ml-stream-section-head span {
	color: var(--ml-lime);
	font: 800 .63rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ml-dialog-head h2 {
	margin: .25rem 0 0;
	font-size: clamp(1.65rem, 3vw, 3.2rem);
}

.ml-dialog-head button,
.ml-orbit-hud button {
	min-height: 2.7rem;
	padding: .55rem .85rem;
	border: 1px solid var(--ml-line-dark);
	background: transparent;
	color: var(--ml-white);
	font: 800 .67rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ml-dialog-head button:hover,
.ml-orbit-hud button:hover {
	border-color: var(--ml-lime);
	color: var(--ml-lime);
}

.ml-config-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr);
}

.ml-config-form {
	padding: clamp(1rem, 3vw, 2rem);
	border-right: 1px solid var(--ml-line-dark);
}

.ml-config-form fieldset {
	margin: 0 0 1.6rem;
	padding: 0;
	border: 0;
}

.ml-config-form legend {
	width: 100%;
	margin-bottom: .65rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--ml-line-dark);
	color: var(--ml-lime);
	font: 800 .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ml-option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .45rem;
}

.ml-option-grid-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ml-option-grid label,
.ml-feature-options label {
	position: relative;
	cursor: pointer;
}

.ml-option-grid input,
.ml-feature-options input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ml-option-grid label > span {
	display: block;
	min-height: 5.1rem;
	padding: .75rem;
	border: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 76%, transparent);
}

.ml-option-grid label:hover > span,
.ml-option-grid input:focus-visible + span,
.ml-option-grid input:checked + span,
.ml-feature-options label:hover > span,
.ml-feature-options input:focus-visible + span,
.ml-feature-options input:checked + span {
	border-color: var(--ml-lime);
	background: color-mix(in srgb, var(--ml-lime) 10%, transparent);
}

.ml-option-grid input:focus-visible + span,
.ml-feature-options input:focus-visible + span {
	outline: 3px solid var(--ml-lime);
	outline-offset: 2px;
}

.ml-option-grid b,
.ml-option-grid small {
	display: block;
}

.ml-option-grid b {
	font-size: .85rem;
}

.ml-option-grid small {
	margin-top: .25rem;
	color: color-mix(in srgb, var(--ml-white) 53%, transparent);
	font-size: .7rem;
}

.ml-feature-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .4rem;
}

.ml-feature-options label > span {
	display: flex;
	min-height: 2.8rem;
	align-items: center;
	padding: .55rem .65rem .55rem 2rem;
	border: 1px solid var(--ml-line-dark);
	color: color-mix(in srgb, var(--ml-white) 74%, transparent);
	font-size: .75rem;
}

.ml-feature-options label > span::before {
	position: absolute;
	top: 50%;
	left: .7rem;
	width: .65rem;
	height: .65rem;
	border: 1px solid var(--ml-line-dark);
	content: "";
	transform: translateY(-50%);
}

.ml-feature-options input:checked + span::before {
	border-color: var(--ml-lime);
	background: var(--ml-lime);
	box-shadow: 0 0 .65rem color-mix(in srgb, var(--ml-lime) 60%, transparent);
}

.ml-range-control {
	display: block;
}

.ml-range-control > span {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .75rem;
	font-size: .8rem;
}

.ml-range-control output {
	color: var(--ml-lime);
	font: 800 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ml-range-control input {
	width: 100%;
	accent-color: var(--ml-lime);
}

.ml-config-output {
	position: sticky;
	top: 5.5rem;
	align-self: start;
	padding: clamp(1rem, 3vw, 2rem);
}

.ml-config-radar {
	--ml-config-score: 0%;
	position: relative;
	display: grid;
	width: 9rem;
	height: 9rem;
	place-items: center;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--ml-interface-deep) 0 52%, transparent 53%),
		conic-gradient(var(--ml-lime) var(--ml-config-score), color-mix(in srgb, var(--ml-white) 10%, transparent) 0);
	box-shadow: 0 0 2rem color-mix(in srgb, var(--ml-lime) 12%, transparent);
}

.ml-config-radar::before,
.ml-config-radar::after {
	position: absolute;
	inset: 13%;
	border: 1px solid var(--ml-line-dark);
	border-radius: 50%;
	content: "";
}

.ml-config-radar::after {
	inset: 30%;
}

.ml-config-radar i {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 75%, color-mix(in srgb, var(--ml-lime) 65%, transparent) 98%, transparent);
	animation: ml-config-spin 4s linear infinite;
}

.ml-config-radar span {
	position: relative;
	z-index: 2;
	color: var(--ml-white);
	font: 800 2.2rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@keyframes ml-config-spin {
	to { transform: rotate(360deg); }
}

.ml-config-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid var(--ml-line-dark);
}

.ml-config-metrics div {
	padding: .7rem;
	border-right: 1px solid var(--ml-line-dark);
}

.ml-config-metrics div:last-child {
	border-right: 0;
}

.ml-config-metrics span,
.ml-architecture > span,
.ml-generated-brief > span {
	display: block;
	color: color-mix(in srgb, var(--ml-white) 48%, transparent);
	font: 700 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.ml-config-metrics strong {
	display: block;
	margin-top: .3rem;
	color: var(--ml-lime);
	font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ml-architecture,
.ml-generated-brief {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 76%, transparent);
}

.ml-architecture > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .3rem;
	margin-top: .7rem;
}

.ml-architecture > div span {
	display: flex;
	align-items: center;
	gap: .45rem;
	padding: .4rem;
	border: 1px solid var(--ml-line-dark);
	font-size: .68rem;
}

.ml-architecture > div i {
	color: var(--ml-lime);
	font: 800 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ml-generated-brief p {
	margin: .65rem 0 0;
	color: color-mix(in srgb, var(--ml-white) 76%, transparent);
	font-size: .78rem;
	line-height: 1.55;
}

.ml-config-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .45rem;
	margin-top: 1rem;
}

.ml-config-actions button,
.ml-config-actions a {
	display: grid;
	min-height: 3rem;
	place-items: center;
	padding: .65rem;
	border: 1px solid var(--ml-lime);
	background: transparent;
	color: var(--ml-lime);
	font: 800 .65rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.ml-config-actions a {
	background: var(--ml-lime);
	color: var(--ml-interface-deep);
}

.ml-config-note,
.ml-stream-source {
	color: color-mix(in srgb, var(--ml-white) 46%, transparent);
	font-size: .66rem;
	line-height: 1.5;
}

.ml-orbit-dialog {
	width: 100vw;
	height: 100dvh;
	max-height: none;
	overflow: hidden;
	border: 0;
	background: #000;
}

.ml-orbit-stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	touch-action: none;
	background:
		radial-gradient(circle at 50% 50%, rgba(22, 65, 88, .18), transparent 38%),
		#000;
	cursor: grab;
}

.ml-orbit-stage:active {
	cursor: grabbing;
}

.ml-orbit-stage canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ml-orbit-hud {
	position: absolute;
	z-index: 30;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	padding: clamp(1rem, 3vw, 2rem);
	background: linear-gradient(to bottom, rgba(0, 0, 0, .82), transparent);
	pointer-events: none;
}

.ml-orbit-hud > * {
	pointer-events: auto;
}

.ml-orbit-hud span {
	color: #66ffad;
	font: 800 .65rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .16em;
}

.ml-orbit-hud h2 {
	margin: .25rem 0 0;
	color: #fff;
	font-size: clamp(1.7rem, 4vw, 4rem);
	text-shadow: 0 0 1.5rem #000;
}

.ml-space-object,
.ml-space-station {
	position: absolute;
	z-index: 10;
	top: 0;
	left: 0;
	will-change: transform, opacity;
	transition: opacity .2s ease;
	pointer-events: none;
}

.ml-space-earth {
	width: clamp(9rem, 24vw, 21rem);
	height: clamp(9rem, 24vw, 21rem);
	border-radius: 50%;
	background:
		radial-gradient(ellipse at 32% 24%, rgba(255,255,255,.65) 0 2%, transparent 3%),
		radial-gradient(ellipse at 32% 40%, #4faf72 0 9%, transparent 10%),
		radial-gradient(ellipse at 57% 62%, #317e4e 0 13%, transparent 14%),
		radial-gradient(ellipse at 63% 30%, #75c575 0 8%, transparent 9%),
		radial-gradient(circle at 35% 30%, #67c7ff, #1a5f9f 58%, #07192e 73%);
	box-shadow:
		inset -4rem -2rem 5rem rgba(0, 0, 0, .78),
		inset 1.3rem 0 2.3rem rgba(137, 220, 255, .25),
		0 0 4rem rgba(63, 162, 255, .24);
}

.ml-space-earth::after {
	position: absolute;
	inset: -3%;
	border: 1px solid rgba(113, 204, 255, .45);
	border-radius: 50%;
	box-shadow: 0 0 1.5rem rgba(113, 204, 255, .38);
	content: "";
}

.ml-space-moon {
	width: clamp(4.5rem, 10vw, 9rem);
	height: clamp(4.5rem, 10vw, 9rem);
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 35%, rgba(83,91,101,.38) 0 8%, transparent 9%),
		radial-gradient(circle at 65% 55%, rgba(69,75,83,.45) 0 12%, transparent 13%),
		radial-gradient(circle at 55% 24%, rgba(255,255,255,.92), #aab2bc 57%, #4b535d 75%);
	box-shadow: inset -1.4rem -.8rem 2.2rem rgba(0,0,0,.72), 0 0 2rem rgba(255,255,255,.12);
}

.ml-space-station {
	z-index: 14;
	width: clamp(10rem, 24vw, 20rem);
	height: clamp(4rem, 9vw, 7rem);
}

.ml-station-core,
.ml-station-panel,
.ml-station-ring {
	position: absolute;
	display: block;
}

.ml-station-core {
	top: 50%;
	left: 50%;
	width: 30%;
	height: 24%;
	border: 1px solid #fff;
	border-radius: 40%;
	background: linear-gradient(90deg, #6e7782, #f0f5f7 46%, #737d87);
	box-shadow: 0 0 1.2rem rgba(255,255,255,.25);
	transform: translate(-50%, -50%);
}

.ml-station-panel {
	top: 50%;
	width: 32%;
	height: 26%;
	border: 1px solid #6688a8;
	background:
		linear-gradient(90deg, transparent 48%, rgba(255,255,255,.35) 49% 51%, transparent 52%),
		repeating-linear-gradient(0deg, #15365f 0 18%, #1e5a94 19% 36%);
	box-shadow: 0 0 1rem rgba(40,127,211,.25);
	transform: translateY(-50%);
}

.ml-station-panel-left { left: 2%; }
.ml-station-panel-right { right: 2%; }

.ml-station-ring {
	top: 50%;
	left: 50%;
	width: 20%;
	aspect-ratio: 1;
	border: .35rem solid #d9e1e6;
	border-radius: 50%;
	transform: translate(-50%, -50%) rotateX(68deg);
}

.ml-orbit-crosshair {
	position: absolute;
	z-index: 18;
	top: 50%;
	left: 50%;
	width: 4.5rem;
	height: 4.5rem;
	border: 1px solid rgba(102,255,173,.35);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ml-orbit-crosshair::before,
.ml-orbit-crosshair::after {
	position: absolute;
	background: rgba(102,255,173,.55);
	content: "";
}

.ml-orbit-crosshair::before { top: 50%; left: -1rem; width: calc(100% + 2rem); height: 1px; }
.ml-orbit-crosshair::after { top: -1rem; left: 50%; width: 1px; height: calc(100% + 2rem); }

.ml-orbit-crosshair i {
	position: absolute;
	inset: 38%;
	border: 1px solid rgba(102,255,173,.72);
	border-radius: 50%;
}

.ml-orbit-data {
	position: absolute;
	z-index: 24;
	bottom: clamp(1rem, 3vw, 2rem);
	left: clamp(1rem, 3vw, 2rem);
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: .35rem 1.2rem;
	padding: .8rem;
	border-left: 2px solid #66ffad;
	background: rgba(0,0,0,.56);
	color: rgba(255,255,255,.52);
	font: 700 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
}

.ml-orbit-data b {
	color: #fff;
}

.ml-link-ok {
	color: #66ffad !important;
}

.ml-orbit-controls {
	position: absolute;
	z-index: 24;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	max-width: 25rem;
	padding: .8rem;
	background: rgba(0,0,0,.56);
	text-align: right;
}

.ml-orbit-controls p {
	margin: 0 0 .65rem;
	color: rgba(255,255,255,.58);
	font-size: .7rem;
}

.ml-orbit-controls button {
	min-height: 2.45rem;
	padding: .5rem .7rem;
	border: 1px solid rgba(102,255,173,.45);
	background: rgba(0,0,0,.35);
	color: #66ffad;
	font: 800 .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.ml-space-ufo {
	--ml-ufo-y: 34%;
	position: absolute;
	z-index: 16;
	top: var(--ml-ufo-y);
	left: -12rem;
	width: 6rem;
	height: 1.3rem;
	border-radius: 50%;
	background: linear-gradient(#e7faff, #4e7785 50%, #0a161d 55%);
	box-shadow: 0 .8rem 1.8rem rgba(102,255,173,.3), 0 0 1rem rgba(255,255,255,.35);
	opacity: 0;
	pointer-events: none;
}

.ml-space-ufo i {
	position: absolute;
	bottom: 55%;
	left: 50%;
	width: 2.3rem;
	height: 1.2rem;
	border-radius: 50% 50% 25% 25%;
	background: rgba(134,230,255,.55);
	transform: translateX(-50%);
}

.ml-space-ufo.is-visible {
	animation: ml-ufo-pass 3.5s cubic-bezier(.3,.05,.65,.96) forwards;
}

@keyframes ml-ufo-pass {
	0% { left: -10rem; opacity: 0; transform: scale(.5) rotate(-5deg); }
	15% { opacity: 1; }
	70% { opacity: .9; }
	100% { left: calc(100% + 10rem); opacity: 0; transform: scale(1.1) rotate(4deg); }
}

.ml-ufo-alert {
	position: absolute;
	z-index: 30;
	top: 50%;
	left: 50%;
	padding: .6rem .8rem;
	border: 1px solid #ffd400;
	background: rgba(0,0,0,.72);
	color: #ffd400;
	font: 800 .66rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: 0;
	transform: translate(-50%, 3rem);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.ml-ufo-alert.is-visible {
	opacity: 1;
	transform: translate(-50%, 2rem);
}

.ml-stream-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr);
	gap: 1rem;
	padding: clamp(1rem, 3vw, 2rem);
}

.ml-news-stream,
.ml-data-stream {
	padding: 1rem;
	border: 1px solid var(--ml-line-dark);
	background: color-mix(in srgb, var(--ml-interface-deep) 80%, transparent);
}

.ml-stream-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: .8rem;
	border-bottom: 1px solid var(--ml-line-dark);
}

.ml-stream-section-head h3 {
	margin: .2rem 0 0;
	font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.ml-stream-section-head > i {
	width: .65rem;
	height: .65rem;
	border-radius: 50%;
	background: var(--ml-lime);
	box-shadow: 0 0 1rem var(--ml-lime);
	animation: ml-time-pulse 1.8s ease-in-out infinite;
}

.ml-news-stream ol,
.ml-event-stream ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ml-news-stream li {
	border-bottom: 1px solid var(--ml-line-dark);
}

.ml-news-stream li a {
	display: grid;
	grid-template-columns: 3.2rem 1fr auto;
	gap: .75rem;
	align-items: start;
	padding: .85rem .35rem;
	text-decoration: none;
}

.ml-news-stream li a:hover {
	background: color-mix(in srgb, var(--ml-lime) 7%, transparent);
}

.ml-news-stream time,
.ml-event-stream time {
	color: var(--ml-lime);
	font: 800 .64rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ml-news-stream li span {
	color: color-mix(in srgb, var(--ml-white) 82%, transparent);
	font-size: .78rem;
	line-height: 1.4;
}

.ml-news-stream li b {
	color: var(--ml-lime);
}

.ml-stream-empty {
	padding: 2rem 0;
	color: color-mix(in srgb, var(--ml-white) 62%, transparent);
}

.ml-data-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .4rem;
	margin-top: 1rem;
}

.ml-data-grid > div {
	padding: .7rem;
	border: 1px solid var(--ml-line-dark);
}

.ml-data-grid span,
.ml-event-stream-head > span {
	display: block;
	color: color-mix(in srgb, var(--ml-white) 48%, transparent);
	font: 700 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.ml-data-grid strong {
	display: block;
	margin-top: .35rem;
	overflow: hidden;
	color: var(--ml-lime);
	font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ml-data-grid strong.is-offline {
	color: #ff745f;
}

.ml-event-stream {
	margin-top: 1rem;
	border: 1px solid var(--ml-line-dark);
}

.ml-event-stream-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .65rem;
	border-bottom: 1px solid var(--ml-line-dark);
}

.ml-event-stream-head button {
	padding: .35rem .55rem;
	border: 1px solid var(--ml-lime);
	background: transparent;
	color: var(--ml-lime);
	font: 800 .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.ml-event-stream li {
	display: grid;
	grid-template-columns: 4.7rem 1fr;
	gap: .65rem;
	padding: .45rem .65rem;
	border-bottom: 1px solid color-mix(in srgb, var(--ml-line-dark) 65%, transparent);
	color: color-mix(in srgb, var(--ml-white) 66%, transparent);
	font-size: .67rem;
}

.ml-event-stream li:last-child {
	border-bottom: 0;
}

@media (max-width: 62rem) {
	.ml-lab-head,
	.ml-config-layout,
	.ml-stream-layout {
		grid-template-columns: 1fr;
	}

	.ml-lab-grid {
		grid-template-columns: 1fr;
	}

	.ml-lab-card {
		min-height: 18rem;
	}

	.ml-config-form {
		border-right: 0;
		border-bottom: 1px solid var(--ml-line-dark);
	}

	.ml-config-output {
		position: static;
	}

	.ml-option-grid-three {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 42rem) {
	.ml-lab-grid {
		display: flex;
		margin-inline: calc(var(--ml-pad) * -1);
		padding: 0 var(--ml-pad) .8rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}

	.ml-lab-card {
		min-width: min(84vw, 22rem);
		min-height: 21rem;
		scroll-snap-align: center;
	}

	.ml-lab-dialog {
		width: 100vw;
		height: 100dvh;
		max-height: none;
		border: 0;
	}

	.ml-dialog-shell {
		min-height: 100%;
	}

	.ml-dialog-head {
		align-items: flex-start;
		padding: .8rem;
	}

	.ml-dialog-head h2 {
		font-size: 1.55rem;
	}

	.ml-dialog-head button {
		flex: 0 0 auto;
	}

	.ml-option-grid,
	.ml-feature-options,
	.ml-config-metrics,
	.ml-architecture > div,
	.ml-config-actions,
	.ml-data-grid {
		grid-template-columns: 1fr;
	}

	.ml-option-grid label > span {
		min-height: 4.25rem;
	}

	.ml-config-metrics div {
		border-right: 0;
		border-bottom: 1px solid var(--ml-line-dark);
	}

	.ml-config-metrics div:last-child {
		border-bottom: 0;
	}

	.ml-stream-layout {
		padding: .75rem;
	}

	.ml-orbit-hud {
		padding: .8rem;
	}

	.ml-orbit-hud span {
		font-size: .55rem;
	}

	.ml-orbit-hud h2 {
		max-width: 9ch;
		font-size: 1.65rem;
	}

	.ml-orbit-data {
		right: .8rem;
		bottom: 6.7rem;
		left: .8rem;
		grid-template-columns: repeat(2, 1fr);
	}

	.ml-orbit-controls {
		right: .8rem;
		bottom: .8rem;
		left: .8rem;
		max-width: none;
		text-align: left;
	}

	.ml-orbit-controls p {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-lab-card,
	.ml-stream-visual i,
	.ml-config-radar i,
	.ml-stream-section-head > i,
	.ml-space-ufo {
		animation: none;
		transition: none;
	}
}
/* End ML//LAB modules 1.4.0 */

/* Portfolio proof and fixed identity refinement 1.5.0 */
.ml-project-card .ml-project-topline {
	justify-content: flex-start;
	margin-bottom: .9rem;
}

.ml-project-card p {
	color: rgba(242, 255, 245, .74);
}

.ml-lab + .ml-time-module {
	border-top: 0;
}

:root[data-ml-theme="lunar"] .ml-project-card p,
:root[data-ml-theme="blueprint"] .ml-project-card p,
:root[data-ml-theme="analog"] .ml-project-card p {
	color: rgba(247, 251, 255, .78);
}
/* End portfolio proof and fixed identity refinement 1.5.0 */

/* Mobile: stack ML//LAB systems vertically */
@media (max-width: 42rem) {
	.ml-lab-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1rem;
		margin-inline: 0;
		padding: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.ml-lab-card {
		width: 100%;
		min-width: 0;
		min-height: 21rem;
		scroll-snap-align: none;
	}
}
