@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/space-mono/space-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/space-mono/space-mono-latin-700-normal.woff2") format("woff2");
}

:root {
	--ink: #171717;
	--text: rgb(23 23 23 / 0.8);
	--muted: rgb(23 23 23 / 0.55);
	--faint: rgb(23 23 23 / 0.35);
	--line: rgb(23 23 23 / 0.1);
	--line-strong: rgb(23 23 23 / 0.33);
	--page: #fafafa;
	--surface: #ffffff;
	--sunken: #f3f3f0;
	--secondary: #e9e9e4;
	--hover: #ececea;
	--link: #2b59d9;
	--on: #1f8a4c;
	--off: #b4541e;
	--important: #6b48c8;
	--warning: #a8700a;
	--caution: #b42318;
	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--sidebar: 256px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

code,
pre,
.mono {
	font-family: var(--mono);
	letter-spacing: 0;
}

code {
	font-size: 0.86em;
}

h1,
h2,
h3 {
	color: var(--ink);
	font-weight: 500;
	margin: 0;
}

.icon {
	flex: none;
}

.muted {
	color: var(--muted);
}

.eyebrow {
	margin: 0 0 14px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow a:hover {
	color: var(--ink);
}

.lede {
	max-width: 56ch;
	margin: 14px 0 0;
	font-size: 16px;
	color: var(--text);
}

.shell {
	display: grid;
	grid-template-columns: var(--sidebar) minmax(0, 1fr);
	min-height: 100vh;
	background: var(--page);
}

.sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 18px 10px 14px;
	background: var(--page);
	border-right: 1px solid var(--line);
	overflow-y: auto;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 2px 10px 22px;
	color: var(--ink);
}

.brand .logo {
	display: block;
	flex: none;
}

.brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1;
}

.brand-name {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.brand-subtitle {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 0 10px;
	border-radius: 6px;
	color: var(--ink);
	font-size: 14px;
}

.nav-item span {
	flex: 1;
}

.nav-item .icon:last-child:not(:first-child) {
	color: var(--muted);
}

.nav-item:hover {
	background: var(--hover);
}

.nav-item.is-active {
	background: var(--secondary);
}

.nav-caption {
	margin: 22px 10px 6px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--faint);
}

.sidebar-foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 20px;
}

.host-card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
}

.host-card strong {
	color: var(--ink);
	font-weight: 500;
	font-size: 15px;
}

.host-card .mono {
	font-size: 11px;
	color: var(--muted);
}

.caption {
	font-size: 12px;
	color: var(--muted);
}

.viewer-menu {
	position: relative;
}

.viewer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-radius: 6px;
	cursor: pointer;
	list-style: none;
}

.viewer::-webkit-details-marker {
	display: none;
}

.viewer:hover,
.viewer-menu[open] .viewer {
	background: var(--hover);
}

.viewer:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.viewer-chevron {
	display: grid;
	margin-left: auto;
	color: var(--muted);
	transition: transform 0.15s ease;
}

.viewer-menu[open] .viewer-chevron {
	transform: rotate(180deg);
}

.menu {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 6px);
	z-index: 10;
	padding: 6px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	box-shadow: 0 12px 32px rgb(23 23 23 / 0.12);
}

.menu-caption {
	margin: 0;
	padding: 6px 8px 8px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	padding: 8px;
	color: var(--ink);
}

.menu-item:hover,
.menu-item:focus-visible {
	background: var(--hover);
}

.avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	flex: none;
}

.viewer-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.viewer-text strong {
	color: var(--ink);
	font-weight: 500;
}

