/**
 * Housing Manager admin styles.
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-title--editable:hover,
.hmgr-title--editable:focus {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: var(--hmgr-text-subtle);
	text-underline-offset: 4px;
	outline: none;
}

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

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

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

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

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

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

.hmgr-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(--hmgr-text-subtle);
	font-size: 12px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

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

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

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

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

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

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

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

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

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

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

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

.hmgr-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;
}

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

.hmgr-project-card--finalized {
	opacity: 0.55;
}

.hmgr-project-card--finalized:hover {
	opacity: 0.75;
}

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

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

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

.hmgr-project-card__select input {
	width: 16px;
	height: 16px;
	margin: 0;
}

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

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

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

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

.hmgr-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(--hmgr-border);
	border-radius: 6px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--hmgr-text);
	background: #fff;
}

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

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

.hmgr-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(--hmgr-text-subtle);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

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

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

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

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

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

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

.hmgr-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) {
	.hmgr-project-card {
		align-items: stretch;
	}

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

/* Badges */
.hmgr-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;
}

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

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

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

/* Buttons */
.hmgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

.hmgr-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;
	min-height: 22px;
	aspect-ratio: 1;
	padding: 0;
	border-radius: 50%;
	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;
	line-height: 1;
	text-align: center;
	pointer-events: none;
}

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

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

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

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

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

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

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

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

.hmgr-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;
}

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

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

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

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

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

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

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

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

.hmgr-wrap .hmgr-projects-toolbar__actions .hmgr-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;
}

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

.hmgr-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(--hmgr-text-subtle);
	pointer-events: none;
}

.hmgr-wrap .hmgr-projects-search__input,
.hmgr-wrap input.hmgr-projects-search__input,
.hmgr-wrap .hmgr-board-search__input,
.hmgr-wrap input.hmgr-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(--hmgr-border);
	border-radius: var(--hmgr-radius);
	background: var(--hmgr-card-bg);
	box-shadow: var(--hmgr-shadow);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--hmgr-text);
	box-sizing: border-box;
	height: auto;
	min-height: 0;
}

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

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

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

.hmgr-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(--hmgr-text-subtle);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

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

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

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

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

.hmgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--hmgr-text-muted);
	margin: 0 auto 16px;
}

.hmgr-empty__icon .hmgr-brand-icon {
	display: block;
}

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

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

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

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

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

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

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

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

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

.hmgr-visibility-option:hover {
	border-color: var(--hmgr-text-muted);
}

.hmgr-visibility-option:has(input:checked),
.hmgr-visibility-option.is-selected {
	border-color: var(--hmgr-primary);
	background: rgba(99, 102, 241, 0.08);
	color: var(--hmgr-primary);
	box-shadow: 0 0 0 1px var(--hmgr-primary);
}

.hmgr-visibility-option:has(input:focus-visible) {
	outline: 2px solid var(--hmgr-primary);
	outline-offset: 2px;
}

.hmgr-private-project-ack {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
}

.hmgr-private-project-hint {
	margin-top: 8px;
}

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

.hmgr-badge--private {
	background: #6b46c1;
	color: #fff;
}

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

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

.hmgr-btn--copied {
	background: #059669;
	border-color: #059669;
	color: #fff;
}

.hmgr-modal__dialog--project-access {
	max-width: 560px;
}

#hmgr-private-project-modal .hmgr-modal__body {
	padding-bottom: 8px;
}

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

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

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

#hmgr-private-project-modal .hmgr-modal__footer .hmgr-btn--primary {
	align-self: center;
	margin-bottom: 12px;
}

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

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

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

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

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

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

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

.hmgr-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(--hmgr-text);
	text-decoration: none;
	cursor: pointer;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-tab-section__actions .hmgr-btn {
	white-space: nowrap;
}

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

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

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

#hmgr-tab-attendees .hmgr-tab-section__actions .hmgr-btn {
	flex-shrink: 0;
}

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

#hmgr-tab-layout .hmgr-tab-section__actions {
	flex: 0 0 auto;
	justify-content: flex-end;
	margin-left: auto;
}

.hmgr-table-filter-empty td {
	text-align: center;
	color: #646970;
}

