/* Thin overrides on top of Bootstrap 5 — dark is the default Kreo theme */
:root,
[data-bs-theme="dark"] {
	--renewal: #10365b;
	--renewal-rgb: 16, 54, 91;
	--renewal-hover: #0c2a48;
	--renewal-active: #0a243f;
	--renewal-secondary: #e19653;
	--renewal-secondary-rgb: 225, 150, 83;
	--renewal-secondary-hover: #d08542;
	--kreo-surface: #1e2226;
	--kreo-surface-2: #161a1d;
	--kreo-surface-3: #2b2f33;
	--kreo-border: rgba(255, 255, 255, 0.1);
	--kreo-border-strong: rgba(255, 255, 255, 0.16);
	--kreo-text: #e9ecef;
	--kreo-muted: #9aa1a8;
	--kreo-muted-2: #7a8289;
	--kreo-link: #8eb6de;
	--kreo-shadow: rgba(0, 0, 0, 0.35);
	color-scheme: dark;
}

[data-bs-theme="light"] {
	--renewal: #10365b;
	--renewal-rgb: 16, 54, 91;
	--renewal-hover: #0c2a48;
	--renewal-active: #0a243f;
	--renewal-secondary: #e19653;
	--renewal-secondary-rgb: 225, 150, 83;
	--renewal-secondary-hover: #d08542;
	--kreo-surface: #ffffff;
	--kreo-surface-2: #f8f9fa;
	--kreo-surface-3: #ffffff;
	--kreo-border: rgba(16, 54, 91, 0.12);
	--kreo-border-strong: rgba(16, 54, 91, 0.2);
	--kreo-text: #212529;
	--kreo-muted: #6c757d;
	--kreo-muted-2: #8a939b;
	--kreo-link: var(--renewal);
	--kreo-shadow: rgba(16, 54, 91, 0.08);
	color-scheme: light;
}

[data-bs-theme="dark"] {
	--bs-body-bg: #121518;
	--bs-body-color: #e9ecef;
	--bs-secondary-color: #9aa1a8;
	--bs-tertiary-bg: #1a1e22;
	--bs-border-color: rgba(255, 255, 255, 0.12);
	--bs-heading-color: #f3f5f6;
	--bs-link-color: #8eb6de;
	--bs-link-hover-color: #b7d0eb;
	--bs-card-bg: var(--kreo-surface);
	--bs-card-border-color: var(--kreo-border);
	--bs-modal-bg: #1e2226;
	--bs-modal-border-color: var(--kreo-border);
	--bs-form-control-bg: #161a1d;
}

.bg-renewal {
	background-color: var(--renewal) !important;
}

.navbar.bg-renewal {
	--bs-navbar-padding-y: 0.35rem;
}

.app-chrome {
	z-index: 1030;
}

.app-topbar {
	--bs-navbar-padding-y: 0.35rem;
	box-shadow: none;
}

.app-menubar {
	background: #0c2a48;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 0.125rem 0.25rem var(--kreo-shadow);
}

[data-bs-theme="dark"] .app-menubar {
	background: #0a1f36;
}

.app-menubar-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0.3rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.app-menubar-list > li {
	flex: 0 0 auto;
}

.app-menubar-list > li.app-menubar-end {
	margin-left: auto;
}

.app-menubar-list > li > a {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.75rem;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	border-radius: 0.4rem;
	white-space: nowrap;
}

.app-menubar-list > li > a:hover,
.app-menubar-list > li > a:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.app-menubar-list > li > a.active {
	color: #fff;
	background: rgba(225, 150, 83, 0.28);
}

.app-menubar .dropdown-menu {
	--bs-dropdown-min-width: 11rem;
}

.app-menubar .dropdown-item.active {
	background-color: var(--renewal);
}

.user-menu {
	min-width: 14rem;
}

.app-topbar .dropdown-toggle::after {
	display: none;
}

.theme-picker {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.2rem;
	padding: 0.25rem;
	max-width: 28rem;
	background: var(--kreo-surface-2);
	border: 1px solid var(--kreo-border);
	border-radius: 0.55rem;
}

.theme-picker-nav {
	max-width: none;
}

.theme-picker-nav .theme-picker-btn {
	padding: 0.45rem 0.35rem;
}

.person-profile-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.person-profile-summary {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	min-width: 0;
}

.person-profile-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: var(--kreo-muted);
	font-size: 0.95rem;
}

.person-profile-meta a {
	color: inherit;
	text-decoration: none;
}

.person-profile-meta a:hover {
	color: var(--kreo-link);
	text-decoration: underline;
}

.person-profile-tabs {
	margin-bottom: 1rem;
}

.theme-picker .btn-check {
	position: absolute;
	clip: rect(0, 0, 0, 0);
	pointer-events: none;
}

.theme-picker-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.55rem 0.65rem;
	border-radius: 0.4rem;
	border: 0;
	background: transparent;
	color: var(--kreo-muted);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-picker-btn i {
	font-size: 1rem;
	line-height: 1;
}

.theme-picker-btn:hover {
	color: var(--kreo-text);
}

.theme-picker .btn-check:checked + .theme-picker-btn {
	background: color-mix(in srgb, var(--kreo-link) 18%, transparent);
	color: var(--kreo-link);
}

.theme-picker .btn-check:focus-visible + .theme-picker-btn {
	outline: 2px solid var(--kreo-link);
	outline-offset: 1px;
}

.other-tile {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem 1.1rem;
	text-decoration: none;
	color: inherit;
	background: var(--kreo-surface);
	border: 1px solid var(--kreo-border);
	border-radius: 0.75rem;
	box-shadow: 0 0.125rem 0.35rem var(--kreo-shadow);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.other-tile:hover,
.other-tile:focus-visible {
	color: inherit;
	border-color: var(--kreo-border-strong);
	box-shadow: 0 0.35rem 0.85rem var(--kreo-shadow);
	transform: translateY(-1px);
}

.other-tile-icon {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.65rem;
	background: color-mix(in srgb, var(--kreo-link) 14%, transparent);
	color: var(--kreo-link);
	font-size: 1.25rem;
}

.other-tile-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.other-tile-title {
	font-weight: 650;
	font-size: 1.05rem;
	color: var(--kreo-link);
}

.other-tile-desc {
	font-size: 0.875rem;
	color: var(--kreo-muted);
}

.text-renewal { color: var(--renewal) !important; }

.fin-icon-trigger {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.45rem;
	line-height: 1;
}

.fin-emoji-ui {
	font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
	font-style: normal;
	line-height: 1;
	display: inline-block;
}

.fin-icon-menu {
	min-width: 18rem;
	max-width: 22rem;
	max-height: 16rem;
	overflow: auto;
}

.fin-icon-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 0.3rem;
}

.fin-section {
	background: #f8fafc;
	border-color: rgba(16, 54, 91, 0.12) !important;
}