.viewer-text span {
	font-size: 12px;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.main {
	min-width: 0;
	background: var(--surface);
}

.grid {
	display: grid;
	gap: 1px;
	background: var(--line);
	border-bottom: 1px solid var(--line);
}

.cell {
	background: var(--surface);
	padding: 28px 32px;
	min-width: 0;
}

.home-grid {
	grid-template-columns: minmax(0, 1fr) 360px;
}

.hero {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
	gap: 40px;
	align-items: end;
	padding: 44px 40px 40px;
	background-color: var(--sunken);
	background-image: radial-gradient(rgb(23 23 23 / 0.12) 1px, transparent 1px);
	background-size: 14px 14px;
}

.hero h1 {
	font-size: clamp(44px, 6vw, 76px);
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.hero .lede {
	margin-bottom: 26px;
}

.hero-text {
	padding: 4px 0;
}

.spec {
	background: var(--surface);
	border: 1px solid var(--line-strong);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0;
	text-transform: uppercase;
}

.spec-title {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 8px 12px;
	border-bottom: 1px solid var(--line-strong);
	color: var(--muted);
	font-size: 11px;
}

.spec-row {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	gap: 10px;
	padding: 9px 12px;
	border-bottom: 1px dashed var(--line);
}

.spec-row:last-child {
	border-bottom: 0;
}

.spec-code {
	color: var(--faint);
}

.spec-name {
	color: var(--ink);
}

.spec-value {
	color: var(--muted);
	text-transform: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 22ch;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	background: var(--ink);
	color: #fff;
	font: 500 14px/20px var(--sans);
	letter-spacing: -0.01em;
	cursor: pointer;
}

.button:hover {
	background: #000;
}

.button-secondary {
	background: var(--secondary);
	color: var(--ink);
}

.button-secondary:hover {
	background: #deded8;
}

.button-block {
	width: 100%;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section-head h2 {
	font-size: 34px;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.section-head h3 {
	font-size: 15px;
	letter-spacing: -0.01em;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--link);
	white-space: nowrap;
}

.text-link:hover {
	text-decoration: underline;
}

.projects-cell {
	padding: 36px 40px 40px;
}

.tenant + .tenant {
	margin-top: 30px;
}

.tenant-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}

.tenant-head h3 {
	font-size: 15px;
}

.tenant-head .mono {
	font-size: 12px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
}

.project-card,
.doc-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 18px 16px;
	background: var(--sunken);
	transition: background 0.15s ease;
}

.project-card:hover,
.doc-card:hover {
	background: var(--secondary);
}

.project-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--ink);
	font-size: 16px;
}

.project-card-head strong {
	font-weight: 500;
}

.project-card .mono {
	font-size: 12px;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--link);
}

.tag {
	display: inline-block;
	padding: 1px 7px;
	border: 1px solid var(--line-strong);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0;
	color: var(--text);
	background: var(--surface);
	vertical-align: middle;
}

.signals {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.signal {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--ink);
}

.signal-state {
	color: var(--muted);
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--faint);
	flex: none;
}

.signal-on .dot {
	background: var(--on);
	box-shadow: 0 0 0 3px rgb(31 138 76 / 0.15);
}

.signal-off .dot {
	background: transparent;
	border: 1.5px solid var(--off);
}

.side {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--line);
}

.quickstart .section-head h2 {
	font-size: 28px;
}

.quickstart p {
	margin: 0 0 16px;
}

.code-block {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	font-size: 12px;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.quickstart .button {
	margin-top: -1px;
}

.tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--line);
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 24px 26px;
	color: var(--ink);
	font-size: 15px;
}

.tile .icon {
	color: var(--link);
}

.tile:hover {
	background: var(--page);
}

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

.plain-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
}

.plain-list li:last-child a {
	border-bottom: 0;
}

.plain-list a:hover span {
	color: var(--link);
	text-decoration: underline;
}

.plain-list .icon {
	color: var(--muted);
}

.page-head {
	padding: 40px 40px 34px;
	background-color: var(--sunken);
	background-image: radial-gradient(rgb(23 23 23 / 0.1) 1px, transparent 1px);
	background-size: 14px 14px;
}

.page-head h1 {
	font-size: clamp(38px, 5vw, 56px);
	line-height: 1;
	letter-spacing: -0.05em;
}

