:root {
	color-scheme: light;
	--ink: #102d41;
	--muted: #5d7180;
	--paper: #f2f6f9;
	--surface: #ffffff;
	--line: #d2dfe7;
	--forest: #102d41;
	--bulme: #102d41;
	--action: #78b7e5;
	--electronics: #a2cb3e;
	--etech: #de5528;
	--machine: #7bb7e5;
	--wi: #ffe32c;
	--lime: #a2cb3e;
	--coral: #de5528;
	font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
}

.page-shell {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
	padding: 36px 0 24px;
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 0 22px;
	border-bottom: 1px solid var(--line);
	position: relative;
}

.masthead::after {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: min(300px, 45%);
	height: 3px;
	background: linear-gradient(90deg, var(--electronics) 0 25%, var(--etech) 25% 50%, var(--machine) 50% 75%, var(--wi) 75% 100%);
	content: "";
}

.masthead-brand {
	min-width: 0;
}

.brand-lockup {
	display: inline-flex;
	align-items: center;
	margin-bottom: 14px;
	padding: 7px 10px;
	background: var(--bulme);
	color: white;
	text-decoration: none;
}

.brand-logo {
	display: block;
	width: min(250px, 72vw);
	height: auto;
}

.masthead h1 {
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.12;
	text-transform: uppercase;
}

.eyebrow {
	margin: 0 0 7px;
	color: var(--bulme);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

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

h1 {
	margin-bottom: 0;
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 34px;
	font-weight: 800;
}

h2 {
	margin-bottom: 0;
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 21px;
	font-weight: 700;
}

.session-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 13px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 13px;
}

.status-mark {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--electronics);
}

.overview-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 22px 0;
	border: 1px solid var(--line);
	background: var(--surface);
}

.overview-strip > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 17px 20px;
}

.overview-strip > div + div {
	border-left: 1px solid var(--line);
}

.metric-label {
	color: var(--muted);
	font-size: 13px;
}

.overview-strip strong {
	color: var(--bulme);
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 25px;
	font-weight: 500;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
	gap: 18px;
}

.ballot-launch {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
	align-items: center;
	gap: 20px;
	margin: 18px 0;
	padding: 19px 21px;
	border-left: 4px solid var(--action);
	background: #e7f2fa;
}

.ballot-launch h2 {
	font-size: 19px;
}

.ballot-launch-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 16px;
	max-width: 100%;
}

.ballot-launch-form label,
.ballot-meta label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
}

.ballot-launch-form select,
.ballot-meta input,
.ballot-table select {
	min-height: 38px;
	padding: 7px 9px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.ballot-class-picker {
	display: grid;
	gap: 8px;
	align-self: stretch;
}

.picker-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.class-checkbox-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 6px 8px;
	padding: 10px 12px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.55);
	max-height: 190px;
	overflow-y: auto;
}

.ballot-launch-form .class-check-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 2px 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}

.class-check-item input {
	margin: 0;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.class-check-item span {
	line-height: 1.3;
}

.ballot-launch-form button {
	justify-self: end;
	min-height: 50px;
	padding: 0 18px;
	width: min(100%, 320px);
}

.election-info {
	margin: 14px 0 20px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.election-info summary {
	padding: 12px 15px;
	color: var(--forest);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.election-info[open] summary {
	border-bottom: 1px solid var(--line);
}

.election-info-content {
	max-width: 900px;
	padding: 16px 18px;
	color: var(--ink);
	font-size: 13px;
	line-height: 1.55;
}

.election-info-content h3 {
	margin: 15px 0 6px;
	color: var(--forest);
	font-size: 13px;
}

.election-info-content h3:first-child {
	margin-top: 0;
}

.election-info-content p {
	margin: 0 0 10px;
}

.election-info-content p:last-child {
	margin-bottom: 0;
}

.election-info-content a {
	color: var(--forest);
	text-decoration: underline;
}

.ballot-election-info {
	margin-bottom: 16px;
}

.ballot-shell {
	max-width: 1500px;
}

.ballot-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin: 20px 0 12px;
}

.ballot-heading h2 {
	font-size: 25px;
}

.ballot-class-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 13px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.ballot-class-badge span {
	color: var(--muted);
	font-size: 12px;
}

.ballot-class-badge strong {
	color: var(--bulme);
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 20px;
	font-weight: 700;
}

.ballot-lead,
.ballot-instructions {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.ballot-form {
	margin-top: 15px;
}

.ballot-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(145px, 1fr));
	gap: 13px;
	padding: 17px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.ballot-points {
	margin-top: 18px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.ballot-points .section-heading {
	min-height: 70px;
}

.ballot-instructions {
	margin: 0;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
}

.ballot-instructions p + p {
	margin-top: 8px;
}

.ballot-instructions p:last-child {
	margin-bottom: 0;
}

.ballot-column-error {
	margin: 0;
	padding: 10px 18px;
	border-bottom: 1px solid color-mix(in srgb, var(--etech) 35%, white);
	background: color-mix(in srgb, var(--etech) 9%, white);
	color: #822c15;
	font-size: 12px;
	font-weight: 700;
}

.ballot-table-scroll {
	max-width: 100%;
	max-height: 65vh;
	overflow: auto;
}

.ballot-table {
	width: max-content;
	min-width: 100%;
	border-collapse: collapse;
}

.ballot-table th,
.ballot-table td {
	min-width: 66px;
	padding: 7px;
	border: 1px solid var(--line);
	text-align: center;
}

.ballot-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #e8f0f6;
}

.ballot-table th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 210px;
	background: #e8f0f6;
	text-align: left;
}

.ballot-table thead th:first-child {
	z-index: 3;
}

.ballot-table th.is-invalid-column,
.ballot-table td.is-invalid-column {
	background: color-mix(in srgb, var(--etech) 12%, white);
	box-shadow: inset 0 0 0 1px var(--etech);
}

.ballot-table td.is-invalid-column select {
	border-color: var(--etech);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--etech) 22%, transparent);
}