.hmgr-locations-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hmgr-location-card {
	display: flex;
	align-items: stretch;
	gap: 16px;
	padding: 20px 24px;
}

.hmgr-location-card__grid {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.hmgr-location-card__cell {
	min-width: 0;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.hmgr-location-card__beds {
	flex: 0 1 auto;
	max-width: 100%;
}

.hmgr-location-card__actions {
	margin-left: auto;
	flex: 0 0 auto;
}

.hmgr-location-card__name .hmgr-location-card__value {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.hmgr-location-card__bed-types {
	font-size: 13px;
	color: var(--hmgr-text-muted);
	line-height: 1.4;
}

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

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

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

.hmgr-location-drag-handle {
	flex: 0 0 28px;
	width: 28px;
	border: none;
	background: transparent;
	color: var(--hmgr-text-muted);
	font-size: 16px;
	line-height: 1;
	cursor: grab;
	padding: 0;
	border-radius: 4px;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

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

@media (max-width: 782px) {
	.hmgr-location-card__actions {
		margin-left: 0;
		width: 100%;
	}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Templates page */
.hmgr-templates-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hmgr-template-card {
	display: flex;
	align-items: stretch;
	gap: 12px;
	padding: 20px 24px;
}

.hmgr-template-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.hmgr-template-card__summary {
	flex: 1 1 180px;
	min-width: 0;
}

.hmgr-template-drag-handle {
	flex: 0 0 28px;
	width: 28px;
	border: none;
	background: transparent;
	color: var(--hmgr-text-muted);
	font-size: 16px;
	line-height: 1;
	cursor: grab;
	padding: 0;
	border-radius: 4px;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hmgr-template-drag-handle:hover {
	background: #f0f1f3;
	color: var(--hmgr-text);
}

.hmgr-template-drag-handle:active {
	cursor: grabbing;
}

.hmgr-template-card--ghost {
	opacity: 0.45;
}

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

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

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

.hmgr-template-card__actions {
	display: flex;
	gap: 8px;
	margin-bottom: 0;
}

.hmgr-template-card__load {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1 1 280px;
	min-width: 0;
}

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

.hmgr-template-location-row__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 108px 32px;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.hmgr-template-location-row__capacity {
	min-width: 0;
}

.hmgr-row-remove-btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--hmgr-text-subtle);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.hmgr-row-remove-btn:hover,
.hmgr-row-remove-btn:focus {
	background: #fce8e8;
	color: var(--hmgr-danger);
}

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

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

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

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

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

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

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

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

.hmgr-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: var(--hmgr-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;
}

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

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

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

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

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

.hmgr-modal__body {
	padding: 24px;
}

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

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

.hmgr-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(--hmgr-text-muted);
	cursor: pointer;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-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(--hmgr-text-muted);
}

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

.hmgr-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(--hmgr-border);
	border-radius: 1px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#hmgr-tab-board {
	--hmgr-board-sticky-top: 16px;
	--hmgr-board-sticky-search-gap: 12px;
}

body.admin-bar #hmgr-tab-board {
	--hmgr-board-sticky-top: 58px;
}

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

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

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

.hmgr-board-toolbar__actions .hmgr-btn {
	white-space: nowrap;
	flex-shrink: 0;
}

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

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

.hmgr-board-search-placeholder {
	flex: 1 1 170px;
	min-width: 150px;
	max-width: 250px;
	width: 100%;
}

.hmgr-board-search-placeholder[hidden] {
	display: none !important;
}

.hmgr-board-search--stuck {
	position: fixed;
	z-index: 25;
	top: var(--hmgr-board-sticky-top);
	left: var(--hmgr-board-sticky-search-left, 0);
	width: var(--hmgr-board-sticky-search-width, 280px);
	max-width: none;
	flex: none;
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: no-preference) {
	.hmgr-board-search--stuck {
		animation: hmgr-board-search-pop 0.18s ease;
	}
}

@keyframes hmgr-board-search-pop {
	from {
		opacity: 0.88;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hmgr-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(--hmgr-text-subtle);
	pointer-events: none;
}

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

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

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

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

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

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

.hmgr-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;
}

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

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

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

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

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

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

.hmgr-assignment-board.hmgr-board-is-dragging .hmgr-board-column {
	transition: none;
}

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

.hmgr-assignment-board--filtering.hmgr-board-drag-from-cabin .hmgr-board-column--unassigned,
.hmgr-assignment-board--filtering.hmgr-board-drag-outside-cabin .hmgr-board-column--unassigned {
	opacity: 1;
	filter: none;
}

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

.hmgr-assignment-board--filtering.hmgr-board-drag-from-cabin .hmgr-board-column--unassigned.hmgr-board-column--drop-hover .hmgr-board-column__body,
.hmgr-assignment-board--filtering.hmgr-board-drag-outside-cabin .hmgr-board-column--unassigned.hmgr-board-column--drop-hover .hmgr-board-column__body {
	background: #eef1f5;
}

.hmgr-assignment-board .hmgr-badge--capacity {
	background: #e3f0fa;
	color: #135e96;
	font-weight: 600;
}

.hmgr-assignment-board .hmgr-badge--gender,
.hmgr-assignment-board .hmgr-badge--type {
	background: var(--hmgr-board-fill);
	color: var(--hmgr-board-ink);
	font-weight: 600;
}

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

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

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

.hmgr-cabin-gender-toggle {
	--hmgr-gender-index: 0;
	position: relative;
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	min-width: 210px;
	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);
}

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

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

.hmgr-cabin-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(--hmgr-gender-index) * 100%));
	transition: transform 0.22s ease, background-color 0.22s ease;
	z-index: 0;
}

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

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

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

