@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Sora:wght@600;700;800&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
	color-scheme: light;
	--page-bg: #f5efe5;
	--page-ink: #18211b;
	--muted-ink: #667066;
	--line: rgba(24, 33, 27, 0.12);
	--panel-bg: rgba(255, 252, 247, 0.78);
	--panel-solid: rgba(255, 252, 247, 0.94);
	--panel-alt: rgba(24, 33, 27, 0.055);
	--accent: #14624a;
	--accent-strong: #0c4434;
	--accent-soft: rgba(20, 98, 74, 0.14);
	--ready: #2e7d32;
	--issue: #c23b22;
	--checking: #c48a19;
	--toolbar-offset: 88px;
	--toolbar-body-gap: 4px;
	--toolbar-edge: 10px;
	--frame-top-gap: 2px;
	--tab-active-bg: rgba(24, 33, 27, 0.1);
	--hero-accent: linear-gradient(135deg, rgba(20, 98, 74, 0.22), rgba(20, 98, 74, 0.03));
	--hero-surface: linear-gradient(145deg, rgba(255, 252, 247, 0.8), rgba(255, 255, 255, 0.44));
	--hero-shadow: 0 28px 80px rgba(17, 24, 20, 0.09);
	--panel-shadow: 0 18px 40px rgba(17, 24, 20, 0.08);
	--toolbar-shadow: 0 14px 30px rgba(17, 24, 20, 0.08);
	--toolbar-hover: rgba(24, 33, 27, 0.08);
	--tab-muted: rgba(24, 33, 27, 0.72);
	--tab-dot-idle: rgba(24, 33, 27, 0.22);
	--tab-dot-active: rgba(24, 33, 27, 0.84);
	--tab-dot-live: rgba(20, 98, 74, 0.5);
	--signal-idle: rgba(24, 33, 27, 0.16);
	--placeholder-ink: rgba(24, 33, 27, 0.48);
	--content-stage-bg: #ffffff;
	--hero-card-bg: rgba(255, 255, 255, 0.7);
	--hero-card-border: rgba(24, 33, 27, 0.09);
	--theme-outline: rgba(24, 33, 27, 0.08);
}

body[data-theme="tide"] {
	--page-bg: #e6eff2;
	--page-ink: #12222c;
	--muted-ink: #5d717a;
	--line: rgba(18, 34, 44, 0.12);
	--panel-bg: rgba(245, 251, 255, 0.8);
	--panel-solid: rgba(252, 255, 255, 0.94);
	--panel-alt: rgba(16, 32, 42, 0.055);
	--accent: #116b7b;
	--accent-strong: #0b4c58;
	--accent-soft: rgba(17, 107, 123, 0.14);
	--hero-accent: linear-gradient(140deg, rgba(17, 107, 123, 0.22), rgba(117, 202, 213, 0.05));
	--hero-surface: linear-gradient(145deg, rgba(245, 251, 255, 0.82), rgba(255, 255, 255, 0.46));
}

body[data-theme="night"] {
	color-scheme: dark;
	--page-bg: #041019;
	--page-ink: #edf7f8;
	--muted-ink: #8fa7ad;
	--line: rgba(237, 247, 248, 0.11);
	--panel-bg: rgba(7, 16, 24, 0.84);
	--panel-solid: rgba(10, 19, 28, 0.95);
	--panel-alt: rgba(255, 255, 255, 0.045);
	--accent: #67d3c7;
	--accent-strong: #38a89d;
	--accent-soft: rgba(103, 211, 199, 0.16);
	--ready: #4caf50;
	--issue: #ff7f61;
	--checking: #f2b84f;
	--tab-active-bg: rgba(16, 34, 48, 0.88);
	--hero-accent: linear-gradient(150deg, rgba(42, 185, 175, 0.22), rgba(255, 184, 97, 0.04));
	--hero-surface: linear-gradient(160deg, rgba(8, 17, 25, 0.96), rgba(11, 25, 37, 0.82));
	--hero-shadow: 0 34px 96px rgba(1, 5, 9, 0.48);
	--panel-shadow: 0 22px 48px rgba(1, 5, 9, 0.34);
	--toolbar-shadow: 0 18px 38px rgba(1, 5, 9, 0.3);
	--toolbar-hover: rgba(255, 255, 255, 0.065);
	--tab-muted: rgba(237, 246, 247, 0.72);
	--tab-dot-idle: rgba(237, 246, 247, 0.22);
	--tab-dot-active: rgba(237, 246, 247, 0.92);
	--tab-dot-live: rgba(103, 211, 199, 0.58);
	--signal-idle: rgba(237, 246, 247, 0.18);
	--placeholder-ink: rgba(237, 246, 247, 0.48);
	--hero-card-bg: rgba(255, 255, 255, 0.04);
	--hero-card-border: rgba(103, 211, 199, 0.12);
	--theme-outline: rgba(255, 255, 255, 0.08);
}

body[data-theme="midnight"] {
	color-scheme: dark;
	--page-bg: #040814;
	--page-ink: #f0f4ff;
	--muted-ink: #95a3c4;
	--line: rgba(240, 244, 255, 0.11);
	--panel-bg: rgba(8, 13, 29, 0.84);
	--panel-solid: rgba(10, 17, 35, 0.95);
	--panel-alt: rgba(255, 255, 255, 0.045);
	--accent: #7d9cff;
	--accent-strong: #5976d6;
	--accent-soft: rgba(125, 156, 255, 0.16);
	--ready: #51c878;
	--issue: #ff836c;
	--checking: #f0ba57;
	--tab-active-bg: rgba(18, 31, 58, 0.9);
	--hero-accent: linear-gradient(150deg, rgba(96, 129, 255, 0.24), rgba(98, 191, 255, 0.05));
	--hero-surface: linear-gradient(160deg, rgba(8, 14, 30, 0.96), rgba(14, 24, 49, 0.84));
	--hero-shadow: 0 34px 96px rgba(2, 5, 12, 0.5);
	--panel-shadow: 0 22px 48px rgba(2, 5, 12, 0.36);
	--toolbar-shadow: 0 18px 38px rgba(2, 5, 12, 0.32);
	--toolbar-hover: rgba(255, 255, 255, 0.065);
	--tab-muted: rgba(240, 244, 255, 0.72);
	--tab-dot-idle: rgba(240, 244, 255, 0.22);
	--tab-dot-active: rgba(240, 244, 255, 0.92);
	--tab-dot-live: rgba(125, 156, 255, 0.6);
	--signal-idle: rgba(240, 244, 255, 0.18);
	--placeholder-ink: rgba(240, 244, 255, 0.48);
	--hero-card-bg: rgba(255, 255, 255, 0.04);
	--hero-card-border: rgba(125, 156, 255, 0.12);
	--theme-outline: rgba(255, 255, 255, 0.08);
}

body[data-theme="obsidian"] {
	color-scheme: dark;
	--page-bg: #050a0a;
	--page-ink: #f0f5f2;
	--muted-ink: #96a59d;
	--line: rgba(240, 245, 242, 0.1);
	--panel-bg: rgba(10, 15, 13, 0.84);
	--panel-solid: rgba(14, 21, 18, 0.95);
	--panel-alt: rgba(255, 255, 255, 0.042);
	--accent: #72d1b0;
	--accent-strong: #489b80;
	--accent-soft: rgba(114, 209, 176, 0.16);
	--ready: #57c572;
	--issue: #ff836b;
	--checking: #eeb95a;
	--tab-active-bg: rgba(20, 37, 31, 0.88);
	--hero-accent: linear-gradient(150deg, rgba(56, 184, 138, 0.22), rgba(222, 236, 229, 0.04));
	--hero-surface: linear-gradient(160deg, rgba(10, 16, 14, 0.96), rgba(16, 24, 21, 0.84));
	--hero-shadow: 0 34px 96px rgba(2, 6, 5, 0.5);
	--panel-shadow: 0 22px 48px rgba(2, 6, 5, 0.36);
	--toolbar-shadow: 0 18px 38px rgba(2, 6, 5, 0.32);
	--toolbar-hover: rgba(255, 255, 255, 0.062);
	--tab-muted: rgba(240, 245, 242, 0.72);
	--tab-dot-idle: rgba(240, 245, 242, 0.2);
	--tab-dot-active: rgba(240, 245, 242, 0.92);
	--tab-dot-live: rgba(114, 209, 176, 0.58);
	--signal-idle: rgba(240, 245, 242, 0.18);
	--placeholder-ink: rgba(240, 245, 242, 0.48);
	--hero-card-bg: rgba(255, 255, 255, 0.038);
	--hero-card-border: rgba(114, 209, 176, 0.12);
	--theme-outline: rgba(255, 255, 255, 0.08);
}

