:root {
	--bg: #f4f4f2;
	--paper: #fff;
	--ink: #1a1a1c;
	--soft: #5a5a5f;
	--line: #d6d6d2;
	--red: #c8102e;
	--red-strong: #9a0c23;
	--dark: #121214;
}
*, *::before, *::after { box-sizing: border-box; }
body.admin {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 1.125rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--red); }
a:hover { color: var(--red-strong); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
header.top { background: var(--dark); color: #fff; padding: 0.75rem 0; }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
header.top .brand img { display: block; width: min(280px, 70vw); height: auto; }
header.top nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
header.top nav a { color: #fff; text-decoration: none; font-weight: 600; }
header.top nav a:hover { color: #fff; text-decoration: underline; }
h1, h2 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
.panel {
	background: var(--paper);
	border-top: 3px solid var(--red);
	margin: 1.5rem 0;
	padding: 1.25rem;
}
.panel h1 { margin-top: 0; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bar h1 { margin: 0; flex: 1 1 auto; }
.bar input[type="search"] { flex: 1 1 200px; width: auto; }
input, select, textarea, button, .button {
	font: inherit;
	padding: 0.55rem 0.75rem;
	border: 1px solid #9a9a96;
	border-radius: 4px;
	background: #fff;
	color: var(--ink);
	max-width: 100%;
}
input, select, textarea { width: 100%; }
button, .button {
	background: var(--red);
	color: #fff;
	border-color: var(--red);
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
}
button:hover, .button:hover { background: var(--red-strong); color: #fff; }
button.quiet, .button.quiet { background: #fff; color: var(--ink); border-color: #9a9a96; }
button.danger { background: #fff; color: var(--red); border-color: var(--red); }
button.danger:hover { background: #fff0f2; color: var(--red-strong); }
form label { display: block; margin: 0.8rem 0; font-weight: 600; }
form label input, form label select, form label textarea { font-weight: 400; margin-top: 0.25rem; }
form label.check { font-weight: 400; }
form label.check input { width: auto; margin-right: 0.5rem; transform: scale(1.3); }
form.inline { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.status { color: var(--soft); }
.status.error { color: var(--red); font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { text-transform: uppercase; font-size: 0.85rem; color: var(--soft); }
tbody tr:hover { background: #fafaf8; }
tr.hidden-event td { color: #8a8a88; }
td a { font-weight: 700; }
.dropzone {
	border: 2px dashed #9a9a96;
	padding: 1.5rem;
	text-align: center;
	margin: 0.5rem 0 1rem;
	background: #fafaf8;
}
.dropzone.over { border-color: var(--red); background: #fff5f7; }
.dropzone .progress { font-weight: 700; text-align: left; max-width: 48rem; margin: 1rem auto 0; }
.dropzone .progress ul { font-weight: 400; margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.dropzone .progress .actions { justify-content: center; }
.check-error { color: var(--red); }
.check-warning { color: #8a5a00; }
.check-photos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.check-photos li { display: grid; gap: 0.25rem; width: 160px; font-size: 0.85rem; }
.check-photos img { width: 160px; height: 120px; object-fit: cover; background: #ddd; cursor: zoom-in; }
.check-photos span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-photos label { display: flex; gap: 0.4rem; align-items: center; white-space: nowrap; cursor: pointer; }
.check-photos input { width: auto; margin: 0; }
.upload-hints { margin: -0.5rem 0 1rem; font-size: 1rem; color: var(--soft); }
.upload-hints summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.upload-hints ul { margin: 0.5rem 0; padding-left: 1.2rem; }
.upload-hints p { margin: 0.5rem 0 0; }
.admin-grid { columns: 4 180px; column-gap: 0.75rem; padding: 0; }
.admin-grid figure { margin: 0 0 0.75rem; break-inside: avoid; background: #eee; position: relative; }
.admin-grid img { display: block; width: 100%; height: auto; }
.admin-grid figure.cover { outline: 4px solid var(--red); }
.admin-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: 0.3rem; padding: 0.35rem; font-size: 0.9rem; background: #fff; }
.admin-grid figcaption button { padding: 0.25rem 0.5rem; font-size: 0.9rem; }
.notice { background: var(--paper); border-left: 4px solid var(--red); margin: 1.5rem 0; padding: 1rem 1.25rem; }
#events td a, #locations td:first-child, #title, #location-title { text-transform: capitalize; }
