/**
 * Small Groups Manager admin styles.
 */

.sgmgr-wrap {
	--sgmgr-bg: #f0f2f5;
	--sgmgr-card-bg: #ffffff;
	--sgmgr-text: #1d2327;
	--sgmgr-text-muted: #646970;
	--sgmgr-text-subtle: #8c8f94;
	--sgmgr-border: #dcdcde;
	--sgmgr-primary: #2271b1;
	--sgmgr-primary-hover: #135e96;
	--sgmgr-danger: #d63638;
	--sgmgr-danger-hover: #b32d2e;
	--sgmgr-draft: #dba617;
	--sgmgr-finalized: #00a32a;
	--sgmgr-radius: 8px;
	--sgmgr-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	--sgmgr-width-medium: 760px;

	margin: 20px 20px 20px 0;
	max-width: 1200px;
	color: var(--sgmgr-text);
}

.sgmgr-wrap--medium {
	max-width: var(--sgmgr-width-medium);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.sgmgr-wrap--medium .sgmgr-header {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16px;
	margin-bottom: 40px;
}

.sgmgr-wrap--medium .sgmgr-header__text {
	align-items: center;
	text-align: center;
}

.sgmgr-wrap--medium .sgmgr-empty {
	text-align: center;
}

.sgmgr-wrap * {
	box-sizing: border-box;
}

.sgmgr-wrap button.sgmgr-btn,
.sgmgr-wrap a.sgmgr-btn {
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
	margin: 0;
	vertical-align: middle;
}

/* Header */
.sgmgr-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.sgmgr-header__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.sgmgr-header__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.sgmgr-project-title {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
}

.sgmgr-project-title .sgmgr-title {
	margin: 0;
}

.sgmgr-title--editable {
	cursor: pointer;
}

.sgmgr-title--editable:hover,
.sgmgr-title--editable:focus {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 4px;
	outline: none;
}

.sgmgr-project-title__input {
	display: block;
	min-width: 220px;
	max-width: min(100%, 520px);
	margin: 0;
	padding: 2px 8px;
	border: 1px solid var(--sgmgr-border);
	border-radius: 6px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sgmgr-text);
	background: #fff;
}

.sgmgr-project-title__input:focus {
	border-color: var(--sgmgr-primary);
	box-shadow: 0 0 0 1px var(--sgmgr-primary);
	outline: none;
}

.sgmgr-project-title__input[hidden] {
	display: none !important;
}

.sgmgr-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sgmgr-header--project {
	align-items: center;
}

.sgmgr-header__save-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: #f6f7f7;
	border: 1px solid var(--sgmgr-border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--sgmgr-text-subtle);
	white-space: nowrap;
}

.sgmgr-save-status__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #eef2f0;
	color: var(--sgmgr-text-subtle);
	font-size: 12px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.sgmgr-save-status__icon::before {
	content: '✓';
}

.sgmgr-header__save-status.sgmgr-save-status--saved .sgmgr-save-status__icon {
	background: #e8f0ea;
	color: #4a7c59;
}

.sgmgr-header__save-status.sgmgr-save-status--saving .sgmgr-save-status__icon::before {
	content: '';
	width: 10px;
	height: 10px;
	border: 2px solid #c3c4c7;
	border-top-color: #8c8f94;
	border-radius: 50%;
	animation: sgmgr-save-spin 0.7s linear infinite;
}

@keyframes sgmgr-save-spin {
	to {
		transform: rotate(360deg);
	}
}

.sgmgr-title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sgmgr-text);
}

.sgmgr-subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--sgmgr-text-muted);
}

/* Cards */
.sgmgr-card {
	background: var(--sgmgr-card-bg);
	border: 1px solid var(--sgmgr-border);
	border-radius: var(--sgmgr-radius);
	box-shadow: var(--sgmgr-shadow);
	padding: 24px;
}

.sgmgr-tab-section--flush {
	margin-top: 0;
}

.sgmgr-projects-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sgmgr-projects-list--filtering .sgmgr-project-card {
	transition: opacity 0.22s ease, filter 0.22s ease;
}

.sgmgr-projects-list--filtering .sgmgr-project-card:not(.sgmgr-project-card--filter-match) {
	opacity: 0.4;
	filter: blur(2.5px);
}

.sgmgr-project-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 28px;
	transition: box-shadow 0.15s ease, opacity 0.15s ease;
	flex-wrap: wrap;
}

.sgmgr-project-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sgmgr-project-card--finalized {
	opacity: 0.62;
}

.sgmgr-project-card--finalized:hover {
	opacity: 0.78;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sgmgr-project-card__select {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding-right: 4px;
	cursor: pointer;
}

.sgmgr-project-card__select input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
}

.sgmgr-project-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sgmgr-project-card__header {
	min-width: 0;
}

.sgmgr-project-card__title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.sgmgr-project-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	min-width: 0;
}

.sgmgr-project-card__title-link {
	color: var(--sgmgr-text);
	text-decoration: none;
}

.sgmgr-project-card__title-link:hover {
	color: var(--sgmgr-primary);
}

.sgmgr-project-card__title-input {
	display: block;
	width: 100%;
	min-width: 160px;
	max-width: min(100%, 360px);
	margin: 0;
	padding: 2px 8px;
	border: 1px solid var(--sgmgr-border);
	border-radius: 6px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sgmgr-text);
	background: #fff;
}

.sgmgr-project-card__title-input:focus {
	border-color: var(--sgmgr-primary);
	box-shadow: 0 0 0 1px var(--sgmgr-primary);
	outline: none;
}

.sgmgr-project-card__title-input[hidden],
.sgmgr-project-card__title-link[hidden] {
	display: none !important;
}

.sgmgr-project-card__edit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: var(--sgmgr-text-subtle);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.sgmgr-project-card__edit-btn:hover,
.sgmgr-project-card__edit-btn:focus {
	color: var(--sgmgr-text-muted);
	background: rgba(0, 0, 0, 0.04);
	outline: none;
}

.sgmgr-project-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--sgmgr-text-muted);
}

.sgmgr-project-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.sgmgr-project-card__meta-item--private span:last-child {
	color: #5b5e66;
}

.sgmgr-project-card__meta-item--status {
	gap: 6px;
}

.sgmgr-meta-icon {
	display: block;
	flex-shrink: 0;
	color: var(--sgmgr-text-subtle);
	opacity: 0.9;
}

.sgmgr-project-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}

@media (max-width: 782px) {
	.sgmgr-project-card {
		align-items: stretch;
	}

	.sgmgr-project-card__actions {
		width: 100%;
		justify-content: flex-start;
	}
}

/* Badges */
.sgmgr-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sgmgr-badge--draft {
	background: #fcf0d1;
	color: #8a6d1d;
}

.sgmgr-badge--finalized {
	background: #d5f5e0;
	color: #1e6b36;
}