body[data-theme="eclipse"] {
	color-scheme: dark;
	--page-bg: #08050f;
	--page-ink: #f6efff;
	--muted-ink: #b09fc7;
	--line: rgba(246, 239, 255, 0.11);
	--panel-bg: rgba(17, 11, 30, 0.84);
	--panel-solid: rgba(22, 14, 39, 0.95);
	--panel-alt: rgba(255, 255, 255, 0.045);
	--accent: #bf8eff;
	--accent-strong: #8a5fd1;
	--accent-soft: rgba(191, 142, 255, 0.16);
	--ready: #5acb86;
	--issue: #ff8573;
	--checking: #efb75a;
	--tab-active-bg: rgba(34, 22, 55, 0.9);
	--hero-accent: linear-gradient(150deg, rgba(157, 112, 236, 0.24), rgba(122, 79, 181, 0.05));
	--hero-surface: linear-gradient(160deg, rgba(18, 11, 31, 0.96), rgba(29, 18, 46, 0.84));
	--hero-shadow: 0 34px 96px rgba(5, 2, 9, 0.52);
	--panel-shadow: 0 22px 48px rgba(5, 2, 9, 0.38);
	--toolbar-shadow: 0 18px 38px rgba(5, 2, 9, 0.34);
	--toolbar-hover: rgba(255, 255, 255, 0.065);
	--tab-muted: rgba(246, 239, 255, 0.72);
	--tab-dot-idle: rgba(246, 239, 255, 0.2);
	--tab-dot-active: rgba(246, 239, 255, 0.92);
	--tab-dot-live: rgba(191, 142, 255, 0.6);
	--signal-idle: rgba(246, 239, 255, 0.18);
	--placeholder-ink: rgba(246, 239, 255, 0.48);
	--hero-card-bg: rgba(255, 255, 255, 0.038);
	--hero-card-border: rgba(191, 142, 255, 0.12);
	--theme-outline: rgba(255, 255, 255, 0.08);
}

body[data-theme="graphite"] {
	color-scheme: dark;
	--page-bg: #090b10;
	--page-ink: #f0f3f7;
	--muted-ink: #98a2af;
	--line: rgba(240, 243, 247, 0.11);
	--panel-bg: rgba(13, 16, 21, 0.84);
	--panel-solid: rgba(18, 22, 29, 0.95);
	--panel-alt: rgba(255, 255, 255, 0.042);
	--accent: #9ab0d0;
	--accent-strong: #697f9f;
	--accent-soft: rgba(154, 176, 208, 0.16);
	--ready: #58c57a;
	--issue: #ff846b;
	--checking: #efbb5d;
	--tab-active-bg: rgba(27, 34, 45, 0.9);
	--hero-accent: linear-gradient(150deg, rgba(121, 141, 175, 0.22), rgba(68, 80, 102, 0.05));
	--hero-surface: linear-gradient(160deg, rgba(15, 18, 24, 0.96), rgba(22, 27, 35, 0.84));
	--hero-shadow: 0 34px 96px rgba(3, 4, 7, 0.5);
	--panel-shadow: 0 22px 48px rgba(3, 4, 7, 0.36);
	--toolbar-shadow: 0 18px 38px rgba(3, 4, 7, 0.32);
	--toolbar-hover: rgba(255, 255, 255, 0.062);
	--tab-muted: rgba(240, 243, 247, 0.72);
	--tab-dot-idle: rgba(240, 243, 247, 0.2);
	--tab-dot-active: rgba(240, 243, 247, 0.92);
	--tab-dot-live: rgba(154, 176, 208, 0.6);
	--signal-idle: rgba(240, 243, 247, 0.18);
	--placeholder-ink: rgba(240, 243, 247, 0.48);
	--hero-card-bg: rgba(255, 255, 255, 0.038);
	--hero-card-border: rgba(154, 176, 208, 0.12);
	--theme-outline: rgba(255, 255, 255, 0.08);
}

body[data-theme="ember"] {
	--page-bg: #f6e9de;
	--page-ink: #261912;
	--muted-ink: #78645a;
	--line: rgba(38, 25, 18, 0.12);
	--panel-bg: rgba(255, 248, 241, 0.78);
	--panel-solid: rgba(255, 250, 246, 0.94);
	--panel-alt: rgba(38, 25, 18, 0.05);
	--accent: #b6622d;
	--accent-strong: #8c471d;
	--accent-soft: rgba(182, 98, 45, 0.15);
	--hero-accent: linear-gradient(140deg, rgba(182, 98, 45, 0.2), rgba(240, 177, 107, 0.04));
	--hero-surface: linear-gradient(145deg, rgba(255, 248, 241, 0.82), rgba(255, 255, 255, 0.42));
}

body[data-theme="grove"] {
	--page-bg: #edf3ea;
	--page-ink: #162015;
	--muted-ink: #657164;
	--line: rgba(22, 32, 21, 0.11);
	--panel-bg: rgba(250, 255, 248, 0.78);
	--panel-solid: rgba(254, 255, 252, 0.94);
	--panel-alt: rgba(22, 32, 21, 0.05);
	--accent: #456b4d;
	--accent-strong: #2f4d35;
	--accent-soft: rgba(69, 107, 77, 0.15);
	--hero-accent: linear-gradient(140deg, rgba(69, 107, 77, 0.2), rgba(135, 179, 120, 0.05));
	--hero-surface: linear-gradient(145deg, rgba(250, 255, 248, 0.8), rgba(255, 255, 255, 0.4));
}

body[data-theme="harbor"] {
	--page-bg: #e8edf3;
	--page-ink: #172230;
	--muted-ink: #62717e;
	--line: rgba(23, 34, 48, 0.12);
	--panel-bg: rgba(248, 251, 255, 0.8);
	--panel-solid: rgba(254, 255, 255, 0.94);
	--panel-alt: rgba(23, 34, 48, 0.05);
	--accent: #345f84;
	--accent-strong: #23435f;
	--accent-soft: rgba(52, 95, 132, 0.15);
	--hero-accent: linear-gradient(145deg, rgba(52, 95, 132, 0.2), rgba(133, 165, 194, 0.05));
	--hero-surface: linear-gradient(145deg, rgba(248, 251, 255, 0.82), rgba(255, 255, 255, 0.42));
}

body[data-theme-mode="light"] {
	color-scheme: light;
}

body[data-theme-mode="dark"] {
	color-scheme: dark;
	background:
		radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
		radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 24%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
		var(--page-bg);
}

body[data-onboarding-active="true"] {
	overflow: hidden;
}

body[data-onboarding-active="true"] .toolbar,
body[data-onboarding-active="true"] .shell,
body[data-onboarding-active="true"] .frame-stage,
body[data-onboarding-active="true"] .status-panel {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.nitro-onboarding {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: 28px;
	background:
		radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 32%),
		radial-gradient(circle at 84% 14%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 24%),
		linear-gradient(160deg, color-mix(in srgb, var(--page-bg) 88%, rgba(255, 255, 255, 0.24)), var(--page-bg));
	overflow: auto;
}

.nitro-onboarding[hidden] {
	display: none !important;
}

.nitro-onboarding::before,
.nitro-onboarding::after {
	content: "";
	position: fixed;
	border-radius: 999px;
	pointer-events: none;
	filter: blur(14px);
	opacity: 0.9;
	animation: nitro-onboarding-float 14s ease-in-out infinite;
}

.nitro-onboarding::before {
	width: 340px;
	height: 340px;
	top: -110px;
	right: -60px;
	background: color-mix(in srgb, var(--accent) 18%, white);
}

.nitro-onboarding::after {
	width: 280px;
	height: 280px;
	left: -80px;
	bottom: -90px;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	animation-duration: 18s;
	animation-direction: alternate;
}

.nitro-onboarding-shell {
	position: relative;
	width: min(980px, 100%);
	display: grid;
	gap: 18px;
	padding: 24px;
	border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
	border-radius: 32px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 92%, rgba(255, 255, 255, 0.12)), transparent 100%),
		color-mix(in srgb, var(--panel-bg) 92%, rgba(255, 255, 255, 0.06));
	box-shadow:
		0 30px 80px color-mix(in srgb, var(--accent) 10%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(22px);
}

body[data-theme-mode="dark"] .nitro-onboarding-shell {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-bg) 94%, rgba(255, 255, 255, 0.03));
	box-shadow:
		0 32px 86px rgba(0, 0, 0, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nitro-onboarding-progress {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nitro-onboarding-progress-step {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--muted-ink);
	background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
	border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nitro-onboarding-progress-step[data-active="true"] {
	color: #fff;
	background: linear-gradient(135deg, var(--accent-strong), var(--accent));
	border-color: color-mix(in srgb, var(--accent) 46%, transparent);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nitro-onboarding-progress-line {
	flex: 1 1 auto;
	height: 2px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--line) 72%, transparent);
}

.nitro-onboarding-panel {
	display: grid;
	gap: 16px;
	min-height: 0;
}

.nitro-onboarding-panel[hidden] {
	display: none !important;
}

.nitro-onboarding-kicker {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--accent-strong) 72%, var(--page-ink));
}

.nitro-onboarding-title {
	margin: 0;
	font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
	font-size: clamp(2.6rem, 6vw, 5.1rem);
	font-style: italic;
	font-weight: 800;
	letter-spacing: -0.08em;
	line-height: 0.9;
	max-width: 9ch;
}

.nitro-onboarding-title-small {
	font-size: clamp(1.8rem, 3.5vw, 2.7rem);
	font-style: normal;
	max-width: 12ch;
}