.ballot-table th small {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 400;
}

.ballot-table select {
	width: 54px;
	min-height: 36px;
	padding: 5px;
	touch-action: manipulation;
}

.ballot-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 17px 0;
}

.secondary-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font-size: 13px;
	text-decoration: none;
}

.panel {
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--surface);
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	padding: 16px 19px;
	border-bottom: 1px solid var(--line);
}

.panel .table-wrap {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

th,
td {
	padding: 13px 19px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}

thead th {
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

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

tbody th {
	font-weight: 600;
}

.class-list {
	max-height: 390px;
	overflow: auto;
}

.class-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 19px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}

.class-row:last-child {
	border-bottom: 0;
}

.class-row strong {
	min-width: 38px;
	color: var(--forest);
	text-align: right;
}

.empty-state {
	margin: 0;
	padding: 21px 19px;
	color: var(--muted);
	font-size: 13px;
}

.notice {
	margin: 22px 0;
	padding: 20px;
	border-left: 4px solid var(--forest);
	background: var(--surface);
}

.notice h2 {
	margin-bottom: 8px;
}

.notice p {
	margin-bottom: 0;
	line-height: 1.5;
}

.notice-error {
	border-color: var(--coral);
}

.notice-warn {
	border-color: var(--wi);
}

.login-panel {
	width: min(440px, 100%);
	margin: 42px auto 0;
	padding: 25px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.login-panel h2 {
	margin-bottom: 20px;
}

.login-form {
	display: grid;
	gap: 16px;
}

.login-form label {
	display: grid;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
}

.login-form input {
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.login-form input:focus {
	border-color: var(--action);
	outline: 2px solid color-mix(in srgb, var(--action) 35%, transparent);
}

.primary-action {
	min-height: 44px;
	border: 1px solid var(--action);
	border-radius: 2px;
	background: var(--action);
	color: var(--bulme);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.primary-action:hover {
	border-color: #5a9bca;
	background: #5a9bca;
	color: #081d2b;
}

.logout-form {
	display: flex;
	justify-content: flex-end;
	margin: -10px 0 16px;
}

.text-action {
	padding: 5px 0;
	border: 0;
	background: none;
	color: var(--forest);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.current-session {
	margin-bottom: 16px;
}

.user-account {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
}

.user-account form {
	margin: 0;
}

.summary-shell {
	max-width: 1000px;
}

.summary-confirmation {
	margin: 24px 0 16px;
	padding: 21px 23px;
	border-left: 4px solid var(--electronics);
	background: #f0f6e4;
}

.summary-confirmation h2 {
	margin-bottom: 8px;
	font-size: 23px;
}

.summary-confirmation > p:last-child {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 13px;
}

.summary-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 18px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.summary-meta > div {
	display: grid;
	gap: 5px;
	padding: 12px 15px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.summary-meta span {
	color: var(--muted);
	font-size: 11px;
}

.summary-meta strong {
	font-size: 13px;
	font-weight: 600;
}

.summary-candidates {
	border: 1px solid var(--line);
	background: var(--surface);
}

.summary-candidates .section-heading {
	min-height: 70px;
}

.summary-close-form {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.summary-close-form .primary-action {
	min-width: 260px;
	padding: 0 18px;
}

.page-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 14px 0 20px;
}

.page-nav a {
	color: var(--forest);
	font-size: 13px;
	font-weight: 700;
}

.results-shell {
	max-width: 1240px;
}

.results-filters {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.results-filters label {
	display: grid;
	min-width: 210px;
	flex: 1;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
}

.results-filters select {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.results-filters button {
	min-height: 40px;
	padding: 0 14px;
}

.results-title {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin: 24px 0 14px;
}

.results-title h2 {
	font-size: 25px;
}

.results-scale {
	color: var(--muted);
	font-size: 12px;
}

.results-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 16px 0;
	border: 1px solid var(--line);
	background: var(--surface);
}

.results-metrics > div {
	display: grid;
	gap: 7px;
	padding: 14px 16px;
}

.results-metrics > div + div {
	border-left: 1px solid var(--line);
}

.results-metrics span {
	color: var(--muted);
	font-size: 11px;
}

.results-metrics strong {
	color: var(--bulme);
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 23px;
	font-weight: 700;
}

.results-section {
	margin: 20px 0;
	border: 1px solid var(--line);
	background: var(--surface);
}

.results-section .section-heading {
	min-height: 74px;
}

.results-table-scroll {
	max-width: 100%;
	overflow-x: auto;
}

.results-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.results-table th,
.results-table td {
	padding: 11px 15px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
}

.results-table thead th {
	background: #e8f0f6;
	color: var(--muted);
	font-size: 10px;
	text-transform: uppercase;
}

.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td {
	border-bottom: 0;
}

.results-table tbody th {
	font-weight: 600;
}

.results-table tbody td strong {
	color: var(--forest);
	font-size: 14px;
}

.class-results-list {
	padding: 0 16px;
}

.class-result-detail {
	border-bottom: 1px solid var(--line);
}

.class-result-detail:last-child {
	border-bottom: 0;
}

.class-result-detail summary {
	display: grid;
	grid-template-columns: minmax(90px, 0.5fr) minmax(170px, 1fr) minmax(150px, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 48px;
	cursor: pointer;
	font-size: 12px;
}

.class-result-detail summary strong {
	font-size: 13px;
}

.class-result-detail summary span,
.class-result-detail summary time {
	color: var(--muted);
	font-size: 11px;
}

.class-result-body {
	padding: 12px 0 18px;
}

.result-delete-form {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--etech) 24%, white);
	background: color-mix(in srgb, var(--etech) 5%, white);
}

.result-delete-form label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #71372d;
	font-size: 11px;
}

.result-delete-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--coral);
}

.class-result-body dl {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 14px;
}

.class-result-body dl > div {
	padding: 9px 11px;
	background: var(--paper);
}

.class-result-body dt {
	color: var(--muted);
	font-size: 10px;
}

.class-result-body dd {
	margin: 3px 0 0;
	font-size: 12px;
	font-weight: 600;
}

.class-candidate-table {
	max-width: 720px;
}

.admin-shell {
	max-width: 1280px;
}

.admin-context {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 18px 0;
}

.admin-context .eyebrow {
	margin: 0;
}

.admin-context strong {
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.admin-toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	margin: 20px 0 14px;
}

.session-picker {
	display: flex;
	align-items: center;
	gap: 10px;
}

.session-picker label {
	font-size: 12px;
	font-weight: 700;
}

.session-picker select {
	min-width: 190px;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.session-apply {
	min-height: 40px;
	padding: 0 12px;
}

.toolbar-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	text-decoration: none;
}

.admin-grid {
	display: grid;
	grid-template-columns: minmax(250px, 0.8fr) minmax(320px, 1.2fr);
	gap: 18px;
}

.admin-panel {
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--surface);
}

.admin-panel .section-heading {
	min-height: 74px;
}

.count-mark {
	min-width: 30px;
	padding: 5px 8px;
	background: var(--paper);
	color: var(--forest);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.election-list {
	max-height: 480px;
	overflow: auto;
}

.election-link {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 13px 17px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.election-link:last-child {
	border-bottom: 0;
}

.election-link:hover,
.election-link.is-current {
	background: #e7f2fa;
}

.election-link span {
	font-size: 14px;
	font-weight: 700;
}

.election-link small {
	color: var(--muted);
	font-size: 11px;
}

.admin-form,
.candidate-add-form {
	display: grid;
	gap: 14px;
	padding: 19px;
}

.admin-form label,
.candidate-add-form label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
}

.admin-form label span {
	color: var(--muted);
	font-size: 10px;
	font-weight: 400;
}

.admin-form input,
.admin-form select,
.candidate-add-form input,
.candidate-edit-form input {
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.admin-form input[readonly],
.candidate-edit-form input[readonly] {
	background: #edf2f5;
	color: var(--muted);
}

.admin-form .primary-action,
.candidate-add-form .primary-action {
	padding: 0 16px;
}

.field-note {
	margin: -8px 0 0;
	color: var(--muted);
	font-size: 11px;
}

.candidate-panel {
	margin-top: 18px;
}

.candidate-list {
	padding: 4px 18px;
}

.candidate-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.candidate-edit-form {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(3, minmax(100px, 1fr)) auto;
	align-items: center;
	gap: 8px;
}

.candidate-edit-form input {
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #9db5c4;
	border-radius: 2px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.bulk-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 14px;
}

.bulk-actions span {
	color: var(--muted);
	font-size: 11px;
}

.bulk-actions .primary-action {
	min-height: 38px;
	padding: 0 13px;
}

.candidate-delete-inline-form {
	display: flex;
	align-items: center;
	gap: 5px;
}

.delete-confirm {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	color: var(--muted);
	font-size: 11px;
}

.delete-confirm input {
	width: 16px;
	height: 16px;
}

.small-action,
.delete-action {
	min-height: 34px;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: white;
	color: var(--forest);
	font: inherit;
	cursor: pointer;
}

.small-action {
	padding: 0 10px;
	font-size: 11px;
	font-weight: 700;
}

.delete-action {
	width: 34px;
	color: var(--coral);
	font-size: 20px;
}

.election-activation-panel {
	margin-bottom: 18px;
}

.test-reset-panel {
	margin: 18px 0;
	border-color: color-mix(in srgb, var(--etech) 32%, white);
}

.test-reset-panel .section-heading {
	border-bottom-color: color-mix(in srgb, var(--etech) 20%, white);
}

.test-reset-panel .eyebrow {
	color: var(--coral);
}

.test-reset-content {
	padding: 16px 19px;
}

.test-reset-content > p {
	max-width: 760px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.test-reset-form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.test-reset-form label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.test-reset-form input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--coral);
}

.danger-action {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #a83f1d;
	border-radius: 2px;
	background: var(--coral);
	color: white;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.danger-action:hover {
	background: #bd481f;
}

.election-activation-form {
	padding: 16px 18px;
}

.election-activation-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--line);
}

.election-activation-list legend {
	padding: 0 6px;
	color: var(--muted);
	font-size: 11px;
}

.election-activation-option {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	gap: 2px 8px;
	padding: 8px;
	border: 1px solid var(--line);
	background: white;
	cursor: pointer;
}

.election-activation-option input {
	grid-row: span 2;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: var(--forest);
}

.election-activation-option span {
	font-size: 12px;
	font-weight: 700;
}

.election-activation-option small {
	color: var(--muted);
	font-size: 10px;
}

.locked-label {
	color: var(--muted);
	font-size: 11px;
}

.candidate-panel h3 {
	margin: 20px 19px 0;
	font-family: Arial, "Trebuchet MS", sans-serif;
	font-size: 17px;
	font-weight: 700;
}

.candidate-add-form {
	grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
	align-items: end;
}

.notice-success {
	border-color: var(--forest);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.page-footer {
	padding-top: 18px;
	color: var(--muted);
	font-size: 11px;
}

@media (max-width: 760px) {
	.page-shell {
		width: min(100% - 24px, 600px);
		padding-top: 18px;
	}

	.masthead {
		align-items: flex-start;
		flex-direction: column;
		padding-bottom: 20px;
	}

	.masthead-brand {
		width: 100%;
	}

	.masthead h1 {
		font-size: 21px;
		white-space: nowrap;
	}

	.overview-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.overview-strip > div:nth-child(2n + 1) {
		border-left: 0;
	}

	.overview-strip > div:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.user-account {
		width: 100%;
		justify-content: space-between;
	}

	.summary-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.summary-close-form .primary-action {
		width: 100%;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

	.results-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.results-metrics > div:nth-child(3) {
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.results-metrics > div:nth-child(4) {
		border-top: 1px solid var(--line);
	}

	.results-title {
		align-items: flex-start;
		flex-direction: column;
	}

	.class-result-detail summary {
		grid-template-columns: 1fr;
		gap: 3px;
		padding: 10px 0;
	}

	.class-result-body dl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.results-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.results-filters button {
		width: 100%;
	}

	.ballot-launch {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.ballot-launch-form,
	.ballot-meta {
		grid-template-columns: 1fr;
	}

	.ballot-launch-form button {
		width: 100%;
	}

	.ballot-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.ballot-meta {
		padding: 13px;
	}

	.ballot-table th:first-child {
		min-width: 160px;
	}

	.ballot-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.ballot-actions > * {
		width: 100%;
	}

	.login-panel {
		margin-top: 26px;
		padding: 20px;
	}

	.admin-grid {
		grid-template-columns: 1fr;
	}

	.admin-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.session-picker {
		align-items: stretch;
		flex-direction: column;
	}

	.session-picker select {
		width: 100%;
	}

	.session-apply {
		width: 100%;
	}

	.candidate-edit-form {
		grid-template-columns: repeat(2, minmax(100px, 1fr));
	}

	.election-activation-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.candidate-add-form {
		grid-template-columns: 1fr;
	}
}