@property --bg {
	syntax: "<color>";
	inherits: true;
	initial-value: #0d0810;
}
@property --panel {
	syntax: "<color>";
	inherits: true;
	initial-value: #18101c;
}
@property --panel-2 {
	syntax: "<color>";
	inherits: true;
	initial-value: #211527;
}
@property --line {
	syntax: "<color>";
	inherits: true;
	initial-value: #3d2944;
}
@property --text {
	syntax: "<color>";
	inherits: true;
	initial-value: #fbf7fc;
}
@property --muted {
	syntax: "<color>";
	inherits: true;
	initial-value: #b9a9be;
}
@property --accent {
	syntax: "<color>";
	inherits: true;
	initial-value: #e250e2;
}
@property --accent-strong {
	syntax: "<color>";
	inherits: true;
	initial-value: #f079f0;
}
@property --accent-ink {
	syntax: "<color>";
	inherits: true;
	initial-value: #1b071b;
}
@property --danger {
	syntax: "<color>";
	inherits: true;
	initial-value: #ff9ca8;
}
@property --warning {
	syntax: "<color>";
	inherits: true;
	initial-value: #ffd087;
}
@property --success {
	syntax: "<color>";
	inherits: true;
	initial-value: #8ce2bb;
}
@property --glow {
	syntax: "<color>";
	inherits: true;
	initial-value: #3a143d;
}
@property --card-surface-shift {
	syntax: "<color>";
	inherits: true;
	initial-value: #000;
}
@property --button-hover-contrast {
	syntax: "<color>";
	inherits: true;
	initial-value: #000;
}

:root {
	color-scheme: dark;
	--bg: #0d0810;
	--panel: #18101c;
	--panel-2: #211527;
	--line: #3d2944;
	--text: #fbf7fc;
	--muted: #b9a9be;
	--accent: #e250e2;
	--accent-strong: #f079f0;
	--accent-ink: #1b071b;
	--danger: #ff9ca8;
	--warning: #ffd087;
	--success: #8ce2bb;
	--glow: #3a143d;
	--card-surface-shift: #000;
	--button-hover-contrast: #000;
	--theme-transition-duration: 0.35s;
	--trace-footer-height: 3rem;
	--trace-sidebar-width: 15rem;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="magnolia"] {
	color-scheme: light;
	--bg: #faf6fb;
	--panel: #ffffff;
	--panel-2: #f4eaf5;
	--line: #d9c8dc;
	--text: #2d1b31;
	--muted: #716176;
	--accent: #9f2fa4;
	--accent-strong: #7e2084;
	--accent-ink: #ffffff;
	--danger: #a82843;
	--warning: #825915;
	--success: #1d6b4e;
	--glow: #f3d6f4;
}

body[data-theme="blue"] {
	--bg: #07111f;
	--panel: #0e1a2b;
	--panel-2: #14253b;
	--line: #29445f;
	--text: #f3f7ff;
	--muted: #a5b6cb;
	--accent: #4e8cff;
	--accent-strong: #79a8ff;
	--accent-ink: #071427;
	--glow: #102d5a;
}
body[data-theme="green"] {
	--bg: #07150f;
	--panel: #0e2118;
	--panel-2: #163126;
	--line: #2d5542;
	--text: #f1fbf6;
	--muted: #a7c1b3;
	--accent: #42c98b;
	--accent-strong: #76e0ad;
	--accent-ink: #071c13;
	--glow: #103d2a;
}
body[data-theme="amber"] {
	--bg: #181006;
	--panel: #25190b;
	--panel-2: #352512;
	--line: #604622;
	--text: #fff9ed;
	--muted: #c9b894;
	--accent: #e8a83d;
	--accent-strong: #f5c46f;
	--accent-ink: #241606;
	--glow: #4a3010;
}
body[data-theme="sky"] {
	color-scheme: light;
	--bg: #f4f8ff;
	--panel: #ffffff;
	--panel-2: #e7f0ff;
	--line: #c7d8ef;
	--text: #17253a;
	--muted: #5d6e84;
	--accent: #2563b8;
	--accent-strong: #174f9c;
	--accent-ink: #ffffff;
	--danger: #a82843;
	--warning: #825915;
	--success: #1d6b4e;
	--glow: #dceaff;
}
body[data-theme="mint"] {
	color-scheme: light;
	--bg: #f4fbf7;
	--panel: #ffffff;
	--panel-2: #e4f5ec;
	--line: #c5dfd1;
	--text: #193127;
	--muted: #5b7468;
	--accent: #16734d;
	--accent-strong: #0d5b3c;
	--accent-ink: #ffffff;
	--danger: #a82843;
	--warning: #825915;
	--success: #1d6b4e;
	--glow: #d9f5e8;
}
body[data-theme="sand"] {
	color-scheme: light;
	--bg: #fffaf0;
	--panel: #ffffff;
	--panel-2: #f9edd4;
	--line: #dfcfad;
	--text: #342817;
	--muted: #74664f;
	--accent: #97610f;
	--accent-strong: #714606;
	--accent-ink: #ffffff;
	--danger: #a82843;
	--warning: #825915;
	--success: #1d6b4e;
	--glow: #fff0cf;
}
body[data-theme="midnight"] {
	--bg: #080b10;
	--panel: #111721;
	--panel-2: #151d29;
	--line: #273344;
	--text: #f6f8fb;
	--muted: #9ca9ba;
	--accent: #72e2b5;
	--accent-strong: #72e2b5;
	--accent-ink: #07120e;
	--danger: #ff9b9b;
	--warning: #ffd786;
	--success: #8ce2bb;
	--glow: #172536;
}
body[data-theme="slate"] {
	--bg: #121a24;
	--panel: #1d2936;
	--panel-2: #2a3948;
	--line: #475968;
	--text: #edf5ff;
	--muted: #b5c2cf;
	--accent: #9acbe5;
	--accent-strong: #9acbe5;
	--accent-ink: #07131d;
	--danger: #ffafb8;
	--warning: #ffe1a1;
	--success: #8ce2bb;
	--glow: #2a3a49;
}
body[data-theme="graphite"] {
	--bg: #101112;
	--panel: #1b1d20;
	--panel-2: #272a2e;
	--line: #454a50;
	--text: #f1f2f3;
	--muted: #b2b6ba;
	--accent: #b9e6cc;
	--accent-strong: #b9e6cc;
	--accent-ink: #0c1610;
	--danger: #ffc0c0;
	--warning: #f4d99b;
	--success: #8ce2bb;
	--glow: #303438;
}
body[data-theme="crimson"] {
	--bg: #170c11;
	--panel: #28131b;
	--panel-2: #351a25;
	--line: #593141;
	--text: #fff4f5;
	--muted: #d2afb8;
	--accent: #ffb4c3;
	--accent-strong: #ffb4c3;
	--accent-ink: #260b13;
	--danger: #ffd0d7;
	--warning: #ffd2a0;
	--success: #8ce2bb;
	--glow: #4d1527;
}
body[data-theme="pearl"] {
	color-scheme: light;
	--bg: #f3f6f8;
	--panel: #ffffff;
	--panel-2: #e7edf2;
	--line: #c6d1da;
	--text: #1d2936;
	--muted: #586b7c;
	--accent: #426f8e;
	--accent-strong: #426f8e;
	--accent-ink: #ffffff;
	--danger: #ad3449;
	--warning: #865b12;
	--success: #2c779f;
	--glow: #dbe5eb;
}
body[data-theme="chalk"] {
	color-scheme: light;
	--bg: #f8f7f2;
	--panel: #ffffff;
	--panel-2: #eeece5;
	--line: #d7d3c8;
	--text: #25231e;
	--muted: #68645b;
	--accent: #386b53;
	--accent-strong: #386b53;
	--accent-ink: #ffffff;
	--danger: #a83b3b;
	--warning: #815d18;
	--success: #1d6b4e;
	--glow: #e7e2d4;
}
body[data-theme="sunrise"] {
	color-scheme: light;
	--bg: #fff3e8;
	--panel: #fffaf5;
	--panel-2: #fce4d4;
	--line: #e7c6b4;
	--text: #352217;
	--muted: #796052;
	--accent: #a94e3b;
	--accent-strong: #a94e3b;
	--accent-ink: #ffffff;
	--danger: #a92c42;
	--warning: #8b5910;
	--success: #1d6b4e;
	--glow: #ffd4b8;
}
body[data-theme="rosewater"] {
	color-scheme: light;
	--bg: #fff4f6;
	--panel: #fffafb;
	--panel-2: #f8e4e9;
	--line: #dfbdc6;
	--text: #3d2028;
	--muted: #7d5963;
	--accent: #9d3e58;
	--accent-strong: #9d3e58;
	--accent-ink: #ffffff;
	--danger: #a72843;
	--warning: #855616;
	--success: #1d6b4e;
	--glow: #f7ccd7;
}