.sgmgr-badge--meta {
	padding: 2px 8px;
	font-size: 10px;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

/* Buttons */
.sgmgr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sgmgr-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sgmgr-btn--primary {
	background: var(--sgmgr-primary);
	color: #fff;
	border-color: var(--sgmgr-primary);
}

.sgmgr-btn--primary:hover,
.sgmgr-btn--primary:focus {
	background: var(--sgmgr-primary-hover);
	border-color: var(--sgmgr-primary-hover);
	color: #fff;
}

.sgmgr-btn--primary.sgmgr-btn--saved {
	background: linear-gradient(135deg, #bfe3cc 0%, #cce8d6 100%);
	border-color: #8fc2a0;
	color: #1e6b36;
}

.sgmgr-btn--primary.sgmgr-btn--saved:hover,
.sgmgr-btn--primary.sgmgr-btn--saved:focus {
	background: linear-gradient(135deg, #bfe3cc 0%, #cce8d6 100%);
	border-color: #8fc2a0;
	color: #1e6b36;
}

.sgmgr-btn--secondary {
	background: #fff;
	color: var(--sgmgr-text);
	border-color: var(--sgmgr-border);
}

.sgmgr-btn--secondary:hover,
.sgmgr-btn--secondary:focus {
	background: #f6f7f7;
	border-color: #8c8f94;
	color: var(--sgmgr-text);
}

.sgmgr-btn--danger {
	background: #fff;
	color: var(--sgmgr-danger);
	border-color: var(--sgmgr-danger);
}

.sgmgr-btn--danger:hover,
.sgmgr-btn--danger:focus {
	background: var(--sgmgr-danger);
	color: #fff;
}

.sgmgr-gf-sync-btn {
	position: relative;
	overflow: visible;
}

.sgmgr-gf-sync-btn:has(.sgmgr-gf-sync-btn__badge:not([hidden])) {
	margin-right: 10px;
}

.sgmgr-gf-sync-btn__badge {
	position: absolute;
	top: -7px;
	right: -7px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #e35d5d;
	color: #fff;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-align: center;
	pointer-events: none;
}

.sgmgr-gf-sync-btn__badge[hidden] {
	display: none !important;
}

.sgmgr-btn--sync {
	background: linear-gradient(135deg, #d8efe2 0%, #e3f5ea 100%);
	color: #2f6f4a;
	border-color: #b3d9be;
}

.sgmgr-btn--sync:hover,
.sgmgr-btn--sync:focus {
	background: linear-gradient(135deg, #cbe8d6 0%, #d8efe3 100%);
	border-color: #9fccb0;
	color: #245a3b;
}

.sgmgr-btn--sync.sgmgr-btn--sync-done {
	background: linear-gradient(135deg, #bfe3cc 0%, #cce8d6 100%);
	border-color: #8fc2a0;
	color: #1e6b36;
}

.sgmgr-btn--randomize {
	background: linear-gradient(135deg, #fff8e6 0%, #fcf0d1 100%);
	color: #8a6d1d;
	border-color: #e8d9a8;
}

.sgmgr-btn--randomize:hover,
.sgmgr-btn--randomize:focus {
	background: linear-gradient(135deg, #fff1cc 0%, #f8e5b8 100%);
	border-color: #ddc68a;
	color: #735f18;
}

.sgmgr-btn--color-legends {
	background: linear-gradient(135deg, #fff1e8 0%, #fde6d8 100%);
	color: #9a5528;
	border-color: #f0c3a3;
}

.sgmgr-btn--color-legends:hover,
.sgmgr-btn--color-legends:focus {
	background: linear-gradient(135deg, #ffe8d8 0%, #fbd9c6 100%);
	border-color: #e8ae84;
	color: #7d4520;
}

.sgmgr-btn--color-legends-active {
	background: linear-gradient(135deg, #fbd9c6 0%, #f5ccb6 100%);
	border-color: #de9f72;
	box-shadow: inset 0 0 0 1px rgba(154, 85, 40, 0.14);
	color: #6d3b1c;
}

.sgmgr-toggle-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: inherit;
	flex-shrink: 0;
	white-space: nowrap;
	-webkit-appearance: none;
	appearance: none;
}

.sgmgr-toggle-switch:hover .sgmgr-toggle-switch__label {
	color: var(--sgmgr-text);
}

.sgmgr-toggle-switch:focus {
	outline: none;
}

.sgmgr-toggle-switch:focus-visible .sgmgr-switch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sgmgr-primary);
}

.sgmgr-toggle-switch__label {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--sgmgr-text);
}

.sgmgr-switch {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 42px;
	height: 26px;
	border-radius: 999px;
	background: #e5e5ea;
	transition: background-color 0.2s ease;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.sgmgr-switch__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease;
}

.sgmgr-switch--on {
	background: var(--sgmgr-primary);
	box-shadow: none;
}

.sgmgr-switch--on .sgmgr-switch__thumb {
	transform: translateX(16px);
}

.sgmgr-location-meta-group[hidden],
.sgmgr-location-meta[hidden],
.sgmgr-location-meta__separator[hidden],
.sgmgr-location-meta__text[hidden],
.sgmgr-location-meta__editor[hidden] {
	display: none !important;
}

.sgmgr-location-meta-group:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.4;
}

.sgmgr-board-column__header h3 + .sgmgr-location-meta-group:not([hidden]) {
	margin-top: 0;
}

.sgmgr-location-meta:not([hidden]) {
	display: inline;
	vertical-align: baseline;
}

.sgmgr-location-meta--editing:not([hidden]) {
	display: inline-block;
	min-width: 6rem;
	max-width: 280px;
	flex: 1 1 auto;
}

.sgmgr-location-meta__separator:not([hidden]) {
	display: inline;
	color: var(--sgmgr-text-subtle);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	user-select: none;
}

.sgmgr-location-meta__text:not([hidden]) {
	display: inline;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--sgmgr-text-muted);
}

.sgmgr-location-meta__text--placeholder:not([hidden]) {
	font-style: italic;
	background-image: radial-gradient(circle, #c8c9cc 1px, transparent 1.5px);
	background-size: 8px 3px;
	background-position: left bottom;
	background-repeat: repeat-x;
	padding-bottom: 6px;
}

.sgmgr-location-meta__text--editable {
	cursor: pointer;
}

.sgmgr-location-meta__text--editable:hover,
.sgmgr-location-meta__text--editable:focus {
	color: var(--sgmgr-text);
	outline: none;
}

.sgmgr-location-meta__editor:not([hidden]) {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	vertical-align: baseline;
}

.sgmgr-wrap .sgmgr-location-meta__editor .sgmgr-location-meta__input,
.sgmgr-wrap .sgmgr-location-meta__editor input.sgmgr-location-meta__input {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 3px 28px 3px 6px;
	border: 1px solid var(--sgmgr-border);
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--sgmgr-text);
	box-sizing: border-box;
	overflow: visible;
	text-overflow: clip;
}

.sgmgr-location-meta__editor .sgmgr-location-meta__input:focus {
	outline: none;
	border-color: #c3c4c7;
	box-shadow: none;
}

.sgmgr-location-meta__save {
	position: absolute;
	top: 50%;
	right: 4px;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 1px solid #c5d9cb;
	border-radius: 3px;
	background-color: #e8f0ea;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234a7c59' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
	transform: translateY(-50%);
	cursor: pointer;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
}

.sgmgr-location-meta__save:hover,
.sgmgr-location-meta__save:focus {
	background-color: #d8efe2;
	border-color: #a8cdb5;
	outline: none;
}

.sgmgr-location-meta__save:focus-visible {
	outline: 2px solid #4a7c59;
	outline-offset: 1px;
}

.sgmgr-location-meta__save:disabled {
	opacity: 0.55;
	cursor: default;
}

.sgmgr-location-meta__save--success {
	background-color: #bfe3cc;
	border-color: #6fae84;
	animation: sgmgr-meta-save-flash 0.7s ease;
}

@keyframes sgmgr-meta-save-flash {
	0% {
		background-color: #e8f0ea;
		border-color: #c5d9cb;
		transform: translateY(-50%) scale(1);
	}

	35% {
		background-color: #bfe3cc;
		border-color: #4a7c59;
		transform: translateY(-50%) scale(1.12);
	}

	100% {
		background-color: #d8efe2;
		border-color: #6fae84;
		transform: translateY(-50%) scale(1);
	}
}

.sgmgr-btn--auto-assign {
	background: linear-gradient(135deg, #eef4fc 0%, #f3e8ff 100%);
	color: #5b4bb7;
	border-color: #d8ccf5;
}

.sgmgr-btn--auto-assign:hover,
.sgmgr-btn--auto-assign:focus {
	background: linear-gradient(135deg, #e4ecfa 0%, #eadcff 100%);
	border-color: #c4b3ef;
	color: #4a3ca0;
}

.sgmgr-btn--duplicates {
	background: linear-gradient(135deg, #fdf0f0 0%, #fce8e8 100%);
	color: #9b3b3b;
	border-color: #f0b4b4;
}

.sgmgr-btn--duplicates:hover,
.sgmgr-btn--duplicates:focus {
	background: linear-gradient(135deg, #fae0e0 0%, #f9d6d6 100%);
	border-color: #e89a9a;
	color: #7f2f2f;
}

.sgmgr-btn--custom-fields {
	background: linear-gradient(135deg, #e6f4fa 0%, #dceefb 100%);
	color: #2a6f8f;
	border-color: #a8d4ea;
}

.sgmgr-btn--custom-fields:hover,
.sgmgr-btn--custom-fields:focus {
	background: linear-gradient(135deg, #d8edf8 0%, #cce5f6 100%);
	border-color: #8fc4e3;
	color: #225a75;
}

.sgmgr-btn--sm {
	padding: 7px 14px;
	font-size: 13px;
}

.sgmgr-btn__icon {
	display: block;
	flex-shrink: 0;
}

.sgmgr-projects-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.sgmgr-projects-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.sgmgr-wrap .sgmgr-projects-toolbar__actions .sgmgr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	min-height: 36px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	box-shadow: none;
}

.sgmgr-projects-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	flex: 0 1 265px;
	min-width: 200px;
	max-width: 100%;
	width: 100%;
}

.sgmgr-projects-search__icon {
	grid-area: 1 / 1;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 14px;
	justify-self: start;
	align-self: center;
	color: var(--sgmgr-text-subtle);
	pointer-events: none;
}

.sgmgr-wrap .sgmgr-projects-search__input,
.sgmgr-wrap input.sgmgr-projects-search__input,
.sgmgr-wrap .sgmgr-board-search__input,
.sgmgr-wrap input.sgmgr-board-search__input {
	grid-area: 1 / 1;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	margin: 0;
	padding: 11px 38px 11px 42px;
	border: 1px solid var(--sgmgr-border);
	border-radius: var(--sgmgr-radius);
	background: var(--sgmgr-card-bg);
	box-shadow: var(--sgmgr-shadow);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--sgmgr-text);
	box-sizing: border-box;
	height: auto;
	min-height: 0;
}

.sgmgr-wrap .sgmgr-projects-search__input::placeholder,
.sgmgr-wrap .sgmgr-board-search__input::placeholder {
	color: var(--sgmgr-text-subtle);
}

.sgmgr-wrap .sgmgr-projects-search__input:focus,
.sgmgr-wrap .sgmgr-board-search__input:focus {
	outline: none;
	border-color: var(--sgmgr-text-muted);
	box-shadow: 0 0 0 1px var(--sgmgr-text-muted);
}

.sgmgr-wrap input[type="search"].sgmgr-projects-search__input::-webkit-search-decoration,
.sgmgr-wrap input[type="search"].sgmgr-projects-search__input::-webkit-search-cancel-button,
.sgmgr-wrap input[type="search"].sgmgr-board-search__input::-webkit-search-decoration,
.sgmgr-wrap input[type="search"].sgmgr-board-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.sgmgr-search-clear {
	grid-area: 1 / 1;
	z-index: 2;
	justify-self: end;
	align-self: center;
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sgmgr-text-subtle);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sgmgr-search-clear:hover {
	background: var(--sgmgr-border);
	color: var(--sgmgr-text);
}

.sgmgr-search-clear:focus-visible {
	outline: 2px solid var(--sgmgr-primary, #2271b1);
	outline-offset: 1px;
}

.sgmgr-search-clear[hidden] {
	display: none !important;
}

.sgmgr-projects-no-results[hidden] {
	display: none !important;
}

.sgmgr-projects-results {
	width: 100%;
}

.sgmgr-new-project-panel,
.sgmgr-open-private-project-panel {
	margin-bottom: 16px;
	width: 100%;
}

.sgmgr-new-project-panel[hidden],
.sgmgr-open-private-project-panel[hidden] {
	display: none !important;
}

.sgmgr-projects-list .sgmgr-project-card,
.sgmgr-projects-results .sgmgr-card.sgmgr-empty {
	transition: opacity 0.22s ease, filter 0.22s ease;
}

.sgmgr-tab-section--projects-panel-open .sgmgr-projects-results .sgmgr-project-card,
.sgmgr-tab-section--projects-panel-open .sgmgr-projects-results .sgmgr-card.sgmgr-empty,
.sgmgr-tab-section--new-project-open .sgmgr-projects-results .sgmgr-project-card,
.sgmgr-tab-section--new-project-open .sgmgr-projects-results .sgmgr-card.sgmgr-empty {
	opacity: 0.4;
	filter: blur(2.5px);
}

/* Empty state */
.sgmgr-empty {
	text-align: center;
	padding: 48px 24px;
}

.sgmgr-empty__icon {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--sgmgr-text-muted);
	margin-bottom: 16px;
}

.sgmgr-empty h2,
.sgmgr-empty h3 {
	margin: 0 0 8px;
	font-size: 20px;
}

.sgmgr-empty p {
	margin: 0 0 20px;
	color: var(--sgmgr-text-muted);
}

/* Forms */
.sgmgr-form-card {
	max-width: 560px;
}

.sgmgr-form-card.sgmgr-new-project-form-card,
.sgmgr-form-card.sgmgr-open-private-project-form-card {
	max-width: none;
	width: 100%;
	margin-bottom: 0;
	padding: 24px 28px;
	box-sizing: border-box;
}

.sgmgr-form-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.sgmgr-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.sgmgr-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.sgmgr-radio input {
	margin: 0;
}

.sgmgr-form__field--visibility {
	margin-bottom: 20px;
}

.sgmgr-visibility-options {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.sgmgr-visibility-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid var(--sgmgr-border, #d5d8dc);
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--sgmgr-text);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.sgmgr-visibility-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sgmgr-visibility-option:hover {
	border-color: #a7aaad;
	background: #f6f7f7;
}

.sgmgr-visibility-option:has(input:checked),
.sgmgr-visibility-option.is-selected {
	border-color: #2271b1;
	background: #e8f2fa;
	color: #135e96;
	box-shadow: inset 0 0 0 1px rgba(34, 113, 177, 0.12);
}

.sgmgr-visibility-option:has(input:focus-visible) {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.sgmgr-private-project-ack {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.45;
}

.sgmgr-private-project-hint {
	margin-top: 10px;
}

.sgmgr-project-access-panel .sgmgr-form__field:last-child {
	margin-bottom: 0;
}

.sgmgr-badge--private {
	background: #f0e8f8;
	color: #5b4b8a;
}

.sgmgr-btn--private-access {
	background: linear-gradient(135deg, #eef4fc 0%, #f3e8ff 100%);
	color: #5b4bb7;
	border-color: #d8ccf5;
}

.sgmgr-btn--private-access:hover,
.sgmgr-btn--private-access:focus {
	background: linear-gradient(135deg, #e4ecfa 0%, #eadcff 100%);
	border-color: #c4b3ef;
	color: #4a3ca0;
}

.sgmgr-modal__dialog--project-access {
	max-width: 520px;
}

.sgmgr-modal__dialog--wide {
	max-width: 640px;
}

.sgmgr-btn--copied {
	background: #e8f5e9;
	color: #1e4620;
	border-color: #9fd4a6;
}

.sgmgr-btn--copied:hover,
.sgmgr-btn--copied:focus {
	background: #dff1e1;
	border-color: #7fc48a;
	color: #1e4620;
}

.sgmgr-modal__title--with-icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sgmgr-modal__title-icon {
	display: block;
	flex-shrink: 0;
	color: #5b4b8a;
}

.sgmgr-form__field {
	margin-bottom: 20px;
}

.sgmgr-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}

.sgmgr-form__help {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--sgmgr-text-muted);
}

.sgmgr-form__intro {
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--sgmgr-text-muted);
}

.sgmgr-form__input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--sgmgr-border);
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.sgmgr-form__input:focus {
	border-color: var(--sgmgr-primary);
	box-shadow: 0 0 0 1px var(--sgmgr-primary);
	outline: none;
}

.sgmgr-form__actions {
	display: flex;
	gap: 12px;
}

.sgmgr-autocomplete {
	position: relative;
}

.sgmgr-autocomplete__list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 20;
	max-height: 220px;
	overflow-y: auto;
	margin: 0;
	padding: 4px 0;
	background: var(--sgmgr-card-bg);
	border: 1px solid var(--sgmgr-border);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sgmgr-autocomplete__option {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}

.sgmgr-autocomplete__option:hover,
.sgmgr-autocomplete__option.is-active {
	background: #eef4fb;
}

/* Tabs */
.sgmgr-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	padding: 12px 14px;
	background: var(--sgmgr-card-bg);
	border: 1px solid var(--sgmgr-border);
	border-radius: var(--sgmgr-radius);
}

.sgmgr-tabs__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	background: transparent;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sgmgr-text);
	text-decoration: none;
	cursor: pointer;
}

.sgmgr-tabs__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--sgmgr-text-muted);
}

.sgmgr-tabs__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.sgmgr-tabs__label {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.sgmgr-tabs__item:hover {
	color: var(--sgmgr-text);
	background: #f6f7f7;
}

.sgmgr-tabs__item:hover .sgmgr-tabs__icon {
	color: var(--sgmgr-text);
}

.sgmgr-tabs__item--active {
	background: #f0f6fc;
	color: var(--sgmgr-primary);
}

.sgmgr-tabs__item--active .sgmgr-tabs__label {
	color: var(--sgmgr-primary);
}

.sgmgr-tabs__item--active .sgmgr-tabs__icon {
	color: var(--sgmgr-primary);
}

.sgmgr-tabs__item--soon {
	opacity: 0.85;
}

/* Placeholder */
.sgmgr-placeholder h2 {
	margin: 0 0 8px;
	font-size: 18px;
}

.sgmgr-placeholder p {
	margin: 0;
	color: var(--sgmgr-text-muted);
}

/* Notices */
.sgmgr-notices {
	margin-bottom: 16px;
}

.sgmgr-notice {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-left: 4px solid var(--sgmgr-primary);
	border-radius: 4px;
	background: #fff;
	box-shadow: var(--sgmgr-shadow);
	margin-bottom: 8px;
	font-size: 14px;
}

.sgmgr-notice__message {
	flex: 1;
	min-width: 0;
}

.sgmgr-notice__dismiss {
	flex-shrink: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 0;
	margin: -2px 0 0;
	opacity: 0.55;
}

.sgmgr-notice__dismiss:hover,
.sgmgr-notice__dismiss:focus {
	opacity: 1;
}

.sgmgr-notice__dismiss:focus-visible {
	outline: 2px solid var(--sgmgr-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.sgmgr-notice--success {
	border-left-color: var(--sgmgr-finalized);
}

.sgmgr-notice--error {
	border-left-color: var(--sgmgr-danger);
}

.sgmgr-notice--warning {
	border-left-color: var(--sgmgr-draft);
}

.sgmgr-quick-flash {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.sgmgr-quick-flash__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.72);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.sgmgr-quick-flash--error .sgmgr-quick-flash__backdrop {
	background: rgba(252, 240, 240, 0.72);
}

.sgmgr-quick-flash.is-visible .sgmgr-quick-flash__backdrop {
	opacity: 1;
}

.sgmgr-quick-flash.is-hiding .sgmgr-quick-flash__backdrop {
	opacity: 0;
}

.sgmgr-quick-flash__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 160px;
	padding: 20px 28px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
	opacity: 0;
	transform: translateY(8px) scale(0.96);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.sgmgr-quick-flash.is-visible .sgmgr-quick-flash__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.sgmgr-quick-flash.is-hiding .sgmgr-quick-flash__dialog {
	opacity: 0;
	transform: translateY(-4px) scale(0.98);
}

.sgmgr-quick-flash__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e8f0ea;
	color: #4a7c59;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.sgmgr-quick-flash--error .sgmgr-quick-flash__icon {
	width: 40px;
	height: 40px;
	background: #fce8e8;
	color: var(--sgmgr-danger);
	font-size: inherit;
	font-weight: inherit;
}

.sgmgr-quick-flash__text {
	font-size: 16px;
	font-weight: 600;
	color: var(--sgmgr-text);
}

/* Panel header */
.sgmgr-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.sgmgr-panel-header h2 {
	margin: 0;
	font-size: 20px;
}

.sgmgr-panel-header__meta {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--sgmgr-text-muted);
}

/* Tables */
.sgmgr-table-card {
	padding: 0;
	overflow: hidden;
}

.sgmgr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.sgmgr-table th,
.sgmgr-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--sgmgr-border);
}

.sgmgr-table th {
	background: #f6f7f7;
	font-weight: 600;
	font-size: 13px;
}

.sgmgr-table-empty td {
	text-align: center;
	color: var(--sgmgr-text-muted);
	padding: 32px;
}

.sgmgr-table-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.sgmgr-table-leader {
	text-align: center;
}

.sgmgr-badge--note {
	background: #e8f4fd;
	color: #2271b1;
	margin-left: 6px;
	text-transform: none;
}

.sgmgr-badge--capacity {
	background: #f0f6fc;
	color: var(--sgmgr-primary);
	text-transform: none;
}

.sgmgr-badge--type,
.sgmgr-badge--gender {
	background: #f6f7f7;
	color: var(--sgmgr-text-muted);
	text-transform: none;
}

/* Locations */
.sgmgr-hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--sgmgr-text-muted);
}

