a {
	text-decoration: none !important;
}
.dashboard {
	display: grid;
	gap: 30px;
}

.top-row,
.bottom-row {
	display: grid;
	gap: 20px;
}

.top-row {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tile {
	position: relative;
	background: linear-gradient(135deg, var(--tenant-gradient-start, #582156), var(--tenant-gradient-end, #8e3a78));
	border-radius: 20px;
	color: white;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	padding: 10px;
}

.tile-content {
	z-index: 2;
	width: 100%;
	word-break: break-word;
}

.tile h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.tile-value {
	font-size: 2.5rem;
	font-weight: bold;
}

.tile-value.tile-value-sm {
	font-size: 0.95rem;
	font-weight: 600;
}

.tile-icon {
	position: absolute;
	right: -13px;
	bottom: -13px;
	font-size: 90px;
	color: rgba(255, 255, 255, 0.15);
	z-index: 1;
	pointer-events: none;
}

/* Bottom Row List Tiles */
.bottom-row {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.list-tile {
	background: linear-gradient(135deg, var(--tenant-gradient-start, #582156), var(--tenant-gradient-end, #8e3a78));
	border-radius: 20px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	color: white;
	min-width: 0;
}

.list-tile h4 {
	font-size: 1.1rem;
	margin-bottom: 15px;
	word-break: break-word;
}

.list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.list-item {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
	transition: 0.2s;
}
.list-item:hover {
	background: rgba(255, 255, 255, 0.32);
}

/* Override global tenant link color inside gradient list tiles */
.list-tile .list-item a,
.list-tile .list-item a:visited,
.list-tile .list-item a:hover,
.list-tile .list-item a:focus {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.list-tile .list-item a:hover {
	opacity: 0.92;
}
.list-item-title {
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 5px;
	word-break: break-word;
}

.list-item-meta {
	font-size: 0.8rem;
	display: flex;
	justify-content: space-between;
	opacity: 0.85;
}

.list-footer {
	margin-top: auto;
	text-align: center;
	padding-top: 14px;
	/* border-top: 2px solid rgba(255, 255, 255, 0.2); */
}

.list-footer .button {
	background: white;
	color: var(--tenant-primary, #582156) !important;
	border: none;
	padding: 8px 16px;
	border-radius: 25px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background 0.3s;
	text-decoration: none;
}

.list-footer .button:hover {
	background: #ddd;
}

/* Action button on contract rows inside gradient list tiles */
.list-tile .dashboard-contract-item .btn-book-hours {
	display: inline-block;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.72) !important;
	color: var(--tenant-primary, #582156) !important;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.list-tile .dashboard-contract-item .btn-book-hours:hover,
.list-tile .dashboard-contract-item .btn-book-hours:focus {
	background: rgba(255, 255, 255, 0.88) !important;
	color: var(--tenant-primary, #582156) !important;
	text-decoration: none !important;
	border-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 600px) {
	.tile {
		height: auto;
		padding: 15px;
	}

	.tile-value {
		font-size: 1.5rem;
	}

	.tile-value.tile-value-sm {
		font-size: 0.9rem;
	}

	.tile-icon {
		font-size: 70px;
	}

	.bottom-row {
		grid-template-columns: 1fr;
	}

	.list-tile {
		padding: 15px;
	}

	.list-footer .button {
		width: 100%;
	}
}

/* === Admin dashboard: Todos === */
.todo-dashboard-panel {
	background: var(--card-bg);
	color: var(--text-color);
	border-radius: 20px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 18%, transparent);
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

[data-theme='dark'] .todo-dashboard-panel {
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.todo-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 1rem;
}

.todo-panel-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-color);
}

.todo-panel-title .material-icons {
	font-size: 26px;
	color: var(--tenant-primary, #582156);
}

[data-theme='dark'] .todo-panel-title .material-icons {
	/* Neutral accent so icon stays readable on dark cards (avoid deep tenant purple) */
	color: rgba(255, 255, 255, 0.72);
}

.btn-todo-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0.55rem 1.1rem;
	border: none;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(
		135deg,
		var(--tenant-gradient-start, var(--tenant-primary, #582156)),
		var(--tenant-gradient-end, #8e3a78)
	);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--tenant-primary, #582156) 35%, transparent);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}

.btn-todo-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--tenant-primary, #582156) 45%, transparent);
}

.btn-todo-ghost {
	background: transparent;
	color: var(--tenant-primary, #582156);
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 45%, transparent);
	border-radius: 10px;
	padding: 0.35rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

[data-theme='dark'] .btn-todo-ghost {
	color: #e0e0e0;
	border-color: rgba(255, 255, 255, 0.25);
}

.btn-todo-ghost:hover {
	background: color-mix(in srgb, var(--tenant-primary, #582156) 12%, transparent);
}

[data-theme='dark'] .btn-todo-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

.btn-todo-danger {
	background: transparent;
	color: #c62828;
	border: 1px solid rgba(198, 40, 40, 0.35);
	border-radius: 10px;
	padding: 0.35rem 0.65rem;
	font-size: 0.8rem;
	cursor: pointer;
}

[data-theme='dark'] .btn-todo-danger {
	color: #ef9a9a;
	border-color: rgba(239, 154, 154, 0.4);
}

.todo-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1rem;
}

.todo-filter-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1rem;
}

.todo-filter-toolbar .todo-filter-chips {
	margin-bottom: 0;
}

.todo-filter-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-color);
	opacity: 0.85;
	white-space: nowrap;
}

.todo-filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.todo-chip {
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 25%, transparent);
	background: transparent;
	color: var(--text-color);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.todo-chip.is-active {
	background: color-mix(in srgb, var(--tenant-primary, #582156) 18%, transparent);
	border-color: var(--tenant-primary, #582156);
	color: var(--tenant-primary, #582156);
}

[data-theme='dark'] .todo-chip {
	border-color: rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.82);
}

[data-theme='dark'] .todo-chip.is-active {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.38);
	color: #fff;
}

.todo-list-wrap {
	min-height: 120px;
}

.todo-loading,
.todo-empty {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--text-color);
	opacity: 0.75;
	font-size: 0.95rem;
}

.todo-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.todo-card {
	border-radius: 16px;
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 14%, transparent);
	background: color-mix(in srgb, var(--tenant-primary, #582156) 4%, var(--card-bg));
	padding: 1rem 1.1rem;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: start;
	box-sizing: border-box;
	min-width: 0;
}

.todo-card--callback {
	border: 1px solid #d78a32;
	border-left: 5px solid #d78a32;
	background: color-mix(in srgb, #d78a32 8%, var(--card-bg));
}

[data-theme='dark'] .todo-card {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
}

[data-theme='dark'] .todo-card--callback {
	border-color: #d78a32;
	border-left-color: #d78a32;
	background: color-mix(in srgb, #d78a32 12%, var(--card-bg));
}

.todo-card-main {
	min-width: 0;
	cursor: pointer;
}

.todo-desc {
	font-weight: 600;
	font-size: 0.98rem;
	margin: 0 0 6px;
	word-break: break-word;
	color: var(--text-color);
}

.todo-desc a,
.todo-view-text a {
	color: var(--tenant-primary, #582156);
	text-decoration: underline;
	font-weight: 600;
	word-break: break-all;
}

[data-theme='dark'] .todo-desc a,
[data-theme='dark'] .todo-view-text a {
	color: #93c5fd;
}

.todo-meta {
	font-size: 0.78rem;
	opacity: 0.8;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 6px;
	color: inherit;
}

[data-theme='dark'] .todo-meta {
	opacity: 1;
	color: rgba(255, 255, 255, 0.86);
}

.todo-note-preview {
	font-size: 0.85rem;
	opacity: 0.9;
	margin: 0;
	word-break: break-word;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	cursor: pointer;
}

.todo-note-preview:hover {
	text-decoration: underline;
}

.todo-view-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	word-break: break-word;
}

.todo-view-muted {
	opacity: 0.75;
	font-style: italic;
}

.todo-view-note-body {
	margin: 0;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: min(50vh, 360px);
	overflow-y: auto;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='dark'] .todo-view-note-body {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.todo-modal--view .todo-modal-body {
	max-height: min(70vh, 520px);
	overflow-y: auto;
}

[data-theme='dark'] .todo-note-preview {
	opacity: 1;
	color: rgba(255, 255, 255, 0.88);
}

.todo-link {
	font-size: 0.85rem;
	color: var(--tenant-primary, #582156);
	text-decoration: underline !important;
	word-break: break-all;
}

[data-theme='dark'] .todo-link {
	/* Readable link on dark without heavy purple */
	color: #93c5fd;
}

.todo-card-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: stretch;
	min-width: 140px;
}

.todo-status-select {
	width: 100%;
	padding: 0.4rem 0.5rem;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 30%, transparent);
	background: var(--card-bg);
	color: var(--text-color);
	font-size: 0.8rem;
	cursor: pointer;
}

[data-theme='dark'] .todo-status-select {
	background: #3a3a3a;
	color: #f5f5f5;
	border-color: rgba(255, 255, 255, 0.35);
	color-scheme: dark;
}

[data-theme='dark'] .todo-status-select:focus {
	outline: 2px solid rgba(255, 255, 255, 0.35);
	outline-offset: 2px;
	border-color: rgba(255, 255, 255, 0.45);
}

[data-theme='dark'] .todo-status-select option {
	background: #2d2d2d;
	color: #f5f5f5;
}

.todo-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.todo-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.todo-badge--pending {
	background: color-mix(in srgb, var(--tenant-primary, #582156) 20%, transparent);
	color: var(--tenant-primary, #582156);
}

[data-theme='dark'] .todo-badge--pending {
	/* Dark purple on dark card failed contrast — use light label + subtle tint */
	background: rgba(255, 255, 255, 0.1);
	color: #f3e8ff;
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.todo-badge--progress {
	background: rgba(33, 150, 243, 0.2);
	color: #1565c0;
}

[data-theme='dark'] .todo-badge--progress {
	color: #90caf9;
}

.todo-badge--done {
	background: rgba(46, 125, 50, 0.2);
	color: #2e7d32;
}

[data-theme='dark'] .todo-badge--done {
	color: #a5d6a7;
}

/* Modal */
.todo-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	backdrop-filter: blur(2px);
}

.todo-modal {
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow: auto;
	background: var(--card-bg);
	color: var(--text-color);
	border-radius: 20px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 15%, transparent);
}

[data-theme='dark'] .todo-modal {
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.todo-modal-header {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 12%, transparent);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

[data-theme='dark'] .todo-modal-header {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.todo-modal-header h3 {
	margin: 0;
	font-size: 1.1rem;
}

.todo-modal-close {
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	color: var(--text-color);
	opacity: 0.7;
}

.todo-modal-body {
	padding: 1.25rem;
}

.todo-modal-body label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--text-color);
}

.todo-modal-body .form-row {
	margin-bottom: 1rem;
}

.todo-modal-body input[type='text'],
.todo-modal-body input[type='url'],
.todo-modal-body textarea,
.todo-modal-body select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 25%, transparent);
	background: var(--bg-color);
	color: var(--text-color);
	font-size: 0.9rem;
}

[data-theme='dark'] .todo-modal-body input[type='text'],
[data-theme='dark'] .todo-modal-body input[type='url'],
[data-theme='dark'] .todo-modal-body textarea,
[data-theme='dark'] .todo-modal-body select {
	background: #1e1e1e;
	border-color: rgba(255, 255, 255, 0.2);
}

.todo-modal-body textarea {
	min-height: 88px;
	resize: vertical;
}

.todo-modal-footer {
	padding: 0 1.25rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

@media (max-width: 640px) {
	.todo-card {
		grid-template-columns: 1fr;
	}

	.todo-card-actions {
		min-width: 0;
		width: 100%;
	}

	.todo-action-row {
		justify-content: stretch;
	}

	.todo-action-row .btn-todo-ghost,
	.todo-action-row .btn-todo-danger {
		flex: 1;
		text-align: center;
	}
}

/* Contractor dashboard — community drawer + sticky FAB */
.contractor-dashboard-page .dashboard-community-row {
	display: none !important;
}

body.community-drawer-open {
	overflow: hidden;
}

.community-drawer-fab {
	position: fixed;
	right: 1.35rem;
	bottom: 1.35rem;
	z-index: 1045;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.1rem 0.65rem 0.85rem;
	border: none;
	border-radius: 999px;
	background: linear-gradient(
		135deg,
		#25d366 0%,
		color-mix(in srgb, #25d366 55%, var(--tenant-primary, #582156)) 100%
	);
	color: #fff;
	box-shadow:
		0 10px 28px rgba(37, 211, 102, 0.35),
		0 4px 12px rgba(17, 24, 39, 0.18);
	cursor: pointer;
	transition:
		transform 0.25s cubic-bezier(0.32, 0.72, 0, 1),
		box-shadow 0.25s ease,
		padding 0.25s ease;
}

.community-drawer-fab:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow:
		0 14px 32px rgba(37, 211, 102, 0.42),
		0 6px 16px rgba(17, 24, 39, 0.2);
}

.community-drawer-fab.is-active {
	transform: scale(0.96);
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.community-drawer-fab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.community-drawer-fab-whatsapp {
	width: 1.35rem;
	height: 1.35rem;
}

.community-drawer-fab-text {
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
}

.community-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1048;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.32s ease,
		visibility 0.32s ease !important;
	backdrop-filter: blur(2px);
}

.community-drawer-backdrop.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.community-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1050;
	width: min(420px, 94vw);
	max-width: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -16px 0 48px rgba(15, 23, 42, 0.18);
	transform: translate3d(100%, 0, 0);
	visibility: hidden;
	pointer-events: none;
	will-change: transform;
	transition:
		transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
		visibility 0s linear 0.42s !important;
}

.community-drawer.is-open {
	transform: translate3d(0, 0, 0);
	visibility: visible;
	pointer-events: auto;
	transition:
		transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
		visibility 0s linear 0s !important;
}

[data-theme='dark'] .community-drawer {
	background: #2a2a32;
	box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
}

.community-drawer-header {
	flex-shrink: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.35rem 1.25rem 1.15rem;
	background: linear-gradient(
		135deg,
		var(--tenant-gradient-start, var(--tenant-primary, #582156)),
		var(--tenant-gradient-end, #8e3a78)
	);
	color: #fff;
}

.community-drawer-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.88;
}

.community-drawer-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.community-drawer-close {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.community-drawer-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

.community-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.15rem 1.15rem 1.5rem;
	background: color-mix(in srgb, var(--tenant-primary, #582156) 4%, #f6f7fb);
}

[data-theme='dark'] .community-drawer-body {
	background: #1e1e24;
}

.dashboard-community-card,
.community-drawer-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 8px 25px rgba(17, 24, 39, 0.08);
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 12%, #e9ecef);
	overflow: hidden;
	max-width: none;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}

[data-theme='dark'] .dashboard-community-card {
	background: #2a2a2a;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.dashboard-community-whatsapp {
	padding: 1.5rem 1.5rem 1.15rem;
	text-align: center;
}

.dashboard-community-title {
	color: var(--tenant-primary, #582156);
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

[data-theme='dark'] .dashboard-community-title {
	color: #f3e8ff;
}

.dashboard-community-qr-wrap {
	display: flex;
	justify-content: center;
}

.dashboard-community-qr {
	width: min(220px, 72vw);
	height: auto;
	border-radius: 10px;
	display: block;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.dashboard-community-text {
	margin: 1rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #4a5568;
}

.dashboard-community-hint {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #6b7280;
	font-style: italic;
}

[data-theme='dark'] .dashboard-community-hint {
	color: #9ca3af;
}

.community-drawer-social-label {
	margin: 0 0 0.65rem;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tenant-primary, #582156);
}

[data-theme='dark'] .community-drawer-social-label {
	color: #e8d4e7;
}

@media (max-width: 576px) {
	.community-drawer-fab {
		right: 1rem;
		bottom: 1rem;
		padding: 0.75rem;
		border-radius: 50%;
	}

	.community-drawer-fab-text {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.community-drawer-fab,
	.community-drawer,
	.community-drawer-backdrop {
		transition: none;
	}
}

[data-theme='dark'] .dashboard-community-text {
	color: #d1d5db;
}

.dashboard-community-social {
	padding: 0.9rem 1rem 1rem;
	border-top: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 10%, #e9ecef);
	background: color-mix(in srgb, var(--tenant-primary, #582156) 4%, #fafafa);
}

[data-theme='dark'] .dashboard-community-social {
	background: rgba(255, 255, 255, 0.04);
	border-top-color: rgba(255, 255, 255, 0.1);
}

.dashboard-social-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.dashboard-social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: var(--tenant-primary, #582156);
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--tenant-primary, #582156) 18%, transparent);
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none !important;
}

[data-theme='dark'] .dashboard-social-links a {
	background: #333;
	color: #f3e8ff;
	border-color: rgba(255, 255, 255, 0.15);
}

.dashboard-social-links a:hover,
.dashboard-social-links a:focus-visible {
	background: var(--tenant-primary, #582156) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--tenant-primary, #582156) 35%, transparent);
	outline: none;
	border-color: var(--tenant-primary, #582156) !important;
}

.dashboard-social-links a:hover svg,
.dashboard-social-links a:focus-visible svg {
	fill: #fff !important;
}

.dashboard-social-links svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* FAQ / tutorials help tile — left full photo, right text; same height as other tiles */
a.tile.tile--faq-help,
.tile.tile--faq-help {
	display: none;
	padding: 0;
	text-decoration: none !important;
	background: #141414;
	color: #fff;
	align-items: stretch;
	justify-content: flex-start;
	overflow: hidden;
	/* height inherits from .tile / contractor top-row */
}

a.tile.tile--faq-help.is-visible,
.tile.tile--faq-help.is-visible {
	display: flex;
	flex-direction: row;
}

.tile.tile--faq-help .tile-faq-help-img {
	position: relative;
	inset: auto;
	flex: 0 0 auto;
	width: auto;
	height: 100%;
	max-width: 150px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	background: #141414;
	z-index: 0;
	pointer-events: none;
}

.tile.tile--faq-help .tile-faq-help-content {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: auto;
	min-width: 0;
	padding: 10px 12px;
	text-align: left;
	background: linear-gradient(
		135deg,
		var(--tenant-gradient-start, #582156),
		var(--tenant-gradient-end, #8e3a78)
	);
}

.tile.tile--faq-help .tile-faq-help-content h4,
a.tile.tile--faq-help .tile-faq-help-content h4 {
	margin: 0 0 4px;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
}

.tile.tile--faq-help .tile-faq-help-content .tile-value,
a.tile.tile--faq-help .tile-faq-help-content .tile-value {
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.tile.tile--faq-help .tile-icon {
	display: none;
}

.tile.tile--faq-help:hover {
	transform: translateY(-2px);
}

/*
 * Global mobile tiles use height:auto; that makes height:100% on the FAQ photo
 * resolve to the image's intrinsic size and blow out the layout.
 * Contractor dashboard also forces .top-row .tile { height:auto }, so those
 * selectors are overridden here as well.
 */
@media (max-width: 600px) {
	.contractor-dashboard-page .top-row a.tile.tile--faq-help.is-visible,
	.contractor-dashboard-page .top-row .tile.tile--faq-help.is-visible,
	a.tile.tile--faq-help.is-visible,
	.tile.tile--faq-help.is-visible {
		height: 112px;
		min-height: 112px;
		max-height: 112px;
		padding: 0;
		align-items: stretch;
	}

	.contractor-dashboard-page .top-row .tile.tile--faq-help .tile-faq-help-img,
	.tile.tile--faq-help .tile-faq-help-img {
		flex: 0 0 96px;
		width: 96px;
		max-width: 96px;
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
	}

	.tile.tile--faq-help .tile-faq-help-content {
		padding: 10px 12px;
	}

	.tile.tile--faq-help .tile-faq-help-content h4,
	a.tile.tile--faq-help .tile-faq-help-content h4 {
		font-size: 0.9rem;
		margin-bottom: 2px;
	}

	.tile.tile--faq-help .tile-faq-help-content .tile-value,
	a.tile.tile--faq-help .tile-faq-help-content .tile-value {
		font-size: 0.75rem;
		-webkit-line-clamp: 2;
	}
}