body[data-theme="magnolia"],
body[data-theme="sky"],
body[data-theme="mint"],
body[data-theme="sand"],
body[data-theme="pearl"],
body[data-theme="chalk"],
body[data-theme="sunrise"],
body[data-theme="rosewater"] {
	--button-hover-contrast: #fff;
	--card-surface-shift: #fff;
}

* {
	box-sizing: border-box;
}
html {
	min-width: 320px;
}
body {
	height: 100dvh;
	min-height: 100vh;
	margin: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	overflow: hidden;
	background: radial-gradient(circle at 12% -5%, var(--glow), transparent 34%), var(--bg);
	color: var(--text);
	padding-bottom: var(--trace-footer-height);
	transition:
		--bg var(--theme-transition-duration) ease-in-out,
		--panel var(--theme-transition-duration) ease-in-out,
		--panel-2 var(--theme-transition-duration) ease-in-out,
		--line var(--theme-transition-duration) ease-in-out,
		--text var(--theme-transition-duration) ease-in-out,
		--muted var(--theme-transition-duration) ease-in-out,
		--accent var(--theme-transition-duration) ease-in-out,
		--accent-strong var(--theme-transition-duration) ease-in-out,
		--accent-ink var(--theme-transition-duration) ease-in-out,
		--danger var(--theme-transition-duration) ease-in-out,
		--warning var(--theme-transition-duration) ease-in-out,
		--success var(--theme-transition-duration) ease-in-out,
		--glow var(--theme-transition-duration) ease-in-out,
		--card-surface-shift var(--theme-transition-duration) ease-in-out,
		--button-hover-contrast var(--theme-transition-duration) ease-in-out,
		opacity 0.18s ease,
		background-color 0.35s ease,
		color 0.35s ease;
}
body.theme-mode-leaving {
	opacity: 0;
	transition-duration: var(--theme-transition-duration);
}
a {
	color: inherit;
}
a[href],
button:not(:disabled),
[role="tab"]:not([aria-disabled="true"]) {
	cursor: pointer;
}
button:disabled,
[role="tab"][aria-disabled="true"] {
	cursor: not-allowed;
}
h1,
h2,
h3,
p {
	margin-top: 0;
}
h1 {
	margin-bottom: 0.55rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -0.015em;
}
h2 {
	margin-bottom: 0.55rem;
	font-size: clamp(1.25rem, 3vw, 1.8rem);
	letter-spacing: -0.005em;
}
h3 {
	margin-bottom: 0.4rem;
}
p {
	line-height: 1.58;
}
code {
	color: var(--accent-strong);
	overflow-wrap: anywhere;
}
.skip-link {
	position: fixed;
	z-index: 100;
	top: 0.5rem;
	left: 0.5rem;
	transform: translateY(-150%);
	padding: 0.7rem 1rem;
	border-radius: 0.5rem;
	background: var(--accent);
	color: var(--accent-ink);
}
.skip-link:focus {
	transform: translateY(0);
}
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.2rem clamp(0.6rem, 2.5vw, 2rem);
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(16px);
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
}
.brand strong {
	display: block;
	font-size: clamp(1.35rem, 3vw, 2rem);
}
.brand .eyebrow {
	margin-bottom: 0.25rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
}
.brand-mark {
	display: block;
	width: 5.3rem;
	height: 5.3rem;
	object-fit: contain;
}
.brand-mark--large {
	width: min(18rem, 72vw);
	height: min(18rem, 72vw);
	margin: 0 auto 0.4rem;
}
.eyebrow,
.kicker {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--accent-strong);
	font-size: 0.69rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}