.sgmgr-tab-section {
	margin-top: 28px;
}

.sgmgr-tab-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.sgmgr-tab-section__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.sgmgr-tab-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}

.sgmgr-tab-section__actions .sgmgr-btn,
.sgmgr-tab-section__actions .sgmgr-toggle-switch {
	white-space: nowrap;
}

#sgmgr-tab-attendees .sgmgr-tab-section__header {
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
}

#sgmgr-tab-attendees .sgmgr-tab-section__title {
	flex-shrink: 0;
}

.sgmgr-tab-section__title--with-count {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35em;
}

.sgmgr-list-count {
	font-weight: 600;
	color: var(--sgmgr-text-muted);
}

.sgmgr-list-count--filtered {
	color: var(--sgmgr-primary, #2271b1);
}

#sgmgr-tab-attendees .sgmgr-tab-section__actions {
	flex: 1 1 auto;
	flex-wrap: wrap;
	justify-content: flex-start;
}

#sgmgr-tab-attendees .sgmgr-tab-section__actions .sgmgr-btn,
#sgmgr-tab-attendees .sgmgr-tab-section__actions .sgmgr-toggle-switch {
	flex-shrink: 0;
}

#sgmgr-tab-attendees .sgmgr-tab-section__actions .sgmgr-form__input {
	width: auto;
	min-width: 160px;
	flex-shrink: 0;
}

#sgmgr-tab-layout .sgmgr-tab-section__header {
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
}

.sgmgr-locations-count-heading {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.sgmgr-locations-disabled-count {
	font-size: 16px;
	font-weight: 400;
	color: var(--sgmgr-text-muted);
}

#sgmgr-tab-layout .sgmgr-tab-section__title {
	flex-shrink: 0;
}

#sgmgr-tab-layout .sgmgr-tab-section__actions {
	flex: 1 1 auto;
	flex-wrap: wrap;
	justify-content: flex-start;
}

#sgmgr-tab-layout .sgmgr-tab-section__actions .sgmgr-btn,
#sgmgr-tab-layout .sgmgr-tab-section__actions .sgmgr-toggle-switch {
	flex-shrink: 0;
}

#sgmgr-tab-layout .sgmgr-tab-section__actions .sgmgr-form__input {
	width: auto;
	min-width: 160px;
	flex-shrink: 0;
}

.sgmgr-locations-filter-empty {
	margin: 12px 0 0;
	text-align: center;
	color: #646970;
}

.sgmgr-table-filter-empty td {
	text-align: center;
	color: var(--sgmgr-text-muted);
	padding: 32px;
}

.sgmgr-attendees-table--sortable .sgmgr-attendees-table__column--draggable {
	white-space: nowrap;
}

.sgmgr-table-column-handle {
	border: 0;
	background: transparent;
	color: var(--sgmgr-text-muted);
	cursor: grab;
	font-size: 12px;
	line-height: 1;
	margin-right: 4px;
	padding: 0 2px;
	vertical-align: middle;
}

.sgmgr-table-column-handle:active {
	cursor: grabbing;
}

.sgmgr-attendees-table__column--ghost {
	opacity: 0.55;
}

.sgmgr-attendees-table__column-label {
	vertical-align: middle;
}

.sgmgr-attendees-table__sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	vertical-align: middle;
}

.sgmgr-attendees-table__sort:hover .sgmgr-attendees-table__column-label {
	text-decoration: underline;
}

.sgmgr-attendees-table__sort:focus-visible {
	outline: 2px solid var(--sgmgr-primary, #2271b1);
	outline-offset: 2px;
	border-radius: 3px;
}

.sgmgr-sort-indicator {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	line-height: 0.6;
	flex-shrink: 0;
}

.sgmgr-sort-indicator__arrow {
	font-size: 8px;
	line-height: 1;
	color: var(--sgmgr-text-muted, #8a8f98);
	opacity: 0.4;
}

.sgmgr-attendees-table__column--sorted-asc .sgmgr-sort-indicator__arrow--up,
.sgmgr-attendees-table__column--sorted-desc .sgmgr-sort-indicator__arrow--down {
	color: var(--sgmgr-primary, #2271b1);
	opacity: 1;
}

.sgmgr-locations-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.sgmgr-locations-list--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(360px, 45vh);
}

.sgmgr-locations-list--empty .sgmgr-location-card--empty {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	margin: 0;
}

.sgmgr-locations-list--empty .sgmgr-location-card--empty p {
	margin: 0;
}

.sgmgr-location-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	min-width: 0;
	background: #fff;
	border: none;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.sgmgr-location-card[hidden],
.sgmgr-location-card.is-filter-hidden {
	display: none !important;
}

.sgmgr-locations-list .sgmgr-location-card .sgmgr-board-column__header {
	padding: 20px 48px 16px 22px;
	background: #fff;
	border-bottom: none;
}

.sgmgr-locations-list .sgmgr-location-card .sgmgr-board-column__header h3 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

.sgmgr-location-card__footer {
	padding: 14px 22px 18px;
	background: #fff;
}

.sgmgr-location-card__action-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-start;
}

.sgmgr-leader-confirm {
	--sgmgr-confirm-index: 0;
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	margin: 0 22px 14px;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.08),
		0 0 0 1px rgba(0, 0, 0, 0.04);
}

.sgmgr-leader-confirm[data-status='confirmed'] {
	--sgmgr-confirm-index: 1;
}

.sgmgr-leader-confirm[data-status='declined'] {
	--sgmgr-confirm-index: 2;
}

.sgmgr-leader-confirm__indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc((100% - 8px) / 3);
	border-radius: 999px;
	background: #fcf0d1;
	transform: translateX(calc(var(--sgmgr-confirm-index) * 100%));
	transition: transform 0.22s ease, background-color 0.22s ease;
	z-index: 0;
}

.sgmgr-leader-confirm[data-status='pending'] .sgmgr-leader-confirm__indicator {
	background: #fcf0d1;
}

.sgmgr-leader-confirm[data-status='confirmed'] .sgmgr-leader-confirm__indicator {
	background: #cfead8;
}

.sgmgr-leader-confirm[data-status='declined'] .sgmgr-leader-confirm__indicator {
	background: #f6d4d4;
}