.page-head .button {
	margin-top: 24px;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 16px 0 14px;
	font-size: 12px;
}

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

.span-all {
	grid-column: 1 / -1;
}

.cell-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 20px;
	letter-spacing: -0.03em;
}

.cell-title .icon {
	color: var(--link);
}

.link-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.link-list a > span {
	display: flex;
	flex-direction: column;
}

.link-list strong {
	color: var(--ink);
	font-weight: 500;
}

.link-list .muted {
	font-size: 12px;
}

.link-list .icon {
	color: var(--muted);
}

.link-list a:hover strong {
	color: var(--link);
}

.link-list a:hover .icon {
	color: var(--link);
}

.facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 10px 18px;
	margin: 0;
	align-items: center;
}

.facts dt {
	color: var(--muted);
	font-size: 13px;
}

.facts dd {
	margin: 0;
	min-width: 0;
	color: var(--ink);
}

.copyable {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--line);
	background: var(--page);
	min-width: 0;
}

.copyable code {
	flex: 1;
	min-width: 0;
	padding: 6px 10px;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink);
}

.copy {
	display: grid;
	place-items: center;
	width: 34px;
	border: 0;
	border-left: 1px solid var(--line);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.copy:hover {
	background: var(--secondary);
	color: var(--ink);
}

.copy.is-copied,
.button.is-copied {
	color: var(--on);
}

.note {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	font-size: 13px;
	color: var(--muted);
}

.status {
	display: inline-block;
	padding: 1px 8px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0;
}

.status-on {
	background: rgb(31 138 76 / 0.1);
	color: var(--on);
}

.status-off {
	background: rgb(180 84 30 / 0.1);
	color: var(--off);
}

.table-cell {
	padding: 0;
}

.table-scroll {
	overflow-x: auto;
}

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

.table th {
	padding: 12px 20px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.table td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	white-space: nowrap;
}

.table tr:last-child td {
	border-bottom: 0;
}

.table .mono {
	font-size: 12px;
}

.row-link strong {
	color: var(--ink);
	font-weight: 500;
	margin-right: 6px;
}

.row-link:hover strong {
	color: var(--link);
	text-decoration: underline;
}

.empty {
	padding: 26px;
	border: 1px dashed var(--line-strong);
	background: var(--page);
}

.empty p {
	margin: 0;
}

.empty p + p {
	margin-top: 6px;
}

.empty p + .button {
	margin-top: 20px;
}

.doc-card {
	min-height: 130px;
}

.doc-card .icon {
	color: var(--link);
}

.doc-card strong {
	color: var(--ink);
	font-weight: 500;
	font-size: 15px;
}

.doc-card .mono {
	margin-top: auto;
	font-size: 11px;
}

.cell > .muted {
	margin: -8px 0 20px;
}

.doc-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 220px;
	min-height: 100vh;
}

.doc-nav {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	overflow-y: auto;
	padding: 12px 10px 24px;
	border-right: 1px solid var(--line);
}

.doc-nav-group .nav-caption {
	margin-top: 18px;
}

.doc-nav-item {
	display: block;
	padding: 6px 10px;
	border-radius: 6px;
	color: var(--text);
	font-size: 13px;
	line-height: 1.4;
}

.doc-nav-item:hover {
	background: var(--hover);
	color: var(--ink);
}

.doc-nav-item.is-active {
	background: var(--secondary);
	color: var(--ink);
}

.doc-nav-empty {
	margin: 0;
	padding: 4px 10px;
	font-size: 13px;
	color: var(--faint);
}

.toc {
	position: sticky;
	top: 0;
	align-self: start;
	max-height: 100vh;
	overflow-y: auto;
	padding: 12px 18px 24px 8px;
}

.toc-item {
	display: block;
	padding: 4px 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
}

.toc-item:hover {
	color: var(--link);
}

.toc-depth-3 {
	padding-left: 12px;
}