.fin-icon-option {
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	background: transparent;
	font-size: 1.35rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fin-icon-option:hover,
.fin-icon-option:focus-visible {
	background: rgba(16, 54, 91, 0.08);
	border-color: rgba(16, 54, 91, 0.2);
}

.fin-icon-option.active {
	background: rgba(225, 150, 83, 0.22);
	border-color: var(--renewal-secondary);
}

.fin-item .form-label {
	color: #6c757d;
}

.fin-report-form .sticky-bottom {
	position: sticky;
	bottom: 0;
	z-index: 5;
}

.fin-history td {
	vertical-align: middle;
}

.fin-view-icon {
	font-size: 1.45rem;
	line-height: 1.2;
	width: 1.75rem;
	text-align: center;
	flex: 0 0 auto;
}

.fin-view-summary {
	background: #f4f7fb;
	border: 1px solid rgba(16, 54, 91, 0.12);
}

.fin-edit-actions {
	z-index: 5;
	margin-left: -0.25rem;
	margin-right: -0.25rem;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

.btn-renewal {
	--bs-btn-bg: var(--renewal);
	--bs-btn-border-color: var(--renewal);
	--bs-btn-hover-bg: var(--renewal-hover);
	--bs-btn-hover-border-color: var(--renewal-hover);
	--bs-btn-active-bg: var(--renewal-active);
	--bs-btn-active-border-color: var(--renewal-active);
	--bs-btn-color: #fff;
	--bs-btn-hover-color: #fff;
	--bs-btn-active-color: #fff;
}

.btn-facebook {
	--bs-btn-bg: #1877f2;
	--bs-btn-border-color: #1877f2;
	--bs-btn-hover-bg: #166fe5;
	--bs-btn-hover-border-color: #166fe5;
	--bs-btn-active-bg: #1464d0;
	--bs-btn-active-border-color: #1464d0;
	--bs-btn-color: #fff;
	--bs-btn-hover-color: #fff;
	--bs-btn-active-color: #fff;
	--bs-btn-disabled-bg: #1877f2;
	--bs-btn-disabled-border-color: #1877f2;
	--bs-btn-disabled-color: #fff;
	min-height: 40px;
	font-weight: 600;
}

.auth-social-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.auth-social-btn {
	width: 60px;
	height: 60px;
	min-width: 60px;
	min-height: 60px;
	border-radius: 12px;
	border: 1px solid rgba(16, 54, 91, 0.18);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	overflow: hidden;
	box-shadow: none;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.auth-social-btn:hover:not(:disabled) {
	border-color: rgba(16, 54, 91, 0.35);
	background: #f8fafc;
}

.auth-social-btn:focus-visible {
	outline: 2px solid #1877f2;
	outline-offset: 2px;
}

.auth-social-btn:disabled {
	opacity: 0.55;
	cursor: wait;
}

.auth-social-btn > svg {
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
}

/* Invisible GIS hit-target over our Google icon — avoids GIS outline double-border. */
.auth-social-google-gsi {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	opacity: 0.011;
}

.auth-social-google-gsi > div,
.auth-social-google-gsi iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
}

.auth-col .site-card {
	padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
	.auth-col .site-card {
		padding: 2rem 2rem;
	}
}

.btn-renewal-secondary {
	--bs-btn-bg: var(--renewal-secondary);
	--bs-btn-border-color: var(--renewal-secondary);
	--bs-btn-hover-bg: var(--renewal-secondary-hover);
	--bs-btn-hover-border-color: var(--renewal-secondary-hover);
	--bs-btn-active-bg: var(--renewal-secondary-hover);
	--bs-btn-active-border-color: var(--renewal-secondary-hover);
	--bs-btn-color: #fff;
	--bs-btn-hover-color: #fff;
	--bs-btn-active-color: #fff;
}

.btn-outline-renewal {
	--bs-btn-color: var(--renewal);
	--bs-btn-border-color: var(--renewal);
	--bs-btn-hover-bg: var(--renewal);
	--bs-btn-hover-border-color: var(--renewal);
	--bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--renewal-hover);
	--bs-btn-active-border-color: var(--renewal-hover);
	--bs-btn-active-color: #fff;
}

.teams-board {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	overflow-x: auto;
	padding-bottom: 0.35rem;
	-webkit-overflow-scrolling: touch;
}

.teams-board-group-label {
	font-size: 0.8rem;
	font-weight: 650;
	color: #6c757d;
	margin-bottom: 0.45rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.teams-board-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
	min-width: min-content;
}

.team-col {
	flex: 0 0 17.5rem;
	width: 17.5rem;
	max-width: 17.5rem;
	border: 1px solid var(--kreo-border);
	border-radius: 0.65rem;
	background: var(--kreo-surface);
	padding: 0.7rem 0.75rem 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.team-col.is-custom {
	border-style: dashed;
	background: var(--kreo-surface-2);
}

.team-col-head {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.team-col-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.4rem;
}

.team-col-name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--kreo-link);
	line-height: 1.25;
	text-decoration: none;
	min-width: 0;
}

.team-col-name:hover,
.team-col-name:focus-visible {
	color: var(--bs-link-hover-color, var(--kreo-link));
	text-decoration: underline;
}

.team-col-name.is-static {
	cursor: default;
	text-decoration: none;
}

.team-col-add {
	appearance: none;
	border: 1px solid var(--kreo-border-strong);
	background: var(--kreo-surface-3);
	color: var(--kreo-link);
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	line-height: 1;
	cursor: pointer;
}

.team-col-add:hover,
.team-col-add:focus-visible {
	background: rgba(var(--renewal-rgb), 0.12);
	border-color: var(--kreo-link);
}

.team-col-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	font-size: 0.72rem;
	color: var(--kreo-muted);
}

.team-col-stat {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-weight: 600;
}

.team-col-stat.is-confirmed { color: #146c43; }
.team-col-stat.is-declined { color: #b02a37; }
.team-col-stat.is-pending { color: #997404; }

.team-col-badge {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--kreo-muted);
	background: rgba(108, 117, 125, 0.18);
	border-radius: 999px;
	padding: 0.1rem 0.45rem;
}

.team-col-notify .btn {
	width: 100%;
}

.team-col-empty {
	margin: 0;
	padding: 0.55rem 0.2rem;
	font-size: 0.8125rem;
	color: var(--kreo-muted-2);
}

.team-col-body {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.asg-role-group {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.asg-role-label {
	font-size: 0.72rem;
	font-weight: 650;
	color: var(--kreo-muted-2);
	letter-spacing: 0.01em;
	padding: 0 0.15rem;
}

.asg-person-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.asg-person {
	position: relative;
	border-radius: 0.4rem;
	padding: 0.2rem 0.15rem;
}

.asg-person.is-declined {
	opacity: 0.72;
}

.asg-person.is-own-pending {
	background: rgba(225, 150, 83, 0.1);
}

.asg-person-main {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	position: relative;
}

.person-avatar.asg-person-avatar {
	flex-shrink: 0;
	width: 1.55rem;
	height: 1.55rem;
	font-size: 0.5rem;
	box-shadow: 0 0 0 2px var(--asg-status-ring, transparent);
}

.asg-person.is-pending {
	--asg-status-ring: #e0a800;
}

.asg-person.is-confirmed {
	--asg-status-ring: #198754;
}

.asg-person.is-declined {
	--asg-status-ring: #dc3545;
}

.asg-person-status {
	position: absolute;
	left: 0.95rem;
	bottom: -0.38rem;
	z-index: 1;
	pointer-events: none;
}

.asg-person-status .assignment-status-icon {
	width: 0.78rem;
	height: 0.78rem;
	font-size: 0.48rem;
	border: 0;
	box-shadow: none;
}

.assignment-status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;
	font-size: 0.78rem;
	line-height: 1;
	flex-shrink: 0;
	border: 1px solid transparent;
}

.assignment-status-icon.is-pending {
	color: #fff;
	background: #e0a800;
	border-color: #e0a800;
}

.assignment-status-icon.is-confirmed {
	color: #fff;
	background: #198754;
	border-color: #198754;
}

.assignment-status-icon.is-declined {
	color: #fff;
	background: #dc3545;
	border-color: #dc3545;
}

.asg-person-name {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--kreo-text);
	text-align: left;
	cursor: pointer;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1 1 auto;
}

.asg-person-notify {
	flex-shrink: 0;
	margin-left: auto;
}

.asg-person-notify-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--kreo-muted);
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 0.3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	cursor: pointer;
}