.sgmgr-leader-confirm__option {
	position: relative;
	z-index: 1;
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--sgmgr-text-muted, #646970);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 7px 10px;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.sgmgr-leader-confirm__option:hover:not(.is-active):not(:disabled) {
	color: var(--sgmgr-text, #1d2327);
}

.sgmgr-leader-confirm__option:focus-visible {
	outline: 2px solid var(--sgmgr-primary, #2271b1);
	outline-offset: 1px;
}

.sgmgr-leader-confirm__option.is-active {
	color: var(--sgmgr-text, #1d2327);
}

.sgmgr-leader-confirm[data-status='pending'] .sgmgr-leader-confirm__option--pending.is-active {
	color: #8a6d1d;
}

.sgmgr-leader-confirm[data-status='confirmed'] .sgmgr-leader-confirm__option--confirmed.is-active {
	color: #2f6f4a;
}

.sgmgr-leader-confirm[data-status='declined'] .sgmgr-leader-confirm__option--declined.is-active {
	color: #9b3b3b;
}

.sgmgr-leader-confirm:has(.sgmgr-leader-confirm__option:disabled) {
	opacity: 0.72;
}

.sgmgr-leader-confirm__option:disabled {
	cursor: default;
}

.sgmgr-location-card--confirm-declined .sgmgr-board-column__header {
	opacity: 0.6;
}

.sgmgr-location-card--inactive .sgmgr-board-column__header {
	opacity: 0.52;
}

.sgmgr-location-card--inactive .sgmgr-board-column__header h3,
.sgmgr-location-card--inactive .sgmgr-badge {
	color: var(--sgmgr-text-muted);
}

.sgmgr-location-card--inactive .sgmgr-badge--capacity {
	background: #f6f7f7;
}

.sgmgr-location-card--inactive .sgmgr-location-drag-handle {
	opacity: 0.52;
}

.sgmgr-location-card--inactive .sgmgr-edit-location,
.sgmgr-location-card--inactive .sgmgr-delete-location {
	opacity: 0.45;
}

.sgmgr-location-card--inactive .sgmgr-delete-location {
	background: #fff;
	color: var(--sgmgr-text);
	border-color: var(--sgmgr-border);
}

.sgmgr-location-card--inactive .sgmgr-delete-location:hover,
.sgmgr-location-card--inactive .sgmgr-delete-location:focus {
	background: #f6f7f7;
	border-color: #8c8f94;
	color: var(--sgmgr-text);
}

.sgmgr-location-card--ghost {
	opacity: 0.45;
}

.sgmgr-location-card--drag {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sgmgr-location-drag-handle {
	position: absolute;
	top: 18px;
	right: 16px;
	z-index: 1;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	color: var(--sgmgr-text-muted);
	font-size: 16px;
	line-height: 1;
	cursor: grab;
	padding: 0;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sgmgr-location-drag-handle:hover {
	background: #f0f0f1;
	color: var(--sgmgr-text);
}

.sgmgr-location-drag-handle:active {
	cursor: grabbing;
}

.sgmgr-location-card__merge-header {
	cursor: grab;
}

.sgmgr-location-card__merge-header:active {
	cursor: grabbing;
}

.sgmgr-location-card--merge-dragging {
	opacity: 0.55;
}

.sgmgr-location-card--merge-target {
	box-shadow:
		0 0 0 1px rgba(72, 157, 104, 0.28),
		0 0 18px rgba(72, 157, 104, 0.42),
		0 0 36px rgba(72, 157, 104, 0.18),
		0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1200px) {
	.sgmgr-locations-list:not(.sgmgr-locations-list--empty) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.sgmgr-locations-list:not(.sgmgr-locations-list--empty) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.sgmgr-locations-list:not(.sgmgr-locations-list--empty) {
		grid-template-columns: 1fr;
	}

	.sgmgr-location-card__action-buttons {
		justify-content: flex-start;
	}
}

.sgmgr-template-panel {
	margin-bottom: 24px;
	padding: 24px 28px;
}

.sgmgr-template-panel__header {
	margin-bottom: 22px;
}

.sgmgr-template-panel__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.sgmgr-template-panel__intro {
	margin: 0;
	font-size: 13px;
	color: var(--sgmgr-text-muted);
	line-height: 1.5;
}

.sgmgr-template-panel__body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sgmgr-template-panel__section + .sgmgr-template-panel__section--save {
	margin-top: 28px;
}

.sgmgr-template-panel__label {
	display: block;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sgmgr-text-subtle);
}

.sgmgr-template-panel__empty {
	margin: 0;
	padding: 4px 0;
	font-size: 14px;
	color: var(--sgmgr-text-muted);
}

.sgmgr-template-panel__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.sgmgr-template-panel__field {
	box-sizing: border-box;
	flex: 0 0 360px;
	width: 360px;
	max-width: 100%;
	min-width: 0;
}

select.sgmgr-template-panel__field {
	width: 360px;
	max-width: 100%;
}

.sgmgr-template-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
}

.sgmgr-template-panel__actions .sgmgr-btn {
	white-space: nowrap;
}

.sgmgr-template-panel__section .sgmgr-form__help {
	margin: 10px 0 0;
	line-height: 1.45;
}

@media (max-width: 782px) {
	.sgmgr-template-panel__row {
		flex-direction: column;
		align-items: stretch;
	}

	.sgmgr-template-panel__field,
	select.sgmgr-template-panel__field {
		flex: 1 1 auto;
		width: 100%;
	}
}

.sgmgr-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sgmgr-inline-form .sgmgr-form__input {
	flex: 1;
	min-width: 160px;
}

.sgmgr-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}

.sgmgr-form--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.sgmgr-form__field--full {
	grid-column: 1 / -1;
}

.sgmgr-form__field--checkbox {
	display: flex;
	align-items: flex-end;
}

.sgmgr-form__field--leader {
	margin-bottom: 4px;
}

.sgmgr-leader-panel {
	background: #f6f7f7;
	border: none;
	border-radius: 6px;
	padding: 14px 16px;
}

.sgmgr-leaders-intro {
	margin-bottom: 20px;
	padding: 24px;
	max-width: none;
}

.sgmgr-leaders-intro__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px 16px;
	align-items: start;
}

.sgmgr-leaders-intro__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sgmgr-leaders-intro__icon {
	flex: 0 0 40px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 1px;
	color: var(--sgmgr-text-subtle);
}

.sgmgr-leaders-intro__icon svg {
	width: 33px;
	height: 33px;
	display: block;
}

.sgmgr-leaders-intro__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.sgmgr-leaders-intro__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sgmgr-text);
}

.sgmgr-leaders-intro__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--sgmgr-text-muted);
}

@media (max-width: 1400px) {
	.sgmgr-leaders-intro__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.sgmgr-leaders-intro__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sgmgr-leaders-intro__grid {
		grid-template-columns: 1fr;
	}
}

.sgmgr-form__field--co-leaders {
	width: fit-content;
	max-width: 100%;
}

.sgmgr-co-leader-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: fit-content;
	max-width: min(100%, 400px);
}

.sgmgr-co-leader-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	background: #f6f7f7;
	border-radius: 6px;
	width: 100%;
}

.sgmgr-co-leader-row__name {
	font-weight: 600;
	min-width: 0;
	word-break: break-word;
	flex: 1 1 auto;
}

.sgmgr-co-leader-row__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.sgmgr-unlink-co-leader__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.sgmgr-unlink-co-leader__icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.sgmgr-checkbox--leader {
	gap: 10px;
	font-size: 16px;
}

.sgmgr-leader-panel__label {
	font-weight: 700;
}

.sgmgr-leader-panel__help {
	margin: 2px 0 0 32px;
}

.sgmgr-attendee-leader-toggle {
	justify-content: center;
	margin: 0;
}

.sgmgr-attendee-leader-toggle input[type="checkbox"],
.sgmgr-checkbox--leader input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	flex: 0 0 auto;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	background-color: #f6f7f7;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	cursor: pointer;
}

.sgmgr-attendee-leader-toggle input[type="checkbox"] {
	width: 20px;
	height: 20px;
}

.sgmgr-checkbox--leader input[type="checkbox"] {
	width: 22px;
	height: 22px;
}

.sgmgr-attendee-leader-toggle input[type="checkbox"]:checked,
.sgmgr-checkbox--leader input[type="checkbox"]:checked {
	background-color: var(--sgmgr-primary);
	border-color: var(--sgmgr-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.sgmgr-attendee-leader-toggle input[type="checkbox"]:focus-visible,
.sgmgr-checkbox--leader input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--sgmgr-primary);
	outline-offset: 2px;
}

.sgmgr-import-card h3,
.sgmgr-gf-placeholder h3 {
	margin: 0 0 12px;
}

.sgmgr-import-card .sgmgr-subtitle {
	margin: 0 0 20px;
}

.sgmgr-import-card .sgmgr-form__field {
	margin-bottom: 24px;
}

.sgmgr-import-card .sgmgr-form__actions {
	margin-top: 4px;
}

.sgmgr-file-input {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.sgmgr-file-input__button {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 11px 20px;
	border: 1px solid var(--sgmgr-border);
	border-radius: 4px;
	background: #f6f7f7;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--sgmgr-text);
	cursor: pointer;
}

.sgmgr-file-input__button:hover,
.sgmgr-file-input__button:focus {
	background: #f0f0f1;
	border-color: var(--sgmgr-text-muted);
	outline: none;
}

.sgmgr-file-input__name {
	font-size: 14px;
	line-height: 1.4;
	color: var(--sgmgr-text-muted);
}

.sgmgr-manual-entry-card h3 {
	margin-bottom: 16px;
}

.sgmgr-csv-mapping {
	margin: 16px 0;
}

.sgmgr-mapping-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.sgmgr-empty--compact {
	padding: 24px;
	text-align: center;
}

/* Templates page */
.sgmgr-templates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.sgmgr-template-card__title {
	margin: 0 0 8px;
	font-size: 18px;
}

.sgmgr-template-card__meta {
	margin: 0 0 16px;
	color: var(--sgmgr-text-muted);
	font-size: 13px;
}

.sgmgr-template-card__actions {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.sgmgr-template-card__load {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sgmgr-template-location-row {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--sgmgr-border);
}

.sgmgr-template-location-row__main {
	display: grid;
	grid-template-columns: 1fr 80px 100px 36px;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.sgmgr-template-slots {
	margin-top: 4px;
}

.sgmgr-slots-editor__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.sgmgr-slots-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sgmgr-slot-row {
	display: grid;
	grid-template-columns: 1fr 140px 36px;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
}

.sgmgr-board-column__room-types {
	margin: 0 0 12px;
	font-size: 12px;
	color: var(--sgmgr-board-muted);
	line-height: 1.45;
}

/* Modal */
.sgmgr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sgmgr-modal[hidden] {
	display: none;
}

.sgmgr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(2.5px);
	-webkit-backdrop-filter: blur(2.5px);
}

.sgmgr-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: var(--sgmgr-radius);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow: auto;
	z-index: 1;
}

.sgmgr-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--sgmgr-border);
}

.sgmgr-modal__header h2 {
	margin: 0;
	font-size: 18px;
}

.sgmgr-modal__close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--sgmgr-text-muted);
	line-height: 1;
	padding: 0;
}

.sgmgr-modal__body {
	padding: 24px;
}

.sgmgr-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 16px 24px;
	border-top: 1px solid var(--sgmgr-border);
}

#sgmgr-private-project-modal .sgmgr-modal__body {
	padding-bottom: 12px;
}

#sgmgr-private-project-modal .sgmgr-modal__body .sgmgr-form__field:last-child {
	margin-bottom: 0;
}

#sgmgr-private-project-modal .sgmgr-modal__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	border-top: none;
	padding: 8px 24px 30px;
}

#sgmgr-private-project-modal .sgmgr-private-project-modal-ack {
	justify-content: center;
	text-align: center;
	margin-top: 0;
	margin-bottom: 20px;
	width: 100%;
}

#sgmgr-private-project-modal .sgmgr-modal__footer .sgmgr-btn--primary {
	margin-bottom: 12px;
}

/* Source tabs (Attendees import) */
.sgmgr-source-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	padding: 12px 14px;
	background: var(--sgmgr-card-bg);
	border: 1px solid var(--sgmgr-border);
	border-radius: var(--sgmgr-radius);
	flex-wrap: wrap;
}

.sgmgr-source-tabs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: var(--sgmgr-text-muted);
	cursor: pointer;
}

.sgmgr-source-tabs__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sgmgr-source-tabs__icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.sgmgr-source-tabs__label {
	line-height: 1.2;
}

.sgmgr-source-tabs__item:hover {
	color: var(--sgmgr-primary);
}

.sgmgr-source-tabs__item--active {
	background: #f0f6fc;
	color: var(--sgmgr-primary);
}

.sgmgr-source-panel {
	margin-bottom: 24px;
}

/* GF Wizard */
.sgmgr-gf-wizard {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	max-width: 100%;
}

.sgmgr-gf-wizard > .sgmgr-wizard-steps,
.sgmgr-gf-wizard > .sgmgr-wizard-panel--compact {
	grid-column: 1;
}