.nitro-onboarding-copy {
	margin: 0;
	max-width: 40rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--muted-ink);
}

.nitro-onboarding-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.nitro-onboarding-button {
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		background 150ms ease,
		box-shadow 150ms ease,
		opacity 150ms ease;
}

.nitro-onboarding-button:hover {
	transform: translateY(-1px);
}

.nitro-onboarding-button-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--accent-strong), var(--accent));
	box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 24%, transparent);
}

.nitro-onboarding-button-secondary {
	color: var(--page-ink);
	background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
	border-color: color-mix(in srgb, var(--line) 84%, transparent);
}

.nitro-onboarding-theme-card {
	display: grid;
	gap: 4px;
	padding: 16px 18px;
	border-radius: 22px;
	border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 60%),
		color-mix(in srgb, var(--panel-solid) 86%, transparent);
	box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 10%, transparent);
	transform-origin: center;
}

.nitro-onboarding-theme-card[data-previewing="true"] {
	animation: nitro-onboarding-preview-pulse 320ms ease;
}

.nitro-onboarding-theme-label {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.nitro-onboarding-theme-name {
	font-size: 1.18rem;
	letter-spacing: -0.04em;
}

.nitro-onboarding-theme-mode {
	font-size: 0.82rem;
	color: var(--muted-ink);
}

.nitro-onboarding-theme-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.nitro-onboarding-theme-gallery {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nitro-onboarding .theme-preview {
	gap: 8px;
	padding: 8px;
	border-radius: 16px;
}

.theme-preview-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-align: left;
	color: var(--page-ink);
}

.nitro-onboarding-settings {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.nitro-onboarding-field {
	display: grid;
	gap: 8px;
}

.nitro-onboarding-field span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.nitro-onboarding-input {
	min-height: 48px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
}

.nitro-onboarding-panic-input {
	cursor: pointer;
}

.nitro-onboarding-note {
	margin: -4px 0 0;
	font-size: 0.82rem;
	color: var(--muted-ink);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

body {
	margin: 0;
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at 12% 10%, var(--accent-soft), transparent 28%),
		radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 24%),
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 40%, transparent), rgba(255, 255, 255, 0)),
		var(--page-bg);
	color: var(--page-ink);
	padding: calc(var(--toolbar-offset) + var(--toolbar-body-gap)) 18px 18px;
	overflow: hidden;
	scroll-padding-top: calc(var(--toolbar-offset) + 12px);
	transition:
		padding-top 160ms ease,
		background 180ms ease,
		color 180ms ease;
}

.toolbar {
	position: fixed;
	top: 6px;
	left: 8px;
	right: 8px;
	container-type: inline-size;
	display: grid;
	gap: 4px;
	padding: 4px 6px 5px;
	background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--toolbar-shadow);
	z-index: 40;
	transition:
		padding 160ms ease,
		border-radius 160ms ease,
		transform 160ms ease,
		background 160ms ease,
		border-color 160ms ease;
}

body[data-theme-mode="dark"] .toolbar {
	background: color-mix(in srgb, var(--panel-solid) 96%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 8%, var(--line));
}

.toolbar-progress {
	position: relative;
	justify-self: stretch;
	align-self: end;
	width: 100%;
	height: 2px;
	margin: 1px 2px 0;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, #2396ff 16%, transparent);
	opacity: 0;
	transform: translateY(-2px);
	transition:
		opacity 160ms ease,
		transform 160ms ease,
		background 160ms ease;
	pointer-events: none;
	box-shadow:
		0 0 0 1px color-mix(in srgb, #2396ff 12%, transparent),
		0 4px 12px rgba(35, 150, 255, 0.16);
}

.toolbar-progress-bar {
	--toolbar-load-progress: 0;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	display: block;
	width: max(18px, calc(var(--toolbar-load-progress) * 100%));
	border-radius: inherit;
	background: linear-gradient(90deg, #6fc8ff 0%, #2396ff 44%, #0a78ff 100%);
	box-shadow:
		0 0 14px rgba(35, 150, 255, 0.55),
		0 0 28px rgba(35, 150, 255, 0.18);
	transition:
		width 150ms linear,
		opacity 150ms ease;
	will-change: width;
}

.toolbar-progress-bar::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -28%;
	width: 28%;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.82) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	opacity: 0;
	filter: blur(0.4px);
}

.toolbar[data-loading="true"] .toolbar-progress {
	opacity: 1;
	transform: translateY(0);
	background: color-mix(in srgb, #2396ff 24%, transparent);
}

.toolbar[data-loading="true"] .toolbar-progress-bar::after {
	opacity: 0.92;
	animation: toolbar-progress-glide 1.05s linear infinite;
}

.toolbar[data-loading-kind="reload"] .toolbar-progress-bar {
	box-shadow: 0 0 14px rgba(35, 150, 255, 0.55);
}

.tab-strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px;
}

.tab-strip-center {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 5px;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		max-width 140ms ease;
}

.browser-tab-list {
	display: flex;
	align-items: flex-end;
	flex: 0 1 auto;
	gap: 5px;
	width: fit-content;
	min-width: 0;
	max-width: calc(100% - 36px);
	overflow: hidden;
}

.browser-tab-list::-webkit-scrollbar {
	display: none;
}

.browser-tab-item {
	min-width: 0;
	max-width: 21cqw;
	height: 28px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 7px 0 10px;
	border: 1px solid transparent;
	border-radius: 12px 12px 8px 8px;
	background: var(--panel-alt);
	color: var(--tab-muted);
	position: relative;
	overflow: visible;
	flex: 0 1 auto;
	transition:
		background 150ms ease,
		color 150ms ease,
		transform 150ms ease,
		opacity 150ms ease,
		border-color 150ms ease;
}

.browser-tab {
	max-width: 21cqw;
	min-width: 88px;
	height: 28px;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 12px 12px 8px 8px;
	background: var(--panel-alt);
	color: var(--tab-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: inherit;
	font-size: 0.72rem;
	cursor: pointer;
	position: relative;
	transition:
		background 150ms ease,
		color 150ms ease,
		transform 150ms ease,
		opacity 150ms ease,
		border-color 150ms ease;
	flex: 0 0 auto;
}

.browser-tab-item .browser-tab {
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	flex: 1 1 auto;
}

.browser-tab-item {
	color: var(--tab-muted);
}

.tab-new-button:hover,
.toolbar-icon-button:hover:not(:disabled),
.toolbar-mini-button:hover,
.status-chip-button:hover,
.profile-button:hover:not(:disabled) {
	transform: translateY(-1px);
	background: var(--toolbar-hover);
}

.browser-tab-item:hover {
	background: var(--toolbar-hover);
	border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

.browser-tab-item-active:hover {
	background: var(--tab-active-bg);
}

.browser-tab-active {
	background: var(--tab-active-bg);
	color: var(--page-ink);
	box-shadow: none;
}

.browser-tab-item .browser-tab-active {
	background: transparent;
	color: inherit;
}

.browser-tab-active::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: -2px;
	height: 4px;
	background: var(--tab-active-bg);
	border-radius: 999px;
}

.browser-tab-item-active {
	background: var(--tab-active-bg);
	color: var(--page-ink);
}

body[data-theme-mode="dark"] .browser-tab-item {
	background: color-mix(in srgb, var(--panel-alt) 84%, rgba(255, 255, 255, 0.02));
}

body[data-theme-mode="dark"] .browser-tab-item-active {
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.browser-tab-item-active::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: -2px;
	height: 4px;
	background: var(--tab-active-bg);
	border-radius: 999px;
}

.browser-tab-item .browser-tab-active::after {
	display: none;
}

.browser-tab-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--tab-dot-idle);
	flex: 0 0 auto;
}

.browser-tab-active .browser-tab-dot {
	background: var(--tab-dot-active);
}

.browser-tab-dot-live {
	background: var(--tab-dot-live);
}

.browser-tab-active .browser-tab-dot-live {
	background: var(--accent);
}

