:root {
	color-scheme: light;
	--canvas: #fbfbfa;
	--paper: #ffffff;
	--paper-soft: #f6f6f4;
	--ink: #111111;
	--ink-soft: #333333;
	--muted: #6f6f68;
	--muted-strong: #4f4f49;
	--line: #e8e6e1;
	--line-strong: #d6d3cc;
	--link: #111111;
	--focus: #111111;
	--danger: #9f2f2d;
	--danger-soft: #fdebec;
	--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--canvas);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	margin: 0;
	min-height: 100dvh;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	background: var(--canvas);
	color: var(--ink);
}

a {
	color: var(--link);
	font-weight: 560;
	text-decoration-color: color-mix(in srgb, var(--ink), transparent 68%);
	text-underline-offset: 0.22em;
}

a:hover {
	text-decoration-color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
pre:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 1rem;
	font-size: clamp(2.55rem, 8vw, 5.9rem);
	font-weight: 680;
	letter-spacing: -0.06em;
	line-height: 0.92;
	text-wrap: balance;
}

h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 650;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

h3 {
	margin: 0 0 0.45rem;
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

p {
	text-wrap: pretty;
}

code,
pre,
kbd,
.copy-field code,
.agent-instructions-field,
.copy-command-field {
	font-family: var(--font-mono);
}

code {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0.08em 0.32em;
	background: var(--paper-soft);
	color: var(--ink-soft);
	font-size: 0.92em;
}

pre {
	margin: 0;
	padding: 1rem;
	overflow-x: auto;
	white-space: pre-wrap;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
}

pre code {
	border: 0;
	padding: 0;
	background: transparent;
}

button,
.button-primary,
.button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--ink);
	border-radius: 12px;
	padding: 0.7rem 1rem;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 140ms ease,
		border-color 140ms ease,
		color 140ms ease,
		transform 140ms ease;
}

button:hover,
.button-primary:hover {
	background: #2d2d2d;
	border-color: #2d2d2d;
}

button:active,
.button-primary:active,
.button-secondary:active {
	transform: scale(0.985);
}

.button-secondary {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--line-strong);
}

.button-secondary:hover {
	background: var(--paper-soft);
	border-color: var(--ink);
}

.shell,
.doc-wrap,
.dashboard-wrap,
.landing-document,
.login-shell {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2rem 0 5rem;
}

.doc-wrap,
.shell {
	max-width: 880px;
}

.text-nav,
.nav-island {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	width: min(1100px, calc(100% - 2rem));
	max-width: none;
	margin: 0 auto;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
}

.text-nav {
	width: 100%;
	margin: 0 0 5rem;
	padding: 0 0 1.2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.55rem;
	margin-left: auto;
}

.text-nav a,
.nav-island a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	border-radius: 10px;
	padding: 0.5rem 0.65rem;
	color: var(--muted-strong);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.text-nav a:hover,
.nav-island a:hover {
	background: var(--paper-soft);
	color: var(--ink);
}

.text-nav .brand,
.nav-island .brand {
	margin-right: 1rem;
	padding-left: 0;
	color: var(--ink);
	background: transparent;
	font-size: 2em;
	font-weight: 750;
	letter-spacing: -0.06em;
}

.text-nav .brand em,
.nav-island .brand em {
	font-style: italic;
}

.plain-section {
	margin: 0 0 2.5rem;
}

.landing-hero {
	max-width: 980px;
	margin: 0 0 2rem;
}