.asg-person-notify-btn:hover,
.asg-person-notify-btn:focus-visible {
	color: var(--renewal-secondary);
	background: rgba(var(--renewal-secondary-rgb), 0.14);
}

.asg-person-name.is-static {
	cursor: default;
}

.asg-person-name:not(.is-static):hover,
.asg-person-name:not(.is-static):focus-visible {
	color: var(--kreo-link);
}

.asg-person-hover {
	display: none;
	align-items: center;
	gap: 0.15rem;
	flex-shrink: 0;
	background: var(--kreo-surface-3);
	border: 1px solid var(--kreo-border-strong);
	border-radius: 0.35rem;
	padding: 0.15rem;
	box-shadow: 0 4px 14px var(--kreo-shadow);
	position: absolute;
	left: calc(1.55rem + 0.45rem);
	top: calc(100% + 0.1rem);
	z-index: 5;
}

.asg-person:hover .asg-person-hover,
.asg-person:focus-within .asg-person-hover {
	display: inline-flex;
}

.asg-hover-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--kreo-text);
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.asg-hover-btn:hover,
.asg-hover-btn:focus-visible {
	background: rgba(var(--renewal-rgb), 0.14);
	color: var(--kreo-link);
}

[data-bs-theme="dark"] .asg-hover-btn:hover,
[data-bs-theme="dark"] .asg-hover-btn:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.asg-hover-btn.is-danger:hover,
.asg-hover-btn.is-danger:focus-visible {
	background: rgba(220, 53, 69, 0.35);
	color: #fff;
}

.asg-person-self {
	margin-top: 0.25rem;
	padding-left: 2.4rem;
}

.assignment-inline-form {
	margin-top: 0.15rem;
	padding: 0.7rem 0.75rem;
	border: 1px solid var(--kreo-border);
	border-radius: 0.55rem;
	background: var(--kreo-surface-2);
}

.asg-status-set {
	display: flex;
	width: 100%;
	border: 1px solid var(--kreo-border-strong);
	border-radius: 0.45rem;
	overflow: hidden;
	background: var(--kreo-surface-3);
}

.asg-status-btn {
	flex: 1 1 0;
	appearance: none;
	border: 0;
	background: transparent;
	color: #c5ccd2;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.45rem 0.35rem;
	cursor: pointer;
	line-height: 1.2;
}

.asg-status-btn + .asg-status-btn {
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.asg-status-btn:hover,
.asg-status-btn:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.asg-status-btn.is-active.is-confirmed {
	background: #198754;
	color: #fff;
}

.asg-status-btn.is-active.is-pending {
	background: #6c757d;
	color: #fff;
}

.asg-status-btn.is-active.is-declined {
	background: #dc3545;
	color: #fff;
}

.asg-workflow {
	background: #2b2f33;
	border-radius: 0.55rem;
	padding: 0.9rem 0.65rem 1rem;
}

.asg-workflow-steps {
	display: flex;
	align-items: flex-start;
	width: 100%;
}

.asg-wf-step {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	color: #9aa1a8;
}

.asg-wf-step.is-done {
	color: #f3f5f6;
}

.asg-wf-step.is-bad {
	color: #f0b4ba;
}

.asg-wf-label {
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 0.45rem;
	white-space: nowrap;
}

.asg-wf-dot {
	width: 0.72rem;
	height: 0.72rem;
	margin: 0 auto;
	border-radius: 50%;
	background: #5a6168;
	box-shadow: 0 0 0 3px rgba(90, 97, 104, 0.25);
}

.asg-wf-step.is-done .asg-wf-dot {
	background: #6fbf73;
	box-shadow: 0 0 0 3px rgba(111, 191, 115, 0.22);
}

.asg-wf-step.is-bad .asg-wf-dot {
	background: #d96b76;
	box-shadow: 0 0 0 3px rgba(217, 107, 118, 0.22);
}

.asg-wf-line {
	flex: 0.35 0.35 1.1rem;
	height: 3px;
	margin-top: calc(0.8rem + 0.45rem + 0.36rem - 1.5px);
	background: #5a6168;
	align-self: flex-start;
	border-radius: 2px;
}

.asg-wf-line.is-done {
	background: #6fbf73;
}

.asg-wf-line.is-bad {
	background: #d96b76;
}

.asg-wf-meta {
	margin-top: 0.45rem;
	font-size: 0.72rem;
	line-height: 1.25;
	min-height: 3.2em;
}

.asg-wf-date {
	font-weight: 600;
	color: inherit;
}

.asg-wf-time {
	color: #aeb5bb;
}

.asg-wf-step.is-done .asg-wf-time {
	color: #c5ccd2;
}

.asg-wf-name {
	font-weight: 500;
	color: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.asg-wf-empty {
	color: #7a8289;
}

@media (max-width: 575.98px) {
	.team-col {
		flex-basis: 15.5rem;
		width: 15.5rem;
		max-width: 15.5rem;
	}
}

.border-dashed {
	border-style: dashed !important;
}

.song-last-used {
	color: #0b7f8a;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.navbar-brand small { font-size: 0.7rem; }
.fs-8 { font-size: 0.7rem; }
.object-fit-cover { object-fit: cover; }

.navbar-logo {
	height: 72px;
	width: auto;
	object-fit: contain;
	background: #fff;
	border-radius: 0.75rem;
	padding: 0;
	display: block;
}

.navbar-logo-icon {
	height: 2.5rem;
	width: 2.5rem;
	background: #fff;
	border-radius: 0.45rem;
	padding: 0.15rem;
}

@media (max-width: 767.98px) {
	.navbar-brand-text {
		font-size: 1.35rem !important;
		margin-left: 0.35rem !important;
	}
}

.app-menubar .app-nav-select,
[data-bs-theme="dark"] .app-menubar .app-nav-select {
	width: 100%;
	font-weight: 500;
	color: #fff;
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.28);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	color-scheme: dark;
}

.app-menubar .app-nav-select:focus,
[data-bs-theme="dark"] .app-menubar .app-nav-select:focus {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.14);
	border-color: rgba(225, 150, 83, 0.7);
	box-shadow: 0 0 0 0.2rem rgba(225, 150, 83, 0.25);
}

.app-menubar .app-nav-select option {
	color: #212529;
	background: #fff;
}

[data-bs-theme="dark"] .app-menubar .app-nav-select option,
[data-bs-theme="dark"] .form-select option {
	color: var(--kreo-text);
	background-color: var(--kreo-surface);
}

.kreo-back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1040;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--renewal-secondary);
	color: #fff;
	box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	line-height: 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(0.5rem);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
}

.kreo-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.kreo-back-to-top:hover,
.kreo-back-to-top:focus-visible {
	background: var(--renewal-secondary-hover);
	color: #fff;
}

.kreo-back-to-top:focus-visible {
	outline: 2px solid var(--renewal-secondary);
	outline-offset: 2px;
}