.browser-tab-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.browser-tab-close {
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: color-mix(in srgb, var(--page-ink) 62%, transparent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	opacity: 0.68;
	flex: 0 0 auto;
	transition:
		background 150ms ease,
		opacity 150ms ease,
		transform 150ms ease;
}

.browser-tab-item:hover .browser-tab-close,
.browser-tab-item-active .browser-tab-close {
	opacity: 1;
}

.browser-tab-item-active .browser-tab-close {
	color: var(--page-ink);
}

.browser-tab-close:hover {
	background: var(--toolbar-hover);
	transform: scale(1.03);
}

.browser-tab-close svg {
	width: 9px;
	height: 9px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.browser-tab:focus-visible,
.browser-tab-close:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
	outline-offset: 1px;
}

.tab-new-button,
.toolbar-mini-button,
.toolbar-icon-button {
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--panel-alt);
	color: var(--page-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition:
		background 150ms ease,
		transform 150ms ease,
		opacity 150ms ease,
		border-color 150ms ease;
}

.tab-new-button {
	width: 22px;
	height: 22px;
	align-self: center;
}

.toolbar-mini-button {
	width: 20px;
	height: 20px;
	align-self: center;
}

.toolbar-mini-button svg {
	transform: translateX(-0.6px);
	transition: transform 160ms ease;
}

.toolbar-mini-button[data-direction="down"] svg {
	transform: translateX(-0.6px) rotate(180deg);
}

.toolbar-controls {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px;
	padding: 0;
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		max-height 140ms ease;
}

.toolbar-group {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.toolbar-nav {
	flex: 0 0 auto;
}

.toolbar-meta {
	justify-content: flex-end;
	flex: 0 0 auto;
}

.toolbar-icon-button {
	width: 24px;
	height: 24px;
}

.toolbar-icon-button:disabled {
	opacity: 0.42;
	cursor: default;
}

.tab-new-button svg,
.toolbar-mini-button svg,
.toolbar-icon-button svg,
.toolbar-address-submit svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.toolbar-pill,
.toolbar-button {
	border-radius: 14px;
	border: 1px solid transparent;
	background: var(--panel-alt);
	color: var(--page-ink);
	font: inherit;
}

.toolbar-pill {
	min-height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 3px 6px;
	white-space: nowrap;
}

.toolbar-meta-cluster {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: 15px;
	background: var(--panel-alt);
}

.status-chip {
	width: 20px;
	min-width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	gap: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
}

.status-chip-button {
	cursor: pointer;
}

.status-chip-button:hover,
.signal-pill-button:hover {
	background: var(--toolbar-hover);
}

.status-chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--checking);
}

.status-chip[data-state="ready"] .status-chip-dot {
	background: var(--ready);
}

.status-chip[data-state="issue"] .status-chip-dot {
	background: var(--issue);
}

.status-chip[data-state="checking"] .status-chip-dot {
	background: var(--checking);
}

.signal-pill {
	min-width: 60px;
	padding: 3px 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	background: transparent;
}

.signal-pill-button {
	cursor: pointer;
}

.signal-layout {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas:
		"bars refresh"
		"speed refresh";
	align-items: center;
	column-gap: 3px;
	row-gap: 2px;
}

.signal-bars {
	grid-area: bars;
	display: inline-flex;
	align-items: flex-end;
	justify-self: center;
	gap: 2px;
	height: 12px;
}

.signal-bar {
	width: 3px;
	border-radius: 999px;
	background: var(--signal-idle);
	transition: background 150ms ease;
}

.signal-bar[data-signal-bar="1"] {
	height: 4px;
}

.signal-bar[data-signal-bar="2"] {
	height: 7px;
}

.signal-bar[data-signal-bar="3"] {
	height: 9px;
}

.signal-bar[data-signal-bar="4"] {
	height: 12px;
}

.signal-bar[data-active="true"] {
	background: var(--page-ink);
}

.signal-speed {
	grid-area: speed;
	font-size: 0.58rem;
	line-height: 1;
	color: var(--muted-ink);
	letter-spacing: 0.02em;
	justify-self: center;
	text-align: center;
	min-width: max-content;
}

.signal-refresh {
	grid-area: refresh;
	justify-self: center;
	width: 10px;
	height: 10px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var(--muted-ink);
}

.signal-pill-button[data-checking="true"] .signal-refresh {
	animation: signal-spin 0.9s linear infinite;
}

#toolbar-reload[data-checking="true"] svg {
	animation: signal-spin 0.9s linear infinite;
	transform-box: fill-box;
	transform-origin: center;
	display: block;
}

@keyframes signal-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.shell {
	width: 100%;
	margin: 0 auto;
	display: grid;
	gap: 10px;
	height: calc(100dvh - var(--toolbar-offset) - 26px);
	min-height: 0;
	overflow: hidden;
	transition:
		opacity 180ms ease,
		transform 180ms ease,
		visibility 180ms ease;
}

.home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	height: 100%;
	min-height: 0;
	padding-top: 10px;
	padding-bottom: 8px;
	align-items: start;
	overflow: hidden;
}

.home-view-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	width: fit-content;
	max-width: 100%;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 8%, transparent);
	backdrop-filter: blur(12px);
}

body[data-theme-mode="dark"] .home-view-switch {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
}

.home-view-button {
	border: 0;
	border-radius: 999px;
	min-height: 34px;
	padding: 0 14px;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--muted-ink);
	background: transparent;
	cursor: pointer;
	transition:
		transform 150ms ease,
		background 150ms ease,
		color 150ms ease,
		box-shadow 150ms ease;
}

.home-view-button:hover {
	transform: translateY(-1px);
	color: var(--page-ink);
}

.home-view-button[aria-selected="true"] {
	color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.home-view-button:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
		0 12px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.home-main {
	display: grid;
	grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.22fr);
	gap: 16px;
	width: 100%;
	margin: 0 auto;
	height: 100%;
	min-height: 0;
	align-items: stretch;
	align-content: start;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.home-view-stack {
	display: grid;
	align-content: start;
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.home-view {
	min-width: 0;
	min-height: 0;
}

.home-view[hidden] {
	display: none !important;
}

.home-view-holy {
	display: block;
	height: 100%;
}

.home-hero-lts {
	height: 100%;
}

.home-hero-copy-lts {
	gap: 18px;
}

.home-lts-kicker {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--accent-strong) 72%, var(--page-ink));
}

.home-lts-title {
	margin: 0;
	font-family: "Sora", sans-serif;
	font-size: clamp(1.85rem, 3vw, 2.6rem);
	line-height: 0.98;
	letter-spacing: -0.05em;
	color: var(--page-ink);
	text-wrap: balance;
}

.lts-route-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lts-route-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), transparent 100%),
		color-mix(in srgb, var(--accent-soft) 42%, transparent);
	color: var(--page-ink);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home-lts-note {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--muted-ink);
}

body[data-home-view="holy"] [data-engine-option="bolt"] {
	display: none;
}

body[data-home-view="holy"] .engine-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	background:
		var(--hero-accent),
		var(--hero-surface);
	border: 1px solid var(--line);
	border-radius: 32px;
	padding: 20px 22px;
	box-shadow: var(--hero-shadow);
	backdrop-filter: blur(14px);
	height: 100%;
	isolation: isolate;
}

.holy-hero,
.holy-section {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	backdrop-filter: blur(16px);
	box-shadow: var(--panel-shadow);
}

.holy-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: 16px;
	padding: 22px;
	border-radius: 32px;
	background:
		radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
		linear-gradient(150deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--panel-alt) 86%, transparent));
	isolation: isolate;
}

.holy-hero::before,
.holy-hero::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
	z-index: 0;
}

.holy-hero::before {
	width: 280px;
	height: 280px;
	top: -150px;
	right: -110px;
	background: color-mix(in srgb, var(--accent) 20%, transparent);
	filter: blur(12px);
}

.holy-hero::after {
	width: 180px;
	height: 180px;
	left: -50px;
	bottom: -72px;
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	filter: blur(8px);
}

body[data-theme-mode="dark"] .holy-hero,
body[data-theme-mode="dark"] .holy-section {
	border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
}

.holy-hero-copy {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 14px;
	align-content: start;
}

.holy-kicker,
.holy-section-kicker,
.holy-feature-label,
.holy-setup-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--accent-strong) 72%, var(--page-ink));
}

.holy-title {
	margin: 0;
	max-width: 14ch;
	font-family: "Sora", sans-serif;
	font-size: clamp(2rem, 3.7vw, 3.4rem);
	line-height: 0.96;
	letter-spacing: -0.06em;
	color: var(--page-ink);
	text-wrap: balance;
}

.holy-copy,
.holy-feature-copy,
.holy-setup-copy {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--muted-ink);
}

.holy-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.holy-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 150ms ease,
		opacity 150ms ease,
		background 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.holy-action:hover {
	transform: translateY(-1px);
}

.holy-action-primary {
	border: 0;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 22%, transparent);
}

.holy-action-secondary,
.holy-action-link {
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	color: var(--page-ink);
	background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

body[data-theme-mode="dark"] .holy-action-secondary,
body[data-theme-mode="dark"] .holy-action-link {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.holy-search-form {
	position: relative;
	z-index: 1;
}

.holy-search-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	padding: 10px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 22px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 82%, transparent);
	box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 10%, transparent);
}

body[data-theme-mode="dark"] .holy-search-shell {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.holy-search-shell:focus-within {
	border-color: color-mix(in srgb, var(--accent) 48%, transparent);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent),
		0 18px 36px color-mix(in srgb, var(--accent) 10%, transparent);
}

.holy-search-input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--page-ink);
	font: inherit;
	font-size: 1rem;
	padding: 6px 8px;
	outline: none;
}

.holy-search-input::placeholder {
	color: var(--placeholder-ink);
}

.holy-search-submit,
.holy-refresh-button {
	border: 0;
	border-radius: 16px;
	padding: 0 16px;
	min-height: 42px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	cursor: pointer;
	transition:
		transform 150ms ease,
		opacity 150ms ease,
		box-shadow 150ms ease;
}

.holy-search-submit:hover,
.holy-refresh-button:hover {
	opacity: 0.94;
	transform: translateY(-1px);
}