.sgmgr-gf-wizard > .sgmgr-wizard-panel:not(.sgmgr-wizard-panel--compact) {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
}

.sgmgr-wizard-panel--compact {
	max-width: 100%;
	min-width: 0;
}

.sgmgr-wizard-panel--compact .sgmgr-form__field {
	margin-bottom: 16px;
}

.sgmgr-wizard-panel--compact .sgmgr-form__input {
	width: 100%;
	box-sizing: border-box;
}

.sgmgr-wizard-steps {
	display: flex;
	align-items: flex-start;
	gap: 0;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.sgmgr-wizard-step {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	min-width: 0;
	padding: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--sgmgr-text-muted);
}

.sgmgr-wizard-step__content {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.sgmgr-wizard-step:not(:last-child)::after {
	content: '';
	flex: 0 0 28px;
	width: 28px;
	height: 2px;
	margin: 13px 10px 0;
	align-self: flex-start;
	background: var(--sgmgr-border);
	border-radius: 1px;
}

.sgmgr-wizard-step--complete:not(:last-child)::after {
	background: var(--sgmgr-primary);
}

.sgmgr-wizard-step__marker {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 2px solid var(--sgmgr-border);
	border-radius: 50%;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--sgmgr-text-muted);
}

.sgmgr-wizard-step__label {
	font-weight: 500;
	line-height: 1.3;
	color: var(--sgmgr-text-muted);
}

.sgmgr-wizard-step--active .sgmgr-wizard-step__marker {
	border-color: var(--sgmgr-primary);
	background: var(--sgmgr-primary);
	color: #fff;
}

.sgmgr-wizard-step--active .sgmgr-wizard-step__label {
	color: var(--sgmgr-primary);
	font-weight: 600;
}

.sgmgr-wizard-step--complete .sgmgr-wizard-step__marker {
	border-color: var(--sgmgr-primary);
	background: #f0f6fc;
	color: var(--sgmgr-primary);
}

.sgmgr-wizard-step--complete .sgmgr-wizard-step__label {
	color: var(--sgmgr-text);
}

@media (max-width: 782px) {
	.sgmgr-wizard-steps {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.sgmgr-wizard-step {
		flex: none;
	}

	.sgmgr-wizard-step:not(:last-child)::after {
		display: none;
	}
}

#sgmgr-gf-step-2 .sgmgr-subtitle {
	margin: 0 0 20px;
}

#sgmgr-gf-step-2 .sgmgr-gf-mapping {
	margin-bottom: 24px;
}

#sgmgr-gf-step-2 .sgmgr-form__actions {
	margin-top: 0;
	padding-top: 4px;
}

#sgmgr-gf-step-3 .sgmgr-subtitle {
	margin: 0 0 24px;
	max-width: 720px;
	line-height: 1.55;
}

#sgmgr-gf-step-3 .sgmgr-custom-fields-actions {
	margin-bottom: 20px;
}

#sgmgr-gf-step-3 .sgmgr-btn--import-gf-field {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(42, 111, 143, 0.14);
}

#sgmgr-gf-step-3 .sgmgr-form__actions {
	margin-top: 24px;
}

.sgmgr-btn--wizard-skip {
	background: linear-gradient(135deg, #fff8e6 0%, #fcf0d1 100%);
	color: #8a6d1d;
	border-color: #e8d9a8;
}

.sgmgr-btn--wizard-skip:hover:not(:disabled),
.sgmgr-btn--wizard-skip:focus:not(:disabled) {
	background: linear-gradient(135deg, #fff1cc 0%, #f8e5b8 100%);
	border-color: #ddc68a;
	color: #735f18;
}

.sgmgr-btn--wizard-skip:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sgmgr-gf-mapping {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sgmgr-gf-mapping-group {
	padding: 18px 20px;
	background: #f6f7f7;
	border: 1px solid var(--sgmgr-border, #dcdcde);
	border-radius: var(--sgmgr-radius, 6px);
}

.sgmgr-gf-mapping-group__title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--sgmgr-text, #1d2327);
}

.sgmgr-gf-mapping-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px 16px;
}

.sgmgr-gf-map-combobox {
	position: relative;
}

.sgmgr-gf-map-options {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 220px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--sgmgr-border, #dcdcde);
	border-radius: var(--sgmgr-radius, 6px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sgmgr-gf-map-option {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.sgmgr-gf-map-option:hover,
.sgmgr-gf-map-option--active {
	background: #f0f6fc;
}

.sgmgr-gf-map-option--skip {
	color: var(--sgmgr-text-muted);
	font-style: italic;
}

.sgmgr-preview-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.sgmgr-stat-card {
	background: #f6f7f7;
	border-radius: var(--sgmgr-radius);
	padding: 16px;
	text-align: center;
}

.sgmgr-stat-card--success {
	background: #d5f5e0;
}

.sgmgr-stat-card--warning {
	background: #fcf0d1;
}

.sgmgr-stat-card__label {
	display: block;
	font-size: 12px;
	color: var(--sgmgr-text-muted);
	margin-bottom: 4px;
}

.sgmgr-stat-card__value {
	display: block;
	font-size: 28px;
	font-weight: 700;
}

.sgmgr-preview-details {
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--sgmgr-text-muted);
}

/* Group assignments board */
.sgmgr-wrap:has(#sgmgr-tab-board) {
	max-width: none;
}

.sgmgr-board-toolbar {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	min-width: 0;
}

.sgmgr-board-toolbar__filters,
.sgmgr-board-toolbar__actions {
	display: contents;
}

.sgmgr-board-toolbar__actions .sgmgr-btn,
.sgmgr-board-toolbar__actions .sgmgr-toggle-switch {
	white-space: nowrap;
	flex-shrink: 0;
}

.sgmgr-board-toolbar__filters .sgmgr-btn {
	flex-shrink: 0;
}

.sgmgr-board-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	flex: 1 1 170px;
	min-width: 150px;
	max-width: 270px;
	width: 100%;
}

.sgmgr-board-search__icon {
	grid-area: 1 / 1;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 14px;
	justify-self: start;
	align-self: center;
	color: var(--sgmgr-text-subtle);
	pointer-events: none;
}

.sgmgr-board-toolbar__filters .sgmgr-form__input {
	width: auto;
	min-width: 160px;
	flex-shrink: 0;
}

.sgmgr-board-church-legend {
	margin-bottom: 16px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--sgmgr-border);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.03);
}

.sgmgr-board-church-legend[hidden] {
	display: none !important;
}

.sgmgr-board-church-legend__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.sgmgr-board-church-legend__items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.sgmgr-board-church-legend__empty {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--sgmgr-text-muted);
}

.sgmgr-board-church-legend__swatch {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.sgmgr-board-church-legend__swatch--gender {
	gap: 6px;
}

.sgmgr-board-church-legend__gender-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 16px;
	height: 19px;
}

.sgmgr-board-church-legend__gender-icon svg {
	display: block;
	width: 16px;
	height: 19px;
}

.sgmgr-board-loading {
	padding: 40px;
	text-align: center;
	color: var(--sgmgr-text-muted);
}

.sgmgr-assignment-board {
	--sgmgr-board-ink: #3c434a;
	--sgmgr-board-muted: #646970;
	--sgmgr-board-rule: #eceef0;
	--sgmgr-board-fill: #f0f1f3;
	--sgmgr-board-pool: #f7f8fa;
	padding-bottom: 16px;
}

.sgmgr-assignment-board--filtering .sgmgr-board-column {
	transition: opacity 0.22s ease, filter 0.22s ease;
}

.sgmgr-assignment-board--filtering .sgmgr-board-column:not(.sgmgr-board-column--filter-match) {
	opacity: 0.4;
	filter: blur(2.5px);
}

.sgmgr-assignment-board--filtering .sgmgr-board-column--unassigned,
.sgmgr-board-is-dragging .sgmgr-board-column--unassigned {
	opacity: 1;
	filter: none;
}

.sgmgr-assignment-board--filtering.sgmgr-board-drag-outside-unassigned .sgmgr-board-column:not(.sgmgr-board-column--unassigned) {
	opacity: 1;
	filter: none;
}

.sgmgr-assignment-board .sgmgr-badge--capacity {
	background: #e3f0fa;
	color: #135e96;
	font-weight: 600;
	text-transform: none;
}

.sgmgr-assignment-board .sgmgr-badge--gender,
.sgmgr-assignment-board .sgmgr-badge--type {
	background: #f6f7f7;
	color: var(--sgmgr-text-muted);
	font-weight: 600;
	text-transform: none;
}

.sgmgr-assignment-board .sgmgr-badge--gender-male {
	background: #e7f0fb;
	color: #135e96;
}

.sgmgr-assignment-board .sgmgr-badge--gender-female {
	background: #fdeff4;
	color: #9b4068;
}

.sgmgr-assignment-board .sgmgr-badge--gender-any {
	background: #fff;
	color: var(--sgmgr-text-muted);
	box-shadow: inset 0 0 0 1px var(--sgmgr-board-rule);
}

/* Reserved: board gender toggle (Any/Male/Female) — not used in UI as of 1.3.2 */
.sgmgr-group-gender-toggle {
	--sgmgr-gender-index: 0;
	position: relative;
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	min-width: 168px;
	padding: 3px;
	border-radius: 999px;
	background: #fff;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.08),
		0 0 0 1px rgba(0, 0, 0, 0.04);
}

.sgmgr-group-gender-toggle[data-active='male'] {
	--sgmgr-gender-index: 1;
}

.sgmgr-group-gender-toggle[data-active='female'] {
	--sgmgr-gender-index: 2;
}

.sgmgr-group-gender-toggle__indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc((100% - 8px) / 3);
	border-radius: 999px;
	background: #e8ece9;
	transform: translateX(calc(var(--sgmgr-gender-index) * 100%));
	transition: transform 0.22s ease, background-color 0.22s ease;
	z-index: 0;
}

.sgmgr-group-gender-toggle[data-active='any'] .sgmgr-group-gender-toggle__indicator {
	background: #e8ece9;
}

.sgmgr-group-gender-toggle[data-active='male'] .sgmgr-group-gender-toggle__indicator {
	background: #e7f0fb;
}

.sgmgr-group-gender-toggle[data-active='female'] .sgmgr-group-gender-toggle__indicator {
	background: #fdeff4;
}

.sgmgr-group-gender-toggle__option {
	position: relative;
	z-index: 1;
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--sgmgr-text-subtle);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 8px;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.sgmgr-group-gender-toggle__option:hover:not(.is-active):not(:disabled) {
	color: var(--sgmgr-text-muted);
}

.sgmgr-group-gender-toggle__option:focus-visible {
	outline: 2px solid var(--sgmgr-primary);
	outline-offset: 1px;
}

.sgmgr-group-gender-toggle__option.is-active {
	color: var(--sgmgr-text);
}

.sgmgr-group-gender-toggle[data-active='male'] .sgmgr-group-gender-toggle__option--male.is-active {
	color: #135e96;
}

.sgmgr-group-gender-toggle[data-active='female'] .sgmgr-group-gender-toggle__option--female.is-active {
	color: #9b4068;
}

.sgmgr-group-gender-toggle:has(.sgmgr-group-gender-toggle__option:disabled) {
	opacity: 0.72;
}

.sgmgr-group-gender-toggle__option:disabled {
	cursor: wait;
}

.sgmgr-attendee-card--gender-conflict {
	background: #fff4f4 !important;
	box-shadow: inset 0 0 0 1px #f1c0c0;
}

.sgmgr-attendee-card--gender-conflict:hover {
	background: #fdeeee !important;
	box-shadow: inset 0 0 0 1px #e8b0b0, 0 2px 8px rgba(138, 36, 36, 0.08);
}

.sgmgr-attendee-group__cards .sgmgr-attendee-card--gender-conflict {
	background: #fff4f4 !important;
	box-shadow: inset 0 0 0 1px #f1c0c0;
}

.sgmgr-attendee-card--gender-conflict .sgmgr-attendee-card__name,
.sgmgr-attendee-card--gender-conflict .sgmgr-attendee-card__meta {
	padding-right: 52px;
}

