:root {
	color-scheme: light;
	--bg: #f6efe6;
	--panel: rgba(255, 251, 246, 0.88);
	--panel-strong: #fffdf9;
	--ink: #21160f;
	--muted: #6d584a;
	--line: rgba(47, 26, 9, 0.12);
	--brand: #b44f23;
	--brand-deep: #7d2b11;
	--accent: #e0b55f;
	--danger: #a63232;
	--success: #2f6a3b;
	--shadow: 0 24px 60px rgba(60, 29, 6, 0.14);
	--font-display: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
	--font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
	--font-mono: "Cascadia Code", "Consolas", monospace;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	color: var(--ink);
	background:
		radial-gradient(circle at top left, rgba(224, 181, 95, 0.35), transparent 28%),
		radial-gradient(circle at top right, rgba(180, 79, 35, 0.16), transparent 26%),
		linear-gradient(180deg, #fffaf3 0%, var(--bg) 55%, #efe4d4 100%);
}

.shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px 48px;
}

.masthead {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 28px;
}

.eyebrow {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(180, 79, 35, 0.1);
	color: var(--brand-deep);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.title {
	margin: 14px 0 10px;
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 5vw, 4rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.subtitle {
	max-width: 720px;
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.6;
}

.actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.button,
button,
input,
textarea {
	font: inherit;
}

.button,
button {
	border: 0;
	border-radius: 14px;
	padding: 12px 16px;
	font-weight: 700;
	background: var(--brand);
	color: white;
	box-shadow: var(--shadow);
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, filter 0.18s ease;
}

.button.secondary,
button.secondary {
	background: rgba(255, 255, 255, 0.74);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
}

.button.danger,
button.danger {
	background: var(--danger);
	box-shadow: none;
}

.button:hover,
button:hover {
	transform: translateY(-1px);
	filter: saturate(1.05);
}

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

.card {
	grid-column: span 12;
	padding: 20px;
	border-radius: 24px;
	background: var(--panel);
	backdrop-filter: blur(18px);
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.card.two-up {
	grid-column: span 6;
}

.card h2,
.card h3 {
	margin-top: 0;
	font-family: var(--font-display);
	letter-spacing: -0.03em;
}

.stat-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.stat {
	min-width: 150px;
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--panel-strong);
	border: 1px solid var(--line);
}

.stat strong {
	display: block;
	font-size: 1.8rem;
	font-family: var(--font-display);
}

.pill-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	list-style: none;
}

.pill {
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(224, 181, 95, 0.24);
	color: var(--brand-deep);
	font-weight: 700;
	font-size: 0.92rem;
}

.pill.admin {
	background: rgba(47, 106, 59, 0.16);
	color: var(--success);
}

.table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 0.95rem;
}

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

.table th {
	color: var(--muted);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.inline-form {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 12px;
}

.stack {
	display: grid;
	gap: 12px;
}

.link-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.link-row .button {
	box-shadow: none;
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--muted);
}

.field input,
.field textarea {
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--line);
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--ink);
}

.field textarea {
	min-height: 96px;
	resize: vertical;
}

.code-block {
	margin: 0;
	padding: 14px;
	border-radius: 16px;
	background: #1d1712;
	color: #f7efe5;
	font-family: var(--font-mono);
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

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

.notice {
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(47, 106, 59, 0.1);
	color: var(--success);
	font-weight: 700;
	border: 1px solid rgba(47, 106, 59, 0.14);
}

.notice.error {
	background: rgba(166, 50, 50, 0.1);
	color: var(--danger);
	border-color: rgba(166, 50, 50, 0.16);
}

@media (max-width: 900px) {
	.card.two-up {
		grid-column: span 12;
	}

	.masthead {
		flex-direction: column;
	}

	.actions {
		justify-content: flex-start;
	}
}