/* Administration: shared forms, account screens and responsive workspace. */
:root {
	font-family: Inter, "Segoe UI", system-ui, sans-serif;
	color: #203e34;
	background: #f4f6f2;
	font-synthesis: none;
	--ink: #203e34;
	--muted: #60746a;
	--line: #dce4dc;
	--green: #245b41;
	--radius: 16px;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
a {
	color: var(--green);
}
button,
input,
textarea,
select {
	font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
	touch-action: manipulation;
}
a,
button,
input,
textarea,
select,
summary {
	outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid #6d9f76;
}
button:disabled {
	opacity: 0.55;
	cursor: wait;
}
header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 24px max(5vw, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand {
	display: block;
	font-size: 26px;
	text-decoration: none;
	letter-spacing: -1px;
	color: #173c31;
	white-space: nowrap;
}
.brand span {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-top: 8px;
	color: #6b8273;
}
nav {
	display: flex;
	gap: 24px;
}
nav a {
	font-size: 14px;
	color: #486155;
	text-decoration: none;
}
.workspace {
	min-width: 0;
}
main {
	max-width: 1220px;
	margin: 0 auto;
	padding: 48px clamp(24px, 4vw, 60px) 72px;
	min-height: calc(100vh - 80px);
}
.intro {
	margin: 0 0 32px;
	max-width: 740px;
}
.eyebrow {
	font-size: 10px;
	letter-spacing: 1.8px;
	font-weight: 700;
	color: #5a7969;
}
h1 {
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 600;
	letter-spacing: -1.5px;
	margin: 12px 0;
}
h2 {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.4px;
	margin: 0 0 12px;
}
h3 {
	font-size: 15px;
	margin: 0 0 16px;
}
p {
	line-height: 1.65;
	color: var(--muted);
	font-size: 14px;
}
p:last-child {
	margin-bottom: 0;
}
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	margin: 18px 0;
	box-shadow: 0 4px 20px #204a2d03;
	min-width: 0;
}
.narrow {
	max-width: 560px;
}
.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.stats .card {
	margin: 0;
	min-height: 155px;
}
.stats span {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #6a7e71;
}
.stats strong {
	display: block;
	font-size: 36px;
	margin-top: 18px;
	font-weight: 600;
	line-height: 1.25;
}
.stats strong.small {
	font-size: 19px;
	overflow-wrap: anywhere;
}
.stats p {
	font-size: 12px;
	margin-top: 10px;
}
.sectionhead {
	margin: 38px 0 18px;
}
.sectionhead p {
	margin: 0;
}
.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
}
.grid > * {
	min-width: 0;
}
label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
}
input,
textarea,
select {
	display: block;
	width: 100%;
	min-width: 0;
	margin-top: 9px;
	padding: 12px 14px;
	color: #223d30;
	background: #fbfcfa;
	border: 1px solid #cdd9ce;
	border-radius: 8px;
	font-size: 14px;
	min-height: 46px;
}
textarea {
	min-height: 112px;
	resize: vertical;
	font-family: ui-monospace, monospace;
	font-size: 12px;
}
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid #5b9275;
	outline-offset: 2px;
}
.check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}
.check input {
	width: 18px;
	min-height: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--green);
}
button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: var(--green);
	color: #fff;
	border: 1px solid var(--green);
	border-radius: 8px;
	padding: 12px 18px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition:
		background 0.15s,
		border-color 0.15s;
}
button:hover,
.button:hover {
	background: #194730;
}
.secondary {
	background: #f4f7f1;
	color: #345a41;
	border-color: #dbe5d6;
}
.secondary:hover {
	background: #e8efe2;
	border-color: #bacdb9;
}
.danger {
	background: #fff8f5;
	color: #984f36;
	border-color: #eeddd3;
}
.danger:hover {
	background: #fae9e2;
	border-color: #c99581;
}
.actions {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}
.actions form {
	margin: 0;
}
.actions label {
	margin-bottom: 10px;
}
.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	padding: 5px 10px;
	margin-left: 12px;
	background: #edf3e6;
	color: #4e6d44;
	border-radius: 20px;
	vertical-align: middle;
	white-space: nowrap;
}
summary {
	cursor: pointer;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
summary::marker {
	color: #7a9383;
}
details[open] > summary {
	margin-bottom: 24px;
}
code {
	font-family: ui-monospace, monospace;
	font-size: 12px;
	overflow-wrap: anywhere;
}
.secret {
	display: block;
	padding: 18px;
	background: #f7f2dc;
	border: 1px solid #e8ddb0;
	border-radius: 8px;
	margin: 18px 0;
	user-select: all;
	word-break: break-all;
}
.warning {
	border-color: #e8d5a5;
}
.notice {
	background: #eaf1e2;
	border: 1px solid #d6e3c9;
	border-radius: 12px;
	padding: 20px;
	font-size: 14px;
	margin: 0 0 24px;
}
.notice p {
	margin: 8px 0 0;
}
.error {
	color: #a34834;
}
.error:empty {
	display: none;
}
.codes {
	columns: 2;
	line-height: 2;
}
.tablewrap {
	overflow-x: auto;
	margin-top: 22px;
}
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 12px;
	text-align: left;
}
th,
td {
	padding: 16px 12px;
	border-bottom: 1px solid #e6ece2;
	white-space: nowrap;
}
th {
	color: #5d7464;
	font-weight: 600;
	background: #f7f9f4;
}
td:first-child,
th:first-child {
	padding-left: 16px;
}
dt {
	font-size: 12px;
	color: #60746a;
	margin-top: 16px;
}
dd {
	font-size: 14px;
	margin: 8px 0 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 28px 0;
}
footer {
	border-top: 1px solid var(--line);
	padding: 24px;
	color: #718174;
	font-size: 11px;
	letter-spacing: 0.7px;
	text-align: center;
}
.enrollment-qr {
	display: block;
	width: 280px;
	max-width: 100%;
	height: auto;
	margin: 20px auto;
	image-rendering: pixelated;
}
.enrollment-steps {
	padding-left: 22px;
	line-height: 1.8;
}
.skip-link {
	position: fixed;
	left: 16px;
	top: -100px;
	background: #fff;
	padding: 12px 20px;
	z-index: 10;
}
.skip-link:focus {
	top: 12px;
}
/* Persistent navigation and dashboard. */
.admin-shell {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
	position: sticky;
	top: 0;
	height: 100dvh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: #173c31;
	color: #fff;
	padding: 38px 20px 24px;
	border-right: 1px solid #224b3d;
}
.sidebar .brand {
	color: #f4f7ef;
	padding: 0 16px;
	margin-bottom: 44px;
}
.sidebar .brand span {
	color: #a6bcaa;
}
.nav-label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1.7px;
	color: #a6bcaa;
	padding: 0 16px;
	margin: 0 0 14px;
}
.admin-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.admin-nav a {
	display: flex;
	gap: 18px;
	align-items: center;
	border: 1px solid transparent;
	color: #d4e0d5;
	border-radius: 8px;
	padding: 13px 15px;
	font-size: 14px;
	white-space: nowrap;
}
.admin-nav a:hover {
	background: #244d3e;
	color: #fff;
}
.admin-nav a[aria-current="page"] {
	background: #e4eedb;
	color: #1c422e;
	font-weight: 600;
}
.nav-number {
	font-size: 10px;
	opacity: 0.65;
	font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
	margin-top: auto;
	padding-top: 36px;
}
.signed-in-email {
	font-size: 11px;
	color: #b1c6b6;
	overflow-wrap: anywhere;
	padding: 0 16px;
}
.sidebar-bottom form {
	padding: 8px 15px 20px;
}
.sidebar-bottom button {
	width: 100%;
	background: #244c3c;
	border-color: #42654c;
	color: #e4eedb;
}
.sidebar-bottom button:hover {
	background: #315c47;
}
.external-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid #365744;
	padding: 22px 16px 0;
}
.external-links a {
	color: #b4c8b7;
	font-size: 11px;
	text-decoration: none;
}
.shortcut-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.shortcut {
	display: block;
	text-decoration: none;
	margin: 0;
	transition:
		border-color 0.15s,
		background 0.15s;
}
.shortcut:hover,
.project-link:hover {
	border-color: #9bb397;
	background: #fcfdf9;
}
.shortcut h2 {
	margin-top: 24px;
	display: flex;
	justify-content: space-between;
}
.shortcut h2 span {
	color: #769271;
}
.shortcut p {
	margin: 0;
	max-width: 340px;
}
.project-link {
	display: flex;
	align-items: center;
	gap: 20px;
	text-decoration: none;
}
.project-link > div {
	flex: 1;
	min-width: 0;
}
.project-link h2 {
	overflow-wrap: anywhere;
	margin: 0 0 6px;
}
.project-link p {
	margin: 0;
	overflow-wrap: anywhere;
}
.project-link .badge {
	margin: 0;
}
.backlink {
	display: inline-block;
	font-size: 13px;
	text-decoration: none;
	margin-bottom: 6px;
}
.advanced {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 20px 0;
	margin: 20px 0 24px;
}
.advanced > summary {
	font-size: 13px;
	font-weight: 600;
}
.account-settings {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 20px;
	margin-top: 24px;
}
.form-panel {
	min-width: 0;
	padding: 24px;
	background: #f8faf5;
	border: 1px solid #e3e9de;
	border-radius: 12px;
}
.account-tools {
	border-top: 1px solid var(--line);
	margin-top: 28px;
	padding-top: 24px;
}
.account-tools p {
	max-width: 640px;
}
.danger-zone {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid #eddcd3;
}
.danger-zone > summary {
	color: #984f36;
	font-size: 13px;
	font-weight: 600;
}
.empty {
	color: var(--muted);
	background: #f7f9f3;
	border: 1px dashed #d1ddc9;
	border-radius: 10px;
	padding: 20px;
	line-height: 1.7;
	font-size: 14px;
}
@media (min-width: 1500px) {
	main {
		padding-top: 60px;
	}
}
@media (max-width: 1100px) {
	.admin-shell {
		grid-template-columns: 216px minmax(0, 1fr);
	}
	.sidebar {
		padding-left: 12px;
		padding-right: 12px;
	}
	.sidebar .brand {
		font-size: 24px;
	}
	.account-settings {
		grid-template-columns: minmax(0, 1fr);
	}
	.stats {
		gap: 12px;
	}
	.stats .card {
		padding: 20px;
	}
}
@media (max-width: 760px) {
	.admin-shell {
		display: block;
	}
	.sidebar {
		position: static;
		height: auto;
		padding: 20px;
		overflow: visible;
	}
	.sidebar .brand {
		padding: 0;
		margin: 0 0 22px;
	}
	.nav-label {
		display: none;
	}
	.admin-nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}
	.admin-nav a {
		padding: 10px 12px;
		font-size: 13px;
	}
	.nav-number {
		display: none;
	}
	.sidebar-bottom {
		padding: 16px 0 0;
		margin-top: 16px;
		border-top: 1px solid #365744;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.sidebar-bottom .admin-nav {
		flex: none;
	}
	.sidebar-bottom form {
		padding: 0;
	}
	.sidebar-bottom button {
		min-height: 40px;
		padding: 8px 14px;
	}
	.signed-in-email,
	.external-links {
		display: none;
	}
	main {
		padding: 28px 20px 48px;
		min-height: 60vh;
	}
	.intro {
		margin-bottom: 24px;
	}
	.intro p {
		font-size: 13px;
	}
	.stats {
		grid-template-columns: minmax(0, 1fr);
	}
	.stats .card {
		min-height: auto;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px 12px;
		align-items: center;
	}
	.stats strong {
		font-size: 28px;
		margin: 0;
		text-align: right;
	}
	.stats strong.small {
		font-size: 16px;
	}
	.stats p {
		grid-column: 1 / -1;
		margin: 0;
	}
	.shortcut-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.shortcut h2 {
		margin-top: 18px;
	}
	.grid,
	.account-settings {
		grid-template-columns: minmax(0, 1fr);
	}
	.card {
		padding: 22px;
	}
	.form-panel {
		padding: 18px;
	}
	.account > .badge {
		margin-left: 6px;
	}
	.actions {
		gap: 10px;
	}
	.actions form {
		flex: 1 1 200px;
	}
	.actions button {
		width: 100%;
	}
	.codes {
		columns: 1;
	}
	.project-link {
		gap: 12px;
	}
	.project-link h2 {
		font-size: 17px;
	}
	.project-link p {
		font-size: 12px;
	}
	.project-link .badge {
		font-size: 10px;
	}
	.sectionhead {
		margin-top: 30px;
	}
	h1 {
		letter-spacing: -1px;
	}
	header {
		padding: 20px;
		align-items: flex-start;
	}
	header nav {
		flex-direction: column;
		gap: 10px;
	}
	input,
	select,
	textarea {
		font-size: 16px;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