.holy-runtime-pills {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.holy-runtime-pill {
	display: grid;
	gap: 6px;
	padding: 12px 14px;
	border-radius: 18px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 86%, transparent), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 80%, transparent);
}

body[data-theme-mode="dark"] .holy-runtime-pill {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.holy-runtime-pill span,
.holy-wireproxy-meta span {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.holy-runtime-pill strong,
.holy-wireproxy-meta strong {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--page-ink);
}

.holy-runtime-pill strong[data-state="active"] {
	color: var(--ready);
}

.holy-runtime-pill strong[data-state="configured"] {
	color: var(--checking);
}

.holy-runtime-pill strong[data-state="direct"] {
	color: var(--muted-ink);
}

.holy-terminal {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: start;
	border-radius: 26px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 100%),
		linear-gradient(160deg, #0b1321, #111d31 52%, #17263f 100%);
	box-shadow:
		0 28px 60px rgba(7, 12, 20, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #dce8ff;
	overflow: hidden;
}

.holy-terminal-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(220, 232, 255, 0.88);
}

.holy-terminal-head span {
	width: 10px;
	height: 10px;
	border-radius: 999px;
}

.holy-terminal-head span:nth-child(1) {
	background: #ff7a6d;
}

.holy-terminal-head span:nth-child(2) {
	background: #ffc857;
}

.holy-terminal-head span:nth-child(3) {
	background: #3ad08b;
}

.holy-terminal-body {
	margin: 0;
	padding: 16px 18px 18px;
	font: 0.84rem/1.65 "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
	white-space: pre-wrap;
	color: #dce8ff;
}

.holy-terminal-body code {
	font: inherit;
}

.holy-section {
	display: grid;
	gap: 14px;
	padding: 18px;
	border-radius: 26px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 86%, transparent), transparent 100%),
		var(--panel-bg);
}

.holy-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.holy-section-title,
.holy-feature-title,
.holy-setup-title-card {
	margin: 0;
	font-size: 1.04rem;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--page-ink);
}

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

.holy-feature-card,
.holy-setup-card {
	display: grid;
	gap: 8px;
	padding: 14px;
	border-radius: 20px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	background:
		linear-gradient(155deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--panel-alt) 92%, transparent));
}

body[data-theme-mode="dark"] .holy-feature-card,
body[data-theme-mode="dark"] .holy-setup-card {
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
}

.holy-wireproxy-card[data-wireproxy-state="active"] {
	border-color: color-mix(in srgb, var(--ready) 58%, var(--line));
	box-shadow: 0 14px 34px color-mix(in srgb, var(--ready) 14%, transparent);
}

.holy-wireproxy-card[data-wireproxy-state="configured"] {
	border-color: color-mix(in srgb, var(--checking) 50%, var(--line));
}

.holy-wireproxy-card[data-wireproxy-state="direct"] {
	border-color: color-mix(in srgb, var(--line) 92%, transparent);
}

.holy-wireproxy-card[data-wireproxy-state="issue"] {
	border-color: color-mix(in srgb, var(--issue) 48%, var(--line));
}

.holy-wireproxy-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.holy-wireproxy-meta div {
	display: grid;
	gap: 4px;
}

.holy-app-grid,
.holy-setup-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.holy-app-button {
	display: grid;
	gap: 4px;
	padding: 14px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 20px;
	background:
		linear-gradient(155deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), color-mix(in srgb, var(--panel-alt) 92%, transparent));
	color: var(--page-ink);
	text-align: left;
	cursor: pointer;
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.holy-app-button:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 30%, transparent);
	box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}

.holy-app-button span {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.holy-app-button small {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

body[data-theme-mode="dark"] .holy-app-button {
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
}

.home-hero[data-theme-editor-open="true"] {
	height: auto;
	min-height: 0;
	align-self: start;
	padding-bottom: 18px;
	gap: 14px;
}

.home-hero[data-theme-editor-open="true"] .home-hero-copy {
	gap: 10px;
}

.home-hero[data-theme-editor-open="true"] .home-hero-themes {
	gap: 8px;
	padding-top: 8px;
}

.home-hero-popout {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
	color: var(--page-ink);
	cursor: pointer;
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 10%, transparent);
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		background 150ms ease,
		box-shadow 150ms ease,
		opacity 150ms ease;
}

.home-hero-popout:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
	box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 14%, transparent);
}

.home-hero-popout:focus-visible {
	outline: none;
	border-color: color-mix(in srgb, var(--accent) 44%, transparent);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent),
		0 14px 30px color-mix(in srgb, var(--accent) 14%, transparent);
}

.home-hero-popout svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body[data-theme-mode="dark"] .home-hero {
	border-color: color-mix(in srgb, var(--accent) 10%, var(--line));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.03),
		var(--hero-shadow);
}

body[data-theme-mode="dark"] .home-hero-popout {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.03),
		0 14px 32px color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-hero::before,
.home-hero::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}

.home-hero::before {
	width: 260px;
	height: 260px;
	top: -138px;
	right: -102px;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	filter: blur(12px);
}

.home-hero::after {
	width: 164px;
	height: 164px;
	left: -52px;
	bottom: -82px;
	background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-hero-copy {
	display: grid;
	gap: 12px;
	max-width: none;
	min-height: 0;
	padding-right: 48px;
	position: relative;
	z-index: 1;
}

.home-brand-lockup {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 8px;
}

.home-brand-kicker {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--accent-strong) 74%, var(--page-ink));
}

.home-brand-heading {
	margin: 0;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	min-height: clamp(3rem, 5vw, 4.4rem);
}

.home-brand-name {
	display: inline-block;
	font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
	font-size: clamp(2.6rem, 5vw, 4.5rem);
	font-style: italic;
	font-weight: 800;
	letter-spacing: -0.085em;
	line-height: 0.9;
	color: transparent;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, white 88%, var(--accent) 12%) 0%,
		color-mix(in srgb, var(--page-ink) 84%, var(--accent) 16%) 42%,
		color-mix(in srgb, var(--accent-strong) 86%, white 14%) 100%
	);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--accent) 16%, transparent));
}

.home-brand-tail {
	display: grid;
	gap: 5px;
	padding-top: 6px;
}

.home-brand-tail span {
	display: block;
	height: 3px;
	border-radius: 999px;
	transform: skewX(-26deg);
	transform-origin: left center;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--accent-strong) 90%, white 10%) 0%,
		color-mix(in srgb, var(--accent) 80%, transparent) 48%,
		transparent 100%
	);
	box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 22%, transparent);
}

.home-brand-tail span:nth-child(1) {
	width: 54px;
}

.home-brand-tail span:nth-child(2) {
	width: 40px;
	opacity: 0.72;
}

.home-brand-tail span:nth-child(3) {
	width: 28px;
	opacity: 0.48;
}

.home-brand-copy {
	margin: 0;
	max-width: 34rem;
	font-size: 0.96rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--muted-ink);
}

.home-hero-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 10px;
	width: min(560px, 100%);
}

.home-search-form {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
}

.home-hero-copy .home-search-form {
	justify-content: flex-start;
	margin-top: 2px;
}

.home-hero-copy .home-search-shell {
	width: 100%;
}

.home-search-shell {
	width: min(820px, 100%);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 7px 10px 7px 14px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 999px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 88%, transparent), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 82%, transparent);
	box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 10%, transparent);
	backdrop-filter: blur(14px);
	transition:
		border-color 160ms ease,
		background 160ms ease,
		box-shadow 160ms ease,
		transform 160ms ease;
}

body[data-theme-mode="dark"] .home-search-shell {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 12%, var(--line));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.03),
		0 22px 44px color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-search-shell:focus-within {
	border-color: color-mix(in srgb, var(--accent) 48%, transparent);
	box-shadow:
		0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent),
		0 18px 36px color-mix(in srgb, var(--accent) 14%, transparent);
	transform: translateY(-1px);
}

.home-search-icon {
	width: 18px;
	height: 18px;
	stroke: color-mix(in srgb, var(--muted-ink) 88%, transparent);
	fill: none;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-search-input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--page-ink);
	font: inherit;
	font-size: clamp(0.98rem, 1.55vw, 1.1rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	padding: 3px 0;
	outline: none;
}

.home-search-input::placeholder {
	color: var(--placeholder-ink);
}

.home-search-submit {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-strong);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 22%, transparent);
	transition:
		transform 150ms ease,
		opacity 150ms ease,
		background 150ms ease,
		box-shadow 150ms ease;
}

.home-search-submit:hover {
	opacity: 0.94;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 28%, transparent);
}

.home-search-submit svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-mark,
.home-hero-theme {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	min-height: 96px;
	padding: 14px 18px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	backdrop-filter: blur(10px);
}

body[data-theme-mode="dark"] .home-mark,
body[data-theme-mode="dark"] .home-hero-theme {
	background: color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.home-mark-label,
.home-hero-theme-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.home-mark-value,
.home-hero-theme-value {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--page-ink);
}

.home-hero-themes {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
}