.hmgr-cabin-gender-toggle__option {
	position: relative;
	z-index: 1;
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--hmgr-text-subtle);
	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;
}

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

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

.hmgr-cabin-gender-toggle__option.is-active {
	color: var(--hmgr-text);
}

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

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

.hmgr-cabin-gender-toggle:has(.hmgr-cabin-gender-toggle__option:disabled) {
	opacity: 0.72;
}

.hmgr-cabin-gender-toggle__option:disabled {
	cursor: wait;
}

.hmgr-board-gender-alert {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #fff4f4;
	border: 1px solid #f1c0c0;
	color: #8a2424;
	font-size: 12px;
	line-height: 1.35;
}

.hmgr-board-gender-alert__text {
	flex: 1 1 auto;
	min-width: 0;
}

.hmgr-board-gender-alert__dismiss {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	border-radius: 4px;
	background: #fff;
	color: #8a2424;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	padding: 4px 8px;
	cursor: pointer;
	white-space: nowrap;
}

.hmgr-board-gender-alert__dismiss:hover:not(:disabled) {
	background: #fdeaea;
}

.hmgr-board-gender-alert__dismiss:disabled {
	opacity: 0.65;
	cursor: wait;
}

.hmgr-assignment-board__layout {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

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

.hmgr-board-sidebar--search-stuck {
	padding-top: calc(var(--hmgr-board-sticky-search-height, 0px) + var(--hmgr-board-sticky-search-gap));
}

.hmgr-board-sidebar--search-stuck .hmgr-board-column {
	max-height: calc(100vh - var(--hmgr-board-sticky-top) - var(--hmgr-board-sticky-search-height, 0px) - var(--hmgr-board-sticky-search-gap) - 16px);
}

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

.hmgr-board-cabins-grid {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.hmgr-empty-state {
	text-align: center;
}

.hmgr-empty-state__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--hmgr-empty-text);
}

.hmgr-empty-state__description {
	margin: 0 auto;
	max-width: 34em;
	color: var(--hmgr-empty-text);
	font-size: 15px;
	line-height: 1.5;
}

.hmgr-locations-list > .hmgr-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	padding: 48px 32px;
}

.hmgr-board-empty {
	margin-bottom: 0;
}

.hmgr-board-cabins-grid > .hmgr-board-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: min(600px, 75vh);
	padding: 48px 32px;
	text-align: center;
}

.hmgr-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;
}

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

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

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

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

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

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

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

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

.hmgr-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);
}

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

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

.hmgr-board-column--over.hmgr-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);
}

.hmgr-board-column__header {
	padding: 20px 22px 16px;
	background: #fff;
	border-bottom: 1px solid var(--hmgr-board-rule);
}