.prose {
	min-width: 0;
	max-width: 820px;
	padding: 40px 48px 80px;
	font-size: 15px;
	line-height: 1.65;
}

.prose h1 {
	margin: 0 0 24px;
	font-size: 44px;
	line-height: 1.02;
	letter-spacing: -0.05em;
}

.prose h2 {
	margin: 44px 0 14px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.prose h3 {
	margin: 30px 0 10px;
	font-size: 18px;
	letter-spacing: -0.02em;
}

.prose h2,
.prose h3 {
	scroll-margin-top: 16px;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose pre,
.prose blockquote {
	margin: 0 0 16px;
}

.prose ul,
.prose ol {
	padding-left: 22px;
}

.prose li + li {
	margin-top: 4px;
}

.prose a {
	color: var(--link);
}

.prose a:hover {
	text-decoration: underline;
}

.prose strong {
	color: var(--ink);
	font-weight: 600;
}

.prose :not(pre) > code {
	padding: 1px 5px;
	background: var(--sunken);
	color: var(--ink);
}

.prose pre {
	padding: 16px 18px;
	border: 1px solid var(--line);
	background: var(--page);
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.55;
}

.prose a code {
	color: var(--link);
}

.prose blockquote {
	padding: 4px 0 4px 18px;
	border-left: 2px solid var(--ink);
	color: var(--muted);
}

.prose table {
	display: block;
	width: max-content;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 13px;
}

.prose th,
.prose td {
	padding: 8px 12px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--page);
	color: var(--ink);
	font-weight: 500;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 32px 0;
}

.prose img {
	max-width: 100%;
}

.prose .eyebrow {
	margin-bottom: 18px;
}

.prose .doc-lede {
	margin: -8px 0 32px;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: -0.025em;
	color: var(--muted);
}

.prose .step {
	display: flex;
	align-items: center;
	gap: 12px;
}

.prose .step-number {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--ink);
}

.prose h3.step .step-number {
	width: 24px;
	height: 24px;
	font-size: 12px;
}

.callout {
	--accent: var(--link);
	margin: 0 0 18px;
	padding: 14px 18px 2px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	background: var(--surface);
}

.callout-tip {
	--accent: var(--on);
}

.callout-important {
	--accent: var(--important);
}

.callout-warning {
	--accent: var(--warning);
}

.callout-caution {
	--accent: var(--caution);
}

.prose .callout-title {
	margin: 0 0 6px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
}

.callout > :last-child {
	margin-bottom: 12px;
}

.code-sample {
	margin: 0 0 18px;
	border: 1px solid var(--line);
	background: var(--page);
}

.code-sample-head {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	background: var(--surface);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.code-sample-head span {
	padding: 6px 14px;
}

.code-sample .copy {
	width: 34px;
	min-height: 30px;
}

.prose .code-sample pre {
	margin: 0;
	border: 0;
	background: transparent;
}

.prose .code-sample code {
	color: var(--ink);
}

.prose .diagram {
	display: block;
	margin: 8px 0 24px;
	border: 1px solid var(--line);
	background: var(--surface);
	cursor: zoom-in;
	transition: border-color 0.15s ease;
}

.prose .diagram:hover {
	border-color: var(--line-strong);
}

.prose .diagram img {
	display: block;
	width: 100%;
}

.pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 56px;
}

.pager-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	background: var(--surface);
	transition: border-color 0.15s ease;
}

.pager-card:hover {
	border-color: var(--line-strong);
}

.pager-card strong {
	color: var(--ink);
	font-weight: 500;
	font-size: 15px;
}

.pager-card:hover strong {
	color: var(--link);
}

.pager-next {
	text-align: right;
}

.doc-layout-embed {
	grid-template-columns: 240px minmax(0, 1fr);
}

.embed-layout {
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-width: 0;
}

.embed-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 32px 20px;
	border-bottom: 1px solid var(--line);
}

.embed-head .eyebrow {
	margin-bottom: 8px;
}