.home-hero-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.theme-editor-toggle {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
	color: var(--page-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		background 150ms ease,
		box-shadow 150ms ease;
}

.theme-editor-toggle:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.theme-editor-toggle[aria-expanded="true"],
.theme-editor-toggle[data-active="true"] {
	background: color-mix(in srgb, var(--accent-soft) 58%, var(--panel-solid));
	border-color: color-mix(in srgb, var(--accent) 34%, transparent);
	box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 10%, transparent);
}

.theme-editor-toggle svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-hero-section-title {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.home-panel {
	display: grid;
	gap: 12px;
	background: var(--panel-bg);
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 12px;
	backdrop-filter: blur(18px);
	box-shadow: var(--panel-shadow);
	height: 100%;
	min-height: 0;
}

.home-panel-engines {
	align-self: start;
	height: auto;
}

.engine-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 0;
}

.engine-panel-kicker {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.engine-panel-head h2 {
	margin: 0;
	font-size: 1.08rem;
	letter-spacing: -0.03em;
}

.engine-refresh-button {
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 10px 14px;
	background: color-mix(in srgb, var(--accent-soft) 55%, var(--panel-solid));
	color: var(--page-ink);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		transform 150ms ease,
		background 150ms ease,
		border-color 150ms ease;
}

.engine-refresh-button:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 28%, transparent);
	background: color-mix(in srgb, var(--accent-soft) 78%, var(--panel-solid));
}

.engine-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-content: start;
}

.engine-card {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 12px;
	border: 1px solid var(--theme-outline);
	border-radius: 22px;
	background:
		linear-gradient(
			155deg,
			color-mix(in srgb, var(--panel-solid) 88%, transparent),
			color-mix(in srgb, var(--panel-alt) 92%, transparent)
		);
	color: var(--page-ink);
	text-align: left;
	cursor: pointer;
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease,
		background 150ms ease;
}

.engine-card:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
	box-shadow: 0 16px 30px color-mix(in srgb, var(--accent) 10%, transparent);
}

.engine-card[data-active="true"] {
	border-color: color-mix(in srgb, var(--accent) 44%, transparent);
	background:
		linear-gradient(
			155deg,
			color-mix(in srgb, var(--accent-soft) 42%, var(--panel-solid)),
			color-mix(in srgb, var(--panel-alt) 94%, transparent)
		);
	box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 14%, transparent);
}

.engine-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.engine-card-title-line {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.engine-card-title {
	font-size: 1rem;
	letter-spacing: -0.03em;
}

.engine-card-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
	color: var(--muted-ink);
}

.engine-card-badge-recommended {
	border-color: color-mix(in srgb, var(--ready) 34%, transparent);
	background: color-mix(in srgb, var(--ready) 14%, var(--panel-solid));
	color: color-mix(in srgb, var(--ready) 78%, var(--page-ink));
}

.engine-card-badge-warning {
	border-color: color-mix(in srgb, var(--issue) 28%, transparent);
	background: color-mix(in srgb, var(--issue) 10%, var(--panel-solid));
	color: color-mix(in srgb, var(--issue) 76%, var(--page-ink));
}

.engine-card-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.engine-card-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--checking);
}

.engine-card-state[data-state="ready"] .engine-card-dot {
	background: var(--ready);
}

.engine-card-state[data-state="issue"] .engine-card-dot {
	background: var(--issue);
}

.engine-card-speed-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.engine-card-speed {
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.05em;
}

.engine-card-subtitle {
	font-size: 0.82rem;
	color: var(--muted-ink);
}

.engine-card-copy {
	font-size: 0.82rem;
	line-height: 1.3;
	color: color-mix(in srgb, var(--page-ink) 88%, transparent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.theme-groups {
	display: grid;
	gap: 8px;
}

.theme-group {
	display: grid;
	gap: 4px;
}

.theme-group-label {
	margin: 0;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.home-theme-gallery {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.theme-preview {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 100%;
	padding: 6px;
	border: 1px solid var(--theme-outline);
	border-radius: 14px;
	background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
	color: var(--page-ink);
	cursor: pointer;
	text-align: left;
	transition:
		transform 150ms ease,
		border-color 150ms ease,
		background 150ms ease,
		box-shadow 150ms ease;
}

body[data-theme-mode="dark"] .theme-preview {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 84%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--theme-outline) 80%, transparent);
}

.theme-preview:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.theme-preview[data-active="true"] {
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
	background: color-mix(in srgb, var(--accent-soft) 55%, var(--panel-solid));
	box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}

body[data-theme-mode="dark"] .theme-preview[data-active="true"] {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--accent-soft) 60%, var(--panel-solid));
	box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 14%, transparent);
}

.theme-preview-swatch {
	flex: 0 0 auto;
	width: 100%;
	height: 42px;
	border-radius: 12px;
	border: 0;
	box-shadow: none;
}

.custom-theme-editor {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 18px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 86%, transparent), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 80%, transparent);
}

.custom-theme-editor:not([hidden]) {
	animation: custom-theme-editor-reveal 240ms cubic-bezier(0.22, 1, 0.36, 1);
	transform-origin: top center;
}

.custom-theme-editor[hidden] {
	display: none !important;
}

body[data-theme-mode="dark"] .custom-theme-editor {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.home-hero[data-theme-editor-open="true"] .custom-theme-editor {
	gap: 8px;
	padding: 10px;
}

.home-hero[data-theme-editor-open="true"] .custom-theme-grid {
	gap: 8px;
}

.custom-theme-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.custom-theme-field {
	display: grid;
	gap: 6px;
}

.custom-theme-field span {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.custom-theme-select,
.custom-theme-color {
	width: 100%;
	min-height: 38px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 12px;
	background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
	color: var(--page-ink);
	font: inherit;
}

.custom-theme-select {
	padding: 0 10px;
}

.custom-theme-color {
	padding: 4px;
	cursor: pointer;
}

.custom-theme-note {
	margin: 0;
	font-size: 0.72rem;
	color: var(--muted-ink);
}

.mobile-sites-setting {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	border-radius: 18px;
	background:
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--panel-solid) 84%, transparent),
			transparent 100%
		),
		color-mix(in srgb, var(--panel-solid) 80%, transparent);
}

.mobile-sites-setting[hidden] {
	display: none !important;
}

body[data-theme-mode="dark"] .mobile-sites-setting {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.mobile-sites-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.mobile-sites-title {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.mobile-sites-note {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--page-ink);
}

.mobile-sites-segment {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 4px;
	padding: 4px;
	min-width: 168px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
	background: color-mix(in srgb, var(--panel-alt) 68%, var(--panel-solid));
}

.mobile-sites-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mobile-sites-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.62rem 0.9rem;
	border-radius: 999px;
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--muted-ink);
	cursor: pointer;
	transition:
		background 150ms ease,
		color 150ms ease,
		border-color 150ms ease,
		transform 150ms ease,
		box-shadow 150ms ease;
}

.mobile-sites-toggle:checked + .mobile-sites-option {
	background: color-mix(in srgb, var(--accent-soft) 74%, var(--panel-solid));
	color: var(--page-ink);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 12%, transparent);
	transform: translateY(-1px);
}

.mobile-sites-toggle:focus-visible + .mobile-sites-option {
	outline: 2px solid color-mix(in srgb, var(--accent) 48%, transparent);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.nitro-onboarding {
		padding: 18px;
	}

	.nitro-onboarding-shell {
		padding: 18px;
		border-radius: 26px;
	}

	.nitro-onboarding-theme-groups,
	.nitro-onboarding-settings {
		grid-template-columns: 1fr;
	}

	.nitro-onboarding-theme-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.nitro-onboarding {
		padding: 12px;
	}

	.nitro-onboarding-progress-step {
		width: 30px;
		height: 30px;
	}

	.nitro-onboarding-title {
		font-size: clamp(2.2rem, 12vw, 3.6rem);
	}

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

	.nitro-onboarding-button {
		width: 100%;
	}
}

@media (min-width: 1101px) {
	body:not(.session-live) {
		overflow: hidden;
	}
}

@keyframes toolbar-progress-glide {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(460%);
	}
}

@keyframes custom-theme-editor-reveal {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes nitro-onboarding-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(0, 18px, 0) scale(1.04);
	}
}

@keyframes nitro-onboarding-preview-pulse {
	0% {
		transform: scale(0.985);
		box-shadow: 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
	}
	50% {
		transform: scale(1.01);
		box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 16%, transparent);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 10%, transparent);
	}
}

body[data-toolbar-state="2"] .toolbar {
	left: auto;
	right: 8px;
	width: 34px;
	height: 34px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: transparent;
	border-color: transparent;
	backdrop-filter: none;
	box-shadow: none;
	gap: 0;
}

body[data-toolbar-state="2"] .tab-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: visible;
}

body[data-toolbar-state="2"] .toolbar-mini-button {
	width: 34px;
	height: 34px;
	align-self: stretch;
	background: var(--panel-bg);
	border-color: var(--line);
	box-shadow: var(--toolbar-shadow);
}

body[data-toolbar-state="1"] .toolbar-controls,
body[data-toolbar-state="1"] .toolbar-progress,
body[data-toolbar-state="2"] .tab-strip-center,
body[data-toolbar-state="2"] .toolbar-controls,
body[data-toolbar-state="2"] .toolbar-progress {
	width: 0;
	max-width: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	padding: 0;
}