.login-logo {
	height: 140px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.role-unfilled {
	background-color: var(--bs-warning-bg-subtle);
	border-radius: 0.5rem;
	padding: 0.35rem 0.5rem;
}

.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.4rem;
}
.cal-dow {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--bs-secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.35rem 0;
}
.cal-day {
	min-height: 6.5rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.5rem;
	padding: 0.4rem;
	background: var(--bs-body-bg);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.cal-day.out {
	opacity: 0.45;
	background: var(--bs-secondary-bg);
}
.cal-day.today {
	box-shadow: inset 0 0 0 2px var(--renewal);
}
.cal-day-num { font-weight: 700; font-size: 0.85rem; }
.cal-chip {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.35rem;
	border-radius: 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: var(--cal-color, #10365b);
	border: 1px solid transparent;
}
.cal-chip.is-virtual {
	background: color-mix(in srgb, var(--cal-color, #10365b) 14%, #fff);
	color: var(--cal-color, #10365b);
	border-color: color-mix(in srgb, var(--cal-color, #10365b) 45%, #fff);
}
.cal-chip:hover { filter: brightness(1.08); color: #fff; }
.cal-chip.is-virtual:hover { color: var(--cal-color, #10365b); filter: brightness(0.97); }
.cal-chip-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cal-dot {
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--cal-color, #10365b);
	border: 1.5px solid var(--cal-color, #10365b);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.cal-dot.is-virtual {
	background: transparent;
}
.cal-chip.is-saved .cal-dot {
	background: #fff;
	border-color: #fff;
}
.cal-chip.is-virtual .cal-dot {
	background: transparent;
	border-color: var(--cal-color, #10365b);
	box-shadow: none;
}
.cal-legend {
	flex-wrap: wrap;
	gap: 0.75rem 1.1rem;
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
}
.cal-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

@media (max-width: 767.98px) {
	.cal-grid {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.site-cal-list {
		display: none !important;
	}
}

.site-cal-list-month-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

.site-cal-list-month + .site-cal-list-month {
	margin-top: 2rem;
}

.site-cal-list-day {
	margin-bottom: 1.1rem;
}

.site-cal-list-date {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--bs-secondary-color);
	margin: 0 0 0.5rem;
}

.site-cal-list-day.is-today .site-cal-list-date {
	color: var(--renewal);
}

.site-cal-list-item {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.55rem;
	row-gap: 0.25rem;
	align-items: center;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0.85rem 0.95rem 0.85rem 1.05rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.75rem;
	background: var(--bs-body-bg);
	box-shadow: inset 4px 0 0 var(--cal-color, var(--renewal));
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	text-align: left;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.site-cal-list-item .cal-dot {
	grid-row: 1 / span 2;
	align-self: center;
	box-shadow: none;
}
.site-cal-list-item.is-saved .cal-dot {
	background: var(--cal-color, #10365b);
	border-color: var(--cal-color, #10365b);
}
.site-cal-list-item.is-virtual .cal-dot {
	background: transparent;
	border-color: var(--cal-color, #10365b);
}
.site-cal-list-item .site-cal-list-time,
.site-cal-list-item .site-cal-list-title {
	grid-column: 2;
}

.site-cal-list-item:last-child {
	margin-bottom: 0;
}

.site-cal-list-item:hover,
.site-cal-list-item:focus-visible {
	color: inherit;
	background: var(--kreo-surface);
	box-shadow: inset 4px 0 0 var(--cal-color, var(--renewal)), 0 8px 20px var(--kreo-shadow);
}

.site-cal-list-item:focus-visible {
	outline: 2px solid var(--renewal-secondary);
	outline-offset: 2px;
}

.site-cal-list-item.is-cancelled .site-cal-list-title {
	text-decoration: line-through;
	opacity: 0.78;
}

.site-cal-list-time {
	font-variant-numeric: tabular-nums;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--renewal);
	line-height: 1.35;
}

.site-cal-list-title {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.35;
}

.site-cal-list-title strong {
	font-weight: 800;
}

.site-cal-list-sentinel {
	height: 1px;
}

.site-cal-list-status {
	padding: 0.35rem 0.15rem;
}

/* Select hints: browsers limit option styling; class kept for future / some UIs */
select.form-select option.opt-blocked {
	color: #9a3412;
	font-weight: 600;
}
select.form-select option.opt-busy {
	color: #166534;
	font-weight: 600;
}

.plan-table .form-control-sm,
.plan-table .form-select-sm {
	min-width: 0;
}

.plan-table-view .plan-row-editable {
	cursor: pointer;
}

.plan-table-view .plan-row-editable:hover {
	background-color: rgba(var(--renewal-rgb), 0.06);
}

.plan-drag-cell {
	width: 2rem;
	vertical-align: middle !important;
}

.plan-drag-handle {
	cursor: grab;
	display: inline-flex;
	padding: 0.35rem 0.2rem;
	font-size: 1.1rem;
	line-height: 1;
	user-select: none;
}

.plan-drag-handle:active {
	cursor: grabbing;
}

.plan-row-ghost {
	opacity: 0.55;
	background: #fff8e6 !important;
}

.plan-content-preview {
	max-width: 36rem;
}

.plan-offcanvas {
	--bs-offcanvas-width: min(420px, 100vw);
}

.plan-row-song .fw-semibold {
	color: inherit;
}

.plan-row-song .plan-song-link {
	color: inherit;
}

.plan-row-song .plan-song-link:hover,
.plan-row-song .plan-song-link:focus-visible {
	color: var(--bs-link-hover-color, var(--kreo-link));
	text-decoration: underline !important;
}

.plan-row-song {
	background-color: rgba(var(--renewal-rgb), 0.04);
}

/* Song sheets / ChordPro — IBM Plex Mono covers Latin + Cyrillic with matching metrics */
.song-sheet {
	font-family: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace;
	font-size: 0.95rem;
	line-height: 1.2;
	overflow-x: auto;
	-webkit-font-smoothing: antialiased;
}
.song-line {
	margin-bottom: 0.55rem;
}
.song-blank {
	height: 0.75rem;
}
.song-directive {
	font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--renewal);
	margin: 0.85rem 0 0.35rem;
}
.song-chord-line,
.song-lyric-line {
	white-space: pre;
	font-family: inherit;
	tab-size: 4;
}
.song-chord-line {
	color: #b71c1c;
	font-weight: 700;
	min-height: 1.15em;
	line-height: 1.15;
}
.song-lyric-line {
	color: var(--bs-body-color);
	font-weight: 400;
	line-height: 1.25;
}
.song-line-paired {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	row-gap: 0.15em;
}
.song-seg {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 100%;
	font-family: inherit;
}
.song-chord-seg {
	color: #b71c1c;
	font-weight: 700;
	min-height: 1.15em;
	line-height: 1.15;
	white-space: pre;
}
.song-chord-plain {
	color: var(--bs-secondary-color, #6c757d);
	font-weight: 400;
	min-height: 1.15em;
	line-height: 1.15;
	white-space: pre;
}
.song-lyric-seg {
	color: var(--bs-body-color);
	font-weight: 400;
	line-height: 1.25;
	white-space: pre-wrap;
}
.song-edit-card {
	overflow: hidden;
}
.song-edit-card-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.85rem 1.15rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.song-edit-card-toggle:hover {
	background: rgba(0, 0, 0, 0.03);
}
.song-edit-card-toggle:focus-visible {
	outline: 2px solid var(--renewal, #0d6efd);
	outline-offset: -2px;
}
.song-edit-card-toggle .bi-chevron-down {
	flex: 0 0 auto;
	transition: transform 0.15s ease;
	opacity: 0.65;
}
.song-edit-card-toggle:not(.collapsed) .bi-chevron-down {
	transform: rotate(180deg);
}
.song-edit-card > .collapse > .card-body {
	padding-top: 0;
}
.song-editor-split {
	display: flex;
	gap: 1rem;
	align-items: stretch;
}
.song-editor-col,
.song-preview-col {
	flex: 1 1 0;
	min-width: 0;
	min-height: 0;
}
.song-preview-col {
	/* A4 portrait: 210mm × 297mm */
	aspect-ratio: 210 / 297;
}
.song-editor-col {
	display: flex;
	flex-direction: column;
}
.song-editor-wrap {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--bs-border-radius, 0.375rem);
}
.song-editor-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	padding: 0.375rem 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--bs-border-radius, 0.375rem);
	overflow: hidden;
	pointer-events: none;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	word-wrap: break-word;
	tab-size: 4;
	font-family: var(--bs-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
	font-size: 0.9rem;
	line-height: 1.5;
	/* Always light sheet — readable chord highlighting in both UI themes. */
	color: #212529;
	background: #fff;
	box-sizing: border-box;
}
.song-editor-backdrop .song-editor-chord {
	color: #b71c1c;
	font-weight: 600;
}
.song-editor-backdrop .song-editor-directive {
	color: #10365b;
	font-weight: 600;
}
/* Keep textarea glyphs invisible so the backdrop highlight shows through.
   Must beat Bootstrap `.form-control:focus` (color + background).
   Use a solid `color` (not transparent): Chrome draws the text drag/drop
   insertion caret from `color`, while glyphs stay hidden via text-fill. */
.form-control.song-editor,
.form-control.song-editor:focus {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	resize: none;
	font-size: 0.9rem;
	line-height: 1.5;
	tab-size: 4;
	background-color: transparent;
	color: #212529;
	-webkit-text-fill-color: transparent;
	caret-color: #212529;
}
.form-control.song-editor::selection {
	background-color: rgba(13, 110, 253, 0.28);
	/* Keep selected glyphs invisible; tint comes from background only. */
	color: #212529;
	-webkit-text-fill-color: transparent;
}
.song-editor-wrap.is-plain .form-control.song-editor,
.song-editor-wrap.is-plain .form-control.song-editor:focus {
	background-color: #fff;
	color: #212529;
	-webkit-text-fill-color: #212529;
}
.song-editor-wrap.is-plain .form-control.song-editor::selection {
	color: #212529;
	-webkit-text-fill-color: #212529;
}
/* Chrome hides the native text-drag insertion caret when glyphs are fill-transparent;
   we draw a stand-in during dragover. */
.song-editor-drop-caret {
	position: absolute;
	z-index: 3;
	width: 2px;
	margin-left: -1px;
	background: #212529;
	pointer-events: none;
	display: none;
	border-radius: 1px;
}
.song-editor-drop-caret.is-visible {
	display: block;
}
.song-editor-wrap.is-plain .song-editor-backdrop {
	visibility: hidden;
}
.chord-format-toggle .btn.active {
	background: var(--renewal);
	border-color: var(--renewal);
	color: #fff;
}
.chord-format-stack {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.05;
	font-size: 0.62rem;
	font-family: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace;
}
.chord-format-stack span:first-child {
	font-weight: 700;
	color: #b71c1c;
}
.chord-format-toggle .btn.active .chord-format-stack span:first-child {
	color: #fff;
}
.chord-format-toggle .btn {
	min-width: 2.6rem;
	line-height: 1.1;
	padding-top: 0.22rem;
	padding-bottom: 0.22rem;
}
.song-editor-above {
	line-height: 1.5;
}
.song-preview-wrap {
	height: 100%;
	min-height: 0;
	max-height: none;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0.75rem 1rem 1rem;
	/* Always light sheet — matches printed/stage lyric pages. */
	background-color: #fff !important;
	color: #212529;
}
.song-preview {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	font-family: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace;
	font-size: 0.85rem;
	line-height: 1.2;
	color: #212529;
}
.song-preview .song-lyric-line,
.song-preview .song-lyric-seg {
	color: #212529;
}
.song-preview .song-chord-plain {
	color: #6c757d;
}
.song-preview .song-directive {
	color: #10365b;
}
@media (max-width: 991.98px) {
	.song-editor-split {
		flex-direction: column;
	}
	.song-editor-col,
	.song-preview-col {
		flex: 1 1 auto;
		width: 100%;
		aspect-ratio: 297 / 210;
	}
}
.chord-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.section-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.section-palette .section-insert .text-muted {
	font-weight: 400;
}

.structure-editor-split {
	display: flex;
	gap: 1rem;
	align-items: stretch;
}
.structure-palette-col {
	flex: 1 1 0;
	min-width: 0;
}
.structure-list-col {
	flex: 1 1 0;
	min-width: 0;
}
.structure-palette {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	align-content: flex-start;
	min-height: 8rem;
	padding: 0.65rem;
	background: var(--kreo-surface-2);
	border: 1px solid var(--kreo-border);
	border-radius: 0.5rem;
}
.structure-palette-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}
.structure-palette .structure-add {
	cursor: grab;
}
.structure-palette .structure-add:active {
	cursor: grabbing;
}
.structure-add-variant {
	min-width: 2rem;
}
.structure-editor-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 8rem;
	padding: 0.65rem;
	background: var(--kreo-surface-2);
	border: 1px dashed var(--kreo-border-strong);
	border-radius: 0.5rem;
}
.structure-empty-hint {
	padding: 0.85rem 0.35rem;
	text-align: center;
}
.structure-editor-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.45rem;
	background: var(--kreo-surface);
	border: 1px solid var(--kreo-border);
	border-radius: 0.4rem;
	user-select: none;
}
.structure-drag-handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--kreo-muted);
	cursor: grab;
	padding: 0.1rem;
	flex: 0 0 auto;
}
.structure-drag-handle:active {
	cursor: grabbing;
}
.structure-editor-label {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	color: var(--kreo-link);
}
.structure-editor-item .structure-remove {
	flex: 0 0 auto;
}
.structure-item-ghost {
	opacity: 0.55;
}
@media (max-width: 767.98px) {
	.structure-editor-split {
		flex-direction: column;
	}
}
.song-structure-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0;
}
.song-struct-chip {
	font-weight: 600;
	color: var(--renewal) !important;
}

.song-page-break {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.25rem 0;
	color: var(--bs-secondary-color);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}
.song-page-break::before,
.song-page-break::after {
	content: "";
	flex: 1;
	border-top: 2px dashed var(--bs-border-color);
}
.song-page-break::after {
	content: "разрыв страницы";
	flex: 0 0 auto;
	border: 0;
	padding: 0.15rem 0.5rem;
	border-radius: 0.35rem;
	background: var(--bs-secondary-bg);
	font-size: 0.7rem;
}
.song-preview-wrap .song-page-break::after {
	content: "разрыв страницы";
}

/* People typeahead picker */
.people-picker {
	position: relative;
}
.people-picker-results {
	position: absolute;
	z-index: 1080;
	left: 0;
	right: 0;
	top: calc(100% + 0.15rem);
	max-height: 16rem;
	overflow-y: auto;
}
.people-picker-group {
	background: var(--bs-secondary-bg);
	pointer-events: none;
}
.people-picker-item.people-picker-blocked {
	color: var(--bs-danger);
}
.people-picker-results .list-group-item.active {
	background-color: var(--renewal);
	border-color: var(--renewal);
	color: #fff;
}
.people-picker-results .list-group-item.active.people-picker-blocked {
	background-color: var(--bs-danger);
	border-color: var(--bs-danger);
}

.form-control-color {
	width: 3.25rem;
	height: 2.4rem;
	padding: 0.2rem;
	cursor: pointer;
}

/* My schedule — compact month calendar */
.schedule-cal-card {
	overflow: hidden;
}
@media (max-width: 991.98px) {
	.schedule-cal-card {
		display: none !important;
	}
}
.schedule-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.2rem;
}
.schedule-cal-dow {
	text-align: center;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--bs-secondary-color);
	text-transform: uppercase;
	padding: 0.15rem 0;
}
.schedule-cal-day {
	aspect-ratio: 1;
	border-radius: 0.4rem;
	border: 1px solid transparent;
	background: var(--bs-secondary-bg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.15rem;
	min-height: 2.35rem;
}
.schedule-cal-day.out {
	opacity: 0.35;
}
.schedule-cal-day.today {
	border-color: var(--renewal);
	background: rgba(16, 54, 91, 0.06);
}
button.schedule-cal-day {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	width: 100%;
	padding: 0.15rem;
}
button.schedule-cal-day.is-blocked-day {
	border-color: rgba(220, 53, 69, 0.45);
	background: rgba(220, 53, 69, 0.08);
}
button.schedule-cal-day.is-blocked-day:hover,
button.schedule-cal-day.is-blocked-day:focus-visible {
	border-color: #dc3545;
	background: rgba(220, 53, 69, 0.16);
}
.schedule-block-pick-day.is-disabled {
	opacity: 0.35;
	cursor: default;
}
.schedule-block-pick-day.is-selected {
	background: rgba(16, 54, 91, 0.14);
	border-color: rgba(16, 54, 91, 0.35);
}
.schedule-block-pick-day.is-endpoint {
	background: var(--renewal, #10365b);
	border-color: var(--renewal, #10365b);
	color: #fff;
}
.schedule-block-pick-day.is-endpoint .schedule-cal-num {
	color: #fff;
}
.schedule-block-picker {
	user-select: none;
}
.schedule-cal-num {
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1;
}
.schedule-cal-dots {
	display: flex;
	gap: 0.18rem;
	align-items: center;
	min-height: 0.45rem;
}
.schedule-cal-dots .dot,
.schedule-cal-legend .dot {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	flex-shrink: 0;
}
.schedule-cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	font-size: 0.75rem;
	color: var(--bs-secondary-color);
}
.schedule-cal-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
.dot.is-confirmed { background: #198754; }
.dot.is-pending { background: #fd7e14; }
.dot.is-blocked { background: #dc3545; }

.schedule-blocks li:last-child {
	border-bottom: 0 !important;
}
.schedule-asg-list {
	display: flex;
	flex-direction: column;
}
.schedule-asg-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--bs-border-color);
}
.schedule-asg-item:last-child {
	border-bottom: 0;
}
.schedule-asg-item.is-pending {
	background: rgba(253, 126, 20, 0.06);
}
.schedule-asg-main {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
	flex: 1 1 14rem;
}
.schedule-asg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.people-status-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}
.people-status-stat {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 0.5rem;
	border: 1px solid transparent;
	font-size: 0.875rem;
	line-height: 1.3;
}
.people-status-stat-label {
	color: var(--bs-secondary-color);
}
.people-status-stat-n {
	font-variant-numeric: tabular-nums;
}
.people-status-stat-total {
	background-color: var(--bs-secondary-bg);
	border-color: var(--bs-secondary-border-subtle);
}
.people-status-stat-new {
	background-color: var(--bs-success-bg-subtle);
	border-color: var(--bs-success-border-subtle);
}
.people-status-stat-new .people-status-stat-n {
	color: var(--bs-success-text-emphasis);
}
.people-status-stat-parishioner {
	background-color: var(--bs-secondary-bg);
	border-color: var(--bs-secondary-border-subtle);
}
.people-status-stat-member {
	background-color: var(--bs-primary-bg-subtle);
	border-color: var(--bs-primary-border-subtle);
}
.people-status-stat-member .people-status-stat-n {
	color: var(--bs-primary-text-emphasis);
}
.people-status-stat.is-active {
	box-shadow: 0 0 0 0.12rem rgba(13, 110, 253, 0.25);
}

.people-pair-col {
	width: 1%;
	white-space: nowrap;
	vertical-align: middle;
}

.people-inline-select {
	min-width: 9.5rem;
	width: auto;
	max-width: 12.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
	padding-left: 0.55rem;
	border-radius: 0.5rem;
}

.people-inline-select.people-tone-new,
.people-inline-select.people-tone-new:focus {
	background-color: var(--bs-success-bg-subtle);
	border-color: var(--bs-success-border-subtle);
	color: var(--bs-success-text-emphasis);
}
.people-inline-select.people-tone-parishioner,
.people-inline-select.people-tone-parishioner:focus {
	background-color: var(--bs-secondary-bg);
	border-color: var(--bs-secondary-border-subtle);
	color: var(--bs-secondary-text-emphasis);
}
.people-inline-select.people-tone-member,
.people-inline-select.people-tone-member:focus {
	background-color: var(--bs-primary-bg-subtle);
	border-color: var(--bs-primary-border-subtle);
	color: var(--bs-primary-text-emphasis);
}
.people-inline-select.people-tone-admin,
.people-inline-select.people-tone-admin:focus {
	background-color: var(--bs-warning-bg-subtle);
	border-color: var(--bs-warning-border-subtle);
	color: var(--bs-warning-text-emphasis);
}
.people-inline-select.people-tone-editor,
.people-inline-select.people-tone-editor:focus,
.people-inline-select.people-tone-viewer,
.people-inline-select.people-tone-viewer:focus {
	background-color: var(--bs-info-bg-subtle);
	border-color: var(--bs-info-border-subtle);
	color: var(--bs-info-text-emphasis);
}
.people-inline-select.people-tone-none,
.people-inline-select.people-tone-none:focus {
	background-color: var(--bs-body-bg);
	color: var(--bs-secondary-color);
}

.people-inline-select.people-select-saved {
	box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.35);
}

.people-teams-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.people-teams-toggle:hover {
	background: rgba(0, 0, 0, 0.03);
}
.people-teams-toggle:focus-visible {
	outline: 2px solid var(--renewal, #0d6efd);
	outline-offset: -2px;
}
.people-teams-toggle .bi-chevron-down {
	flex: 0 0 auto;
	transition: transform 0.15s ease;
	opacity: 0.65;
}
.people-teams-toggle:not(.collapsed) .bi-chevron-down {
	transform: rotate(180deg);
}
.people-teams-body {
	padding: 0 1rem 1rem;
}
.people-teams-group + .people-teams-group {
	padding-top: 0.75rem;
	border-top: 1px solid var(--bs-border-color);
}

/* Person avatars / photos */
.person-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
	background: #9aa1a8;
	color: #fff;
	font-weight: 600;
	line-height: 1;
	vertical-align: middle;
}
.person-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.person-avatar-initials {
	user-select: none;
}
.person-avatar-xs {
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.55rem;
}
.person-avatar-sm {
	width: 2.25rem;
	height: 2.25rem;
	font-size: 0.7rem;
}
.person-avatar-md {
	width: 3rem;
	height: 3rem;
	font-size: 0.9rem;
}
.person-avatar-lg {
	width: 4.5rem;
	height: 4.5rem;
	font-size: 1.25rem;
}
.person-avatar-nav {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
}
.person-avatar-link {
	display: inline-flex;
	text-decoration: none;
}
.people-name-link:hover {
	color: var(--kreo-link) !important;
	text-decoration: underline !important;
}
.person-avatar-stage {
	background: rgba(255, 255, 255, 0.15);
	color: #e8efed;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.person-photo-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.person-photo-tile {
	position: relative;
	width: 7.5rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.5rem;
	padding: 0.35rem;
	background: var(--bs-body-bg);
}
.person-photo-tile.is-default {
	border-color: var(--renewal);
	box-shadow: 0 0 0 1px rgba(var(--renewal-rgb), 0.25);
}
.person-photo-thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 0.35rem;
	background: var(--bs-secondary-bg);
}
.person-photo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.person-photo-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	font-size: 0.65rem;
}
.person-photo-actions {
	display: flex;
	justify-content: center;
	margin-top: 0.35rem;
	width: 100%;
}

.people-picker-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-align: left;
}
.people-picker-avatar {
	flex-shrink: 0;
}
.people-picker-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* PWA install / Add to Home Screen prompt */
.kreo-pwa-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1080;
	padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
}

.kreo-pwa-banner-inner {
	pointer-events: auto;
	max-width: 32rem;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.85rem 0.9rem;
	border-radius: 14px;
	background: var(--kreo-surface);
	border: 1px solid var(--kreo-border);
	box-shadow: 0 -0.5rem 1.5rem var(--kreo-shadow);
}

.kreo-pwa-banner-icon {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 10px;
	background: var(--renewal);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.15rem;
}

.kreo-pwa-banner-copy {
	flex: 1;
	min-width: 0;
}

.kreo-pwa-banner-title {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--kreo-text);
	line-height: 1.25;
}

.kreo-pwa-banner-body,
.kreo-pwa-banner-ios {
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.35;
	margin-top: 0.2rem;
}

.kreo-pwa-banner-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.15rem;
	flex-shrink: 0;
}

.kreo-pwa-dismiss {
	text-decoration: none !important;
	font-size: 0.78rem;
	padding: 0.15rem 0.35rem !important;
}

@media (min-width: 576px) {
	.kreo-pwa-banner {
		padding: 1rem;
	}
	.kreo-pwa-banner-actions {
		flex-direction: row;
		align-items: center;
	}
}

.kreo-install-shell .kreo-install-card {
	padding-bottom: 1.5rem;
}

.kreo-install-steps {
	padding-left: 1.25rem;
	margin: 0;
	color: #334155;
	line-height: 1.45;
}

.kreo-install-steps li + li {
	margin-top: 0.65rem;
}

.kreo-install-ios-icons {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 1.35rem;
	color: var(--renewal);
	margin-bottom: 0.35rem;
}

.kreo-install-share .form-control {
	font-size: 0.8rem;
}

/* Help */
.help-layout {
	display: grid;
	grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 767.98px) {
	.help-layout {
		grid-template-columns: 1fr;
	}
}

.help-toc {
	position: sticky;
	top: 6.5rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid rgba(16, 54, 91, 0.12);
	border-radius: 0.75rem;
}

[data-bs-theme="dark"] .help-toc {
	background: var(--kreo-surface);
	border-color: var(--kreo-border);
}

@media (max-width: 767.98px) {
	.help-toc {
		position: static;
		top: auto;
	}
}

.help-toc-label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6c757d;
	margin-bottom: 0.5rem;
}