.header-actions form {
	display: inline-flex;
	margin: 0;
}
.glyph-button {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: linear-gradient(145deg, var(--panel-2), var(--panel));
	color: var(--text);
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}
.glyph-button svg {
	width: 1.4rem;
	height: 1.4rem;
	object-fit: contain;
}
.theme-mode-icon {
	grid-area: 1 / 1;
	display: grid;
	place-items: center;
	transition: opacity 140ms ease-in;
}
.theme-mode-icon--current {
	opacity: 1;
}
.theme-mode-icon--next {
	opacity: 0;
}
body.theme-mode-leaving [data-theme-mode-toggle] .theme-mode-icon--current {
	opacity: 0;
}
body.theme-mode-leaving [data-theme-mode-toggle] .theme-mode-icon--next {
	opacity: 1;
	transition-delay: 160ms;
	transition-duration: 180ms;
	transition-timing-function: ease-out;
}
.theme-mode-toggle-changing .theme-mode-icon--current {
	opacity: 0;
}
.theme-mode-toggle-changing .theme-mode-icon--next {
	opacity: 1;
	transition-delay: 160ms;
	transition-duration: 180ms;
	transition-timing-function: ease-out;
}
.app-shell {
	display: grid;
	grid-template-columns: var(--trace-sidebar-width) minmax(0, 1fr);
	width: 100%;
	min-height: 0;
	overflow: hidden;
	transition: grid-template-columns 600ms ease-in-out;
}
.drawer-rail {
	position: relative;
	z-index: 50;
	align-self: stretch;
	width: var(--trace-sidebar-width);
	height: 100%;
	min-height: 0;
	overflow: visible;
	transform: translateX(0);
	transition: transform 600ms ease-in-out;
	will-change: transform;
}
.sidebar {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-right: 1px solid var(--line);
	background: var(--bg);
	box-shadow: 1rem 0 2.5rem rgb(0 0 0 / 18%);
}
.sidebar-toggle {
	position: absolute;
	z-index: 1;
	top: 0.75rem;
	right: -3.25rem;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.sidebar-toggle:hover {
	background: transparent;
	color: var(--accent-strong);
}
.section-nav {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
	gap: 0.25rem;
	padding: 1rem;
	overflow-y: auto;
	opacity: 1;
	transition:
		opacity 300ms ease-in-out,
		transform 600ms ease-in-out;
}
.sidebar-collapsed .app-shell {
	grid-template-columns: 0 minmax(0, 1fr);
}
.sidebar-collapsed .drawer-rail {
	transform: translateX(-100%);
}
.section-nav a {
	flex: 0 0 auto;
	padding: 0.72rem 0.85rem 0.72rem 1.25rem;
	border-radius: 0.6rem;
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 750;
	text-decoration: none;
}
.section-nav a:hover,
.section-nav a[aria-current="page"] {
	background: var(--panel-2);
	color: var(--accent-strong);
}
.section-nav-label {
	flex: 0 0 auto;
	margin: 1rem 0.85rem 0.15rem -0.45rem;
	color: var(--muted);
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.section-nav-label:first-child {
	margin-top: 0;
}
.main {
	width: 100%;
	height: 100%;
	min-width: 0;
	margin: 0;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
	overflow-y: auto;
}
.main > * {
	max-width: 1440px;
	margin-right: auto;
	margin-left: auto;
}
.main--narrow {
	width: 100%;
	max-width: none;
	margin: 0;
}
.main--narrow > * {
	max-width: 880px;
}
.main > p,
.section-heading p,
.lede,
.panel > p,
.empty-state p {
	color: var(--muted);
}
.section-heading,
.panel-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1rem;
}
.panel-heading {
	align-items: center;
	margin-bottom: 1rem;
}
.section-heading > .button {
	flex: 0 0 auto;
	align-self: flex-end;
}
.section-heading > :first-child > :last-child {
	margin-bottom: 0;
}
.panel-heading h2,
.panel-heading p {
	margin-bottom: 0;
}
.panel,
.empty-state,
.auth-card,
.table-wrap {
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: linear-gradient(
		145deg,
		var(--glow),
		color-mix(in srgb, var(--glow) 88%, var(--card-surface-shift))
	);
	box-shadow: 0 20px 60px rgb(0 0 0 / 18%);
}
.panel {
	margin-bottom: 1.2rem;
	padding: clamp(0.5rem, 1vw, 2rem);
}
.detail-grid {
	display: grid;
	/* Stacked on mobile by default */
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.2rem;
}
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 1rem;
	margin-bottom: 1.2rem;
}
.card-grid > .panel {
	margin-bottom: 0;
}
.create-link-type.link-view-tabs {
	position: relative;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.create-link-type legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.create-link-type label {
	cursor: pointer;
}
.create-link-type input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.create-link-type label > span {
	display: inline;
	margin: 0;
	color: inherit;
	font: inherit;
}
.create-link-type input:focus-visible + span {
	outline: 2px solid var(--accent-strong);
	outline-offset: 4px;
}
label .permanent-path-field {
	display: flex;
	width: 100%;
	align-items: stretch;
	margin-top: 0.42rem;
}
.permanent-path-field > span {
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--border);
	border-right: 0;
	border-radius: 0.45rem 0 0 0.45rem;
	background: var(--surface-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.permanent-path-field input {
	min-width: 0;
	border-radius: 0 0.45rem 0.45rem 0;
}
.result-modal label .copy-field {
	display: grid;
	width: 100%;
	margin-top: 0.42rem;
}
.table-actions {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.domain-entrypoint-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.domain-entrypoint-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
}
.domain-entrypoint-card dd {
	overflow-wrap: anywhere;
}
.domain-entrypoint-card__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 1rem;
}
.domain-entrypoint-card__actions .button {
	min-width: 7rem;
}

/* 60/40 split on tablets and desktops */
@media (min-width: 600px) {
	/* .card-grid, */
	.detail-grid {
		grid-template-columns: 6fr 4fr;
	}
}
.metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.metrics--dashboard {
	margin-bottom: 1.2rem;
}
.metrics div {
	padding: 1rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	background: var(--panel);
	text-align: center;
}
.metrics strong,
.metrics span {
	display: block;
}
.metrics strong {
	font-size: 1.45rem;
}
.metrics span {
	margin-top: 0.2rem;
	color: var(--muted);
	font-size: 0.68rem;
	text-transform: uppercase;
}
.metrics--link-activity {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.metrics--link-activity div {
	min-height: 8rem;
	padding: 1.2rem 1rem;
	display: grid;
	place-content: center;
}
.metrics--link-activity strong {
	font-size: 2.5rem;
}
.metrics--link-activity span {
	font-size: 1rem;
}
.activity-explainer {
	margin: -0.35rem 0 1rem;
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.4;
}
.link-activity-reset {
	margin-top: 1rem;
}
.link-activity-reset button {
	width: 100%;
}
.button,
button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.72rem 1rem;
	border: 1px solid var(--accent);
	border-radius: 0.65rem;
	background: var(--accent);
	color: var(--accent-ink);
	font: inherit;
	font-weight: 850;
	text-decoration: none;
	cursor: pointer;
}
.button:not([aria-disabled="true"]):hover,
button:not(:disabled):hover {
	border-color: color-mix(in srgb, var(--accent) 82%, var(--button-hover-contrast));
	background: color-mix(in srgb, var(--accent) 82%, var(--button-hover-contrast));
}
.button.secondary,
button.secondary {
	border-color: var(--line);
	background: transparent;
	color: var(--text);
}
.button.secondary:hover,
button.secondary:not(:disabled):hover {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 16%, var(--panel));
	color: var(--text);
}
.glyph-button:hover {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 16%, var(--panel));
	color: var(--accent-strong);
}
button.danger {
	border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
	background: color-mix(in srgb, var(--danger) 22%, var(--panel));
	color: var(--danger);
}
.icon-label {
	gap: 0.5rem;
}
.icon-label svg {
	width: 1.25rem;
	height: 1.25rem;
}
.actions {
	display: flex;
	justify-content: end;
	gap: 0.75rem;
}
.button-group,
.key-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}
.button-group form {
	display: inline-flex;
	margin: 0;
}
.key-row {
	justify-content: space-between;
	padding: 0.8rem 0;
	border-top: 1px solid var(--line);
}
.key-row:first-of-type {
	border-top: 0;
}
.actions--split {
	justify-content: space-between;
}
form {
	display: grid;
	gap: 1rem;
}
.form-grid {
	grid-template-columns: 1fr 1fr;
}
.form-grid .full {
	grid-column: 1 / -1;
}
label {
	display: block;
	color: var(--text);
	font-size: 0.86rem;
	font-weight: 750;
}
label > span,
label span {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
}
.required-glyph {
	display: inline;
	margin-left: 0.12rem;
	color: var(--accent-strong);
	font-size: 0.31rem;
	line-height: 1;
	vertical-align: super;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
label > input:not([type="checkbox"]):not([type="radio"]),
label > textarea,
label > select {
	display: block;
	margin-top: 0.42rem;
}
label:not(.checkbox):not(.scheme-card) > span:not(.required-glyph):not(.sr-only) {
	display: block;
	margin-top: 0.18rem;
}
input,
textarea,
select {
	width: 100%;
	padding: 0.78rem 0.88rem;
	border: 1px solid var(--line);
	border-radius: 0.6rem;
	background: var(--bg);
	color: var(--text);
	font: inherit;
}
input[type="date"][data-empty="true"]::-webkit-datetime-edit,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit,
input[type="time"][data-empty="true"]::-webkit-datetime-edit,
input[type="month"][data-empty="true"]::-webkit-datetime-edit,
input[type="date"][data-empty="true"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"][data-empty="true"]::-webkit-datetime-edit-fields-wrapper,
input[type="month"][data-empty="true"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"][data-empty="true"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-year-field,
input[type="date"][data-empty="true"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-month-field,
input[type="date"][data-empty="true"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-day-field,
input[type="time"][data-empty="true"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-hour-field,
input[type="time"][data-empty="true"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-minute-field,
input[type="time"][data-empty="true"]::-webkit-datetime-edit-ampm-field,
input[type="datetime-local"][data-empty="true"]::-webkit-datetime-edit-ampm-field {
	color: var(--muted) !important;
}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select {
	box-sizing: border-box;
	height: 2.25rem;
	min-height: 2.25rem;
}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
	padding: 0.5rem 0.88rem;
}
select {
	padding: 0.5rem 2rem 0.5rem 0.88rem;
}
textarea {
	padding: 0.78rem 0.88rem;
	resize: vertical;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
	outline-offset: 2px;
}
fieldset {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
}
legend {
	padding: 0 0.4rem;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}
.checkbox-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}
.checkbox-grid label {
	display: flex;
	align-items: center;
}
.checkbox-grid input {
	width: auto;
}
.alert {
	margin: 1rem 0;
	padding: 0.9rem 1rem;
	border: 1px solid color-mix(in srgb, var(--danger) 55%, var(--line));
	border-radius: 0.7rem;
	background: color-mix(in srgb, var(--danger) 12%, var(--panel));
	color: var(--danger);
}
.alert--success {
	border-color: color-mix(in srgb, var(--success) 55%, var(--line));
	background: color-mix(in srgb, var(--success) 10%, var(--panel));
	color: var(--success);
}
.main > .link-inventory-message {
	box-sizing: border-box;
	width: min(100%, 1440px);
	margin-right: auto;
	margin-left: auto;
}
.one-time-secret {
	border-color: color-mix(in srgb, var(--warning) 55%, var(--line));
}
.copy-field {
	display: grid;
	grid-template-columns: 1fr auto;
	/* gap: 0.6rem; */
}
.copy-field input {
	border-radius: 0.6rem 0 0 0.6rem;
}
.copy-field input:focus {
	outline: none;
	box-shadow: inset 0 0 0 3px var(--bg);
}
.copy-field button {
	width: 12rem;
	height: 2rem;
	min-height: 2rem;
	border-radius: 0 0.6rem 0.6rem 0;
}
.copy-field--result input {
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.result-modal label:not(.checkbox):not(.scheme-card) > span.copy-field.copy-field--result:not(.required-glyph):not(.sr-only) {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	margin-top: 0.42rem;
}
.result-modal label:not(.checkbox):not(.scheme-card) > span.copy-field.copy-field--result:not(.required-glyph):not(.sr-only) > input {
	width: auto;
	min-width: 0;
	flex: 1 1 0;
}
.result-modal label:not(.checkbox):not(.scheme-card) > span.copy-field.copy-field--result:not(.required-glyph):not(.sr-only) > button {
	flex: 0 0 12rem;
}
.one-time-warning {
	margin: 0.85rem 0 1.25rem;
	color: var(--warning);
	font-size: 0.8rem;
}
.table-wrap {
	overflow-x: auto;
	background: var(--panel);
}
.table-wrap--flush {
	margin: 0;
	border-width: 1px;
	border-radius: 0.75rem;
	box-shadow: none;
}
table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
}
th,
td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	font-size: 0.84rem;
}
th {
	color: var(--muted);
	font-size: 0.69rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
tr:last-child td {
	border-bottom: 0;
}
.table-subtle {
	display: block;
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.72rem;
}

.link-payload-row > td {
	background: color-mix(in srgb, var(--panel-2) 72%, var(--panel));
	border-top: 1px solid var(--line);
	transition: background 140ms ease;
}
.link-payload-row:hover > td,
.link-payload-row:focus-visible > td,
.link-payload-row:focus-within > td {
	background: color-mix(in srgb, var(--accent) 14%, var(--panel));
}
.link-payload-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px;
	margin-top: 0.38rem;
	max-width: 9rem;
}
.link-payload-stat {
	min-width: 0;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 0.25rem;
	background: color-mix(in srgb, var(--panel) 78%, var(--panel-2));
	color: var(--muted);
	line-height: 1.05;
}
.link-payload-stat strong,
.link-payload-stat span {
	display: block;
}
.link-payload-stat strong {
	color: var(--text);
	font-size: 0.68rem;
}
.link-payload-stat span {
	font-size: 0.5rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.link-payload-stat--human {
	border-color: color-mix(in srgb, var(--success) 62%, var(--line));
}
.link-payload-stat--human strong {
	color: var(--success);
}
.link-payload-stat--negative {
	border-color: color-mix(in srgb, var(--warning) 62%, var(--line));
}
.link-payload-stat--negative strong {
	color: var(--warning);
}
.link-payload-child > td {
	background: color-mix(in srgb, var(--panel-2) 42%, var(--panel));
}
.link-payload-children__mask {
	padding-bottom: 2rem;
}
.link-payload-links {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 0.55rem;
	background: var(--panel);
}
.link-payload-links th,
.link-payload-links td {
	background: transparent;
}
.link-payload-links .link-payload-link-row {
	cursor: pointer;
}
.link-payload-links .link-payload-link-row > td {
	transition: background 140ms ease;
}
.link-payload-links .link-payload-link-row:hover > td,
.link-payload-links .link-payload-link-row:focus-visible > td,
.link-payload-links .link-payload-link-row:focus-within > td {
	background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}
.link-payload-links tr:last-child td {
	border-bottom: 0;
}
.link-bulk-select {
	display: none;
	width: 2.4rem;
	padding-right: 0;
	padding-left: 0.8rem;
	text-align: center;
}
.is-bulk-delete-mode .link-bulk-select {
	display: table-cell;
}
.link-bulk-select input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--danger);
}
.truncate {
	display: block;
	max-width: 28rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.break-all {
	overflow-wrap: anywhere;
}
.status {
	display: inline-flex;
	padding: 0.32rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.66rem;
	font-weight: 900;
	text-transform: uppercase;
}
.status--active,
.status--likely_human {
	border-color: color-mix(in srgb, var(--success) 45%, var(--line));
	color: var(--success);
}
.status--disabled,
.status--suspected_scanner {
	border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
	color: var(--danger);
}
.status--degraded {
	border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
	color: var(--warning);
}
.status--test {
	margin-left: 0.3rem;
	border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
	color: var(--warning);
}
dl {
	display: grid;
	gap: 0.8rem;
}
dt {
	margin-bottom: 0.18rem;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}
dd {
	margin: 0;
	overflow-wrap: anywhere;
}
.empty-state {
	padding: 3rem 1rem;
	text-align: center;
	margin-bottom: 2rem;
}
.danger-zone {
	margin-top: 1.2rem;
	border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
}
.auth-page {
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	padding: 1rem 0 0;
	overflow-y: auto;
}
.auth-card {
	width: min(440px, calc(100% - 2rem));
	padding: clamp(1rem, 2vw, 2.7rem);
	transform: translateY(-12%);
}
@media (max-height: 1199px) {
	.auth-card {
		transform: translateY(0);
	}
}
.auth-card--login {
	width: min(480px, calc(100% - 2rem));
	text-align: center;
}
.auth-card--login form {
	width: 100%;
	min-width: 0;
	text-align: left;
}
.auth-card--login label,
.auth-card--login input {
	width: 100%;
	min-width: 0;
}
.auth-card--login button[type="submit"] {
	width: 100%;
}
@media (max-height: 799px) and (min-width: 681px) {
	.auth-card--login {
		width: min(960px, calc(100% - 2rem));
		display: grid;
		grid-template-columns: minmax(13rem, 0.9fr) minmax(17rem, 1.1fr);
		align-items: center;
		gap: clamp(1.5rem, 4vw, 4rem);
		text-align: left;
	}
	.auth-card--login .auth-brand {
		text-align: center;
	}
	.auth-card--login .auth-login-content {
		display: grid;
		align-content: center;
	}
}
.auth-card--mfa {
	width: min(480px, calc(100% - 2rem));
	transform: none;
}
.mfa-enrollment {
	display: grid;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	background: var(--bg);
}
.mfa-enrollment h2,
.mfa-enrollment ol {
	margin-bottom: 0;
}
.mfa-enrollment ol {
	padding-left: 1.25rem;
	color: var(--muted);
	text-align: left;
}
.mfa-qr {
	margin: 0;
	text-align: center;
}
.mfa-qr img {
	display: block;
	width: min(256px, 100%);
	min-width: 256px;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0 auto 0.75rem;
	padding: 0.75rem;
	border-radius: 0.75rem;
	background: #fff;
	image-rendering: pixelated;
}
.mfa-qr figcaption {
	color: var(--muted);
	font-size: 0.88rem;
}
.mfa-secret {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.08em;
}
.mfa-provisioning-uri {
	display: block;
	margin-top: 0.65rem;
	padding: 0.75rem;
	overflow-wrap: anywhere;
	border-radius: 0.5rem;
	background: var(--panel);
	text-align: left;
}
.mfa-confirmation span {
	flex: 1;
	text-align: left;
}
.footer {
	position: fixed;
	z-index: 55;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1rem;
	border-top: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(16px);
	text-align: center;
}
.footer p {
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}
.help-content {
	line-height: 1.65;
}
.help-modal {
	width: min(720px, calc(100% - 2rem));
	max-height: min(82vh, 780px);
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--panel);
	color: var(--text);
	box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}
.help-modal::backdrop {
	background: rgb(5 2 7 / 72%);
	backdrop-filter: blur(4px);
}
.result-modal,
.link-details-modal,
.settings-modal,
.link-edit-modal,
.entrypoint-edit-modal {
	width: min(920px, calc(100% - 2rem));
	max-height: min(88vh, 900px);
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--panel);
	color: var(--text);
	box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}
.result-modal {
	width: min(912px, calc(100% - 2rem));
	border-color: color-mix(in srgb, var(--success) 55%, var(--line));
}
.result-modal .copy-field {
	width: 100%;
	grid-template-columns: minmax(0, 1fr) auto;
}
.result-modal .copy-field button {
	white-space: nowrap;
}
.result-modal::backdrop,
.link-details-modal::backdrop,
.settings-modal::backdrop,
.link-edit-modal::backdrop,
.entrypoint-edit-modal::backdrop {
	background: rgb(5 2 7 / 72%);
	backdrop-filter: blur(4px);
}
.modal-shell[open] {
	display: flex;
	flex-direction: column;
	--modal-viewport-gap: clamp(1rem, 4vh, 3rem);
	margin: var(--modal-viewport-gap) auto auto;
	max-height: calc(100dvh - var(--modal-viewport-gap) - var(--modal-viewport-gap));
	animation: modal-enter 400ms ease-out both;
}
@keyframes modal-enter {
	from {
		opacity: 0;
		transform: translateY(0.75rem) scale(0.75);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
.modal-shell[open]::backdrop {
	animation: modal-backdrop-enter 600ms ease-out both;
}
@keyframes modal-backdrop-enter {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.modal-shell[open].modal-closing {
	animation: modal-exit 400ms ease-out both;
}
@keyframes modal-exit {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(0.75rem) scale(0.75);
	}
}
.modal-shell[open].modal-closing::backdrop {
	animation: modal-backdrop-exit 600ms ease-out both;
}
@keyframes modal-backdrop-exit {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}
.modal-header {
	z-index: 2;
	flex: 0 0 auto;
	padding: clamp(1.2rem, 4vw, 2rem);
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(16px);
}
.modal-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: clamp(1.2rem, 4vw, 2rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.modal-body > :first-child {
	margin-top: 0;
}
.modal-body > :last-child {
	margin-bottom: 0;
}
.modal-footer {
	z-index: 2;
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem clamp(1.2rem, 4vw, 2rem);
	border-top: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(16px);
}
.modal-footer--split {
	justify-content: space-between;
}
.modal-footer--controls form {
	display: inline-flex;
	margin: 0;
}
.modal-footer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-left: auto;
}
.modal-footer--controls .modal-footer__close {
	margin-left: 0;
}
.modal-footer__close {
	margin-left: auto;
}
.help-modal .modal-footer {
	justify-content: flex-start;
}
.help-modal .modal-footer__close {
	margin-left: 0;
}
.settings-modal {
	width: min(1080px, calc(100% - 2rem));
}
.link-edit-modal {
	width: min(760px, calc(100% - 2rem));
}
.entrypoint-edit-modal {
	width: min(760px, calc(100% - 2rem));
}
.link-details-modal .detail-grid {
	text-align: center;
}
.link-details-modal .detail-panel--destination dl {
	text-align: left;
}
.link-details-modal .detail-panel--metadata dl {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1.5rem;
}
.metrics--link-activity div {
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	aspect-ratio: 1;
}
.link-edit-tracked-url {
	display: grid;
	gap: 0.4rem;
}
.link-edit-tracked-url .field-label {
	color: var(--text);
	font-weight: 700;
}
.link-edit-tracked-url .tracked-link-text {
	margin: 0;
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	line-height: 1.5;
}
.link-details-modal .modal-body > .status {
	margin-bottom: 1rem;
}
.link-details-modal .detail-grid {
	margin-top: 0;
}
.help-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.help-modal__header h2 {
	margin-bottom: 0;
}
.help-modal__close {
	flex: 0 0 auto;
	color: var(--text);
	font-size: 1.5rem;
	line-height: 1;
}
.help-modal .modal-body > p,
.help-notes {
	color: var(--muted);
}
.help-code-sample {
	margin: 0.85rem 0 0;
	padding: 1rem;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	background: var(--panel-2);
	color: var(--text);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 0.78rem;
	line-height: 1.55;
	text-align: left;
	white-space: pre;
}
.request-network-cell {
	vertical-align: middle;
}
.request-network-lines {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	justify-content: center;
	gap: 0.28rem;
}
.request-network-lines span {
	display: block;
}
.request-network-lines span:last-child {
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.72rem;
}
.help-fields {
	gap: 0;
	margin: 0.75rem 0 1.5rem;
}
.help-fields > div {
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
}
.help-fields > div:last-child {
	border-bottom: 1px solid var(--line);
}
.help-fields dt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	color: var(--text);
	font-size: 0.8rem;
	text-transform: none;
}
.help-fields dd {
	color: var(--muted);
	line-height: 1.5;
}
.field-requirement {
	display: inline-flex;
	padding: 0.16rem 0.4rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.6rem;
	font-weight: 850;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.field-requirement--required {
	border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
	color: var(--accent-strong);
}
.help-notes {
	padding-left: 1.2rem;
	line-height: 1.55;
}
.help-notes li + li {
	margin-top: 0.45rem;
}
.help-notes a {
	margin: 0 0.22rem;
	color: var(--accent-strong);
	font-weight: 750;
}
.documentation-layout {
	display: grid;
	grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2rem);
	align-items: start;
}
.documentation-sidebar {
	position: sticky;
	top: 0;
	margin-bottom: 0;
	padding: 1rem;
}
.documentation-topic-nav {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-top: 0.75rem;
}
.documentation-topic-nav a {
	padding: 0.65rem 0.75rem;
	border-radius: 0.6rem;
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}
.documentation-topic-nav a:hover,
.documentation-topic-nav a[aria-selected="true"] {
	background: var(--panel-2);
	color: var(--accent-strong);
}
.documentation-main {
	min-width: 0;
}
.documentation-search-panel {
	display: grid;
	grid-template-columns: minmax(12rem, 0.8fr) minmax(14rem, 1.2fr);
	gap: 1rem;
	align-items: end;
}
.documentation-search-panel label span {
	display: block;
	margin-top: 0.3rem;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 500;
}
.documentation-search-results {
	margin-bottom: 1.2rem;
}
.documentation-result-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 0.8rem;
}
.documentation-result-card {
	display: flex;
	min-height: 9rem;
	flex-direction: column;
	gap: 0.6rem;
	justify-content: space-between;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	background: linear-gradient(
		145deg,
		var(--glow),
		color-mix(in srgb, var(--glow) 88%, var(--card-surface-shift))
	);
	color: var(--text);
	text-decoration: none;
}
.documentation-result-card:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
	transform: translateY(-1px);
}
.documentation-result-card > span:last-child {
	color: var(--accent-strong);
	font-size: 0.8rem;
	font-weight: 800;
}
.documentation-topic {
	padding: clamp(1rem, 3vw, 2rem);
}
.documentation-topic-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}
.documentation-topic-header h2 {
	margin-bottom: 0;
}
.documentation-topic > p,
.documentation-topic .help-notes {
	color: var(--muted);
}
.checkbox {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.checkbox input {
	width: auto;
}
.checkbox span {
	flex: 0 0 100%;
}
.transport-note {
	margin-top: 1rem;
	color: var(--muted);
}
.settings-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.4rem;
	margin: 1.5rem 0;
	padding: 0.35rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--panel);
}
.settings-tabs a,
.settings-tabs button,
.settings-tabs label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.65rem 0.8rem;
	border-radius: 0.5rem;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	border: 0;
	background: transparent;
}
.settings-tabs svg {
	width: 1.4rem;
	height: 1.4rem;
}
.settings-tabs a.active,
.settings-tabs button.active,
.settings-tabs label.active {
	background: var(--panel-2);
	color: var(--accent-strong);
}
.settings-tabs a:hover,
.settings-tabs button:not(:disabled):hover,
.settings-tabs label:hover {
	background: color-mix(in srgb, var(--accent) 14%, var(--panel-2));
	color: var(--accent-strong);
}
.link-view-tabs {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-right: auto;
	margin-left: auto;
}
.link-view-tab-control {
	position: relative;
	min-width: 0;
}
.link-view-tab-control > [data-link-view-tab] {
	width: 100%;
	min-width: 0;
}
.link-view-tab-action {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	bottom: 0.4rem;
	z-index: 1;
	min-height: 0;
	margin: 0;
	border: 1px solid var(--line) !important;
	border-radius: 0.35rem !important;
	background: var(--panel) !important;
	font-size: 0.72rem !important;
	line-height: 1;
	padding: 0.2rem 0.45rem !important;
}
.link-view-tab-action[hidden] {
	display: none;
}
.link-filters {
	display: grid;
	grid-template-columns:
		minmax(8rem, 0.8fr)
		minmax(7rem, 0.7fr)
		minmax(8rem, 0.75fr)
		minmax(8rem, 0.75fr)
		minmax(10rem, 1.15fr)
		minmax(11rem, 1.3fr)
		auto;
	align-items: end;
	gap: 0.65rem;
	margin-bottom: 1.5rem;
	overflow-x: auto;
}
.link-filters label {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	min-width: 0;
}
.link-filters input,
.link-filters select {
	height: 2.25rem;
	min-height: 2.25rem;
}
.link-filters select {
	padding: 0.5rem 2rem 0.5rem 0.88rem;
}
.link-filters__clear {
	height: 2.25rem;
	min-height: 2.25rem;
	padding: 0.2rem 0.75rem;
	white-space: nowrap;
}
[data-link-results] {
	transition: opacity 160ms ease-in-out;
}
[data-link-results][aria-busy="true"] {
	opacity: 0.55;
	pointer-events: none;
}
.selection-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin: 0 0 1.5rem;
	padding: 0 0 1.5rem;
	border: 0;
	border-bottom: 1px solid var(--line);
}
.selection-mode legend {
	width: 100%;
	margin-bottom: 0.8rem;
}
fieldset.scheme-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	border: 0;
}
.scheme-grid legend {
	margin-bottom: 1rem;
	color: var(--muted);
	font-size: 0.85rem;
}
.scheme-card {
	display: grid;
	grid-template-columns: auto 5rem minmax(0, 1fr);
	align-content: center;
	align-items: center;
	gap: 0.2rem 0.55rem;
	min-height: 6rem;
	padding: 0.9rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--scheme-a, var(--panel-2)) 24%, var(--panel)),
		color-mix(in srgb, var(--scheme-b, var(--panel-2)) 24%, var(--panel))
	);
	cursor: pointer;
}
.scheme-card input {
	width: auto;
	grid-row: span 2;
}
.scheme-card > strong,
.scheme-card > span:not(.scheme-preview) {
	grid-column: 3;
}
.scheme-preview {
	position: relative;
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 5rem;
	height: 3.5rem;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
	border-radius: 0.55rem;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}