.theme-preview[data-theme-option="shore"] .theme-preview-swatch {
	background: linear-gradient(135deg, #d7c59b 0%, #7ca08f 48%, #2d6852 100%);
}

.theme-preview[data-theme-option="tide"] .theme-preview-swatch {
	background: linear-gradient(135deg, #bfe1e8 0%, #6eaeb9 52%, #1d6874 100%);
}

.theme-preview[data-theme-option="night"] .theme-preview-swatch {
	background: linear-gradient(135deg, #07131d 0%, #12273a 48%, #2a716f 100%);
}

.theme-preview[data-theme-option="midnight"] .theme-preview-swatch {
	background: linear-gradient(135deg, #050b19 0%, #182b51 48%, #4f72d4 100%);
}

.theme-preview[data-theme-option="obsidian"] .theme-preview-swatch {
	background: linear-gradient(135deg, #070b0b 0%, #13221d 48%, #327864 100%);
}

.theme-preview[data-theme-option="eclipse"] .theme-preview-swatch {
	background: linear-gradient(135deg, #0a0712 0%, #281a3b 48%, #724cb4 100%);
}

.theme-preview[data-theme-option="graphite"] .theme-preview-swatch {
	background: linear-gradient(135deg, #0b0e13 0%, #212936 48%, #556985 100%);
}

.theme-preview[data-theme-option="ember"] .theme-preview-swatch {
	background: linear-gradient(135deg, #f0ceb1 0%, #d48c54 48%, #a65422 100%);
}

.theme-preview[data-theme-option="grove"] .theme-preview-swatch {
	background: linear-gradient(135deg, #d8e5c1 0%, #7ca171 50%, #456b4d 100%);
}

.theme-preview[data-theme-option="harbor"] .theme-preview-swatch {
	background: linear-gradient(135deg, #cfdded 0%, #7d9ebd 50%, #355e83 100%);
}

.toolbar-address-form {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 1px 2px;
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, var(--panel-alt) 88%, var(--panel-solid));
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		max-width 140ms ease,
		padding 140ms ease,
		border-color 140ms ease,
		background 140ms ease,
		box-shadow 140ms ease;
}

body[data-theme-mode="dark"] .toolbar-address-form {
	background: color-mix(in srgb, var(--panel-solid) 88%, rgba(255, 255, 255, 0.02));
	border-color: color-mix(in srgb, var(--accent) 8%, var(--line));
}

.toolbar-address-form:focus-within {
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	background: var(--panel-solid);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.profile-input {
	width: 100%;
	border: 1px solid transparent;
	border-radius: 18px;
	background: var(--panel-alt);
	color: var(--page-ink);
	font: inherit;
	font-size: 0.9rem;
	padding: 10px 12px;
	outline: none;
	transition:
		border-color 150ms ease,
		background 150ms ease,
		box-shadow 150ms ease,
		color 150ms ease;
}

.profile-input {
	padding: 12px 14px;
	font-size: 0.94rem;
	border-radius: 14px;
}

.toolbar-address-input {
	width: 100%;
	min-width: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--page-ink);
	font: inherit;
	font-size: 0.85rem;
	padding: 8px 12px;
	outline: none;
	box-shadow: none;
	transition:
		background 150ms ease,
		color 150ms ease;
}

.toolbar-address-input::placeholder,
.profile-input::placeholder {
	color: var(--placeholder-ink);
}

.toolbar-address-input:focus {
	background: transparent;
	box-shadow: none;
}

.profile-input:focus {
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	background: var(--panel-solid);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.toolbar-address-submit {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-strong);
	color: #fff;
	cursor: pointer;
	transition:
		transform 150ms ease,
		opacity 150ms ease,
		background 150ms ease;
}

.toolbar-address-submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.search-form button,
.profile-button {
	border: 0;
	border-radius: 18px;
	padding: 16px 20px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--accent-strong);
	cursor: pointer;
	white-space: nowrap;
	transition:
		transform 150ms ease,
		opacity 150ms ease,
		background 150ms ease;
}

.search-form button:hover,
.profile-button:hover:not(:disabled) {
	opacity: 0.92;
	transform: translateY(-1px);
}

.profile-button {
	padding: 11px 13px;
	border-radius: 14px;
	font-size: 0.87rem;
	background: var(--accent);
}

.profile-button:disabled {
	opacity: 0.45;
	cursor: default;
	transform: none;
}

.profile-button-strong {
	background: var(--accent-strong);
}

.message {
	margin: 0;
	padding: 0 6px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--issue);
	white-space: pre-wrap;
}

.profile-card {
	display: grid;
	gap: 12px;
	position: sticky;
	top: calc(var(--toolbar-offset) + 6px);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 80%, transparent), transparent 100%),
		var(--panel-bg);
	border: 1px solid var(--line);
	border-radius: 30px;
	padding: 20px;
	backdrop-filter: blur(18px);
	box-shadow: var(--panel-shadow);
}

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

.profile-session {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.profile-badge {
	align-self: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--panel-alt);
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--muted-ink);
}

.profile-badge[data-state="active"] {
	color: var(--ready);
}

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

.profile-pages {
	display: grid;
	gap: 8px;
}

.profile-card[data-auth="signed-out"] .profile-actions-secondary {
	display: none;
}

.profile-mini-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.profile-message {
	min-height: 18px;
	margin: 0;
	font-size: 0.8rem;
	color: var(--muted-ink);
}

.profile-message[data-state="error"] {
	color: var(--issue);
}

.profile-message[data-state="success"] {
	color: var(--ready);
}

.profile-actions-secondary .profile-button {
	background: var(--panel-alt);
	color: var(--page-ink);
}

.frame-stage {
	position: fixed;
	top: calc(var(--toolbar-offset) + var(--frame-top-gap));
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 180ms ease,
		visibility 180ms ease,
		top 160ms ease;
	background: var(--content-stage-bg);
	overscroll-behavior: contain;
	touch-action: pan-x pan-y pinch-zoom;
}

#frame-stage iframe,
.sj-frame {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 0;
	background: var(--content-stage-bg);
	box-shadow: none;
	touch-action: pan-x pan-y pinch-zoom;
}

.sj-frame-hidden {
	display: none;
}

.status-panel {
	position: fixed;
	top: calc(var(--toolbar-offset) + var(--frame-top-gap));
	right: 12px;
	width: min(292px, calc(100vw - 24px));
	background: var(--panel-bg);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 14px;
	backdrop-filter: blur(14px);
	box-shadow: 0 14px 34px rgba(19, 24, 20, 0.1);
	z-index: 45;
}

.status-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.status-panel[hidden] {
	display: none;
}

.status-route {
	margin-bottom: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(20, 20, 20, 0.08);
	border-radius: 14px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 22%, transparent), transparent 100%),
		color-mix(in srgb, var(--panel-solid) 82%, transparent);
}

.status-route-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.status-route-title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.status-route-total {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--page-ink);
	white-space: nowrap;
}

.status-route-map {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.status-route-node {
	display: grid;
	gap: 2px;
	min-width: 88px;
	padding: 8px 10px;
	border: 1px solid rgba(20, 20, 20, 0.08);
	border-radius: 12px;
	background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}

.status-route-node-label {
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--page-ink);
}

.status-route-node-meta {
	font-size: 0.64rem;
	line-height: 1.2;
	color: var(--muted-ink);
}

.status-route-node-latency {
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.1;
	color: color-mix(in srgb, var(--page-ink) 88%, transparent);
}

.status-route-arrow {
	font-size: 0.86rem;
	line-height: 1;
	color: color-mix(in srgb, var(--muted-ink) 88%, transparent);
}

.status-route-node[data-state="ready"] {
	border-color: color-mix(in srgb, var(--ready) 28%, var(--line));
}

.status-route-node[data-state="issue"] {
	border-color: color-mix(in srgb, var(--issue) 34%, var(--line));
}

.status-route-node[data-state="checking"] {
	border-color: color-mix(in srgb, var(--checking) 32%, var(--line));
}

.status-heading {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.status-refresh-button {
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--panel-alt);
	color: var(--page-ink);
	cursor: pointer;
	transition:
		background 150ms ease,
		transform 150ms ease,
		opacity 150ms ease;
}

.status-refresh-button:hover {
	background: var(--toolbar-hover);
	transform: translateY(-1px);
}

.status-refresh-button svg {
	width: 11px;
	height: 11px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.status-refresh-button[data-checking="true"] svg {
	animation: signal-spin 0.9s linear infinite;
}

.status-stack {
	position: relative;
	display: grid;
}

.status-item {
	position: relative;
	display: grid;
	grid-template-columns: 14px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 0.92rem;
	isolation: isolate;
}

.status-item + .status-item {
	border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.status-item::before,
.status-item::after {
	content: "";
	position: absolute;
	left: 6px;
	width: 2px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--muted-ink) 26%, transparent);
	z-index: 0;
}

.status-item::before {
	top: -1px;
	height: calc(50% - 7px);
}

.status-item::after {
	top: calc(50% + 7px);
	bottom: -1px;
}

.status-item:first-child::before {
	display: none;
}

.status-item:last-child::after {
	display: none;
}

.status-dot {
	width: 10px;
	height: 10px;
	justify-self: center;
	border-radius: 999px;
	background: var(--checking);
	position: relative;
	z-index: 1;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--panel-solid) 88%, transparent);
}