.embed-title {
	font-size: 28px;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.embed-frame {
	flex: 1;
	width: 100%;
	border: 0;
	background: var(--page);
}

.gate {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}

.gate-art {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	background-color: #000;
	background-image:
		radial-gradient(ellipse at 50% 0%, rgb(255 255 255 / 0.14), transparent 55%),
		radial-gradient(rgb(255 255 255 / 0.22) 1.2px, transparent 1.4px);
	background-size: 100% 100%, 12px 12px;
}

.pulse-monitor {
	width: 100%;
}

.pulse-caption {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px 40px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.55);
}

.pulse-led {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff6500;
	box-shadow: 0 0 8px #ff6500;
	animation: pulse-led 0.9s ease-in-out infinite;
}

@keyframes pulse-led {
	0%,
	100% {
		opacity: 0.35;
	}
	15% {
		opacity: 1;
	}
}

.pulse {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.pulse-trace,
.pulse-beam {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pulse-trace {
	stroke: rgb(255 101 0 / 0.16);
	stroke-width: 2;
}

.pulse-beam {
	stroke: #ff6500;
	stroke-width: 3;
	filter: drop-shadow(0 0 6px rgb(255 101 0 / 0.9));
}

.pulse-head {
	fill: #ffefd3;
	filter: drop-shadow(0 0 8px #ff6500);
}

@media (prefers-reduced-motion: reduce) {
	.pulse-beam,
	.pulse-head {
		display: none;
	}

	.pulse-trace {
		stroke: rgb(255 101 0 / 0.7);
	}

	.pulse-led {
		animation: none;
		opacity: 1;
	}
}

.gate-panel {
	display: grid;
	place-items: center;
	padding: 40px 24px;
	background: var(--page);
}

.gate-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(384px, 100%);
	text-align: center;
}

.gate-card h1 {
	margin: 22px 0 16px;
	font-size: 36px;
	line-height: 1;
	letter-spacing: -0.06em;
}

.gate-card p {
	margin: 0 0 22px;
}

.gate-card .fine {
	margin: 26px 0 0;
	font-size: 12px;
	color: var(--muted);
}

@media (max-width: 1240px) {
	.doc-layout {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.toc {
		display: none;
	}
}

@media (max-width: 1080px) {
	.home-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

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

	.side .tiles {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media (max-width: 860px) {
	.shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		position: static;
		height: auto;
		overflow: visible;
		z-index: 2;
		padding: 12px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.brand {
		padding: 2px 0 12px;
	}

	.brand .logo {
		width: 32px;
		height: auto;
	}

	.nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
	}

	.nav-item {
		min-height: 32px;
		padding: 0 10px;
		font-size: 13px;
	}

	.nav-caption,
	.host-card {
		display: none;
	}

	.sidebar-foot {
		padding-top: 8px;
	}

	.menu {
		top: calc(100% + 6px);
		bottom: auto;
	}

	.viewer-chevron {
		transform: rotate(180deg);
	}

	.viewer-menu[open] .viewer-chevron {
		transform: none;
	}

	.cell,
	.projects-cell,
	.page-head,
	.hero {
		padding: 24px 16px;
	}

	.table-cell {
		padding: 0;
	}

	.project-grid,
	.side {
		grid-template-columns: minmax(0, 1fr);
	}

	.section-head h2 {
		font-size: 28px;
	}

	.doc-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.doc-nav {
		position: static;
		height: auto;
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding: 4px 16px 12px;
	}

	.prose {
		padding: 28px 16px 60px;
	}

	.prose h1 {
		font-size: 34px;
	}

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

	.embed-head {
		padding: 20px 16px 16px;
		flex-direction: column;
		align-items: flex-start;
	}

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

	.gate-art {
		display: none;
	}
}

.usage-grid {
	grid-template-columns: minmax(0, 1fr);
	--series-1: #2a78d6;
	--series-2: #eb6834;
	--series-3: #1baf7a;
	--series-4: #eda100;
	--series-5: #e87ba4;
	--series-6: #008300;
	--series-7: #4a3aa7;
	--series-8: #e34948;
	--series-stack: #8f8e89;
	--series-unattached: #c9c8c2;
}

.slot-1 { color: var(--series-1); }
.slot-2 { color: var(--series-2); }
.slot-3 { color: var(--series-3); }
.slot-4 { color: var(--series-4); }
.slot-5 { color: var(--series-5); }
.slot-6 { color: var(--series-6); }
.slot-7 { color: var(--series-7); }
.slot-8 { color: var(--series-8); }
.slot-stack { color: var(--series-stack); }
.slot-hors-projet,
.slot-autres { color: var(--series-unattached); }

.usage-bar {
	padding: 16px 32px;
}

.usage-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.usage-picker {
	position: relative;
}

.usage-picker-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	color: var(--ink);
	font-size: 13px;
	cursor: pointer;
	list-style: none;
}

.usage-picker-summary::-webkit-details-marker {
	display: none;
}

.usage-picker-summary .icon:last-child {
	transform: rotate(180deg);
	color: var(--muted);
}

.usage-picker[open] .usage-picker-summary .icon:last-child {
	transform: none;
}

.usage-picker-menu {
	top: calc(100% + 6px);
	bottom: auto;
	right: auto;
	min-width: 260px;
	max-height: 60vh;
	overflow-y: auto;
}

.menu-item.is-nested {
	padding-left: 24px;
	color: var(--text);
}

.menu-item.is-active {
	background: var(--hover);
	font-weight: 500;
}

.segmented {
	display: inline-flex;
	border: 1px solid var(--line-strong);
}

.segmented a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
	color: var(--text);
}

.segmented a + a {
	border-left: 1px solid var(--line);
}

.segmented a:hover {
	background: var(--hover);
}

.segmented a.is-active {
	background: var(--ink);
	color: #fff;
}

.segmented-static {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.usage-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.usage-head .cell-title {
	margin-bottom: 10px;
}

.usage-total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	margin: 0;
}

.usage-total strong {
	color: var(--ink);
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.usage-total span {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0;
	color: var(--muted);
}

.usage-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: 18px 0 4px;
}

.usage-facts dt {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.usage-facts dd {
	margin: 2px 0 0;
	color: var(--ink);
}

.usage-chart {
	position: relative;
	height: 220px;
	margin-top: 16px;
	outline-offset: 4px;
}

.usage-chart svg {
	display: block;
}

.usage-chart .grid-line {
	stroke: var(--line);
	stroke-width: 1;
	shape-rendering: crispEdges;
}

.usage-chart .baseline {
	stroke: var(--line-strong);
}

.usage-chart .axis-label {
	fill: var(--muted);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0;
}

.usage-chart .unmeasured {
	fill: var(--sunken);
}

.usage-chart .hover-band {
	fill: rgb(23 23 23 / 0.05);
}

.usage-chart .segment {
	fill: currentColor;
}

.usage-chart .empty-label {
	fill: var(--muted);
	font-size: 12px;
	text-anchor: middle;
}

.usage-tooltip {
	position: absolute;
	z-index: 5;
	min-width: 190px;
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	box-shadow: 0 12px 32px rgb(23 23 23 / 0.12);
	font-size: 12px;
	pointer-events: none;
}

.usage-tooltip[hidden] {
	display: none;
}

.usage-tooltip-title {
	margin: 0 0 6px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0;
	color: var(--muted);
}

.usage-tooltip-row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
}

.usage-tooltip-row + .usage-tooltip-row {
	margin-top: 3px;
}

.usage-tooltip-row .value {
	margin-left: auto;
	padding-left: 12px;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.usage-tooltip-total {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	font-weight: 500;
}

.swatch {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: currentColor;
	flex: none;
}

.usage-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: var(--text);
}

.usage-legend li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.usage-table {
	margin-top: 16px;
}

.usage-table summary {
	font-size: 13px;
	color: var(--link);
	cursor: pointer;
}

.usage-table .table-scroll {
	max-height: 320px;
	margin-top: 10px;
	overflow: auto;
	border: 1px solid var(--line);
}

.usage-table .table th,
.usage-table .table td {
	padding: 8px 14px;
}

.usage-unknown {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 160px;
	margin-top: 16px;
	border: 1px dashed var(--line-strong);
	background: var(--sunken);
	color: var(--muted);
	font-size: 13px;
}

.usage-unknown strong {
	color: var(--ink);
	font-weight: 500;
}

.usage-note {
	margin: 0;
	padding: 20px 32px;
	font-size: 12px;
	color: var(--muted);
}

@media (max-width: 860px) {
	.usage-bar,
	.usage-note {
		padding: 16px;
	}

	.usage-head {
		flex-direction: column;
	}

	.usage-total {
		align-items: flex-start;
	}

	.usage-total strong {
		font-size: 28px;
	}
}

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

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

.field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.field label,
.choices legend {
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
}

.field input,
.field select {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--surface);
	color: var(--ink);
	font: 14px/20px var(--sans);
}

.field input.mono {
	font-family: var(--mono);
	font-size: 13px;
}

.field input:focus-visible,
.field select:focus-visible,
.choice input:focus-visible,
.dialog-close:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.field-hint,
.field-error {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.field-error {
	color: var(--caution);
}

.has-error input,
.has-error select {
	border-color: var(--caution);
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px dashed var(--line);
}

.alert {
	margin: 0 0 22px;
	padding: 12px 14px;
	border-left: 3px solid var(--alert-accent, var(--link));
	background: var(--sunken);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.55;
}

.alert:last-child {
	margin-bottom: 0;
}

.alert-warning {
	--alert-accent: var(--warning);
}

.alert-caution {
	--alert-accent: var(--caution);
}

.status-pending {
	background: rgb(168 112 10 / 0.12);
	color: var(--warning);
}

.steps-list {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps-list li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 2px 12px;
	counter-increment: step;
}

.steps-list li::before {
	content: counter(step);
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--line-strong);
	font: 12px var(--mono);
	color: var(--ink);
}

.steps-list strong {
	color: var(--ink);
	font-size: 14px;
}

.steps-list .muted {
	font-size: 13px;
	line-height: 1.5;
}

.pending-cell {
	border-left: 3px solid var(--warning);
}

.pending-cell p {
	margin: 0 0 14px;
}

.secret-dialog {
	width: min(720px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 24px 64px rgb(23 23 23 / 0.18);
	overflow: auto;
}

.secret-dialog:not(:modal) {
	position: relative;
	margin: 0 0 1px;
	width: 100%;
	box-shadow: none;
}

.secret-dialog::backdrop {
	background: rgb(23 23 23 / 0.45);
}

.secret-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}

.secret-dialog-head .cell-title {
	margin: 0;
}

.secret-dialog-head form {
	display: contents;
}

.dialog-close {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.dialog-close:hover {
	border-color: var(--line);
	background: var(--hover);
	color: var(--ink);
}

.secret-dialog-body {
	display: grid;
	gap: 16px;
	justify-items: start;
	padding: 20px 24px 24px;
}

.secret-dialog-body > p,
.secret-dialog-body .alert {
	margin: 0;
}

.secret-dialog-body .code-block,
.secret-dialog-body .copyable {
	width: 100%;
	margin: 0;
}

.dsn-explainer {
	display: grid;
	gap: 12px;
	width: 100%;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.dsn-explainer h3 {
	font-size: 15px;
}

.dsn-explainer p {
	margin: 0;
	font-size: 13px;
}

.dsn-table td:nth-child(2) {
	white-space: nowrap;
	color: var(--ink);
}

.dsn-table td:last-child {
	min-width: 180px;
	white-space: normal;
	color: var(--muted);
}

.secret-dialog-foot {
	display: flex;
	justify-content: flex-end;
	padding: 14px 24px;
	border-top: 1px solid var(--line);
	background: var(--page);
}

.secret-forms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	align-items: start;
}

.secret-form {
	display: grid;
	gap: 16px;
	justify-items: start;
}

.secret-form p {
	margin: 0;
	font-size: 13px;
}

.secret-form .field {
	width: 100%;
}

.secret-form h3 {
	font-size: 15px;
}

.choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	border: 0;
}

.choices legend {
	margin-bottom: 8px;
	padding: 0;
}

.choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ink);
	cursor: pointer;
}