.help-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.help-toc-list a {
	display: block;
	padding: 0.25rem 0;
	font-size: 0.9rem;
	color: var(--renewal);
	text-decoration: none;
}

.help-toc-list a:hover,
.help-toc-list a:focus-visible {
	text-decoration: underline;
}

.help-sections .accordion-item {
	border-color: rgba(16, 54, 91, 0.12);
}

.help-sections .accordion-button {
	font-weight: 650;
	color: var(--renewal);
}

.help-sections .accordion-button:not(.collapsed) {
	background: rgba(16, 54, 91, 0.06);
	color: var(--renewal);
	box-shadow: none;
}

.help-sections .accordion-button:focus {
	box-shadow: 0 0 0 0.2rem rgba(16, 54, 91, 0.15);
}

.help-sections .accordion-body p:last-child {
	margin-bottom: 0;
}

.help-sections .accordion-body ul {
	padding-left: 1.15rem;
}

.help-sections .accordion-body li + li {
	margin-top: 0.35rem;
}

/* Dark theme polish for remaining light-hardcoded surfaces */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .accordion-item {
	background-color: var(--kreo-surface);
	border-color: var(--kreo-border);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .table {
	--bs-table-bg: transparent;
	--bs-table-color: var(--kreo-text);
	--bs-table-border-color: var(--kreo-border);
	--bs-table-striped-bg: rgba(255, 255, 255, 0.03);
	--bs-table-hover-bg: rgba(255, 255, 255, 0.05);
}

/* Bootstrap row/header tone classes stay light unless remapped */
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table > :not(caption) > * > .table-light,
[data-bs-theme="dark"] thead.table-light,
[data-bs-theme="dark"] tr.table-light,
[data-bs-theme="dark"] .table-light > th,
[data-bs-theme="dark"] .table-light > td {
	--bs-table-color: var(--kreo-text);
	--bs-table-bg: var(--kreo-surface-2);
	--bs-table-border-color: var(--kreo-border);
	--bs-table-striped-bg: var(--kreo-surface-3);
	--bs-table-striped-color: var(--kreo-text);
	--bs-table-active-bg: var(--kreo-surface-3);
	--bs-table-active-color: var(--kreo-text);
	--bs-table-hover-bg: rgba(255, 255, 255, 0.06);
	--bs-table-hover-color: var(--kreo-text);
	color: var(--kreo-text);
	background-color: var(--kreo-surface-2);
	border-color: var(--kreo-border);
}

[data-bs-theme="dark"] .table-secondary,
[data-bs-theme="dark"] .table > :not(caption) > * > .table-secondary,
[data-bs-theme="dark"] tr.table-secondary,
[data-bs-theme="dark"] .table-secondary > th,
[data-bs-theme="dark"] .table-secondary > td {
	--bs-table-color: var(--kreo-muted);
	--bs-table-bg: rgba(255, 255, 255, 0.04);
	--bs-table-border-color: var(--kreo-border);
	--bs-table-striped-bg: rgba(255, 255, 255, 0.05);
	--bs-table-striped-color: var(--kreo-muted);
	--bs-table-active-bg: rgba(255, 255, 255, 0.06);
	--bs-table-active-color: var(--kreo-text);
	--bs-table-hover-bg: rgba(255, 255, 255, 0.07);
	--bs-table-hover-color: var(--kreo-text);
	color: var(--kreo-muted);
	background-color: rgba(255, 255, 255, 0.04);
	border-color: var(--kreo-border);
}

[data-bs-theme="dark"] .text-bg-light {
	color: var(--kreo-muted) !important;
	background-color: var(--kreo-surface-3) !important;
}

[data-bs-theme="dark"] .bg-body-tertiary,
[data-bs-theme="dark"] .bg-body-secondary {
	background-color: var(--kreo-surface-2) !important;
}

[data-bs-theme="dark"] .list-group-item-light {
	color: var(--kreo-text);
	background-color: var(--kreo-surface-2);
}

[data-bs-theme="dark"] .accordion-button {
	background-color: var(--kreo-surface);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
	background-color: var(--kreo-surface-2);
	color: var(--kreo-text);
	box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--kreo-border);
}

