:root {
	--brand: #0f8068;
	--brand-dark: #0b5f4e;
	--tab: #c8c8c8;
	--tab-dark: #9f9f9f;
	--ink: #111;
	--muted: #4d5a56;
	--line: #222;
	--grid: #4a4a4a;
	--surface: #fff;
	--soft: #e0f1e8;
	--soft-alt: #d6eadf;
	--danger: #b71c1c;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

body.has-floating-scroll {
	padding-bottom: 46px;
}

button,
input,
select {
	font: inherit;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.participants-shell {
	width: min(1920px, calc(100% - 24px));
	margin: 0 auto;
	padding: 86px 0 32px;
}

.login-screen {
	width: min(560px, calc(100% - 32px));
	margin: 88px auto 0;
	text-align: center;
}

.login-screen h1 {
	display: grid;
	gap: 8px;
	margin: 0 0 30px;
	color: #2f3337;
	font-size: 1.82rem;
	font-weight: 600;
	line-height: 1.25;
}

.login-screen h1 span {
	display: block;
}

.login-screen > p {
	margin: 0 0 28px;
	color: #4d8ab8;
	font-size: 1.5rem;
	font-weight: 700;
}

.login-screen form {
	display: grid;
	justify-items: center;
	gap: 18px;
}

.login-screen input {
	width: min(440px, 100%);
	min-height: 44px;
	border: 1px solid #b8b8b8;
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 1rem;
	padding: 8px 14px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.login-screen input::placeholder {
	color: #8b8b8b;
	font-weight: 700;
}

.login-screen button {
	min-height: 42px;
	border: 1px solid #b8b8b8;
	border-radius: 6px;
	background: #fff;
	color: #222;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	padding: 8px 22px;
}

.login-screen button:hover,
.login-screen button:focus-visible {
	background: #f4f4f4;
}

.login-screen #passwordError {
	margin: 18px 0 0;
	color: var(--danger);
	font-weight: 700;
}

.login-screen[hidden],
#appArea[hidden],
#contentArea[hidden] {
	display: none;
}

.page-header {
	display: block;
	padding: 0 0 22px;
	text-align: center;
}

.page-header > div {
	text-align: center;
}

.eyebrow {
	display: none;
}

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

h1 {
	margin-bottom: 0;
	font-size: 2.72rem;
	line-height: 1.1;
	letter-spacing: 0;
}

.year-control,
.search-control {
	display: grid;
	gap: 4px;
	color: var(--muted);
	font-size: 0.86rem;
}

select,
input[type="search"] {
	min-height: 32px;
	border: 1px solid #aaa;
	border-radius: 2px;
	background: var(--surface);
	color: var(--ink);
	padding: 4px 8px;
}

.status-strip {
	margin: 0 0 24px;
	border: 0;
	background: transparent;
	padding: 0;
	color: var(--brand-dark);
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}

.status-strip.is-error {
	border-left-color: var(--danger);
	color: var(--danger);
}

.status-strip.is-muted {
	color: var(--muted);
}

.password-panel {
	margin-bottom: 8px;
	background: #f7fbf9;
	border: 1px solid #b6c7c0;
	padding: 8px;
}

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

.password-panel form {
	display: flex;
	align-items: end;
	gap: 8px;
}

.password-panel label {
	display: grid;
	gap: 4px;
	color: var(--muted);
	font-size: 0.86rem;
}

.password-panel input {
	width: 110px;
	min-height: 32px;
	border: 1px solid #aaa;
	border-radius: 2px;
	background: var(--surface);
	color: var(--ink);
	padding: 4px 8px;
}

.password-panel button {
	min-height: 32px;
	border: 1px solid var(--brand-dark);
	border-radius: 4px;
	background: var(--brand);
	color: #fff;
	cursor: pointer;
	padding: 4px 12px;
}

.password-panel p {
	margin: 6px 0 0;
	color: var(--danger);
}

.event-control-row {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: 7px;
	margin: 18px 0 8px;
	overflow-x: auto;
	padding-bottom: 0;
}

.event-control-row .year-control {
	flex: 0 0 auto;
	width: 88px;
}

.event-control-row .year-control span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.event-tabs-wrap {
	margin-bottom: 0;
	overflow-x: auto;
	padding-bottom: 0;
}

.event-tabs {
	display: flex;
	gap: 6px;
	width: max-content;
	margin: 0;
	min-width: max-content;
}

.event-tabs button {
	border: 1px solid #4f9364;
	border-radius: 5px;
	background: linear-gradient(#7ec190, #49a868);
	color: #fff;
	cursor: pointer;
	min-height: 31px;
	padding: 4px 12px;
	white-space: nowrap;
	font-weight: 700;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.event-tabs button[aria-selected="true"] {
	background: linear-gradient(#78bd8a, #3c9d5e);
	border-color: #3d8152;
}

.event-summary {
	display: block;
	margin: 0 0 14px;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: center;
}

.event-summary h2 {
	display: inline;
	margin: 0 14px 0 0;
	font-size: 1.62rem;
	letter-spacing: 0;
}

.event-summary p {
	display: inline;
	margin: 0;
	font-size: 1.28rem;
}

.event-summary-main p + p {
	display: inline;
	margin-left: 8px;
	font-size: 1.28rem;
	font-weight: 700;
}

.participant-count-line {
	display: none;
	margin-top: 12px;
	font-size: 1.24rem;
	line-height: 1.2;
}

.toolbar {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 6px;
	border: 0;
	padding: 0;
}

.route-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.search-control {
	display: flex;
	align-items: center;
	gap: 0;
	width: 270px;
}

.search-control input {
	width: 100%;
}

.route-filter button {
	border: 2px solid #2c8a5d;
	border-radius: 7px;
	background: #fff;
	color: #111;
	cursor: pointer;
	min-height: 29px;
	padding: 2px 9px;
	white-space: nowrap;
	font-weight: 700;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.route-filter button.is-active {
	border-color: #1f7d51;
	background: #f4fbf6;
	color: #111;
	outline: 2px solid #258fd0;
}

.event-tabs button:focus-visible,
.route-filter button:focus-visible,
select:focus-visible,
input:focus-visible {
	outline: 2px solid #258fd0;
	outline-offset: 1px;
}

.participant-panel {
	background: var(--surface);
	border: 1px solid var(--grid);
	margin-top: 0;
	padding: 0;
}

.panel-head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--grid);
	background: #f7fbf9;
	margin-bottom: 0;
	padding: 7px 8px;
}

.panel-head h2 {
	margin-bottom: 0;
	font-size: 1rem;
}

.panel-head p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.private-notice,
.empty-state,
.noscript {
	background: #f7fbf9;
	border: 1px solid #b6c7c0;
	color: var(--muted);
	margin: 8px;
	padding: 8px;
}

.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.table-wrap::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.table-floating-scroll {
	position: fixed;
	right: max(12px, calc((100vw - 1920px) / 2 + 12px));
	bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
	left: max(12px, calc((100vw - 1920px) / 2 + 12px));
	z-index: 9999;
	height: 24px;
	overflow: hidden;
	border: 1px solid #79a88f;
	border-radius: 999px;
	background: #e5efe9;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.table-floating-scroll[hidden] {
	display: none;
}

#tableFloatingScrollThumb {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: 64px;
	border-radius: 999px;
	background: linear-gradient(#7ec190, #2c8a5d);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	touch-action: none;
}

.table-floating-scroll:focus-visible {
	outline: 2px solid #258fd0;
	outline-offset: 1px;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1760px;
	table-layout: fixed;
}

.col-serial { width: 3.4%; }
.col-venue-position { width: 6.8%; }
.col-membership { width: 5.8%; }
.col-venue { width: 7.2%; }
.col-name { width: 8.8%; }
.col-company { width: 15.2%; }
.col-position { width: 8%; }
.col-business { width: 34%; }
.col-committee { width: 5.5%; }
.col-introducer { width: 5.3%; }

th,
td {
	border-right: 1px solid var(--grid);
	border-bottom: 1px solid var(--grid);
	height: 46px;
	max-height: 46px;
	padding: 6px 10px;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

th:last-child,
td:last-child {
	border-right: 0;
}

th {
	background: var(--soft);
	color: #111;
	font-size: 0.86rem;
	font-weight: 700;
	text-align: center;
}

.serial-cell {
	text-align: center;
}

.membership-venue-heading,
.membership-venue-cell {
	padding: 0;
}

.membership-venue-heading span,
.membership-venue-cell span {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: top;
	white-space: nowrap;
}

.membership-venue-heading span:first-child,
.membership-venue-cell span:first-child {
	width: 45%;
}

.membership-venue-heading span:last-child,
.membership-venue-cell span:last-child {
	width: 55%;
	border-left: 1px solid var(--grid);
}

.membership-venue-heading span {
	justify-content: center;
	padding: 6px 8px;
}

.membership-venue-cell span {
	padding: 6px 10px;
}

td {
	background: #fff;
}

tbody tr:nth-child(odd) td {
	background: #fff;
}

tbody tr:nth-child(even) td {
	background: var(--soft-alt);
}

th:nth-child(1),
td:nth-child(1) { width: auto; }
th:nth-child(2),
td:nth-child(2) { width: auto; }
th:nth-child(3),
td:nth-child(3) { width: auto; }
th:nth-child(4),
td:nth-child(4) { width: auto; }
th:nth-child(5),
td:nth-child(5) { width: auto; }
th:nth-child(6),
td:nth-child(6) { width: auto; }
th:nth-child(7),
td:nth-child(7) { width: auto; }
th:nth-child(8),
td:nth-child(8) { width: auto; }
th:nth-child(9),
td:nth-child(9) { width: auto; }
th:nth-child(10),
td:nth-child(10) { width: auto; }

@media (max-width: 720px) {
	body {
		font-size: 14px;
	}

	.login-screen {
		width: min(100% - 24px, 560px);
		margin-top: 56px;
	}

	.login-screen h1 {
		font-size: 1.45rem;
	}

	.login-screen > p {
		font-size: 1.18rem;
	}

	.login-screen input,
	.login-screen button {
		font-size: 1rem;
	}

	.participants-shell {
		width: min(100% - 16px, 1680px);
		padding-top: 10px;
	}

	.page-header {
		display: grid;
	}

	.panel-head {
		display: none;
	}

	.page-header {
		grid-template-columns: 1fr;
	}

	.page-header > div,
	.page-header .year-control {
		grid-column: auto;
		justify-self: center;
	}

	.password-panel form {
		display: grid;
	}

	.password-panel input {
		width: 100%;
	}

	.search-control {
		width: min(220px, 100%);
	}

	.search-control input {
		width: 100%;
	}

	.table-floating-scroll {
		right: 8px;
		bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
		left: 8px;
		height: 26px;
	}

	table {
		min-width: 1800px;
	}

	th:nth-child(1),
	td:nth-child(1) { width: auto; }
	th:nth-child(2),
	td:nth-child(2) { width: auto; }
	th:nth-child(3),
	td:nth-child(3) { width: auto; }
	th:nth-child(4),
	td:nth-child(4) { width: auto; }
	th:nth-child(5),
	td:nth-child(5) { width: auto; }
	th:nth-child(6),
	td:nth-child(6) { width: auto; }
	th:nth-child(7),
	td:nth-child(7) { width: auto; }
	th:nth-child(8),
	td:nth-child(8) { width: auto; }
	th:nth-child(9),
	td:nth-child(9) { width: auto; }
	th:nth-child(10),
	td:nth-child(10) { width: auto; }
}