.sgmgr-attendee-card__gender-dismiss {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	z-index: 2;
	appearance: none;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.92);
	color: #8a2424;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	padding: 4px 8px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 0 0 1px rgba(241, 192, 192, 0.9);
}

.sgmgr-attendee-card__gender-dismiss:hover:not(:disabled) {
	background: #fff;
	color: #6f1d1d;
}

.sgmgr-attendee-card__gender-dismiss:disabled {
	opacity: 0.65;
	cursor: wait;
}

.sgmgr-attendee-card--gender-conflict:has(.sgmgr-attendee-card__link) .sgmgr-attendee-card__gender-dismiss {
	right: 36px;
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card--gender-conflict,
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group__cards .sgmgr-attendee-card--gender-conflict {
	background: #fff4f4 !important;
	border-color: #f1c0c0;
}

.sgmgr-assignment-board .sgmgr-badge--gender-count {
	background: #fcf0d1;
	color: #8a6d1d;
	font-weight: 600;
	text-transform: none;
	padding-top: 4px;
	padding-bottom: 4px;
}

.sgmgr-badge-gender-count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.sgmgr-badge-gender-count__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1;
}

.sgmgr-badge-gender-count__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 14px;
	height: 17px;
}

.sgmgr-badge-gender-count__icon svg {
	display: block;
	width: 14px;
	height: 17px;
}

.sgmgr-badge-gender-count__value {
	font-variant-numeric: tabular-nums;
}

.sgmgr-assignment-board__layout {
	display: flex;
	flex-direction: row;
	gap: 16px;
	align-items: flex-start;
	min-width: 0;
}

.sgmgr-board-sidebar {
	--sgmgr-board-sticky-top: 16px;
	flex: 0 0 280px;
	width: 280px;
	min-width: 0;
	position: sticky;
	top: var(--sgmgr-board-sticky-top);
	align-self: flex-start;
	z-index: 20;
}

body.admin-bar .sgmgr-board-sidebar {
	--sgmgr-board-sticky-top: 58px;
}

@media screen and (min-width: 783px) {
	body.admin-bar .sgmgr-board-sidebar {
		--sgmgr-board-sticky-top: 48px;
	}
}

.sgmgr-board-sidebar .sgmgr-board-column {
	width: 100%;
	max-height: calc(100vh - var(--sgmgr-board-sticky-top) - 16px);
}

.sgmgr-board-groups-grid {
	--sgmgr-board-group-gap: 20px;
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(
			min(100%, max(220px, calc((100% - (3 * var(--sgmgr-board-group-gap))) / 4))),
			1fr
		)
	);
	gap: var(--sgmgr-board-group-gap);
	align-items: stretch;
}

.sgmgr-board-empty {
	margin-bottom: 12px;
}

.sgmgr-board-empty p {
	margin: 0;
	color: var(--sgmgr-text-muted);
}

.sgmgr-board-column {
	min-height: 0;
	max-height: 75vh;
	background: #fff;
	border: none;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.sgmgr-board-groups-grid > .sgmgr-board-column {
	height: min(600px, 75vh);
	max-height: 75vh;
}

.sgmgr-board-column--unassigned .sgmgr-board-column__body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	background: var(--sgmgr-board-pool);
}

.sgmgr-board-column--unassigned.sgmgr-board-column--empty .sgmgr-board-column__body {
	min-height: 260px;
}

.sgmgr-board-column--unassigned.sgmgr-board-column--empty .sgmgr-board-column__cards {
	min-height: 260px;
}

.sgmgr-board-column--unassigned.sgmgr-board-column--empty.sgmgr-board-column--drop-hover .sgmgr-board-column__body {
	background: #eef1f5;
}

.sgmgr-board-column--unassigned.sgmgr-board-column--drop-hover .sgmgr-board-column__body {
	background: #eef1f5;
}

.sgmgr-board-column--unassigned.sgmgr-board-column--empty .sgmgr-board-drop-overlay {
	display: flex;
	padding: 56px 28px;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.sgmgr-board-column--unassigned.sgmgr-board-column--empty.sgmgr-board-column--drop-hover .sgmgr-board-drop-overlay {
	display: flex;
}

.sgmgr-board-column--over {
	box-shadow:
		0 0 0 1px rgba(214, 54, 56, 0.28),
		0 0 10px rgba(214, 54, 56, 0.14),
		0 0 22px rgba(214, 54, 56, 0.1),
		0 4px 14px rgba(214, 54, 56, 0.08);
}

.sgmgr-board-column--over .sgmgr-badge--capacity {
	background: #fce8e8;
	color: #b32d2e;
}

.sgmgr-board-column--warn {
	box-shadow: 0 0 0 1px #e0c878, 0 4px 14px rgba(0, 0, 0, 0.04);
}

.sgmgr-board-column--over.sgmgr-board-column--warn {
	box-shadow:
		0 0 0 1px rgba(214, 54, 56, 0.28),
		0 0 10px rgba(214, 54, 56, 0.14),
		0 0 22px rgba(214, 54, 56, 0.1),
		0 4px 14px rgba(214, 54, 56, 0.08);
}

.sgmgr-board-column__header {
	padding: 16px 18px 14px;
	background: #fff;
	border-bottom: 1px solid var(--sgmgr-board-rule);
}

.sgmgr-board-column__header h3 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.sgmgr-board-column__header .sgmgr-location-meta-group:not([hidden]) {
	margin-bottom: 10px;
	font-size: 14px;
}

.sgmgr-board-column__controls,
.sgmgr-board-column__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.sgmgr-board-column__controls {
	margin-top: 2px;
}

.sgmgr-board-column__count {
	font-size: 13px;
	font-weight: 600;
	color: var(--sgmgr-text-muted);
}

.sgmgr-board-column__count--filtered {
	color: var(--sgmgr-primary, #2271b1);
}

.sgmgr-board-column__body {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 0;
	overflow-y: auto;
	padding: 6px 0 16px;
	background: #fff;
	position: relative;
}

.sgmgr-board-column--empty .sgmgr-board-column__body {
	min-height: 140px;
}

.sgmgr-board-groups-grid > .sgmgr-board-column--empty .sgmgr-board-column__body {
	min-height: 0;
}

.sgmgr-board-drop-overlay {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 28px 24px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(2.5px);
	-webkit-backdrop-filter: blur(2.5px);
	transition: backdrop-filter 0.22s ease, background 0.22s ease, opacity 0.22s ease;
	pointer-events: none;
}

.sgmgr-board-column--empty .sgmgr-board-drop-overlay {
	display: flex;
}

.sgmgr-board-groups-grid > .sgmgr-board-column--empty:not(.sgmgr-board-column--drop-hover) .sgmgr-board-drop-overlay:not(.sgmgr-board-drop-overlay--unassigned) {
	background: rgba(255, 255, 255, 0.55);
}

.sgmgr-board-column--empty.sgmgr-board-column--drop-hover .sgmgr-board-drop-overlay,
.sgmgr-board-column--empty .sgmgr-board-column__body:has(.sgmgr-board-item) .sgmgr-board-drop-overlay,
.sgmgr-board-is-assigning .sgmgr-board-drop-overlay {
	display: none;
}

.sgmgr-board-drop-overlay__icon,
.sgmgr-board-drop-overlay__title,
.sgmgr-board-drop-overlay__hint {
	color: var(--sgmgr-text-subtle);
	opacity: 0.7;
}

.sgmgr-board-drop-overlay__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2px;
}

.sgmgr-board-drop-overlay__icon svg {
	display: block;
}

.sgmgr-board-drop-overlay__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.sgmgr-board-drop-overlay__hint {
	margin: 0;
	max-width: 220px;
	font-size: 13px;
	line-height: 1.45;
}

.sgmgr-board-column__cards {
	padding: 16px 18px;
	min-height: 52px;
}

.sgmgr-board-column__cards > .sgmgr-board-item {
	touch-action: none;
}

.sgmgr-board-groups-grid > .sgmgr-board-column:not(.sgmgr-board-column--unassigned) .sgmgr-board-column__body {
	position: relative;
}

.sgmgr-board-groups-grid > .sgmgr-board-column:not(.sgmgr-board-column--unassigned) .sgmgr-board-column__cards {
	flex: 1 1 auto;
	min-height: 180px;
	position: relative;
	z-index: 6;
}

.sgmgr-board-is-dragging .sgmgr-board-groups-grid > .sgmgr-board-column--drop-hover {
	box-shadow:
		0 0 0 2px rgba(34, 113, 177, 0.34),
		0 4px 16px rgba(34, 113, 177, 0.12);
}

/* Unassigned pool and cabins without per-bed slots scroll inside the column. */
.sgmgr-board-column > .sgmgr-board-column__cards,
.sgmgr-board-column--unassigned .sgmgr-board-column__cards {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.sgmgr-board-slot {
	margin: 0;
	padding: 0 22px;
	min-width: 0;
	background: transparent;
	border: none;
}

.sgmgr-board-slot + .sgmgr-board-slot {
	margin-top: 8px;
	padding-top: 8px;
}

.sgmgr-board-slot__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding: 14px 0 8px;
	background: transparent;
	border-bottom: 1px solid var(--sgmgr-board-rule);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sgmgr-board-slot__label {
	flex: 1 1 auto;
	color: var(--sgmgr-board-ink);
	font-weight: 700;
}

.sgmgr-board-slot__count {
	color: var(--sgmgr-board-muted);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sgmgr-board-slot__cards {
	min-height: 44px;
	min-width: 0;
	flex: 0 0 auto;
	overflow: visible;
	background: transparent;
	padding: 10px 0 6px;
}

.sgmgr-board-slot--over {
	margin: 0;
	padding: 0 22px 8px;
	border-radius: 8px;
	background: rgba(214, 54, 56, 0.03);
	box-shadow: inset 0 0 0 1px rgba(214, 54, 56, 0.24);
}

.sgmgr-board-slot--over .sgmgr-board-slot__header {
	border-bottom-color: rgba(214, 54, 56, 0.18);
}

.sgmgr-board-slot--over .sgmgr-board-slot__label,
.sgmgr-board-slot--over .sgmgr-board-slot__count {
	color: var(--sgmgr-danger);
}

.sgmgr-board-slot__header .sgmgr-badge {
	flex: 0 1 auto;
	max-width: 100%;
}

.sgmgr-board-slot--warn .sgmgr-board-slot__label {
	color: #8a6d1d;
}

.sgmgr-board-slot--general .sgmgr-board-slot__label {
	color: var(--sgmgr-board-muted);
}

.sgmgr-attendee-group {
	background: #edf3f8;
	border: none;
	border-radius: 8px;
	margin-bottom: 10px;
	padding: 2px;
	max-width: 100%;
	box-sizing: border-box;
	cursor: grab;
	transition: box-shadow 0.15s ease;
	position: relative;
}

.sgmgr-attendee-group--auto {
	background: #edf3ed;
}

.sgmgr-attendee-group--auto .sgmgr-attendee-group__label,
.sgmgr-attendee-group--auto .sgmgr-attendee-group__unlink {
	color: #2f6b2f;
}

.sgmgr-attendee-group--drag,
.sgmgr-attendee-group.sgmgr-attendee-card--drag {
	cursor: grabbing;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sgmgr-attendee-group__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px 0;
	background: transparent;
	border-bottom: none;
	border-radius: 0;
}

.sgmgr-attendee-group__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5c7a94;
}

.sgmgr-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	opacity: 0.8;
}

.sgmgr-link-icon svg {
	display: block;
	width: 13px;
	height: 13px;
}

.sgmgr-attendee-group__unlink .sgmgr-link-icon {
	opacity: 0.9;
}

.sgmgr-attendee-group__unlink .sgmgr-link-icon svg,
.sgmgr-attendee-card__link .sgmgr-link-icon svg {
	width: 16px;
	height: 16px;
}

.sgmgr-attendee-group__unlink,
.sgmgr-attendee-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #135e96;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 4px;
	border-radius: 4px;
}

.sgmgr-attendee-group__unlink:hover,
.sgmgr-attendee-card__link:hover {
	background: rgba(19, 94, 150, 0.1);
}