.hmgr-board-column__header h3 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.hmgr-board-column__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

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

.hmgr-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;
}

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

.hmgr-board-cabins-grid > .hmgr-board-column--empty .hmgr-board-column__body {
	min-height: 0;
}

.hmgr-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;
}

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

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

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

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

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

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

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

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

.hmgr-board-slot--general .hmgr-board-slot__cards {
	min-height: 52px;
}

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

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

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

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

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

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

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

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

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

.hmgr-board-is-dragging .hmgr-board-slot__cards:not(:has(.hmgr-board-item)) {
	min-height: 56px;
}

.hmgr-board-is-dragging .hmgr-board-slot--drop-hover .hmgr-board-slot__cards {
	background: rgba(34, 113, 177, 0.06);
	box-shadow: inset 0 0 0 2px rgba(34, 113, 177, 0.38);
	border-radius: 8px;
}

.hmgr-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);
}

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

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

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

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

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

.hmgr-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;
}

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

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

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

.hmgr-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;
}

.hmgr-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;
}

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

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

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

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

.hmgr-attendee-group__unlink,
.hmgr-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;
}

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

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

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

.hmgr-attendee-card {
	background: var(--hmgr-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;
}

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

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

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

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

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

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

.hmgr-board-item {
	position: relative;
}

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

.hmgr-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;
}

.hmgr-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);
}

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

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

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

.hmgr-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);
}

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

.hmgr-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;
}

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

.hmgr-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;
}

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

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

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

.hmgr-card-church-age {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

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

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

.hmgr-assignment-board--color-legends .hmgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 1200px) {
	.hmgr-board-cabins-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.hmgr-assignment-board__layout {
		flex-direction: column;
	}

	.hmgr-board-sidebar {
		flex: none;
		width: 100%;
	}

	.hmgr-board-sidebar .hmgr-board-column--unassigned {
		max-height: min(45vh, calc(100vh - var(--hmgr-board-sticky-top) - 16px));
	}

	.hmgr-board-sidebar--search-stuck .hmgr-board-column--unassigned {
		max-height: min(45vh, calc(100vh - var(--hmgr-board-sticky-top) - var(--hmgr-board-sticky-search-height, 0px) - var(--hmgr-board-sticky-search-gap) - 16px));
	}

	.hmgr-board-cabins-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.hmgr-template-location-row__main {
		grid-template-columns: 1fr;
	}

	.hmgr-board-cabins-grid {
		grid-template-columns: 1fr;
	}
}

/* Auto-assignment rules */
.hmgr-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;
}

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

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

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

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

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

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

.hmgr-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;
}

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

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

.hmgr-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);
}

.hmgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-auto-assign-rules--settings .hmgr-auto-assign-rule__description-input {
	grid-column: 2;
	width: 100%;
	margin: 0;
	min-height: 56px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--hmgr-text-muted);
	resize: vertical;
}

.hmgr-auto-assign-rules--settings {
	max-width: 640px;
}

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

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

.hmgr-auto-assign-rules__items[data-sortable='1'] .hmgr-auto-assign-rule-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--hmgr-border);
	border-radius: 8px;
	background: #fff;
}

.hmgr-auto-assign-rules__items[data-sortable='1'] .hmgr-auto-assign-rule-item__content {
	flex: 1;
	min-width: 0;
}

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

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

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

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

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

.hmgr-auto-assign-rules__fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	.hmgr-header__actions {
		width: 100%;
	}

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

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

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

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

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

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

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

	#hmgr-tab-attendees .hmgr-tab-section__header {
		flex-wrap: wrap;
	}

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

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

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

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

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

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

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

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

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

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

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

	.hmgr-board-cabins-grid {
		grid-template-columns: 1fr;
		width: 100%;
	}

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

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

	.hmgr-board-cabins-grid > .hmgr-board-column {
		height: auto;
		max-height: none;
	}

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

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

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

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

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

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

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

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

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

	.hmgr-template-location-row__main {
		grid-template-columns: 1fr;
	}

	.hmgr-board-cabins-grid {
		grid-template-columns: 1fr;
	}
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.hmgr-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(--hmgr-text, #1d2327);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

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

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

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

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

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

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

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

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

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

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

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