.button-danger {
	background: var(--caution);
}

.button-danger:hover {
	background: #8f1c13;
}

.new-tenant {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 28px;
}

.new-tenant[hidden] {
	display: none;
}

.select-menu {
	position: relative;
}

.select-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
	font: 14px/20px var(--sans);
	text-align: left;
	cursor: pointer;
}

.select-trigger:hover,
.select-menu.is-open .select-trigger {
	background: var(--page);
}

.select-trigger:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.has-error .select-trigger {
	border-color: var(--caution);
}

.select-value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.select-chevron {
	color: var(--muted);
	transition: transform 0.15s ease;
}

.select-menu.is-open .select-chevron {
	transform: rotate(180deg);
}

.select-options {
	top: calc(100% + 6px);
	bottom: auto;
	max-height: 288px;
	overflow-y: auto;
}

.select-options:focus {
	outline: none;
}

.select-option {
	cursor: pointer;
	font-size: 14px;
}

.select-option:first-child {
	margin-top: 0;
}

.select-option.is-active {
	background: var(--hover);
}

.select-check {
	flex: none;
	color: var(--ink);
	visibility: hidden;
}

.select-option[aria-selected="true"] .select-check {
	visibility: visible;
}

.select-option[aria-selected="true"] {
	font-weight: 500;
}