[data-bs-theme="dark"] .accordion-button::after {
	filter: invert(1) grayscale(100%);
	opacity: 0.75;
}

[data-bs-theme="dark"] .accordion-item {
	background-color: var(--kreo-surface);
	border-color: var(--kreo-border);
}

[data-bs-theme="dark"] .accordion-body {
	background-color: var(--kreo-surface);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select:not(.people-inline-select) {
	background-color: var(--kreo-surface-2);
	border-color: var(--kreo-border-strong);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:not(.people-inline-select):focus {
	background-color: var(--kreo-surface-2);
	border-color: rgba(142, 182, 222, 0.55);
	color: var(--kreo-text);
	box-shadow: 0 0 0 0.2rem rgba(142, 182, 222, 0.2);
}

[data-bs-theme="dark"] .form-control::placeholder {
	color: var(--kreo-muted-2);
}

[data-bs-theme="dark"] .input-group-text {
	background-color: var(--kreo-surface-3);
	border-color: var(--kreo-border-strong);
	color: var(--kreo-muted);
}

[data-bs-theme="dark"] .nav-tabs {
	border-bottom-color: var(--kreo-border);
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
	color: var(--kreo-muted);
	background-color: transparent;
	border-color: transparent;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover,
[data-bs-theme="dark"] .nav-tabs .nav-link:focus {
	border-color: var(--kreo-border);
	background-color: rgba(255, 255, 255, 0.04);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
	background-color: var(--kreo-surface);
	border-color: var(--kreo-border) var(--kreo-border) var(--bs-body-bg);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .card > .card-header {
	background-color: var(--kreo-surface-2);
	border-bottom-color: var(--kreo-border);
	color: var(--kreo-text);
}

/* Hardcoded Bootstrap utilities that fight dark theme */
[data-bs-theme="dark"] .bg-white {
	background-color: var(--kreo-surface) !important;
}

/* Song edit editor/preview stay white paper even in dark UI */
[data-bs-theme="dark"] .song-preview-wrap.bg-white,
[data-bs-theme="dark"] .song-preview-wrap {
	background-color: #fff !important;
}
[data-bs-theme="dark"] .song-editor-wrap .form-control.song-editor,
[data-bs-theme="dark"] .song-editor-wrap .form-control.song-editor:focus {
	background-color: transparent;
	color: #212529;
	caret-color: #212529;
}
[data-bs-theme="dark"] .song-editor-wrap.is-plain .form-control.song-editor,
[data-bs-theme="dark"] .song-editor-wrap.is-plain .form-control.song-editor:focus {
	background-color: #fff;
}

[data-bs-theme="dark"] .bg-light {
	background-color: var(--kreo-surface-2) !important;
}

[data-bs-theme="dark"] .card-header.bg-white,
[data-bs-theme="dark"] .card-header {
	background-color: var(--kreo-surface-2) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
	--bs-btn-color: #c5ccd2;
	--bs-btn-border-color: rgba(255, 255, 255, 0.22);
	--bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
	--bs-btn-hover-border-color: rgba(255, 255, 255, 0.35);
	--bs-btn-hover-color: #fff;
	--bs-btn-active-bg: rgba(255, 255, 255, 0.12);
	--bs-btn-active-border-color: rgba(255, 255, 255, 0.4);
	--bs-btn-active-color: #fff;
}

[data-bs-theme="dark"] .btn-outline-renewal {
	--bs-btn-color: #8eb6de;
	--bs-btn-border-color: rgba(142, 182, 222, 0.45);
	--bs-btn-hover-color: #fff;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .form-text {
	color: var(--kreo-muted) !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
	border-color: var(--kreo-border) !important;
}

[data-bs-theme="dark"] .cal-day,
[data-bs-theme="dark"] .cal-event,
[data-bs-theme="dark"] .people-picker-menu,
[data-bs-theme="dark"] .plan-table,
[data-bs-theme="dark"] .song-list-card {
	background-color: var(--kreo-surface);
	border-color: var(--kreo-border);
	color: var(--kreo-text);
}

[data-bs-theme="dark"] .asg-workflow {
	background: #15191d;
}

[data-bs-theme="dark"] .asg-status-btn {
	color: #c5ccd2;
}

[data-bs-theme="dark"] .text-renewal {
	color: var(--kreo-link) !important;
}

[data-bs-theme="dark"] .help-toc-list a {
	color: var(--kreo-link);
}

[data-bs-theme="dark"] .help-toc-list a:hover,
[data-bs-theme="dark"] .help-toc-list a:focus-visible {
	color: var(--bs-link-hover-color);
}

[data-bs-theme="dark"] .help-sections .accordion-button {
	color: var(--kreo-link);
	background-color: var(--kreo-surface);
}

[data-bs-theme="dark"] .help-sections .accordion-button:not(.collapsed) {
	background: rgba(142, 182, 222, 0.1);
	color: var(--kreo-link);
}

[data-bs-theme="dark"] .help-sections .accordion-item {
	border-color: var(--kreo-border);
}

[data-bs-theme="dark"] .teams-board-group-label {
	color: var(--kreo-muted);
}

[data-bs-theme="light"] .asg-status-btn {
	color: #495057;
}

[data-bs-theme="light"] .asg-status-set {
	background: #f1f3f5;
}

[data-bs-theme="light"] .asg-person-hover {
	background: #2b2f33;
	border-color: transparent;
}

[data-bs-theme="light"] .asg-hover-btn {
	color: #f1f3f5;
}

/* Sunday attendance */
.att-month-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.att-month-select-form {
	margin: 0;
	min-width: 11rem;
}

.att-month-select-form .form-select {
	font-weight: 600;
	text-align: center;
}

.att-sticky-actions {
	position: sticky;
	top: 0.5rem;
	z-index: 5;
	padding: 0.5rem 0;
	background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
	backdrop-filter: blur(6px);
}

.att-table-wrap {
	border: 1px solid var(--kreo-border);
	border-radius: 0.75rem;
	background: var(--kreo-surface);
}

.att-table {
	margin-bottom: 0;
}

.att-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--kreo-surface);
	border-bottom-width: 1px;
	white-space: nowrap;
	font-size: 0.8rem;
	color: var(--kreo-muted);
	font-weight: 600;
}

.att-table .att-date-cell {
	min-width: 9.5rem;
	vertical-align: middle;
	font-weight: 600;
	font-size: 0.9rem;
	border-right: 1px solid var(--kreo-border);
}

.att-table .att-num {
	width: 5.25rem;
	min-width: 4.5rem;
	margin-left: auto;
	display: inline-block;
}

.att-table .att-slot-label {
	display: block;
	font-size: 0.875rem;
}

.att-row-missing {
	background: color-mix(in srgb, #f59e0b 8%, transparent);
}

.att-day-total {
	min-width: 4.5rem;
	vertical-align: middle !important;
	border-left: 1px solid var(--kreo-border);
}

.att-stat-card {
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--kreo-border);
	border-radius: 0.75rem;
	background: var(--kreo-surface);
	box-shadow: 0 0.125rem 0.35rem var(--kreo-shadow);
}

.att-stat-label {
	font-size: 0.8rem;
	color: var(--kreo-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.att-stat-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0.15rem 0;
	color: var(--kreo-link);
}

.att-stat-sub {
	font-size: 0.85rem;
	color: var(--kreo-muted);
}

.att-stat-yoy {
	margin-top: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.att-chart-card {
	padding: 1rem 1.1rem 0.75rem;
	border: 1px solid var(--kreo-border);
	border-radius: 0.75rem;
	background: var(--kreo-surface);
	box-shadow: 0 0.125rem 0.35rem var(--kreo-shadow);
	height: 100%;
}

.att-chart-card canvas {
	max-height: 260px;
}