.sgmgr-attendee-group__cards {
	padding: 8px 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sgmgr-attendee-group__cards .sgmgr-attendee-card {
	margin-bottom: 0;
	cursor: default;
}

.sgmgr-attendee-card {
	background: var(--sgmgr-board-fill);
	border: none;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 8px;
	cursor: grab;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	position: relative;
}

.sgmgr-attendee-group__cards .sgmgr-attendee-card {
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sgmgr-attendee-card__link {
	position: absolute;
	top: 8px;
	right: 8px;
}

.sgmgr-attendee-card:hover {
	background: #e8eaed;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.sgmgr-attendee-group__cards .sgmgr-attendee-card:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sgmgr-attendee-card--ghost,
.sgmgr-attendee-group.sgmgr-attendee-card--ghost {
	opacity: 0.4;
}

.sgmgr-attendee-card--drag {
	cursor: grabbing;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sgmgr-board-item.is-selected {
	background: #d9ebfa !important;
	box-shadow:
		inset 0 0 0 2px #2271b1,
		0 2px 10px rgba(34, 113, 177, 0.22);
}

.sgmgr-board-item.is-selected::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 5px;
	border-radius: 8px 0 0 8px;
	background: #2271b1;
	pointer-events: none;
}

.sgmgr-board-item.is-selected:hover {
	background: #c8e2f8 !important;
	box-shadow:
		inset 0 0 0 2px #135e96,
		0 3px 12px rgba(34, 113, 177, 0.28);
}

.sgmgr-attendee-group.is-selected {
	background: #d4e8f8 !important;
	box-shadow:
		inset 0 0 0 2px #2271b1,
		0 2px 10px rgba(34, 113, 177, 0.22);
}

.sgmgr-attendee-group.is-selected .sgmgr-attendee-group__cards .sgmgr-attendee-card {
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(34, 113, 177, 0.18);
}

.sgmgr-board-item--bulk-companion {
	opacity: 0.5;
	filter: saturate(0.85);
}

.sgmgr-board-item__bulk-count {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #2271b1;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	pointer-events: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.sgmgr-attendee-group .sgmgr-board-item__bulk-count {
	top: 4px;
	right: 4px;
}

.sgmgr-board-marquee {
	position: fixed;
	z-index: 100000;
	border: 2px solid #2271b1;
	background: rgba(34, 113, 177, 0.14);
	border-radius: 4px;
	pointer-events: none;
	box-sizing: border-box;
}

.sgmgr-board-is-marquee,
.sgmgr-board-is-marquee .sgmgr-board-item {
	user-select: none;
	-webkit-user-select: none;
}

.sgmgr-attendee-card__name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.sgmgr-attendee-card--name-only .sgmgr-attendee-card__name {
	margin-bottom: 0;
}

.sgmgr-attendee-card__meta:empty {
	display: none;
}

.sgmgr-attendee-card__meta {
	font-size: 12px;
	color: var(--sgmgr-text-muted);
	line-height: 1.45;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sgmgr-card-church-age,
.sgmgr-card-meta-line {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.sgmgr-card-meta-sep {
	margin: 0 4px;
	color: var(--sgmgr-text-subtle);
}

.sgmgr-card-age {
	color: var(--sgmgr-text-muted);
}

.sgmgr-assignment-board--color-legends .sgmgr-card-church {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-weight: 500;
	line-height: 1.35;
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card[data-gender="male"],
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group__cards .sgmgr-attendee-card[data-gender="male"] {
	background: #e7f0fb;
	box-shadow: none;
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card[data-gender="male"]:hover,
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group__cards .sgmgr-attendee-card[data-gender="male"]:hover {
	background: #d9e8f8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card[data-gender="female"],
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group__cards .sgmgr-attendee-card[data-gender="female"] {
	background: #fdeff4;
	box-shadow: none;
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card[data-gender="female"]:hover,
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group__cards .sgmgr-attendee-card[data-gender="female"]:hover {
	background: #fae0ea;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card.sgmgr-board-item.is-selected,
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group.sgmgr-board-item.is-selected {
	background: #d9ebfa !important;
	box-shadow:
		inset 0 0 0 2px #2271b1,
		0 2px 10px rgba(34, 113, 177, 0.22);
}

.sgmgr-assignment-board--color-legends .sgmgr-attendee-card.sgmgr-board-item.is-selected:hover,
.sgmgr-assignment-board--color-legends .sgmgr-attendee-group.sgmgr-board-item.is-selected:hover {
	background: #c8e2f8 !important;
}

.sgmgr-badge--leader {
	background: #e8daef;
	color: #5b2c6f;
	text-transform: none;
}

.sgmgr-badge--warning {
	background: #fcf0d1;
	color: #8a6d1d;
	text-transform: none;
}

.sgmgr-badge--over_capacity {
	background: #fce4e4;
	color: var(--sgmgr-danger);
}

.sgmgr-badge--gender_conflict {
	background: #fce4e4;
	color: var(--sgmgr-danger);
}

.sgmgr-badge--family_split {
	background: #fcf0d1;
	color: #8a6d1d;
}

.sgmgr-card-notes {
	font-size: 12px;
}

.sgmgr-card-alert {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin: -4px -8px 10px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #fcf0d1;
	border: 1px solid #e8d9a8;
	color: #8a6d1d;
	font-size: 12px;
	line-height: 1.4;
}

.sgmgr-card-alert__message {
	flex: 1 1 auto;
}

.sgmgr-card-alert__dismiss {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sgmgr-card-alert__dismiss:hover {
	color: #6d5614;
}

/* Mobile responsive */
@media (max-width: 782px) {
	.sgmgr-wrap {
		margin-right: 0;
	}

	.sgmgr-wrap--frontend:not(.sgmgr-wrap--medium),
	body.sgmgr-canvas-template .sgmgr-wrap--frontend:not(.sgmgr-wrap--medium) {
		padding-left: 16px;
		padding-right: 16px;
		box-sizing: border-box;
	}

	.sgmgr-header {
		flex-direction: column;
		align-items: stretch;
	}

	.sgmgr-header__actions {
		width: 100%;
	}

	.sgmgr-header__actions .sgmgr-btn {
		flex: 1 1 auto;
		min-width: 0;
	}

	.sgmgr-title {
		font-size: 22px;
		line-height: 1.25;
		word-break: break-word;
	}

	.sgmgr-project-title__input {
		font-size: 22px;
		min-width: 0;
		width: 100%;
	}

	.sgmgr-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 10px;
	}

	.sgmgr-tabs__item {
		justify-content: flex-start;
		width: 100%;
		padding: 12px;
		font-size: 14px;
	}

	.sgmgr-tabs__label {
		font-size: 14px;
	}

	.sgmgr-tab-section__header {
		flex-direction: column;
		align-items: stretch;
	}

	#sgmgr-tab-attendees .sgmgr-tab-section__header,
	#sgmgr-tab-layout .sgmgr-tab-section__header {
		flex-wrap: wrap;
	}

	#sgmgr-tab-attendees .sgmgr-tab-section__actions,
	#sgmgr-tab-layout .sgmgr-tab-section__actions,
	.sgmgr-tab-section__actions {
		flex-wrap: wrap;
		overflow-x: visible;
		justify-content: flex-start;
		width: 100%;
		padding-right: 0;
		margin-top: 0;
		padding-top: 0;
	}

	#sgmgr-tab-attendees .sgmgr-tab-section__actions .sgmgr-form__input,
	#sgmgr-tab-layout .sgmgr-tab-section__actions .sgmgr-form__input,
	.sgmgr-tab-section__actions .sgmgr-custom-field-filter {
		flex: 1 1 calc(50% - 5px);
		min-width: min(100%, 160px);
		width: auto;
	}

	.sgmgr-board-toolbar {
		flex-direction: column;
		align-items: stretch;
		overflow-x: visible;
		padding-right: 0;
		margin-top: 0;
		padding-top: 0;
		gap: 12px;
	}

	.sgmgr-board-toolbar__filters {
		display: flex;
		gap: 10px;
		align-items: center;
		flex-wrap: wrap;
		width: 100%;
	}

	.sgmgr-board-toolbar__actions {
		display: flex;
		gap: 10px;
		align-items: center;
		flex-wrap: wrap;
		margin-left: 0;
		width: 100%;
		justify-content: flex-start;
	}

	.sgmgr-board-search {
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
		min-width: 0;
	}

	.sgmgr-board-toolbar__filters .sgmgr-form__input,
	.sgmgr-board-toolbar__filters .sgmgr-custom-field-filter {
		flex: 1 1 calc(50% - 5px);
		min-width: min(100%, 140px);
		width: auto;
	}

	.sgmgr-assignment-board__layout {
		flex-direction: column;
	}

	.sgmgr-board-sidebar {
		position: relative;
		top: auto;
		flex: none;
		width: 100%;
	}

	.sgmgr-board-sidebar .sgmgr-board-column {
		max-height: min(45vh, 420px);
		overflow: hidden;
	}

	.sgmgr-board-groups-grid {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.sgmgr-assignment-board__layout {
		width: 100%;
	}

	.sgmgr-board-column {
		max-height: none;
		overflow: visible;
	}

	.sgmgr-board-groups-grid > .sgmgr-board-column {
		height: auto;
		max-height: none;
	}

	.sgmgr-board-groups-grid > .sgmgr-board-column .sgmgr-board-column__body {
		flex: none;
		overflow-y: visible;
	}

	.sgmgr-table-card {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.sgmgr-table {
		min-width: 640px;
	}

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

	.sgmgr-projects-toolbar .sgmgr-projects-search {
		flex: 1 1 100%;
		min-width: 0;
		width: 100%;
	}

	.sgmgr-projects-toolbar__actions {
		width: 100%;
		margin-left: 0;
		flex-wrap: wrap;
	}

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

	.sgmgr-template-location-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.sgmgr-tabs {
		grid-template-columns: 1fr;
	}

	#sgmgr-tab-attendees .sgmgr-tab-section__actions .sgmgr-form__input,
	#sgmgr-tab-layout .sgmgr-tab-section__actions .sgmgr-form__input,
	.sgmgr-board-toolbar__filters .sgmgr-form__input,
	.sgmgr-board-toolbar__filters .sgmgr-custom-field-filter {
		flex: 1 1 100%;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.sgmgr-form--grid {
		grid-template-columns: 1fr;
	}

	.sgmgr-template-location-row {
		grid-template-columns: 1fr;
	}
}

/* Auto-assignment rules */
.sgmgr-auto-assign-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(135deg, #e8f2fc 0%, #f3e8ff 100%);
	color: #5b4bb7;
	flex: 0 0 auto;
}

.sgmgr-auto-assign-panel__icon svg {
	width: 16px;
	height: 16px;
}

.sgmgr-auto-assign-modal__title,
.sgmgr-action-confirm-modal__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
}

.sgmgr-action-confirm-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sgmgr-action-confirm-modal__icon .sgmgr-btn__icon {
	display: block;
}

.sgmgr-action-confirm-modal__message {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--sgmgr-text);
}

.sgmgr-sync-preview__intro {
	margin: 0 0 12px;
}

.sgmgr-sync-preview__summary {
	margin: 0 0 12px;
}

.sgmgr-sync-preview__empty,
.sgmgr-sync-preview__loading,
.sgmgr-sync-preview__error {
	margin: 0;
}

.sgmgr-sync-preview__table-wrap {
	margin-top: 4px;
	max-height: 320px;
	overflow: auto;
	border: 1px solid var(--sgmgr-border);
	border-radius: 8px;
}

.sgmgr-sync-preview__table {
	margin: 0;
	font-size: 13px;
}

.sgmgr-sync-preview__table th,
.sgmgr-sync-preview__table td {
	padding: 10px 12px;
	vertical-align: top;
}

.sgmgr-sync-preview__table th.sgmgr-sync-preview__col-ignore,
.sgmgr-sync-preview__table td.sgmgr-sync-preview__ignore {
	width: 72px;
	min-width: 72px;
	text-align: center;
	vertical-align: middle;
}

.sgmgr-sync-preview__ignore .sgmgr-toggle-switch {
	justify-content: center;
}

.sgmgr-sync-preview__row--ignored {
	opacity: 0.55;
}

.sgmgr-sync-preview__table th:last-child,
.sgmgr-sync-preview__table td:last-child {
	min-width: 72px;
}

.sgmgr-sync-preview__table th:nth-last-child(2),
.sgmgr-sync-preview__table td:nth-last-child(2) {
	min-width: 180px;
}

.sgmgr-sync-preview__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.sgmgr-sync-preview__badge--add {
	background: #e8f5e9;
	color: #1b5e20;
}

.sgmgr-sync-preview__badge--update {
	background: #e3f2fd;
	color: #0d47a1;
}

.sgmgr-sync-preview__badge--remove {
	background: #ffebee;
	color: #b71c1c;
}

.sgmgr-sync-preview__badge--relink {
	background: #f3e5f5;
	color: #4a148c;
}

.sgmgr-sync-preview__details {
	margin: 0;
	padding-left: 18px;
}

.sgmgr-sync-preview__details li + li {
	margin-top: 4px;
}

.sgmgr-sync-preview__no-details {
	color: var(--sgmgr-text-muted);
}

.sgmgr-modal--action-confirm:has(.sgmgr-sync-preview__table) .sgmgr-modal__dialog {
	max-width: 720px;
}

#sgmgr-action-confirm-run {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sgmgr-auto-assign-rules {
	display: grid;
	gap: 16px;
}

.sgmgr-auto-assign-rules__list {
	display: grid;
	gap: 24px;
}

.sgmgr-auto-assign-rules__items {
	display: grid;
	gap: 16px;
}

.sgmgr-auto-assign-rule {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 6px;
	row-gap: 4px;
}

.sgmgr-auto-assign-rule > .sgmgr-checkbox,
.sgmgr-auto-assign-rule > .sgmgr-radio {
	display: contents;
	cursor: pointer;
}

.sgmgr-auto-assign-rule > .sgmgr-checkbox input,
.sgmgr-auto-assign-rule > .sgmgr-radio input {
	margin-top: 3px;
}

.sgmgr-auto-assign-rule__text {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.sgmgr-auto-assign-rule__help {
	grid-column: 2;
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--sgmgr-text-muted);
}

.sgmgr-auto-assign-rules--settings {
	max-width: 720px;
}

.sgmgr-auto-assign-rules--sortable {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--sgmgr-border);
	border-radius: var(--sgmgr-radius);
	background: #fff;
	overflow: hidden;
}

.sgmgr-auto-assign-rule--sortable,
.sgmgr-auto-assign-rules__fieldset--sortable {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--sgmgr-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.sgmgr-auto-assign-rule--sortable:last-child,
.sgmgr-auto-assign-rules__fieldset--sortable:last-child {
	border-bottom: 0;
}

.sgmgr-auto-assign-rules__fieldset--sortable {
	flex-direction: column;
	margin: 0;
}

.sgmgr-auto-assign-rules__fieldset-header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.sgmgr-auto-assign-rules__fieldset-header .sgmgr-form__label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.sgmgr-auto-assign-rules__fieldset-options {
	display: grid;
	gap: 12px;
	width: 100%;
}

.sgmgr-auto-assign-rule__handle {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	color: var(--sgmgr-text-muted);
	font-size: 16px;
	line-height: 1;
	cursor: grab;
	padding: 0;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sgmgr-auto-assign-rule__handle:hover {
	background: #f0f0f1;
	color: var(--sgmgr-text);
}

.sgmgr-auto-assign-rule__handle:active {
	cursor: grabbing;
}

.sgmgr-auto-assign-rule__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sgmgr-auto-assign-rule__control-row {
	display: flex;
	align-items: center;
	min-height: 24px;
}

.sgmgr-auto-assign-rule--sortable .sgmgr-checkbox,
.sgmgr-auto-assign-rule--settings .sgmgr-radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.sgmgr-auto-assign-rule--sortable .sgmgr-checkbox input,
.sgmgr-auto-assign-rule--settings .sgmgr-radio input {
	margin: 0;
	flex-shrink: 0;
}

.sgmgr-auto-assign-rule--sortable .sgmgr-auto-assign-rule__text,
.sgmgr-auto-assign-rule--settings .sgmgr-auto-assign-rule__text {
	line-height: 1.3;
}

.sgmgr-wrap .sgmgr-auto-assign-rule__description-input,
.sgmgr-wrap textarea.sgmgr-auto-assign-rule__description-input {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: #f6f7f7;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.45;
	color: var(--sgmgr-text-muted);
	resize: vertical;
	min-height: 44px;
	box-sizing: border-box;
}

.sgmgr-auto-assign-rule__description-input:focus {
	outline: none;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--sgmgr-border);
	color: var(--sgmgr-text);
}

.sgmgr-auto-assign-rule--nested {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 6px;
	row-gap: 8px;
}

.sgmgr-auto-assign-rule--nested.sgmgr-auto-assign-rule--settings {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sgmgr-auto-assign-rule--nested .sgmgr-auto-assign-rule__help {
	grid-column: 2;
}

.sgmgr-auto-assign-rule--nested.sgmgr-auto-assign-rule--settings .sgmgr-auto-assign-rule__description-input {
	width: 100%;
}

.sgmgr-auto-assign-rule--ghost {
	opacity: 0.45;
}

.sgmgr-auto-assign-rule--drag,
.sgmgr-auto-assign-rules__fieldset--sortable.sgmgr-auto-assign-rule--drag {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sgmgr-auto-assign-rules__fieldset {
	border: 0;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.sgmgr-auto-assign-modal__body .sgmgr-auto-assign-rules__fieldset {
	margin: 0;
}

.sgmgr-auto-assign-rules__fieldset--general {
	gap: 0;
}

.sgmgr-auto-assign-rules__fieldset--church {
	gap: 16px;
}

.sgmgr-auto-assign-rules__legend {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
	padding: 0;
	color: #9885dc;
}

.sgmgr-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}

/* Settings page */
.sgmgr-settings-form {
	display: grid;
	gap: 20px;
	max-width: 760px;
}

.sgmgr-settings-section__title {
	margin: 0 0 8px;
	font-size: 18px;
}

.sgmgr-settings-section__title--with-icon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sgmgr-settings-key-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.sgmgr-settings-key-row .sgmgr-form__input {
	flex: 1 1 280px;
}

.sgmgr-settings-actions {
	display: flex;
	justify-content: flex-start;
}

/* Export tab */
.sgmgr-export-panel {
	max-width: 520px;
	padding: 20px;
}

.sgmgr-export-panel .sgmgr-hint {
	margin: 0 0 20px;
}

.sgmgr-export-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sgmgr-export-panel__select {
	max-width: 100%;
}

.sgmgr-export-format-desc {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--sgmgr-text-muted);
	line-height: 1.45;
}

.sgmgr-export-options {
	margin: -20px 0 0;
	padding: 0;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sgmgr-export-options .sgmgr-form__label {
	margin-bottom: 4px;
}

.sgmgr-export-options .sgmgr-checkbox {
	font-weight: 400;
}

.sgmgr-export-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sgmgr-export-actions > [hidden] {
	display: none !important;
}

.sgmgr-custom-fields-modal__intro {
	margin-bottom: 20px;
}

.sgmgr-custom-fields-list {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.sgmgr-custom-fields-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.sgmgr-custom-fields-actions[hidden] {
	display: none !important;
}

.sgmgr-custom-fields-gf-picker {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--sgmgr-border);
	border-radius: 8px;
	background: var(--sgmgr-surface);
}

.sgmgr-custom-fields-gf-picker__title {
	margin: 0 0 12px;
}

.sgmgr-custom-fields-gf-picker-list {
	display: grid;
	gap: 4px;
	max-height: 240px;
	overflow-y: auto;
	margin-bottom: 12px;
}

.sgmgr-custom-fields-gf-picker-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
}

.sgmgr-custom-fields-gf-picker-item:hover {
	background: var(--sgmgr-surface-muted, #f6f7f7);
}

.sgmgr-custom-fields-gf-picker-item input {
	margin: 0;
	flex-shrink: 0;
}

.sgmgr-custom-fields-gf-picker-item__label {
	flex: 1;
	min-width: 0;
}

.sgmgr-custom-fields-gf-picker-item__meta {
	color: var(--sgmgr-text-muted);
	font-size: 13px;
	flex-shrink: 0;
}

.sgmgr-custom-fields-gf-picker-empty {
	margin: 0;
	color: var(--sgmgr-text-muted);
	font-size: 14px;
}

.sgmgr-custom-fields-gf-picker-actions {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.sgmgr-custom-field-row {
	border: 1px solid var(--sgmgr-border);
	border-radius: 8px;
	padding: 16px;
	background: var(--sgmgr-surface);
}

.sgmgr-custom-field-row__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.sgmgr-custom-field-toggles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.sgmgr-custom-field-toggles .sgmgr-checkbox {
	margin: 0;
}

.sgmgr-custom-field-row__help {
	margin: 0 0 12px;
}

.sgmgr-custom-field-section-label {
	margin: 0;
	font-weight: 600;
}

.sgmgr-custom-field-radio-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.sgmgr-custom-field-radio-group .sgmgr-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.sgmgr-custom-field-section--disabled .sgmgr-form__label,
.sgmgr-custom-field-section--disabled .sgmgr-form__help {
	opacity: 0.65;
}

.sgmgr-custom-field-section--disabled .sgmgr-custom-field-input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: var(--sgmgr-surface-muted, #f3f4f5);
}

.sgmgr-card-custom-field {
	color: var(--sgmgr-text-muted);
}

/* Print (Phase 5 stub) */
@media print {
	.sgmgr-wrap .sgmgr-project-card__actions,
	.sgmgr-wrap .sgmgr-header a,
	.sgmgr-wrap .sgmgr-tabs {
		display: none !important;
	}
}

.sgmgr-toggle-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.sgmgr-toggle-row input {
	margin: 0;
}

.sgmgr-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 60vh;
	overflow-y: auto;
}

.sgmgr-history-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-bottom: 1px solid #e2e4e7;
}

.sgmgr-history-item:last-child {
	border-bottom: none;
}

.sgmgr-history-item--current {
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
}

.sgmgr-history-item__label {
	font-weight: 600;
}

.sgmgr-history-item__meta {
	font-size: 12px;
	color: #646970;
}

.sgmgr-history-empty {
	color: #646970;
	padding: 12px;
}

.sgmgr-rich-editor {
	border: 1px solid var(--sgmgr-border, #dcdcde);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.sgmgr-project-notes-modal__intro {
	margin-bottom: 16px;
}

.sgmgr-rich-editor__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--sgmgr-border, #dcdcde);
	background: #f6f7f7;
}

.sgmgr-rich-editor__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--sgmgr-text, #1d2327);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.sgmgr-rich-editor__btn:hover {
	background: #ececec;
	border-color: #dcdcde;
}

.sgmgr-rich-editor__btn:focus-visible {
	outline: 2px solid var(--sgmgr-primary, #2271b1);
	outline-offset: 1px;
}

.sgmgr-rich-editor__btn--icon {
	padding: 0 6px;
}

.sgmgr-rich-editor__icon {
	display: block;
	width: 16px;
	height: 16px;
}

.sgmgr-rich-editor__divider {
	width: 1px;
	height: 20px;
	margin: 0 4px;
	background: #dcdcde;
}

.sgmgr-rich-editor__body {
	min-height: 220px;
	max-height: 420px;
	overflow-y: auto;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--sgmgr-text, #1d2327);
}

.sgmgr-rich-editor__body:focus {
	outline: none;
}

.sgmgr-rich-editor__body:empty::before {
	content: attr(data-placeholder);
	color: var(--sgmgr-text-muted, #646970);
	pointer-events: none;
}

.sgmgr-rich-editor__body ul,
.sgmgr-rich-editor__body ol {
	margin: 0 0 0.75em 1.4em;
	padding: 0;
}

.sgmgr-rich-editor__body p {
	margin: 0 0 0.75em;
}

.sgmgr-rich-editor__body p:last-child {
	margin-bottom: 0;
}