.status-label {
	font-weight: 500;
}

.status-meta {
	display: grid;
	justify-items: end;
	gap: 2px;
}

.status-value {
	color: var(--muted-ink);
}

.status-latency {
	font-size: 0.72rem;
	letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--muted-ink) 88%, transparent);
}

.status-item[data-state="ready"] .status-dot {
	background: var(--ready);
}

.status-item[data-state="ready"]::before,
.status-item[data-state="ready"]::after {
	background: color-mix(in srgb, var(--ready) 52%, var(--line));
}

.status-item[data-state="issue"] .status-dot {
	background: var(--issue);
}

.status-item[data-state="issue"]::before,
.status-item[data-state="issue"]::after {
	background: color-mix(in srgb, var(--issue) 54%, var(--line));
}

.status-item[data-state="checking"] .status-dot {
	background: var(--checking);
}

.status-item[data-state="checking"]::before,
.status-item[data-state="checking"]::after {
	background: color-mix(in srgb, var(--checking) 48%, var(--line));
}

body.session-live .shell {
	opacity: 0;
	transform: translateY(12px);
	visibility: hidden;
	pointer-events: none;
}

body.session-live {
	background: var(--content-stage-bg);
}

body.session-live .frame-stage {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1100px) {
	.home-layout {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 20px;
		padding-bottom: 12px;
	}

	.home-main {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.home-view-stack {
		height: auto;
	}

	.home-hero,
	.home-panel {
		height: auto;
	}

	.profile-card {
		position: static;
	}

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

@media (max-width: 980px) {
	.home-hero {
		grid-template-columns: 1fr;
	}

	.holy-hero {
		grid-template-columns: 1fr;
	}

	.home-hero-copy {
		padding-right: 0;
	}

	.holy-runtime-pills,
	.holy-feature-grid,
	.holy-setup-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.holy-app-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-hero-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.toolbar-controls {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
	}

	.toolbar-address-form {
		min-width: 0;
	}
}

@media (max-width: 780px) {
	body {
		padding-right: 12px;
		padding-left: 12px;
		padding-bottom: 12px;
	}

	.toolbar {
		top: 10px;
		left: 12px;
		right: 12px;
		border-radius: 18px;
	}

	.tab-strip {
		grid-template-columns: 1fr auto;
		gap: 8px;
	}

	.tab-strip-center {
		justify-content: flex-start;
		overflow: hidden;
	}

	.browser-tab {
		min-width: 0;
		max-width: none;
	}

	.browser-tab-item {
		min-width: 0;
		max-width: none;
	}

	.browser-tab-list {
		max-width: 100%;
	}

	.toolbar-group {
		gap: 7px;
	}

	.toolbar-icon-button {
		width: 28px;
		height: 28px;
	}

	.signal-pill {
		min-width: 70px;
	}

	.toolbar-controls {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.toolbar-nav,
	.toolbar-meta {
		width: 100%;
		justify-content: flex-start;
	}

	.home-hero {
		padding: 22px;
	}

	.home-view-switch {
		width: 100%;
		overflow-x: auto;
	}

	.home-view-button {
		flex: 1 0 auto;
	}

	.home-hero-popout {
		top: 16px;
		right: 16px;
		width: 34px;
		height: 34px;
	}

	.home-search-shell {
		gap: 10px;
		padding: 10px 10px 10px 14px;
	}

	.home-search-input {
		font-size: 1rem;
	}

	.home-search-submit {
		width: 40px;
		height: 40px;
	}

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

	.holy-actions,
	.holy-section-head {
		flex-direction: column;
		align-items: stretch;
	}

	.holy-search-shell {
		grid-template-columns: 1fr;
	}

	.holy-search-submit,
	.holy-refresh-button {
		width: 100%;
	}

	.holy-runtime-pills,
	.holy-feature-grid,
	.holy-app-grid,
	.holy-setup-grid,
	.holy-wireproxy-meta {
		grid-template-columns: 1fr;
	}

	.home-theme-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.engine-panel-head {
		flex-direction: column;
	}

	.engine-grid {
		grid-template-columns: 1fr;
	}

	.home-hero-meta {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.home-brand-heading {
		gap: 10px;
	}

	.home-brand-tail {
		padding-top: 2px;
	}

	.profile-actions {
		grid-template-columns: 1fr;
	}

	.frame-stage {
		left: 0;
		right: 0;
		bottom: 0;
		-webkit-overflow-scrolling: touch;
	}

	.status-panel {
		right: 14px;
		left: 14px;
		width: auto;
	}

	#frame-stage iframe,
	.sj-frame {
		border-radius: 0;
	}
}

body[data-device="mobile"] {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100dvh;
	min-height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
	overscroll-behavior: none;
	padding-right: 12px;
	padding-left: 12px;
	padding-bottom: 12px;
}

html[data-device="mobile"] {
	height: 100dvh;
	min-height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
	overscroll-behavior: none;
}

body[data-device="mobile"] .toolbar {
	top: 6px;
	left: 8px;
	right: 8px;
	border-radius: 16px;
	padding: 5px 7px 6px;
}

body[data-device="mobile"] .tab-strip {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 7px;
}

body[data-device="mobile"] .tab-strip-center {
	gap: 6px;
	overflow: hidden;
}

body[data-device="mobile"] .browser-tab-list {
	max-width: calc(100% - 44px);
}

body[data-device="mobile"] .browser-tab,
body[data-device="mobile"] .browser-tab-item {
	min-width: 88px;
	max-width: 21cqw;
	height: 34px;
}

body[data-device="mobile"] .browser-tab-item {
	gap: 6px;
	padding: 0 8px 0 12px;
}

body[data-device="mobile"] .browser-tab {
	padding: 0 12px;
	gap: 7px;
	font-size: 0.74rem;
}

body[data-device="mobile"] .tab-new-button {
	width: 26px;
	height: 26px;
}

body[data-device="mobile"] .toolbar-mini-button {
	width: 24px;
	height: 24px;
}

body[data-device="mobile"] .toolbar-controls {
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 5px;
}

body[data-device="mobile"] .toolbar-group {
	gap: 6px;
}

body[data-device="mobile"] .toolbar-nav {
	width: auto;
	justify-content: flex-start;
}

body[data-device="mobile"] .toolbar-meta {
	width: auto;
	justify-content: flex-end;
}

body[data-device="mobile"] .toolbar-icon-button {
	width: 29px;
	height: 29px;
}

body[data-device="mobile"] .tab-new-button svg,
body[data-device="mobile"] .toolbar-mini-button svg,
body[data-device="mobile"] .toolbar-icon-button svg,
body[data-device="mobile"] .toolbar-address-submit svg {
	width: 14px;
	height: 14px;
}

body[data-device="mobile"] .toolbar-pill {
	min-height: 29px;
	padding: 4px 7px;
}

body[data-device="mobile"] .signal-pill {
	min-width: 84px;
}

body[data-device="mobile"] .toolbar-address-form {
	padding: 2px 3px;
}

body[data-device="mobile"] .toolbar-address-input {
	font-size: 0.9rem;
	padding: 9px 13px;
}

body[data-device="mobile"] .toolbar-address-submit {
	width: 29px;
	height: 29px;
}

body[data-device="mobile"] .home-layout {
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	padding-top: 10px;
	padding-bottom: 8px;
}

body[data-device="mobile"] .home-main {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.22fr);
	gap: 16px;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

body[data-device="mobile"] .home-hero {
	padding: 20px 22px;
}

body[data-device="mobile"] .holy-hero {
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

body[data-device="mobile"] .home-hero-popout {
	top: 18px;
	right: 18px;
	width: 38px;
	height: 38px;
}

body[data-device="mobile"] .home-search-shell {
	padding: 7px 10px 7px 14px;
}

body[data-device="mobile"] .home-search-submit {
	width: 38px;
	height: 38px;
}

body[data-device="mobile"] .home-hero-meta {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
}

body[data-device="mobile"] .holy-runtime-pills {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-device="mobile"] .engine-panel-head {
	flex-direction: row;
}

body[data-device="mobile"] .engine-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device="mobile"] .profile-actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device="mobile"] .theme-gallery,
body[data-device="mobile"] .home-theme-gallery {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-device="mobile"] .holy-feature-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device="mobile"] .holy-app-grid,
body[data-device="mobile"] .holy-setup-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-device="mobile"] .custom-theme-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-device="mobile"] .mobile-sites-setting {
	grid-template-columns: minmax(0, 1fr) auto;
}

body[data-device="mobile"] .status-panel {
	right: 14px;
	left: 14px;
	width: auto;
}

body[data-device="mobile"] .shell,
body[data-device="mobile"] .home-layout,
body[data-device="mobile"] .frame-stage {
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
}

@media (max-width: 640px) {
	.custom-theme-grid {
		grid-template-columns: 1fr;
	}
}