.scheme-sample {
	position: absolute;
	inset: 0;
	display: block;
}
.scheme-preview--paired .scheme-sample:first-child {
	z-index: 1;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.scheme-card:has(input:checked) {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}
.scheme-pair-magenta {
	--scheme-a: #211527;
	--scheme-b: #f4eaf5;
	border-color: #9f3fa5;
}
.scheme-pair-blue {
	--scheme-a: #102d5a;
	--scheme-b: #e7f0ff;
	border-color: #467cc9;
}
.scheme-pair-green {
	--scheme-a: #103d2a;
	--scheme-b: #e4f5ec;
	border-color: #3b946e;
}
.scheme-pair-amber {
	--scheme-a: #4a3010;
	--scheme-b: #f9edd4;
	border-color: #ad7623;
}
.scheme-pair-midnight {
	--scheme-a: #151d29;
	--scheme-b: #fce4d4;
	border-color: #36536d;
}
.scheme-pair-slate {
	--scheme-a: #263748;
	--scheme-b: #e9eef3;
	border-color: #5c7d99;
}
.scheme-pair-graphite {
	--scheme-a: #272a2e;
	--scheme-b: #eeece5;
	border-color: #666a70;
}
.scheme-pair-crimson {
	--scheme-a: #351a25;
	--scheme-b: #f8e4e9;
	border-color: #8d4057;
}
.scheme-magenta {
	--scheme-a: #211527;
	--scheme-b: #211527;
	border-color: #9f3fa5;
}
.scheme-blue {
	--scheme-a: #102d5a;
	--scheme-b: #102d5a;
	border-color: #467cc9;
}
.scheme-green {
	--scheme-a: #103d2a;
	--scheme-b: #103d2a;
	border-color: #3b946e;
}
.scheme-amber {
	--scheme-a: #4a3010;
	--scheme-b: #4a3010;
	border-color: #ad7623;
}
.scheme-magnolia {
	--scheme-a: #f4eaf5;
	--scheme-b: #f4eaf5;
	border-color: #d2afd5;
}
.scheme-sky {
	--scheme-a: #e7f0ff;
	--scheme-b: #e7f0ff;
	border-color: #a9c9eb;
}
.scheme-mint {
	--scheme-a: #e4f5ec;
	--scheme-b: #e4f5ec;
	border-color: #abd8c0;
}
.scheme-sand {
	--scheme-a: #f9edd4;
	--scheme-b: #f9edd4;
	border-color: #d8c293;
}
.scheme-midnight {
	--scheme-a: #151d29;
	--scheme-b: #151d29;
	border-color: #36536d;
}
.scheme-slate {
	--scheme-a: #263748;
	--scheme-b: #263748;
	border-color: #5c7d99;
}
.scheme-graphite {
	--scheme-a: #272a2e;
	--scheme-b: #272a2e;
	border-color: #666a70;
}
.scheme-crimson {
	--scheme-a: #351a25;
	--scheme-b: #351a25;
	border-color: #8d4057;
}
.scheme-pearl {
	--scheme-a: #e9eef3;
	--scheme-b: #e9eef3;
	border-color: #b7c5d2;
}
.scheme-chalk {
	--scheme-a: #eeece5;
	--scheme-b: #eeece5;
	border-color: #cfc8b9;
}
.scheme-sunrise {
	--scheme-a: #fce4d4;
	--scheme-b: #fce4d4;
	border-color: #d69d80;
}
.scheme-rosewater {
	--scheme-a: #f8e4e9;
	--scheme-b: #f8e4e9;
	border-color: #cb899b;
}
.scheme-sample--magenta {
	background: radial-gradient(circle at 20% 10%, #3a143d, transparent 55%), #0d0810;
}
.scheme-sample--blue {
	background: radial-gradient(circle at 20% 10%, #102d5a, transparent 55%), #0d0810;
}
.scheme-sample--green {
	background: radial-gradient(circle at 20% 10%, #103d2a, transparent 55%), #0d0810;
}
.scheme-sample--amber {
	background: radial-gradient(circle at 20% 10%, #4a3010, transparent 55%), #0d0810;
}
.scheme-sample--midnight {
	background: radial-gradient(circle at 20% 10%, #172536, transparent 55%), #080b10;
}
.scheme-sample--slate {
	background: radial-gradient(circle at 20% 10%, #203a50, transparent 55%), #101722;
}
.scheme-sample--graphite {
	background: radial-gradient(circle at 20% 10%, #303438, transparent 55%), #101112;
}
.scheme-sample--crimson {
	background: radial-gradient(circle at 20% 10%, #4d1527, transparent 55%), #170c11;
}
.scheme-sample--magnolia {
	background: radial-gradient(circle at 20% 10%, #f3d6f4, transparent 55%), #faf6fb;
}
.scheme-sample--sky {
	background: radial-gradient(circle at 20% 10%, #dceaff, transparent 55%), #f4f8ff;
}
.scheme-sample--mint {
	background: radial-gradient(circle at 20% 10%, #d9f5e8, transparent 55%), #f4fbf7;
}
.scheme-sample--sand {
	background: radial-gradient(circle at 20% 10%, #fff0cf, transparent 55%), #fffaf0;
}
.scheme-sample--sunrise {
	background: radial-gradient(circle at 20% 10%, #ffd4b8, transparent 55%), #fff3e8;
}
.scheme-sample--pearl {
	background: radial-gradient(circle at 20% 10%, #dbe8f2, transparent 55%), #f2f5f8;
}
.scheme-sample--chalk {
	background: radial-gradient(circle at 20% 10%, #e7e2d4, transparent 55%), #f8f7f2;
}
.scheme-sample--rosewater {
	background: radial-gradient(circle at 20% 10%, #f7ccd7, transparent 55%), #fff4f6;
}
.individual-schemes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
fieldset.scheme-column {
	grid-template-columns: 1fr;
	align-content: start;
}
.preview-note {
	margin: 1.25rem 0;
	color: var(--muted);
	font-size: 0.82rem;
}
[hidden] {
	display: none !important;
}
.logs-toolbar {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 1rem;
}
.logs-toolbar p {
	max-width: 38rem;
	margin: 0;
}
.logs-toolbar form {
	display: inline-flex;
}
.logs-actions {
	flex-wrap: nowrap;
	justify-content: flex-start;
	overflow-x: auto;
}
.glyph-button--danger {
	border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
	background: #5d202d;
	color: #fff;
}
.release-details {
	grid-template-columns: 1fr 1fr;
	margin: 1.25rem 0;
}
.upgrade-panel > form {
	margin-top: 1.5rem;
}
.update-status {
	display: grid;
	gap: 0.35rem;
	margin: 1.25rem 0;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	background: var(--bg);
}
.update-status strong {
	color: var(--accent-strong);
	text-transform: uppercase;
}
.update-status span {
	color: var(--muted);
	font-size: 0.82rem;
}
.update-status--failed strong {
	color: var(--danger);
}
.update-status--installing strong,
.update-status--queued strong {
	color: var(--warning);
}
.setup-shell {
	width: min(980px, calc(100% - 2rem));
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 5rem) 0;
}
.setup-intro {
	margin-bottom: 2rem;
	text-align: center;
}
.setup-intro > p {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
	color: var(--muted);
}
.origin-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--panel);
	text-align: left;
}
.origin-pair div {
	min-width: 0;
}
.origin-pair span {
	display: block;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}
.origin-pair strong {
	display: block;
	margin-top: 0.3rem;
	overflow-wrap: anywhere;
}
.setup-progress {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}
.setup-progress li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 800;
}
.setup-progress li span {
	display: inline-grid;
	place-items: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;
	background: var(--panel-2);
}
.setup-progress li[aria-current="step"] {
	border-color: var(--accent);
	color: var(--accent-strong);
}
.setup-progress li[aria-current="step"] span {
	background: var(--accent);
	color: var(--accent-ink);
}
.setup-panel {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}
.setup-panel > p {
	color: var(--muted);
}
.setup-provisioning-steps {
	margin: 1rem 0;
	padding-left: 1.4rem;
	color: var(--muted);
}
.setup-provisioning-steps li + li {
	margin-top: 0.55rem;
}
.setup-summary {
	margin-bottom: 1rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	background: var(--panel);
}
.setup-review {
	grid-template-columns: 1fr 1fr;
	margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
	:root {
		--trace-sidebar-width: min(19rem, 85vw);
	}
	.documentation-layout {
		grid-template-columns: 1fr;
	}
	.documentation-sidebar {
		position: static;
	}
	.documentation-topic-nav {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	}
}
@media (max-width: 680px) {
	body.auth-page {
		min-height: 100dvh;
		padding-bottom: 0;
	}
	.auth-page {
		display: block;
		padding: 0;
	}
	.auth-card,
	.auth-card--login,
	.auth-card--mfa {
		width: 100%;
		min-height: 100dvh;
		margin: 0;
		padding: clamp(1.25rem, 6vw, 2rem) clamp(1rem, 6vw, 2rem)
			calc(var(--trace-footer-height) + 1.25rem);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}
	.topbar,
	.section-heading,
	.panel-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.header-actions {
		width: 100%;
		justify-content: flex-end;
	}
	.form-grid,
	.checkbox-grid {
		grid-template-columns: 1fr;
	}
	.documentation-search-panel {
		grid-template-columns: 1fr;
	}
	.documentation-topic-header {
		align-items: flex-start;
		flex-direction: column;
	}
	.form-grid.link-filters,
	.link-filters {
		grid-template-columns:
			minmax(8rem, 0.8fr)
			minmax(7rem, 0.7fr)
			minmax(8rem, 0.75fr)
			minmax(8rem, 0.75fr)
			minmax(10rem, 1.15fr)
			minmax(11rem, 1.3fr)
			auto;
	}
	.form-grid .full {
		grid-column: auto;
	}
	.metrics {
		grid-template-columns: repeat(2, 1fr);
	}
	.link-details-modal .detail-panel--metadata dl {
		grid-template-columns: 1fr;
	}
	.copy-field {
		grid-template-columns: 1fr;
	}
	.actions--split {
		flex-direction: column-reverse;
	}
	.origin-pair {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.origin-pair > span {
		transform: rotate(90deg);
	}
	.setup-progress {
		grid-template-columns: repeat(2, 1fr);
	}
	.setup-review {
		grid-template-columns: 1fr;
	}
	.settings-tabs {
		grid-template-columns: 1fr;
	}
	.domain-entrypoint-grid {
		grid-template-columns: 1fr;
	}
	fieldset.scheme-grid,
	.individual-schemes {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* The card shell remains transparent; this masked layer leaves a real window to the page gradient. */
.auth-card--brand-cutout {
	--brand-cutout-gap: 1rem;
	--brand-cutout-inset: var(--brand-cutout-gap);
	--brand-mark-size: min(18rem, 72vw);
	--brand-cutout-width: calc(100% - (var(--brand-cutout-inset) * 2));
	--brand-cutout-height: calc(var(--brand-mark-size) + var(--brand-cutout-gap));
	--brand-cutout-radius: 1rem;
	position: relative;
	isolation: isolate;
	padding-top: calc(var(--brand-cutout-inset) + var(--brand-cutout-gap));
	background: transparent;
}
.auth-card--brand-cutout::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: var(--panel);
	-webkit-mask:
		linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 304' preserveAspectRatio='none'%3E%3Crect width='320' height='304' rx='16' fill='%23000'/%3E%3C/svg%3E")
		50% var(--brand-cutout-inset) / var(--brand-cutout-width) var(--brand-cutout-height) no-repeat;
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 304' preserveAspectRatio='none'%3E%3Crect width='320' height='304' rx='16' fill='%23000'/%3E%3C/svg%3E")
		50% var(--brand-cutout-inset) / var(--brand-cutout-width) var(--brand-cutout-height) no-repeat;
	mask-composite: exclude;
}
.auth-card--brand-cutout::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: var(--brand-cutout-inset);
	left: 50%;
	width: var(--brand-cutout-width);
	height: var(--brand-cutout-height);
	pointer-events: none;
	border: 1px solid var(--line);
	border-radius: var(--brand-cutout-radius);
	transform: translateX(-50%);
}
.auth-card--brand-cutout > * {
	position: relative;
	z-index: 1;
}
.auth-card--brand-cutout .brand-mark--large {
	width: var(--brand-mark-size);
	height: var(--brand-mark-size);
	margin: 0 auto;
}
.auth-card--brand-cutout .brand-mark--large + .eyebrow {
	margin-top: var(--brand-cutout-gap);
}
@media (max-height: 799px) and (min-width: 681px) {
	.auth-card--login.auth-card--brand-cutout {
		display: block;
		width: min(480px, calc(100% - 2rem));
	}
}