.select-detail {
	margin-left: auto;
	padding-left: 12px;
	font: 11px var(--mono);
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	.select-chevron {
		transition: none;
	}
}

@media (max-width: 1080px) {
	.new-project-grid,
	.form-grid,
	.new-tenant,
	.secret-forms {
		grid-template-columns: minmax(0, 1fr);
	}
}

.usage-table-picker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--muted);
}

.usage-table-select {
	min-height: 32px;
	max-width: 100%;
	padding: 0 10px;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--surface);
	color: var(--ink);
	font: 13px var(--sans);
}

.button-small {
	min-height: 34px;
	padding: 0 12px;
	gap: 8px;
	font-size: 13px;
}

.doc-panel {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(780px, 100vw);
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--text);
	box-shadow: -24px 0 64px rgb(23 23 23 / 0.18);
	overflow: hidden;
}

.doc-panel[open] {
	animation: doc-panel-in 180ms ease-out;
}

.doc-panel::backdrop {
	background: rgb(23 23 23 / 0.35);
}

@keyframes doc-panel-in {
	from {
		transform: translateX(40px);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.doc-panel[open] {
		animation: none;
	}
}

.doc-panel-frame {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.doc-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px 12px 32px;
	border-bottom: 1px solid var(--line);
}

.doc-panel-head .eyebrow {
	margin: 0;
}

.doc-panel-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.doc-panel-actions form {
	display: contents;
}

.doc-panel-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.doc-panel[aria-busy="true"] .doc-panel-body {
	opacity: 0.5;
}

.doc-panel-prose {
	max-width: none;
	padding: 32px 32px 48px;
}

.doc-panel-prose h1 {
	font-size: 34px;
}

.doc-panel-prose :not(pre) > code {
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.doc-panel-head {
		padding-left: 16px;
	}

	.doc-panel-actions .button span {
		display: none;
	}

	.doc-panel-prose {
		padding: 24px 16px 40px;
	}
}

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