.landing-copy ol {
	display: grid;
	gap: 0.65rem;
	max-width: 580px;
	margin: 1.6rem 0 0;
	padding-left: 1.35em;
	color: var(--muted-strong);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.login-card,
.dashboard-hero,
.card-shell,
.doc-card,
.empty-state,
.copy-instructions,
.steps-grid article,
.faq-grid details,
.generated-secret,
.table-card {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
}

.copy-card {
	max-width: 560px;
}

.copy-group {
	margin: 0;
}

.copy-command-field,
.agent-instructions-field {
	width: 100%;
	justify-content: space-between;
	gap: 1rem;
	border-color: var(--line-strong);
	border-radius: 12px;
	padding: 0.85rem 0.95rem;
	background: var(--paper-soft);
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
}

.copy-command-field:hover,
.agent-instructions-field:hover {
	background: #f0f0ed;
	border-color: var(--ink);
	color: var(--ink);
}

.copy-helper,
.copy-feedback {
	min-height: 1.5rem;
	margin: 0.5rem 0 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.faq-section {
	margin-top: 5.5rem;
}

.faq-section h2 {
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.faq-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--line);
}

.faq-list article {
	padding: 1.35rem 1.5rem 1.35rem 0;
	border-bottom: 1px solid var(--line);
}

.faq-list article:nth-child(odd) {
	padding-right: 2rem;
	border-right: 1px solid var(--line);
}

.faq-list article:nth-child(even) {
	padding-left: 2rem;
}

.faq-list p,
.lede,
.agent-note,
.doc-card li,
.empty-state p,
.steps-grid p,
.faq-grid p {
	color: var(--muted);
}

.login-shell {
	max-width: 760px;
}

.login-shell .text-nav {
	margin-bottom: 3rem;
}

.login-card {
	padding: clamp(1.5rem, 5vw, 2.25rem);
}

.login-card-header {
	max-width: 560px;
	margin-bottom: 1.5rem;
}

.login-card h1,
.dashboard-hero h1,
.doc-wrap h1,
.shell h1 {
	font-size: clamp(2.2rem, 6vw, 3.8rem);
	line-height: 0.98;
}

.login-form {
	display: grid;
	gap: 1rem;
}

.form-control,
.inline-form label {
	display: grid;
	gap: 0.45rem;
}

label {
	color: var(--muted-strong);
	font-size: 0.92rem;
	font-weight: 650;
}

input,
.inline-form input,
.login-form input {
	min-height: 48px;
	width: 100%;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
	background: var(--paper-soft);
	color: var(--ink);
	font: inherit;
}

.code-input-shell input {
	font-family: var(--font-mono);
	font-size: clamp(1.6rem, 7vw, 2.35rem);
	font-weight: 700;
	letter-spacing: 0.42em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.form-error {
	border: 1px solid #f2c8c9;
	border-radius: 12px;
	padding: 0.8rem 0.95rem;
	background: var(--danger-soft);
	color: var(--danger);
}

.dashboard-wrap {
	max-width: 1120px;
}

.dashboard-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: end;
	margin-bottom: 1.25rem;
	padding: clamp(1.4rem, 4vw, 2rem);
}

.dashboard-hero .lede {
	max-width: 680px;
	margin-bottom: 0;
}

.action-row,
.section-heading,
.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.action-row {
	justify-content: flex-end;
	margin: 0;
}

.section-heading {
	justify-content: space-between;
	margin: 0 0 1rem;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 1.25rem;
}

.card-shell {
	padding: 1rem;
}

.card-core {
	min-height: 145px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card-core strong {
	display: block;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 680;
	letter-spacing: -0.045em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.card-core p {
	margin-bottom: 0;
}

.eyebrow,
.mini-label,
.status-pill {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 24px;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
	background: var(--paper-soft);
	color: var(--muted-strong);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dashboard-section {
	margin-bottom: 1.25rem;
	padding: clamp(1.2rem, 3vw, 1.5rem);
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
}

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

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

th,
td,
.table-card th,
.table-card td {
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

th,
.table-card th {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

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

.empty-state {
	border: 0;
	border-radius: 16px;
	padding: 1.25rem;
	background: var(--paper-soft);
}

.empty-state p {
	margin: 0;
}

.logout-form {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.error-page {
	padding-top: 2rem;
}

.error-page h1 {
	margin-bottom: 0.5rem;
}

.error-page pre {
	margin-top: 1rem;
}

.copy-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.copy-button {
	font-size: 0.95rem;
}

.plain-list dl {
	display: grid;
	gap: 0.25rem;
	margin: 0;
}

.plain-list div {
	display: grid;
	grid-template-columns: minmax(12rem, 0.45fr) 1fr;
	gap: 1rem;
}

.plain-list dt,
.plain-list dd {
	margin: 0;
}

.bento-grid,
.steps-grid,
.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
}

.steps-grid h2,
.faq-grid h2 {
	grid-column: 1 / -1;
}

.steps-grid span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper-soft);
	font-weight: 700;
}

.faq-grid summary {
	cursor: pointer;
	font-weight: 650;
}

.cta-row,
.inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: end;
	margin: 1rem 0;
}

.doc-card,
.copy-instructions,
.steps-grid article,
.faq-grid details,
.generated-secret {
	padding: 1rem;
}

.copy-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--paper);
}

.copy-field code {
	display: block;
	overflow-x: auto;
	border: 0;
	border-radius: 0;
	padding: 0.75rem 0.85rem;
	background: var(--paper);
	white-space: nowrap;
}

.copy-field button {
	border: 0;
	border-left: 1px solid var(--line);
	border-radius: 0;
}

@media (max-width: 840px) {
	.dashboard-hero,
	.summary-grid,
	.faq-list {
		grid-template-columns: 1fr;
	}

	.action-row {
		justify-content: flex-start;
	}

	.faq-list article,
	.faq-list article:nth-child(odd),
	.faq-list article:nth-child(even) {
		padding: 1.2rem 0;
		border-right: 0;
	}
}

@media (max-width: 720px) {
	.shell,
	.doc-wrap,
	.dashboard-wrap,
	.landing-document,
	.login-shell,
	.nav-island {
		width: min(100% - 1rem, 1100px);
	}

	.text-nav {
		margin-bottom: 3rem;
	}

	.nav-links {
		width: 100%;
		margin-left: 0;
	}

	.plain-list div {
		grid-template-columns: 1fr;
		gap: 0;
	}

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

	button,
	.button-primary,
	.button-secondary {
		width: 100%;
	}

	table {
		display: block;
		overflow-x: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
