@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--bg-main: #f5f9ff;
	--bg-panel: #ffffff;
	--text-main: #152238;
	--text-soft: #5d6b82;
	--line: #dce6f5;
	--accent: #1363df;
	--accent-soft: #8ec5ff;
	--sidebar-bg: #ffffff;
	--scrollbar-track: linear-gradient(180deg, rgba(215, 233, 255, .55), rgba(255, 255, 255, .94));
	--scrollbar-thumb: linear-gradient(180deg, rgba(19, 99, 223, .72), rgba(89, 161, 255, .92));
	--scrollbar-thumb-hover: linear-gradient(180deg, rgba(10, 76, 178, .92), rgba(19, 99, 223, 1));
	--scrollbar-thumb-border: rgba(255, 255, 255, .9);
}

* { box-sizing: border-box; }

html {
	scrollbar-width: thin;
	scrollbar-color: rgba(19, 99, 223, .78) rgba(215, 233, 255, .52);
}

body,
.app-sidebar,
.app-content,
.table-responsive,
.modal-body,
.offcanvas-body,
textarea,
pre {
	scrollbar-width: thin;
	scrollbar-color: rgba(19, 99, 223, .78) rgba(215, 233, 255, .52);
}

body::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar,
.app-content::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.offcanvas-body::-webkit-scrollbar,
textarea::-webkit-scrollbar,
pre::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

body::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-track,
.app-content::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.offcanvas-body::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
	border-radius: 999px;
	border: 1px solid rgba(220, 230, 245, .9);
}

body::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb,
.app-content::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.offcanvas-body::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 999px;
	border: 2px solid var(--scrollbar-thumb-border);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 10px rgba(19, 99, 223, .16);
}

body::-webkit-scrollbar-thumb:hover,
.app-sidebar::-webkit-scrollbar-thumb:hover,
.app-content::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.offcanvas-body::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover);
}

body::-webkit-scrollbar-corner,
.app-sidebar::-webkit-scrollbar-corner,
.app-content::-webkit-scrollbar-corner,
.table-responsive::-webkit-scrollbar-corner,
.modal-body::-webkit-scrollbar-corner,
.offcanvas-body::-webkit-scrollbar-corner,
textarea::-webkit-scrollbar-corner,
pre::-webkit-scrollbar-corner {
	background: rgba(255, 255, 255, .8);
}

body.app-body {
	margin: 0;
	background: radial-gradient(1200px 600px at 20% -10%, #d7e9ff 0%, transparent 60%), var(--bg-main);
	color: var(--text-main);
	font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.card {
	border: 1px solid var(--line);
	background: var(--bg-panel);
	border-radius: 14px;
}

.app-layout {
	height: 100vh;
	display: grid;
	grid-template-columns: 270px 1fr;
	overflow: hidden;
}

.app-sidebar {
	background: var(--sidebar-bg);
	border-right: 1px solid var(--line);
	padding: 20px 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.sidebar-brand {
	font-weight: 700;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sidebar-brand-logo {
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: linear-gradient(135deg, rgba(19, 99, 223, .14), rgba(19, 99, 223, .04));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 46px;
	color: var(--accent);
	box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}

.sidebar-brand-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sidebar-brand-logo-image {
	max-width: 46px;
	max-height: 46px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	flex: 0 0 auto;
}

.sidebar-brand-copy {
	display: grid;
	min-width: 0;
	line-height: 1.1;
	gap: 2px;
}

.sidebar-brand-title {
	font-weight: 800;
	letter-spacing: .01em;
}

.sidebar-brand-subtitle {
	font-size: .72rem;
	font-weight: 600;
	color: var(--text-soft);
	text-transform: uppercase;
	letter-spacing: .08em;
}

.sidebar-user {
	color: var(--text-soft);
	font-size: .92rem;
	padding: 6px 4px 12px;
	border-bottom: 1px solid var(--line);
}

.sidebar-nav {
	display: grid;
	gap: 6px;
}

.sidebar-link {
	color: var(--text-main);
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sidebar-link:hover,
.sidebar-link.active {
	border-color: var(--line);
	background: rgba(19, 99, 223, .10);
}

.sidebar-link.sidebar-link--locked {
	opacity: .48;
	cursor: default;
	pointer-events: none;
}

.sidebar-link i,
.table-actions i,
.btn i {
	color: currentColor;
}

.sidebar-footer {
	margin-top: auto;
}

/* Free-tier notice banner */
.free-tier-notice {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border: 1px solid #fbbf24;
	border-radius: 12px;
	padding: 16px 20px;
}

.free-tier-notice__icon {
	font-size: 1.6rem;
	color: #d97706;
	flex-shrink: 0;
}

.free-tier-notice__body {
	flex: 1;
	font-size: .92rem;
	color: #78350f;
}

.free-tier-notice__body strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1rem;
	color: #92400e;
}

.free-tier-notice__cta {
	flex-shrink: 0;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.free-tier-notice {
		flex-direction: column;
		align-items: flex-start;
	}
	.free-tier-notice__cta {
		align-self: stretch;
		text-align: center;
	}
}

.app-content {
	padding: 24px;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

.mobile-topbar {
	display: none;
	align-items: center;
	gap: .65rem;
	position: sticky;
	top: 0;
	z-index: 60;
	padding: 10px 0;
	background: rgba(245, 247, 251, .92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.mobile-topbar-title {
	font-weight: 700;
	letter-spacing: .2px;
}

.preview-mode-banner {
	position: sticky;
	top: 0;
	z-index: 25;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
	border: 1px solid rgba(251, 191, 36, .5);
	background: linear-gradient(90deg, rgba(245, 158, 11, .18), rgba(251, 191, 36, .16));
	border-radius: 10px;
	backdrop-filter: blur(3px);
}

.preview-mode-banner-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .92rem;
	font-weight: 700;
	color: #78350f;
}

.sidebar-overlay {
	display: none;
}

.page-wrap { padding: 4px 0 36px; }

.portal-stack {
	display: grid;
	gap: 18px;
}

.portal-search-card {
	border-style: dashed;
	background:
		radial-gradient(420px 180px at 0% 0%, rgba(19, 99, 223, .12), transparent 62%),
		linear-gradient(180deg, rgba(255,255,255,.98), rgba(246, 250, 255, .96));
	box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.portal-search-card .card-body {
	padding: 18px 20px;
}

.portal-search-field {
	position: relative;
}

.portal-search-field i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-soft);
	pointer-events: none;
	font-size: .9rem;
}

.portal-search-field .form-control {
	height: 46px;
	padding-left: 40px;
	border-radius: 14px;
	border-color: rgba(19, 99, 223, .14);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.portal-search-field .form-control:focus {
	border-color: rgba(19, 99, 223, .42);
	box-shadow: 0 0 0 4px rgba(19, 99, 223, .10);
}

.portal-list-card {
	overflow: hidden;
	box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.portal-list-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(19, 99, 223, .10);
	background: linear-gradient(180deg, rgba(19, 99, 223, .04), rgba(255,255,255,.96));
}

.portal-list-card__body {
	padding: 0 16px 16px;
}

.portal-list-card__body .table-responsive {
	border: 1px solid rgba(19, 99, 223, .10);
	border-radius: 16px;
	background: #fff;
	margin-top: 16px;
	overflow: auto;
}

.portal-list-card__body .table {
	margin-bottom: 0;
	vertical-align: middle;
}

.portal-list-card__body .table thead th {
	border-bottom-color: var(--line);
	background: rgba(19, 99, 223, .05);
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text-soft);
	white-space: nowrap;
	padding-top: 14px;
	padding-bottom: 14px;
}

.portal-list-card__body .table tbody tr:hover {
	background: rgba(19, 99, 223, .03);
}

.portal-list-card .card-footer {
	padding: 14px 20px 18px;
	border-top: 1px solid rgba(19, 99, 223, .08);
	background: rgba(255,255,255,.96);
}

.portal-inline-meta {
	color: var(--text-soft);
	font-size: .92rem;
	line-height: 1.6;
}

.reflection-stack {
	display: grid;
	gap: 14px;
}

.reflection-stack > [class*='col-'] {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
}

.records-tabulation-controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: 10px;
	padding: 8px 2px;
}

.records-tabulation-toolbar,
.records-tabulation-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.records-tabulation-search-wrap {
	flex: 1;
	min-width: 240px;
}

.records-tabulation-search {
	width: 100%;
	max-width: 420px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 0 12px;
	font-size: .85rem;
	outline: none;
	background: #fff;
}

.records-tabulation-search:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(19, 99, 223, .12);
}

.records-tabulation-page-size-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.records-tabulation-page-size-label {
	font-size: .82rem;
	font-weight: 600;
	color: var(--text-soft);
}

.records-tabulation-page-size {
	height: 34px;
	min-width: 74px;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0 8px;
	font-size: .82rem;
	background: #fff;
	color: var(--text-main);
}

.records-tabulation-summary {
	font-size: .86rem;
	color: var(--text-soft);
}

.records-tabulation-pages {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.records-tabulation-btn {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--text-main);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.3;
}

.records-tabulation-btn:hover:not(:disabled) {
	border-color: var(--accent);
	color: var(--accent);
}

.records-tabulation-btn.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.records-tabulation-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.card-kpi h2 { margin: 0; font-size: 1.8rem; }

.financial-kpi {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(12, 27, 56, .08);
}

.financial-kpi .card-body {
	padding: 16px;
}

.financial-kpi-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .9rem;
	font-weight: 700;
	color: var(--text-soft);
	margin-bottom: 8px;
}

.financial-kpi h4 {
	font-size: 1.45rem;
	letter-spacing: .2px;
}

.financial-kpi-received {
	background: linear-gradient(140deg, rgba(22, 163, 74, .16), rgba(255, 255, 255, .98));
}

.financial-kpi-pending {
	background: linear-gradient(140deg, rgba(234, 179, 8, .18), rgba(255, 255, 255, .98));
}

.financial-kpi-appointments {
	background: linear-gradient(140deg, rgba(59, 130, 246, .16), rgba(255, 255, 255, .98));
}

.financial-kpi-estimate {
	background: linear-gradient(140deg, rgba(15, 118, 110, .16), rgba(255, 255, 255, .98));
}

/* --- Materiais: lista de assets existentes (chips) --- */
.material-assets-existing-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.material-asset-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: var(--bg-panel);
	cursor: pointer;
	transition: border-color .15s, background .15s;
	user-select: none;
}

.material-asset-chip:hover {
	border-color: var(--primary);
	background: rgba(var(--primary-rgb, 111, 76, 255), .04);
}

.material-asset-chip-name {
	flex: 1;
	font-size: .875rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.material-asset-chip-remove {
	font-size: .75rem;
	font-weight: 600;
	color: var(--text-soft);
	white-space: nowrap;
	opacity: 0;
	transition: opacity .15s;
}

.material-asset-chip:hover .material-asset-chip-remove {
	opacity: 1;
}

.material-asset-chip--marked {
	border-color: #e74c3c;
	background: rgba(231, 76, 60, .06);
}

.material-asset-chip--marked .material-asset-chip-remove {
	color: #e74c3c;
	opacity: 1;
}

/* --- Preview HTML --- */
.html-preview-box {
	margin-top: 10px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.html-preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	background: var(--bg-muted, #f4f6fb);
	border-bottom: 1px solid var(--line);
}

.html-preview-label {
	font-size: .8rem;
	font-weight: 700;
	color: var(--text-soft);
	letter-spacing: .03em;
	text-transform: uppercase;
}

.html-preview-content {
	padding: 20px 22px;
	min-height: 80px;
	max-height: 480px;
	overflow: auto;
	font-size: .95rem;
	line-height: 1.65;
}

/* --- FilePond customizaÃ§Ã£o mÃ­nima --- */
.filepond--root {
	border-radius: 12px;
	font-family: inherit;
}

.filepond--drop-label {
	color: var(--text-soft);
}

.filepond--panel-root {
	border: 1.5px dashed var(--line);
	border-radius: 12px;
	background: var(--bg-panel);
}

.material-attachment-icons {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.material-attachment-icon {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(15, 23, 42, .05);
	font-size: .9rem;
}

.material-attachment-count {
	font-size: .78rem;
	font-weight: 700;
	color: var(--text-soft);
}

.material-asset-view-list {
	display: grid;
	gap: 14px;
}

.material-asset-view-card {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--bg-panel);
}

.material-asset-view-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	background: rgba(15, 23, 42, .02);
}

.material-asset-view-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	min-width: 0;
}

.material-asset-view-title span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.material-asset-view-body {
	padding: 14px;
}

.material-view-image,
.material-view-video,
.material-view-pdf {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.material-view-image {
	max-height: 420px;
	object-fit: contain;
	background: #f7f9fc;
}

.material-view-video {
	max-height: 420px;
	background: #000;
}

.material-view-pdf {
	height: 640px;
}

.material-view-link-box {
	padding: 18px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	background: rgba(15, 23, 42, .02);
	word-break: break-word;
}

.material-asset-open-link {
	display: block;
}

.material-picker-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 300px;
	overflow: auto;
}

.material-picker-item {
	width: 100%;
	text-align: left;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg-panel);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: border-color .15s, background .15s, transform .15s;
}

.material-picker-item--multi {
	padding: 10px 12px;
}

.material-picker-item:hover {
	border-color: var(--primary);
	background: rgba(15, 23, 42, .02);
	transform: translateY(-1px);
}

.material-picker-item.is-selected {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
	background: rgba(37, 99, 235, .05);
}

.btn-reset {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
}

.material-picker-preview {
	border-radius: 14px;
	border: 1px solid var(--line);
}

.material-picker-preview-content {
	max-height: 320px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	background: #fff;
}

.task-modal-body {
	max-height: calc(100vh - 150px);
	overflow-y: auto;
	overflow-x: hidden;
}

.task-description-editor {
	min-height: 260px;
	max-width: 100%;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
}

.task-description-editor .ql-toolbar.ql-snow {
	position: relative;
	z-index: 1;
	overflow-x: auto;
	max-width: 100%;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	background: #fff;
}

.task-description-editor .ql-container.ql-snow {
	min-height: 200px;
	height: 220px;
	overflow-y: auto;
	max-width: 100%;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	background: #fff;
}

.task-description-editor .ql-editor {
	min-height: 180px;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.task-form-shell {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(19, 99, 223, .03), rgba(255, 255, 255, .85));
	padding: 16px;
	display: grid;
	min-width: 0;
	gap: 14px;
}

.task-form-section {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg-panel);
	min-width: 0;
	padding: 14px;
}

.task-form-section-title {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--text-soft);
	margin-bottom: 10px;
}

.task-checkbox-panel {
	border: 1px dashed var(--line);
	border-radius: 10px;
	padding: 10px 12px;
	background: rgba(19, 99, 223, .03);
}

.task-attachments-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.task-attachment-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--bg-panel);
	font-size: .82rem;
	text-decoration: none;
	color: var(--text-main);
}

.task-attachment-chip:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.task-response-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 14px;
}

.task-response-actions {
	display: grid;
	gap: 12px;
	min-width: 0;
	align-content: start;
}

.material-task-layout {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
	gap: 14px;
	align-items: start;
}

.material-task-aside {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(19, 99, 223, .03);
	padding: 14px;
	display: grid;
	gap: 10px;
}

.material-task-meta {
	display: grid;
	gap: 4px;
}

.material-task-label {
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--text-soft);
}

.material-task-content {
	display: grid;
	gap: 12px;
}

.task-material-panel {
	position: sticky;
	top: 0;
}

.task-selected-materials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.task-material-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.task-material-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(37, 99, 235, .08);
	color: #1d4ed8;
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
}

.task-material-badge:hover {
	background: rgba(37, 99, 235, .14);
	color: #1d4ed8;
}

.messenger-json-example {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	background: rgba(15, 23, 42, .03);
	font-size: .82rem;
	max-height: 220px;
	overflow: auto;
}

.messenger-shared-card,
.messenger-entry-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	background: linear-gradient(180deg, rgba(19, 99, 223, .04), rgba(255, 255, 255, .95));
}

.messenger-page {
	display: grid;
	gap: 18px;
}

.messenger-hero-image {
	position: relative;
	min-height: 420px;
	border-radius: 20px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	border: 1px solid rgba(255, 255, 255, .32);
	box-shadow: 0 20px 34px rgba(15, 23, 42, .16);
}

.messenger-hero-overlay {
	position: absolute;
	inset: 0;
	padding: 22px;
	background: linear-gradient(135deg, rgba(6, 22, 38, .28), rgba(6, 22, 38, .08) 56%, rgba(6, 22, 38, .34));
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

.messenger-hero-content {
	max-width: min(700px, 78%);
}

.messenger-hero-image--devotional .messenger-hero-overlay {
	background:
		linear-gradient(120deg, rgba(8, 26, 45, .74), rgba(8, 26, 45, .30) 54%, rgba(8, 26, 45, .68)),
		radial-gradient(circle at top left, rgba(255, 255, 255, .15), transparent 36%);
}

.messenger-hero-content--spotlight {
	padding: 18px 20px;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(8, 30, 50, .54), rgba(8, 30, 50, .22));
	border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(12px);
	box-shadow: 0 18px 34px rgba(3, 12, 24, .18);
}

.messenger-hero-image-title {
	margin: 0 0 10px;
	color: #f8fbff;
	font-size: clamp(1.34rem, 2.8vw, 2.08rem);
	line-height: 1.22;
	font-weight: 700;
	text-shadow:
		0 0 8px rgba(255, 255, 255, .42),
		0 2px 12px rgba(0, 0, 0, .32);
}

.messenger-hero-image-copy {
	margin: 0;
	color: #ecf3ff;
	font-size: clamp(.88rem, 1.6vw, 1rem);
	line-height: 1.62;
	max-width: 62ch;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.messenger-hero {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background:
		radial-gradient(600px 220px at -10% -20%, rgba(19, 99, 223, .22), transparent 60%),
		radial-gradient(420px 160px at 120% 120%, rgba(244, 158, 36, .18), transparent 65%),
		var(--bg-panel);
}

.messenger-hero--patient {
	border: 1px solid rgba(19, 99, 223, .16);
	box-shadow: 0 18px 38px rgba(13, 30, 66, .08);
}

.messenger-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	gap: 22px;
	align-items: center;
}

.messenger-kicker {
	display: inline-block;
	font-size: .76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #1d4ed8;
	margin-bottom: 10px;
}

.messenger-hero-title {
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.08;
	max-width: 14ch;
}

.messenger-hero-copy {
	max-width: 58ch;
	color: var(--text-soft);
	line-height: 1.7;
}

.messenger-draw-panel {
	display: grid;
	gap: 12px;
	justify-items: center;
	padding: 20px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, .5);
	background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
	backdrop-filter: blur(10px);
}

.messenger-draw-stage {
	position: relative;
	width: min(100%, 290px);
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	transition: transform .4s ease;
}

.messenger-orb {
	position: absolute;
	inset: 10%;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255,255,255,.98) 0%, rgba(177, 217, 255, .62) 38%, rgba(19, 99, 223, .16) 72%, transparent 100%);
	filter: blur(2px);
	opacity: .85;
	animation: messenger-pulse 3.6s ease-in-out infinite;
}

.messenger-chest {
	position: relative;
	width: 198px;
	height: 174px;
	transform-style: preserve-3d;
}

.messenger-chest-lid,
.messenger-chest-body {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 20px;
	box-shadow: 0 18px 34px rgba(15, 23, 42, .22), inset 0 1px 0 rgba(255,255,255,.35);
	border: 1px solid rgba(86, 45, 11, .24);
	background: linear-gradient(145deg, #f1c580 0%, #c6803a 48%, #8a4d1b 100%);
}

.messenger-chest-lid {
	top: 20px;
	width: 176px;
	height: 66px;
	transform-origin: center bottom;
	transition: transform .65s cubic-bezier(.2, .8, .2, 1);
	background: linear-gradient(145deg, #ffd89d 0%, #d38b42 55%, #935122 100%);
	z-index: 2;
}

.messenger-chest-body {
	top: 76px;
	width: 198px;
	height: 96px;
	background: linear-gradient(145deg, #e0a153 0%, #9a5a24 70%, #704016 100%);
	z-index: 1;
}

.messenger-chest-glow {
	position: absolute;
	left: 50%;
	top: 70px;
	width: 110px;
	height: 110px;
	transform: translateX(-50%) scale(.8);
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255,255,255,.98), rgba(255,228,148,.84), rgba(255,202,104,.52), transparent 74%);
	opacity: .14;
	transition: transform .6s ease, opacity .6s ease;
	filter: blur(6px);
	z-index: 0;
}

.messenger-draw-stage.is-drawing {
	animation: messenger-stage-shake 1.5s ease-in-out;
}

.messenger-draw-stage.is-drawing .messenger-chest-lid,
.messenger-draw-stage.is-revealed .messenger-chest-lid {
	transform: translateX(-50%) rotateX(-62deg) translateY(-12px);
}

.messenger-draw-stage.is-drawing .messenger-chest-glow,
.messenger-draw-stage.is-revealed .messenger-chest-glow {
	opacity: .98;
	transform: translateX(-50%) scale(1.7);
}

.messenger-draw-btn {
	min-width: 240px;
	padding: 13px 20px;
	border-radius: 999px;
	font-weight: 700;
	justify-self: end;
	align-self: end;
}

.messenger-reveal {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(19, 99, 223, .16);
	background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(219,235,255,.88));
	transform: translateY(10px);
	opacity: .7;
	transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}

.messenger-reveal.is-revealed {
	transform: translateY(0);
	opacity: 1;
	box-shadow: 0 18px 34px rgba(29, 78, 216, .10);
}

.messenger-reveal-title {
	font-size: 1.1rem;
	margin-bottom: 10px;
	color: var(--text-soft);
}

.messenger-hero-select {
	min-width: 220px;
}

.messenger-draw-text {
	font-size: clamp(1.08rem, 2vw, 1.34rem);
	line-height: 1.8;
	white-space: pre-wrap;
	max-width: 58ch;
}

.messenger-draw-text.is-typing::after,
.father-word-text.is-typing::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 4px;
	vertical-align: -2px;
	background: rgba(21, 34, 56, .62);
	animation: messenger-caret .75s step-end infinite;
}

.messenger-reflection-card {
	border: 1px solid rgba(19, 99, 223, .14);
	background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,250,255,.95));
}

.messenger-reflection-input {
	border-radius: 14px;
	min-height: 168px;
	padding: 16px;
	line-height: 1.7;
}

.messenger-empty-state {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 28px 18px;
	text-align: center;
	border: 1px dashed var(--line);
	border-radius: 16px;
	background: rgba(15, 23, 42, .02);
	color: var(--text-soft);
}

.messenger-empty-state i {
	font-size: 1.4rem;
	color: var(--accent);
}

.father-word-page {
	display: grid;
	gap: 18px;
}

.father-word-hero-image {
	position: relative;
	min-height: 420px;
	border-radius: 20px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	border: 1px solid rgba(255, 255, 255, .32);
	box-shadow: 0 20px 34px rgba(15, 23, 42, .16);
}

.father-word-hero-overlay {
	position: absolute;
	inset: 0;
	padding: 22px;
	background: linear-gradient(135deg, rgba(6, 22, 38, .52), rgba(6, 22, 38, .18) 56%, rgba(6, 22, 38, .46));
	display: grid;
	align-content: stretch;
}

.father-word-hero-content {
	max-width: min(700px, 82%);
}

.father-word-hero-quote {
	margin: 0;
	color: #f8fbff;
	font-size: clamp(1.2rem, 2.7vw, 2rem);
	line-height: 1.32;
	font-weight: 700;
	text-shadow:
		0 0 8px rgba(255, 255, 255, .72),
		0 0 18px rgba(255, 255, 255, .44),
		0 2px 14px rgba(0, 0, 0, .22);
}

.father-word-hero {
	border: 1px solid rgba(15, 118, 110, .18);
	border-radius: 18px;
	background:
		radial-gradient(560px 220px at 0% -10%, rgba(20, 184, 166, .18), transparent 62%),
		radial-gradient(380px 170px at 100% 120%, rgba(245, 158, 11, .16), transparent 70%),
		var(--bg-panel);
}

.father-word-kicker {
	display: inline-block;
	font-size: .76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #0f766e;
	margin-bottom: 10px;
}

.father-word-title {
	font-size: clamp(1.6rem, 2.8vw, 2.3rem);
	line-height: 1.1;
}

.father-word-copy {
	max-width: 62ch;
	color: var(--text-soft);
	line-height: 1.7;
}

.father-word-action {
	border: 1px solid rgba(15, 23, 42, .08);
	background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244, 248, 255, .95));
}

.father-word-draw-btn {
	min-width: 260px;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 12px 20px rgba(15, 23, 42, .14);
	justify-self: end;
	align-self: end;
}

.father-word-result {
	border: 1px solid rgba(37, 99, 235, .16);
	background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(232, 242, 255, .92));
	transform: translateY(12px);
	opacity: .72;
	transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}

.father-word-result.is-visible {
	transform: translateY(0);
	opacity: 1;
	box-shadow: 0 16px 30px rgba(30, 64, 175, .09);
}

.father-word-text {
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	line-height: 1.86;
	white-space: pre-wrap;
}

.father-word-result.messenger-reveal {
	overflow: hidden;
}

.father-word-reflection-card {
	border: 1px solid rgba(20, 184, 166, .16);
	background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(239, 252, 250, .95));
}

.father-word-reflection-input {
	border-radius: 14px;
	min-height: 168px;
	padding: 16px;
	line-height: 1.7;
}

.guided-table-thumb {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
	border: 1px solid rgba(15, 23, 42, .14);
	box-shadow: 0 8px 14px rgba(15, 23, 42, .10);
}

.guided-table-thumb--empty {
	display: grid;
	place-items: center;
	background: rgba(15, 23, 42, .06);
	color: var(--text-soft);
}

.guided-shared-list {
	max-height: 420px;
	overflow: auto;
	padding-right: 4px;
}

.guided-image-preview {
	position: relative;
	border: 1px dashed rgba(15, 23, 42, .24);
	border-radius: 14px;
	min-height: 160px;
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, rgba(245, 248, 253, .95), rgba(255, 255, 255, .98));
	overflow: hidden;
}

.guided-image-preview img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: none;
}

.guided-image-preview img.is-visible {
	display: block;
}

.guided-image-preview.has-image {
	border-style: solid;
	border-color: rgba(37, 99, 235, .24);
}

.guided-image-preview span {
	font-size: .84rem;
	color: var(--text-soft);
	padding: 10px;
	text-align: center;
}

.guided-page {
	display: grid;
	gap: 18px;
}

.guided-list-item {
	display: grid;
	grid-template-rows: 180px 1fr;
	border-radius: 16px;
	border: 1px solid var(--line);
	overflow: hidden;
	background: var(--bg-panel);
	box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.guided-list-cover {
	background-size: cover;
	background-position: center;
	background-color: rgba(15, 23, 42, .08);
	display: grid;
	place-items: center;
	color: var(--text-soft);
	font-size: .9rem;
	text-align: center;
	padding: 12px;
}

.guided-list-content {
	padding: 16px;
	display: grid;
	gap: 10px;
	align-content: space-between;
}

.guided-hero-image {
	position: relative;
	min-height: 320px;
	border-radius: 20px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: rgba(15, 23, 42, .16);
	border: 1px solid rgba(255, 255, 255, .24);
	box-shadow: 0 18px 34px rgba(15, 23, 42, .16);
}

.guided-hero-overlay {
	position: absolute;
	inset: 0;
	padding: 22px;
	background: linear-gradient(140deg, rgba(7, 25, 40, .48), rgba(7, 25, 40, .16) 58%, rgba(7, 25, 40, .46));
	display: grid;
	align-content: start;
}

.guided-hero-copy {
	max-width: min(620px, 84%);
	color: #f8fbff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .26);
}

.guided-hero-copy--spotlight {
	padding: 18px 20px;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(7, 25, 40, .58), rgba(7, 25, 40, .26));
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 34px rgba(7, 25, 40, .18);
}

.guided-hero-copy--spotlight h4,
.guided-hero-copy--spotlight p {
	color: #fff;
	text-shadow:
		0 0 10px rgba(255, 255, 255, .18),
		0 4px 18px rgba(0, 0, 0, .32);
}

.guided-audio-card {
	border: 1px solid rgba(37, 99, 235, .14);
	background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241, 246, 255, .96));
}

.guided-deck-card {
	border: 1px solid rgba(20, 184, 166, .18);
	background:
		radial-gradient(520px 220px at -6% -18%, rgba(20, 184, 166, .14), transparent 60%),
		radial-gradient(480px 220px at 110% 130%, rgba(56, 189, 248, .12), transparent 70%),
		linear-gradient(180deg, rgba(255,255,255,.98), rgba(242, 250, 252, .97));
}

.guided-deck-card.is-open .guided-card-slot {
	animation: guided-card-rise .65s ease both;
	animation-delay: var(--slot-delay, 0ms);
}

.guided-deck-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	perspective: 1600px;
	position: relative;
	overflow: visible;
}

.guided-card-slot {
	position: relative;
	min-height: 220px;
	width: 100%;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	padding: 0;
	background: transparent;
	overflow: visible;
	transform-style: preserve-3d;
	transform-origin: center center;
	transition: transform .52s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, filter .45s ease, box-shadow .52s ease;
}

.guided-card-inner {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	width: 100%;
	height: 100%;
	display: block;
	transform-style: preserve-3d;
	will-change: transform;
	transition: transform .96s cubic-bezier(.2, .8, .2, 1);
}

.guided-card-face {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	backface-visibility: hidden;
	padding: 18px;
}

.guided-card-front {
	border: 1px solid rgba(226, 232, 240, .96);
	box-shadow: 0 16px 30px rgba(15, 23, 42, .12);
	background:
		radial-gradient(circle at top, rgba(255,255,255,.95), rgba(255,255,255,.42) 28%, transparent 58%),
		linear-gradient(160deg, #f8fafc 0%, #e5e7eb 54%, #cbd5e1 100%);
}

.guided-card-front-shell {
	width: 100%;
	height: 100%;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px;
	background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.18));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.guided-card-front-label {
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #334155;
	text-align: center;
}

.guided-card-front-copy {
	max-width: 18ch;
	font-size: .88rem;
	line-height: 1.5;
	text-align: center;
	color: #64748b;
}

.guided-card-back {
	transform: rotateY(180deg);
	border: 1px solid rgba(203, 213, 225, .9);
	box-shadow: 0 20px 36px rgba(15, 23, 42, .16);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #eef2f7 100%);
}

.guided-card-back-shell {
	width: 100%;
	height: 100%;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 18px;
	background: radial-gradient(circle at top, rgba(255,255,255,.95), rgba(255,255,255,.72) 40%, rgba(226,232,240,.9) 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
}

.guided-card-back-text {
	font-size: clamp(.96rem, 1.4vw, 1.08rem);
	font-weight: 600;
	line-height: 1.62;
	text-align: center;
	color: #0f172a;
	max-width: 20ch;
	text-wrap: balance;
}

.guided-card-slot:hover {
	transform: translateY(-6px);
}

.guided-card-slot.is-faded {
	opacity: .16;
	filter: blur(3px) saturate(.6);
	transform: scale(.92);
	box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
	pointer-events: none;
}

.guided-card-slot.is-picked {
	transform: translateY(-8px) scale(1.04);
	z-index: 8;
}

.guided-card-slot.is-revealing {
	transform: translateY(-20px) scale(1.13);
	z-index: 18;
	box-shadow: 0 30px 54px rgba(15, 23, 42, .20);
}

.guided-card-slot.is-revealing .guided-card-front,
.guided-card-slot.is-flipped .guided-card-front {
	box-shadow: 0 28px 54px rgba(15, 23, 42, .18);
}

.guided-card-slot.is-flipped {
	transform: translateY(-26px) scale(1.18);
	z-index: 24;
	box-shadow: 0 36px 68px rgba(15, 23, 42, .22);
}

.guided-card-slot.is-flipped .guided-card-inner {
	transform: rotateY(180deg);
}

.guided-letter-result {
	border: 1px solid rgba(37, 99, 235, .18);
	background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(227, 239, 255, .93));
	transform: translateY(12px);
	opacity: .72;
	transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}

.guided-letter-result.is-visible {
	transform: translateY(0);
	opacity: 1;
	box-shadow: 0 16px 30px rgba(30, 64, 175, .09);
}

.guided-letter-text {
	font-size: clamp(1.02rem, 2vw, 1.26rem);
	line-height: 1.78;
	white-space: pre-wrap;
}

.guided-reflection-card {
	border: 1px solid rgba(20, 184, 166, .16);
	background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(236, 252, 250, .95));
}

.guided-reflection-input {
	border-radius: 14px;
	min-height: 168px;
	padding: 16px;
	line-height: 1.7;
}

.patient-subscription-card {
	border: 1px solid rgba(148, 163, 184, .22);
	background:
		radial-gradient(600px 220px at 110% -10%, rgba(56, 189, 248, .14), transparent 60%),
		linear-gradient(170deg, #ffffff 0%, #f8fafc 52%, #eef6ff 100%);
	box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
	transition: transform .25s ease, box-shadow .25s ease;
}

.patient-subscription-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
}

.patient-subscription-price {
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	font-weight: 800;
	color: #0f172a;
}

@keyframes guided-card-rise {
	0% {
		opacity: 0;
		transform: translateY(12px) scale(.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes guided-card-grow {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1.03);
	}
}

@keyframes messenger-pulse {
	0%, 100% { transform: scale(.96); opacity: .72; }
	50% { transform: scale(1.04); opacity: 1; }
}

@keyframes messenger-stage-shake {
	0% { transform: rotate(0deg) scale(1); }
	20% { transform: rotate(-3deg) scale(1.02); }
	40% { transform: rotate(3deg) scale(1.04); }
	60% { transform: rotate(-2deg) scale(1.03); }
	80% { transform: rotate(2deg) scale(1.02); }
	100% { transform: rotate(0deg) scale(1); }
}

@keyframes messenger-caret {
	0%, 45% { opacity: 1; }
	46%, 100% { opacity: 0; }
}

@media (max-width: 575.98px) {
	.messenger-hero-grid {
		grid-template-columns: 1fr;
	}

	.messenger-hero-image {
		min-height: 310px;
	}

	.messenger-hero-overlay {
		padding: 14px;
	}

	.messenger-hero-content {
		max-width: 100%;
	}

	.messenger-hero-content--spotlight,
	.guided-hero-copy--spotlight {
		padding: 14px 16px;
	}

	.messenger-hero-image-title {
		font-size: 1.06rem;
		line-height: 1.35;
	}

	.messenger-hero-image-copy {
		font-size: .82rem;
		line-height: 1.5;
	}

	.messenger-hero-select {
		min-width: 0;
		width: 100%;
	}

	.messenger-draw-btn {
		min-width: 0;
		width: 100%;
		justify-self: stretch;
	}

	.guided-hero-image {
		min-height: 250px;
	}

	.guided-hero-overlay {
		padding: 14px;
	}

	.guided-hero-copy {
		max-width: 100%;
	}

	.guided-deck-grid {
		grid-template-columns: 1fr;
	}

	.guided-card-slot {
		min-height: 180px;
	}

	.guided-card-slot.is-revealing {
		transform: translateY(-12px) scale(1.06);
	}

	.guided-card-slot.is-flipped {
		transform: translateY(-14px) scale(1.08);
	}

	.father-word-hero-image {
		min-height: 310px;
	}

	.father-word-hero-overlay {
		padding: 14px;
	}

	.father-word-hero-content {
		max-width: 100%;
	}

	.father-word-draw-btn {
		min-width: 0;
		width: 100%;
		justify-self: stretch;
	}
}

@media (min-width: 1200px) {
	.messenger-hero-image {
		min-height: 520px;
	}

	.guided-hero-image {
		min-height: 420px;
	}

	.father-word-hero-image {
		min-height: 520px;
	}
}

@media (max-width: 991.98px) {
	.task-material-panel {
		position: static;
	}

	.task-modal-body {
		max-height: calc(100vh - 120px);
	}

	.task-response-layout,
	.material-task-layout {
		grid-template-columns: 1fr;
	}
}

.table-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: .35rem;
}

.table-actions .btn { margin-right: 0; }

.login-signup-cta {
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.login-signup-btn {
	border-color: rgba(7, 18, 38, .88) !important;
	background: linear-gradient(135deg, #0f172a, #1e293b) !important;
	color: #f8fafc !important;
	box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
	text-decoration: none;
}

.login-signup-btn:hover,
.login-signup-btn:focus {
	background: linear-gradient(135deg, #111827, #0f172a) !important;
	border-color: rgba(7, 18, 38, 1) !important;
	color: #fff !important;
	text-decoration: none;
	filter: brightness(1.05);
}

.login-signup-btn:active {
	background: linear-gradient(135deg, #0b1220, #0f172a) !important;
	color: #fff !important;
}

.login-signup-btn:visited {
	color: #f8fafc !important;
}

.login-shell {
	min-height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	overflow: hidden;
	font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.login-backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1200px 620px at 0% -15%, rgba(255,255,255,.28), transparent 62%),
		linear-gradient(140deg, #031d4a 0%, #0b4da1 52%, #64b8ff 100%);
}

.login-backdrop::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(2, 15, 40, .2), rgba(2, 15, 40, .58));
}

.login-orb {
	position: absolute;
	border-radius: 999px;
	filter: blur(2px);
	z-index: 1;
}

.login-orb-a {
	width: 300px;
	height: 300px;
	left: -70px;
	top: 10%;
	background: radial-gradient(circle, rgba(125, 211, 252, .48), rgba(125, 211, 252, .04) 72%);
	animation: float-y 7s ease-in-out infinite;
}

.login-orb-b {
	width: 260px;
	height: 260px;
	right: -50px;
	bottom: 8%;
	background: radial-gradient(circle, rgba(255, 255, 255, .34), rgba(255, 255, 255, .02) 70%);
	animation: float-y 8s ease-in-out infinite reverse;
}

.login-card-wrap {
	width: min(1060px, 100%);
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 20px;
	position: relative;
	z-index: 2;
}

.login-brand-panel {
	color: #f5f9ff;
	padding: 36px;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, .26);
	backdrop-filter: blur(6px);
	background: linear-gradient(165deg, rgba(2, 23, 58, .46), rgba(2, 23, 58, .2));
	animation: float-in .75s ease;
}

.login-brand-panel h1 {
	font-size: clamp(2rem, 3.8vw, 3.1rem);
	line-height: 1.08;
	margin-bottom: 12px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.login-brand-panel p {
	color: rgba(223, 238, 255, .96);
	font-size: 1.05rem;
	max-width: 34ch;
	margin-bottom: 24px;
}

.login-system-info {
	display: grid;
	gap: 10px;
}

.login-system-info article {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 10px;
	align-items: start;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.2);
	background: rgba(255,255,255,.08);
}

.login-system-info i {
	font-size: 1rem;
	line-height: 1;
	margin-top: 2px;
	color: #e9f3ff;
}

.login-system-info h6 {
	margin: 0 0 2px;
	font-size: .93rem;
	font-weight: 700;
	color: #ffffff;
}

.login-system-info small {
	color: rgba(223, 238, 255, .92);
	font-size: .8rem;
	line-height: 1.4;
}

.login-card {
	border: 1px solid rgba(255,255,255,.7);
	animation: float-in .95s ease;
}

.login-glass-card {
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(12px);
	border-radius: 22px;
	box-shadow: 0 24px 50px rgba(2, 18, 46, .28);
}

.login-input-wrap .form-control {
	border-radius: 12px;
	padding: 12px 14px;
	border-color: #d8e2f1;
}

.login-input-wrap .form-control:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 .22rem rgba(59, 130, 246, .18);
}

.login-link {
	text-decoration: none;
	font-weight: 600;
	color: #0b4da1;
}

.login-link:hover {
	color: #083a7a;
}

.login-btn {
	border-radius: 12px;
	padding: 11px 14px;
	font-weight: 700;
	letter-spacing: .01em;
	background: linear-gradient(130deg, #1d4ed8, #0ea5e9);
	border: none;
}

.login-btn:hover {
	background: linear-gradient(130deg, #1e40af, #0284c7);
}

@keyframes float-y {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

.schedule-card,
.schedule-form-card {
	min-height: 100%;
}

.schedule-grid-head {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.schedule-grid-head > div {
	font-size: .85rem;
	font-weight: 700;
	color: var(--text-soft);
	text-align: center;
}

.schedule-grid-body {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.schedule-grid-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.schedule-week-vertical {
	display: grid;
	gap: 10px;
}

.schedule-day-card {
	display: grid;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(19, 99, 223, .05), rgba(19, 99, 223, .01));
}

.schedule-day-card-today {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px rgba(19, 99, 223, .2);
}

.schedule-day-card-head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-bottom: 6px;
	border-bottom: 1px dashed var(--line);
}

.schedule-day-card-body {
	display: grid;
	gap: 7px;
}

.schedule-week-date-block {
	display: grid;
	align-content: start;
	gap: 2px;
}

.schedule-week-date-small {
	font-size: .75rem;
	color: var(--text-soft);
}

.schedule-week-appointments {
	display: grid;
	gap: 7px;
}

.schedule-line-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--bg-panel);
}

.schedule-line-main {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.schedule-line-actions {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-left: auto;
}

.schedule-line-actions form {
	margin: 0;
}

.schedule-icon-btn {
	width: 30px;
	height: 30px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.schedule-day {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 8px;
	min-height: 140px;
	background: rgba(19, 99, 223, .03);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.schedule-day-empty {
	background: transparent;
	border-style: dashed;
	opacity: .4;
}

.schedule-day-today {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px rgba(19, 99, 223, .2);
}

.schedule-day-number {
	font-weight: 700;
	font-size: .95rem;
}

.schedule-day-title {
	font-size: .78rem;
	text-transform: uppercase;
	color: var(--text-soft);
	font-weight: 700;
}

.schedule-day-list {
	display: grid;
	gap: 6px;
}

.schedule-item {
	border-radius: 10px;
	padding: 6px 8px;
	background: linear-gradient(135deg, rgba(19, 99, 223, .13), rgba(142, 197, 255, .22));
	display: grid;
	gap: 1px;
	line-height: 1.2;
}

.schedule-item-hour {
	font-size: .78rem;
	font-weight: 700;
	color: var(--accent);
}

.schedule-item-name {
	font-size: .82rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.schedule-day-view {
	display: grid;
	gap: 8px;
}

.schedule-day-row {
	display: grid;
	grid-template-columns: 72px 1fr;
	align-items: start;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(19, 99, 223, .03);
}

.schedule-day-row-time {
	font-weight: 700;
	color: var(--accent);
}

.schedule-day-row-name {
	font-weight: 700;
}

.schedule-hour-row {
	display: grid;
	grid-template-columns: 84px 1fr;
	align-items: start;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(19, 99, 223, .02);
}

.schedule-hour-row-now {
	border-color: var(--accent);
	background: rgba(19, 99, 223, .08);
	box-shadow: inset 0 0 0 1px rgba(19, 99, 223, .2);
}

.schedule-hour-label {
	font-weight: 700;
	color: var(--accent);
}

@keyframes float-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
	.sidebar-brand-logo {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.sidebar-brand-logo-image {
		max-width: 42px;
		max-height: 42px;
	}

	.app-layout {
		grid-template-columns: 1fr;
		height: auto;
		min-height: 100dvh;
		overflow: visible;
	}

	.app-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100dvh;
		width: 100vw;
		max-width: 100vw;
		z-index: 1040;
		border-right: 1px solid var(--line);
		border-bottom: 0;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
		transform: translateX(-108%);
		transition: transform .25s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: calc(16px + env(safe-area-inset-bottom));
	}

	body.sidebar-open .app-sidebar {
		transform: translateX(0);
	}

	body.sidebar-open {
		overflow: hidden;
	}

	.sidebar-footer {
		position: sticky;
		bottom: 0;
		background: var(--sidebar-bg);
		padding-top: 10px;
		border-top: 1px solid var(--line);
	}

	.sidebar-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1030;
		background: rgba(6, 16, 32, .45);
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s ease;
	}

	body.sidebar-open .sidebar-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.mobile-topbar {
		display: flex;
		margin: -16px -16px 16px;
		padding: 12px 16px;
	}

	.app-content {
		padding: 16px;
		height: auto;
		min-height: 100dvh;
		overflow: visible;
	}

	.table-responsive {
		overflow: visible;
	}

	.table-responsive > .responsive-card-table {
		border-collapse: separate;
		border-spacing: 0;
		width: 100%;
	}

	.table-responsive > .responsive-card-table thead {
		display: none;
	}

	.table-responsive > .responsive-card-table tbody,
	.table-responsive > .responsive-card-table tr,
	.table-responsive > .responsive-card-table td {
		display: block;
		width: 100%;
	}

	.table-responsive > .responsive-card-table tbody {
		display: grid;
		gap: 12px;
	}

	.table-responsive > .responsive-card-table tbody tr {
		padding: 14px;
		border: 1px solid rgba(148, 163, 184, .26);
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
	}

	.table-responsive > .responsive-card-table tbody tr td {
		padding: 8px 0;
		border: 0;
	}

	.table-responsive > .responsive-card-table tbody tr td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		font-size: .72rem;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: #64748b;
	}

	.table-responsive > .responsive-card-table tbody tr td[data-cell-type="actions"] {
		margin-top: 8px;
		padding-top: 12px;
		border-top: 1px solid rgba(148, 163, 184, .18);
	}

	.table-responsive > .responsive-card-table tbody tr td[data-cell-type="actions"] .table-actions,
	.table-responsive > .responsive-card-table tbody tr td[data-cell-type="actions"] .d-flex {
		flex-wrap: wrap !important;
		justify-content: flex-start;
		gap: .5rem;
	}

	.table-responsive > .responsive-card-table tbody tr td[data-cell-type="actions"] form {
		display: inline-flex !important;
		margin: 0;
	}

	.table-responsive > .responsive-card-table tbody tr td[data-cell-type="actions"] .btn {
		min-width: 38px;
	}

	.login-card-wrap {
		grid-template-columns: 1fr;
		max-width: 620px;
		gap: 14px;
	}

	.login-brand-panel {
		padding: 24px;
		border-radius: 18px;
	}

	.login-brand-panel h1 {
		font-size: 2rem;
	}

	.login-brand-panel p {
		font-size: .98rem;
		margin-bottom: 16px;
	}

	.login-orb {
		display: none;
	}

	.schedule-grid-head,
	.schedule-grid-body {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.schedule-grid-week {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.schedule-grid-head {
		display: none;
	}

	.schedule-day {
		min-height: 88px;
	}

	.schedule-day-card {
		grid-template-columns: 1fr;
	}

	.schedule-line-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.schedule-line-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.schedule-hour-row {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 992.01px) {
.app-layout {
grid-template-columns: 270px 1fr;
height: 100vh;
overflow: hidden;
}

.app-sidebar {
position: sticky;
top: 0;
left: auto;
width: auto;
max-width: none;
height: 100vh;
transform: none;
box-shadow: none;
}

.sidebar-overlay,
.mobile-topbar {
display: none !important;
}
}

:root {
	--bg-main: #f6f5f3;
	--bg-panel: #fdfcf9;
	--bg-soft: #edede9;
	--text-main: #2f3e46;
	--text-soft: #6c757d;
	--text-inverse: #ffffff;
	--line: #d6ccc2;
	--line-strong: #c6b9ad;
	--accent: #6b8e8d;
	--accent-rgb: 107, 142, 141;
	--accent-soft: #b7d3c2;
	--primary: #6b8e8d;
	--primary-rgb: 107, 142, 141;
	--secondary: #a3b18a;
	--secondary-rgb: 163, 177, 138;
	--cta: #d4a373;
	--cta-rgb: 212, 163, 115;
	--depth: #5c677d;
	--affection: #e5989b;
	--success: #84a98c;
	--warning: #e9c46a;
	--danger: #d62828;
	--info: #457b9d;
	--sidebar-bg: rgba(253, 252, 249, .88);
	--scrollbar-track: linear-gradient(180deg, rgba(237, 237, 233, .85), rgba(246, 245, 243, .98));
	--scrollbar-thumb: linear-gradient(180deg, rgba(107, 142, 141, .82), rgba(163, 177, 138, .92));
	--scrollbar-thumb-hover: linear-gradient(180deg, rgba(92, 103, 125, .96), rgba(107, 142, 141, 1));
	--scrollbar-thumb-border: rgba(255, 255, 255, .95);
	--bs-primary: var(--primary);
	--bs-primary-rgb: var(--primary-rgb);
	--bs-secondary: var(--secondary);
	--bs-secondary-rgb: var(--secondary-rgb);
	--bs-success: var(--success);
	--bs-success-rgb: 132, 169, 140;
	--bs-warning: var(--warning);
	--bs-warning-rgb: 233, 196, 106;
	--bs-danger: var(--danger);
	--bs-danger-rgb: 214, 40, 40;
	--bs-info: var(--info);
	--bs-info-rgb: 69, 123, 157;
	--bs-light: #f6f5f3;
	--bs-light-rgb: 246, 245, 243;
	--bs-dark: #2f3e46;
	--bs-dark-rgb: 47, 62, 70;
	--bs-body-color: var(--text-main);
	--bs-body-bg: var(--bg-main);
	--bs-border-color: var(--line);
	--bs-border-radius: 1rem;
	--bs-border-radius-lg: 1.35rem;
	--bs-border-radius-sm: .85rem;
	--bs-link-color: var(--depth);
	--bs-link-hover-color: var(--accent);
	--bs-heading-color: var(--text-main);
	--bs-font-sans-serif: 'Manrope', 'Segoe UI', sans-serif;
	--bs-box-shadow-sm: 0 10px 24px rgba(92, 103, 125, .06);
	--bs-box-shadow: 0 18px 40px rgba(92, 103, 125, .10);
}

html {
	scroll-behavior: smooth;
	scrollbar-color: rgba(107, 142, 141, .78) rgba(237, 237, 233, .72);
}

body.app-body {
	background:
		radial-gradient(960px 520px at -10% -8%, rgba(183, 211, 194, .44), transparent 60%),
		radial-gradient(880px 460px at 108% 0%, rgba(212, 163, 115, .20), transparent 56%),
		linear-gradient(180deg, #faf8f5 0%, var(--bg-main) 36%, #f2efeb 100%);
	color: var(--text-main);
	font-family: 'Manrope', 'Segoe UI', sans-serif;
	line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sidebar-brand-title,
.sidebar-section-title,
.mobile-topbar-title,
.login-brand-panel h1 {
	font-family: 'Comfortaa', 'Manrope', sans-serif;
	letter-spacing: -.01em;
}

.app-layout {
	position: relative;
	grid-template-columns: 320px minmax(0, 1fr);
	background: transparent;
}

.app-sidebar {
	background: var(--sidebar-bg);
	backdrop-filter: blur(18px);
	border-right: 1px solid rgba(214, 204, 194, .9);
	padding: 22px 18px;
	box-shadow: 16px 0 40px rgba(92, 103, 125, .08);
	gap: 16px;
}

.sidebar-shell {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	gap: 16px;
}

.sidebar-brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sidebar-brand {
	gap: 12px;
}

.sidebar-brand-logo {
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	border: 1px solid rgba(214, 204, 194, .88);
	background: linear-gradient(135deg, rgba(183, 211, 194, .62), rgba(212, 163, 115, .16));
	color: var(--accent);
	box-shadow: 0 14px 30px rgba(107, 142, 141, .16);
}

.sidebar-brand-logo-image {
	max-width: 54px;
	max-height: 54px;
}

.sidebar-brand-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-main);
}

.sidebar-brand-subtitle {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--depth);
	text-transform: uppercase;
}

.sidebar-close-btn {
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(214, 204, 194, .9);
	background: rgba(255, 255, 255, .64);
	color: var(--depth);
	box-shadow: 0 10px 24px rgba(92, 103, 125, .08);
}

.sidebar-close-btn:hover,
.sidebar-close-btn:focus {
	background: rgba(255, 255, 255, .92);
	color: var(--text-main);
	border-color: rgba(163, 177, 138, .92);
}

.sidebar-intro {
	padding: 16px 18px;
	border-radius: 24px;
	background:
		linear-gradient(145deg, rgba(183, 211, 194, .34), rgba(255, 255, 255, .88)),
		radial-gradient(circle at top right, rgba(212, 163, 115, .22), transparent 48%);
	border: 1px solid rgba(214, 204, 194, .92);
	box-shadow: 0 14px 32px rgba(92, 103, 125, .08);
}

.sidebar-intro-kicker {
	display: inline-flex;
	margin-bottom: 8px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--depth);
}

.sidebar-intro-text {
	margin: 0;
	font-size: .92rem;
	color: var(--text-main);
}

.sidebar-user,
.sidebar-user-card {
	padding: 18px;
	border-radius: 24px;
	border: 1px solid rgba(214, 204, 194, .94);
	background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(237, 237, 233, .82));
	box-shadow: 0 14px 30px rgba(92, 103, 125, .07);
	color: var(--text-main);
	display: grid;
	gap: 4px;
}

.sidebar-user-label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-soft);
}

.sidebar-user-name {
	font-size: 1rem;
	font-weight: 700;
}

.sidebar-user-role {
	font-size: .9rem;
	color: var(--depth);
}

.sidebar-user-preview-note {
	margin-top: 6px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(233, 196, 106, .18);
	color: #946200;
	font-size: .78rem;
	font-weight: 700;
	text-align: center;
}

.sidebar-nav {
	display: grid;
	gap: 12px;
}

.sidebar-section {
	border: 1px solid rgba(214, 204, 194, .92);
	border-radius: 24px;
	background: rgba(255, 255, 255, .74);
	overflow: hidden;
	box-shadow: 0 14px 28px rgba(92, 103, 125, .06);
}

.sidebar-section-toggle {
	width: 100%;
	border: 0;
	background: transparent;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	color: var(--text-main);
}

.sidebar-section-toggle:hover,
.sidebar-section-toggle:focus {
	background: rgba(183, 211, 194, .14);
	outline: none;
}

.sidebar-section-toggle-copy {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sidebar-section-icon {
	width: 40px;
	height: 40px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, rgba(107, 142, 141, .16), rgba(183, 211, 194, .34));
	color: var(--accent);
	flex: 0 0 40px;
}

.sidebar-section-headings {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.sidebar-section-title {
	font-size: .95rem;
	font-weight: 700;
	color: var(--text-main);
}

.sidebar-section-description {
	font-size: .78rem;
	line-height: 1.45;
	color: var(--text-soft);
}

.sidebar-section-caret {
	color: var(--depth);
	transition: transform .24s ease;
}

.sidebar-section-toggle.collapsed .sidebar-section-caret {
	transform: rotate(-90deg);
}

.sidebar-section-panel {
	padding: 0 16px 16px;
}

.sidebar-section-links {
	display: grid;
	gap: 8px;
}

.sidebar-link {
	border: 1px solid transparent;
	border-radius: 18px;
	padding: 13px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, .8);
	box-shadow: 0 8px 18px rgba(92, 103, 125, .04);
	transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
	transform: translateY(-1px);
	border-color: rgba(163, 177, 138, .88);
	background: linear-gradient(135deg, rgba(183, 211, 194, .26), rgba(255, 255, 255, .96));
	box-shadow: 0 14px 24px rgba(107, 142, 141, .10);
	color: var(--text-main);
}

.sidebar-link.active {
	border-color: rgba(107, 142, 141, .42);
	background: linear-gradient(135deg, rgba(107, 142, 141, .18), rgba(183, 211, 194, .20), rgba(255, 255, 255, .98));
	box-shadow: inset 0 0 0 1px rgba(107, 142, 141, .08), 0 16px 26px rgba(107, 142, 141, .11);
}

.sidebar-link.sidebar-link--locked {
	opacity: .72;
	cursor: not-allowed;
	filter: saturate(.85);
	pointer-events: none;
}

.sidebar-link-icon {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(107, 142, 141, .12);
	color: var(--accent);
	flex: 0 0 42px;
	font-size: 1rem;
}

.sidebar-link-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.sidebar-link-title {
	font-size: .94rem;
	font-weight: 700;
	color: var(--text-main);
}

.sidebar-link-description {
	font-size: .76rem;
	line-height: 1.45;
	color: var(--text-soft);
}

.sidebar-link-badge {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(212, 163, 115, .18);
	color: #8d5d1d;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sidebar-footer {
	margin-top: auto;
	padding-top: 12px;
	display: grid;
	gap: 10px;
	background: transparent;
	border-top: 0;
	position: static;
}

.app-content {
	position: relative;
	padding: 28px;
	background: transparent;
}

.app-content-shell {
	max-width: min(1440px, 100%);
	margin: 0 auto;
	display: grid;
	gap: 1.2rem;
	padding-bottom: 28px;
}

.mobile-topbar {
	padding: 12px 14px;
	background: rgba(253, 252, 249, .82);
	border: 1px solid rgba(214, 204, 194, .82);
	border-radius: 22px;
	box-shadow: 0 16px 30px rgba(92, 103, 125, .08);
	backdrop-filter: blur(14px);
	gap: 12px;
}

.mobile-topbar-toggle {
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 16px;
	border-color: rgba(214, 204, 194, .92);
	background: rgba(255, 255, 255, .8);
	color: var(--depth);
}

.mobile-topbar-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.mobile-topbar-kicker {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--text-soft);
}

.mobile-topbar-title {
	font-size: .98rem;
	font-weight: 700;
	color: var(--text-main);
	line-height: 1.2;
}

.preview-mode-banner {
	padding: 14px 16px;
	margin-bottom: 8px;
	border: 1px solid rgba(233, 196, 106, .58);
	background: linear-gradient(90deg, rgba(233, 196, 106, .16), rgba(183, 211, 194, .16));
	border-radius: 18px;
	box-shadow: 0 14px 26px rgba(92, 103, 125, .05);
	backdrop-filter: blur(10px);
}

.preview-mode-banner-text {
	color: #75561c;
	font-weight: 700;
}

.card,
.modal-content,
.offcanvas,
.dropdown-menu,
.list-group-item,
.accordion-item,
.table-responsive > .responsive-card-table tbody tr {
	border-color: rgba(214, 204, 194, .96);
	border-radius: 22px;
	background: rgba(253, 252, 249, .9);
	box-shadow: 0 18px 40px rgba(92, 103, 125, .08);
	backdrop-filter: blur(12px);
}

.card .card,
.table-responsive > .responsive-card-table tbody tr {
	box-shadow: 0 12px 24px rgba(92, 103, 125, .06);
}

.table,
.table > :not(caption) > * > * {
	--bs-table-bg: transparent;
	--bs-table-color: var(--text-main);
	--bs-table-border-color: rgba(214, 204, 194, .88);
	vertical-align: middle;
}

.table thead th {
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--depth);
	background: rgba(237, 237, 233, .82);
	border-bottom-width: 1px;
}

.btn {
	--bs-btn-font-weight: 700;
	--bs-btn-border-radius: 999px;
	padding: .72rem 1.15rem;
	letter-spacing: .01em;
	box-shadow: 0 10px 22px rgba(92, 103, 125, .08);
}

.btn-sm {
	padding: .58rem .95rem;
	border-radius: 999px;
}

.btn-primary,
.login-btn {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--cta);
	--bs-btn-border-color: var(--cta);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #c58f5c;
	--bs-btn-hover-border-color: #c58f5c;
	--bs-btn-active-bg: #b58050;
	--bs-btn-active-border-color: #b58050;
	background: linear-gradient(135deg, #d4a373, #c58f5c) !important;
	border-color: #c58f5c !important;
	color: #fff !important;
	box-shadow: 0 14px 26px rgba(212, 163, 115, .26);
}

.btn-outline-secondary {
	--bs-btn-color: var(--depth);
	--bs-btn-border-color: rgba(214, 204, 194, .96);
	--bs-btn-hover-bg: rgba(163, 177, 138, .18);
	--bs-btn-hover-border-color: rgba(163, 177, 138, .78);
	--bs-btn-hover-color: var(--text-main);
	background: rgba(255, 255, 255, .68);
}

.btn-outline-danger {
	--bs-btn-color: var(--danger);
	--bs-btn-border-color: rgba(214, 40, 40, .3);
	--bs-btn-hover-bg: var(--danger);
	--bs-btn-hover-border-color: var(--danger);
	--bs-btn-hover-color: #fff;
	box-shadow: none;
}

.btn-outline-warning {
	--bs-btn-color: #8d5d1d;
	--bs-btn-border-color: rgba(233, 196, 106, .5);
	--bs-btn-hover-bg: rgba(233, 196, 106, .88);
	--bs-btn-hover-border-color: rgba(233, 196, 106, .88);
	--bs-btn-hover-color: #62440f;
	box-shadow: none;
}

.form-control,
.form-select,
.input-group-text,
.ql-toolbar.ql-snow,
.ql-container.ql-snow {
	border-color: rgba(214, 204, 194, .95) !important;
	border-radius: 18px !important;
	background-color: rgba(255, 255, 255, .86);
	color: var(--text-main);
	min-height: 48px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.ql-toolbar.ql-snow {
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	min-height: auto;
}

.ql-container.ql-snow {
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	min-height: 220px;
	background: rgba(255, 255, 255, .92);
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible {
	border-color: rgba(107, 142, 141, .72);
	box-shadow: 0 0 0 .24rem rgba(107, 142, 141, .16) !important;
}

.form-label,
.col-form-label {
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: .45rem;
}

.text-muted,
.text-body-secondary,
small,
.small {
	color: var(--text-soft) !important;
}

.badge {
	border-radius: 999px;
	padding: .52em .78em;
	font-weight: 700;
}

.alert {
	border-radius: 18px;
	border-width: 1px;
	box-shadow: 0 12px 22px rgba(92, 103, 125, .05);
	background: rgba(255, 255, 255, .84);
}

.alert-success {
	color: #1f5130;
	background: rgba(132, 169, 140, .16);
	border-color: rgba(132, 169, 140, .42);
}

.alert-warning,
.alert-light {
	color: #75561c;
	background: rgba(233, 196, 106, .14);
	border-color: rgba(233, 196, 106, .34);
}

.alert-danger {
	color: #7a1d1d;
	background: rgba(214, 40, 40, .10);
	border-color: rgba(214, 40, 40, .24);
}

.alert-info {
	color: #214a60;
	background: rgba(69, 123, 157, .12);
	border-color: rgba(69, 123, 157, .24);
}

.pagination {
	gap: .42rem;
}

.page-link,
.records-tabulation-btn {
	border-radius: 999px;
	border-color: rgba(214, 204, 194, .96);
	background: rgba(255, 255, 255, .88);
	color: var(--depth);
	box-shadow: 0 8px 18px rgba(92, 103, 125, .05);
}

.page-link:hover,
.records-tabulation-btn:hover:not(:disabled),
.records-tabulation-btn.is-active {
	border-color: rgba(107, 142, 141, .72);
	background: rgba(107, 142, 141, .12);
	color: var(--accent);
}

.page-item.active .page-link {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 12px 22px rgba(107, 142, 141, .16);
}

.records-tabulation-search,
.records-tabulation-page-size {
	border-radius: 999px;
	background: rgba(255, 255, 255, .86);
	border-color: rgba(214, 204, 194, .96);
	min-height: 42px;
}

.free-tier-notice {
	background: linear-gradient(135deg, rgba(233, 196, 106, .16), rgba(255, 255, 255, .92));
	border-color: rgba(233, 196, 106, .34);
	border-radius: 20px;
}

.login-shell {
	font-family: 'Manrope', 'Segoe UI', sans-serif;
	padding: 48px 18px;
}

.login-backdrop {
	background:
		radial-gradient(840px 420px at 8% 0%, rgba(183, 211, 194, .42), transparent 60%),
		radial-gradient(700px 360px at 100% 100%, rgba(212, 163, 115, .24), transparent 56%),
		linear-gradient(145deg, #5c677d 0%, #6b8e8d 42%, #a3b18a 100%);
}

.login-backdrop::after {
	background: linear-gradient(180deg, rgba(47, 62, 70, .12), rgba(47, 62, 70, .46));
}

.login-orb-a {
	background: radial-gradient(circle, rgba(183, 211, 194, .54), rgba(183, 211, 194, .06) 72%);
}

.login-orb-b {
	background: radial-gradient(circle, rgba(229, 152, 155, .26), rgba(229, 152, 155, .02) 70%);
}

.login-brand-panel {
	color: #fefdfb;
	border-color: rgba(255, 255, 255, .24);
	background: linear-gradient(165deg, rgba(47, 62, 70, .42), rgba(47, 62, 70, .12));
	box-shadow: 0 24px 48px rgba(47, 62, 70, .18);
}

.login-brand-panel p,
.login-system-info small {
	color: rgba(246, 245, 243, .92);
}

.login-system-info article {
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .18);
	border-radius: 18px;
}

.login-card,
.login-glass-card {
	border-radius: 28px;
	background: rgba(253, 252, 249, .92);
	border-color: rgba(255, 255, 255, .72);
	box-shadow: 0 28px 56px rgba(47, 62, 70, .22);
}

.login-link {
	color: var(--depth);
}

.login-link:hover {
	color: var(--accent);
}

.login-signup-btn {
	border-color: rgba(92, 103, 125, .92) !important;
	background: linear-gradient(135deg, #5c677d, #6b8e8d) !important;
	box-shadow: 0 14px 26px rgba(92, 103, 125, .22);
}

.login-signup-btn:hover,
.login-signup-btn:focus {
	background: linear-gradient(135deg, #526074, #5f8483) !important;
	border-color: rgba(92, 103, 125, 1) !important;
}

.container.py-5 > .card,
.container.py-5 .card.shadow-sm {
	background: rgba(253, 252, 249, .92);
	border: 1px solid rgba(214, 204, 194, .94) !important;
	border-radius: 28px;
	box-shadow: 0 28px 56px rgba(92, 103, 125, .12) !important;
}

.schedule-day,
.schedule-day-card,
.schedule-hour-row,
.schedule-day-row,
.schedule-line-item,
.task-form-shell,
.task-form-section,
.material-asset-view-card,
.material-task-aside,
.messenger-shared-card,
.messenger-entry-card,
.messenger-empty-state,
.father-word-action,
.father-word-result,
.father-word-reflection-card,
.guided-audio-card,
.guided-deck-card,
.guided-letter-result,
.guided-reflection-card,
.patient-subscription-card,
.financial-kpi,
.material-picker-item,
.html-preview-box,
.task-checkbox-panel,
.messenger-json-example {
	border-color: rgba(214, 204, 194, .94);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(253, 252, 249, .96), rgba(237, 237, 233, .74));
	box-shadow: 0 16px 30px rgba(92, 103, 125, .07);
}

.messenger-hero,
.father-word-hero,
.guided-deck-card,
.patient-subscription-card {
	background:
		radial-gradient(520px 200px at 0% -10%, rgba(183, 211, 194, .24), transparent 62%),
		radial-gradient(420px 180px at 100% 100%, rgba(212, 163, 115, .16), transparent 70%),
		linear-gradient(180deg, rgba(253, 252, 249, .98), rgba(237, 237, 233, .94));
}

.messenger-empty-state i,
.task-attachment-chip:hover,
.task-material-badge,
.schedule-hour-label,
.schedule-day-row-time,
.schedule-item-hour,
.material-asset-chip:hover,
.material-picker-item.is-selected {
	color: var(--accent);
}

.schedule-item,
.schedule-day,
.schedule-day-card,
.task-checkbox-panel,
.material-task-aside {
	background: linear-gradient(135deg, rgba(183, 211, 194, .16), rgba(253, 252, 249, .98));
}

.schedule-day-today,
.schedule-day-card-today,
.schedule-hour-row-now {
	border-color: rgba(107, 142, 141, .52);
	box-shadow: inset 0 0 0 1px rgba(107, 142, 141, .16);
	background: linear-gradient(135deg, rgba(183, 211, 194, .24), rgba(253, 252, 249, .98));
}

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

	.app-sidebar {
		width: min(92vw, 380px);
		max-width: 380px;
		padding: 18px 14px 20px;
		border-right: 1px solid rgba(214, 204, 194, .96);
		box-shadow: 18px 0 40px rgba(47, 62, 70, .18);
	}

	body.sidebar-open .app-sidebar {
		transform: translateX(0);
	}

	.sidebar-footer {
		position: sticky;
		bottom: 0;
		padding-top: 14px;
		background: linear-gradient(180deg, rgba(253, 252, 249, .3), rgba(253, 252, 249, .94));
		backdrop-filter: blur(14px);
	}

	.sidebar-section-panel {
		padding: 0 12px 12px;
	}

	.app-content {
		padding: 16px;
	}

	.app-content-shell {
		gap: 1rem;
		padding-bottom: 18px;
	}

	.mobile-topbar {
		margin: 0 0 14px;
	}

	.table-responsive > .responsive-card-table tbody tr {
		border-radius: 22px;
	}

	.container.py-5 {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.container.py-5 > .card,
		.container.py-5 .card.shadow-sm {
		border-radius: 24px;
	}
	}

@media (max-width: 575.98px) {
	.app-sidebar {
		width: 100vw;
		max-width: 100vw;
		border-radius: 0;
	}

	.sidebar-brand-logo,
	.sidebar-brand-logo-image {
		width: 48px;
		height: 48px;
		max-width: 48px;
		max-height: 48px;
	}

	.sidebar-intro,
	.sidebar-user-card,
	.sidebar-section,
	.mobile-topbar,
	.card,
	.modal-content,
	.table-responsive > .responsive-card-table tbody tr {
		border-radius: 20px;
	}

	.login-shell {
		padding: 24px 12px;
	}

	.login-brand-panel,
	.login-card,
	.login-glass-card {
		border-radius: 22px;
	}

	.table-actions {
		flex-wrap: wrap;
	}
	}

:root {
	--bg-main: #fff8f1;
	--bg-panel: #fffdfa;
	--bg-soft: #f9efe4;
	--text-main: #264653;
	--text-soft: #6c7a80;
	--line: #ecdccf;
	--line-strong: #dec4b1;
	--accent: #4d908e;
	--accent-rgb: 77, 144, 142;
	--accent-soft: #b8ddd7;
	--primary: #4d908e;
	--primary-rgb: 77, 144, 142;
	--secondary: #90be6d;
	--secondary-rgb: 144, 190, 109;
	--cta: #f9844a;
	--cta-rgb: 249, 132, 74;
	--depth: #6b7b7d;
	--affection: #f6bd60;
	--success: #43aa8b;
	--warning: #f9c74f;
	--danger: #d1495b;
	--info: #577590;
	--sidebar-bg: rgba(255, 250, 244, .9);
	--scrollbar-track: linear-gradient(180deg, rgba(249, 239, 228, .85), rgba(255, 248, 241, .98));
	--scrollbar-thumb: linear-gradient(180deg, rgba(77, 144, 142, .82), rgba(249, 132, 74, .92));
	--scrollbar-thumb-hover: linear-gradient(180deg, rgba(87, 117, 144, .98), rgba(77, 144, 142, 1));
	--bs-primary: var(--primary);
	--bs-primary-rgb: var(--primary-rgb);
	--bs-secondary: var(--secondary);
	--bs-secondary-rgb: var(--secondary-rgb);
	--bs-success: var(--success);
	--bs-success-rgb: 67, 170, 139;
	--bs-warning: var(--warning);
	--bs-warning-rgb: 249, 199, 79;
	--bs-danger: var(--danger);
	--bs-danger-rgb: 209, 73, 91;
	--bs-info: var(--info);
	--bs-info-rgb: 87, 117, 144;
	--bs-body-color: var(--text-main);
	--bs-body-bg: var(--bg-main);
	--bs-border-color: var(--line);
	--bs-link-color: var(--accent);
	--bs-link-hover-color: var(--cta);
}

body.app-body {
	background:
		radial-gradient(920px 520px at -8% -6%, rgba(184, 221, 215, .55), transparent 60%),
		radial-gradient(840px 440px at 104% 0%, rgba(249, 132, 74, .20), transparent 56%),
		radial-gradient(700px 340px at 50% 112%, rgba(246, 189, 96, .18), transparent 58%),
		linear-gradient(180deg, #fffdf8 0%, var(--bg-main) 38%, #fff4e8 100%);
}

.card,
.modal-content,
.offcanvas,
.dropdown-menu,
.list-group-item,
.accordion-item,
.table-responsive > .responsive-card-table tbody tr {
	border-color: rgba(236, 220, 207, .96);
	background:
		radial-gradient(220px 120px at 100% 0%, rgba(184, 221, 215, .18), transparent 70%),
		linear-gradient(180deg, rgba(255, 253, 250, .95), rgba(255, 247, 239, .86));
	box-shadow: 0 18px 40px rgba(38, 70, 83, .08);
}

.btn {
	box-shadow: 0 10px 22px rgba(38, 70, 83, .08);
}

.btn-primary,
.login-btn {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--cta);
	--bs-btn-border-color: var(--cta);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #ef7a3f;
	--bs-btn-hover-border-color: #ef7a3f;
	--bs-btn-active-bg: #e36d33;
	--bs-btn-active-border-color: #e36d33;
	background: linear-gradient(135deg, #f9844a, #f6bd60) !important;
	border-color: rgba(249, 132, 74, .92) !important;
	box-shadow: 0 16px 28px rgba(249, 132, 74, .24);
}

.btn-outline-primary {
	--bs-btn-color: var(--accent);
	--bs-btn-border-color: rgba(77, 144, 142, .42);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--accent);
	--bs-btn-hover-border-color: var(--accent);
	background: rgba(255, 255, 255, .72);
	box-shadow: none;
}

.btn-outline-dark {
	--bs-btn-color: var(--text-main);
	--bs-btn-border-color: rgba(38, 70, 83, .18);
	--bs-btn-hover-bg: rgba(38, 70, 83, .9);
	--bs-btn-hover-border-color: rgba(38, 70, 83, .9);
	--bs-btn-hover-color: #fff;
	background: rgba(255, 255, 255, .74);
	box-shadow: none;
}

.form-control,
.form-select,
.input-group-text,
.ql-toolbar.ql-snow,
.ql-container.ql-snow {
	background-color: rgba(255, 255, 255, .9);
	border-color: rgba(236, 220, 207, .95) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible {
	border-color: rgba(77, 144, 142, .72);
	box-shadow: 0 0 0 .24rem rgba(77, 144, 142, .16) !important;
}

.login-shell {
	padding: 40px 18px;
}

.login-backdrop {
	background:
		radial-gradient(940px 440px at 0% 0%, rgba(246, 189, 96, .26), transparent 56%),
		radial-gradient(760px 360px at 100% 100%, rgba(184, 221, 215, .26), transparent 56%),
		linear-gradient(140deg, #264653 0%, #4d908e 40%, #90be6d 72%, #f6bd60 100%);
}

.login-backdrop::after {
	background: linear-gradient(180deg, rgba(38, 70, 83, .10), rgba(38, 70, 83, .44));
}

.login-card-wrap {
	width: min(1140px, 100%);
	grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
	gap: 24px;
	align-items: stretch;
}

.login-brand-panel {
	padding: 38px;
	border-radius: 32px;
	background:
		radial-gradient(circle at top right, rgba(246, 189, 96, .22), transparent 28%),
		linear-gradient(165deg, rgba(38, 70, 83, .52), rgba(38, 70, 83, .18));
	}

.login-kicker,
.login-form-badge,
.dashboard-kicker,
.dashboard-section-kicker,
.dashboard-highlight-kicker {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .42rem .8rem;
	margin-bottom: 14px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .16);
	color: #fff7ed;
	border: 1px solid rgba(255, 255, 255, .18);
}

.login-kicker {
	background: linear-gradient(135deg, rgba(249, 132, 74, .92), rgba(246, 189, 96, .86));
	border-color: rgba(249, 132, 74, .96);
	color: #fffdf8;
	box-shadow:
		0 0 0 1px rgba(249, 132, 74, .22),
		0 0 18px rgba(249, 132, 74, .34),
		0 0 34px rgba(246, 189, 96, .20),
		0 16px 28px rgba(249, 132, 74, .22);
	text-shadow: 0 0 10px rgba(255, 255, 255, .22);
}

.login-mini-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.login-mini-stat {
	padding: 14px 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(249, 132, 74, .88);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .08),
		0 0 0 1px rgba(249, 132, 74, .22),
		0 0 16px rgba(249, 132, 74, .32),
		0 0 28px rgba(249, 132, 74, .18);
	display: grid;
	gap: 4px;
}

.login-mini-stat strong {
	font-size: .95rem;
	font-weight: 800;
	color: #fff;
}

.login-mini-stat span {
	font-size: .82rem;
	line-height: 1.55;
	color: rgba(255, 247, 237, .86);
}

.login-system-info article {
	background: linear-gradient(135deg, rgba(249, 132, 74, .90), rgba(246, 189, 96, .78));
	border: 1px solid rgba(249, 132, 74, .94);
	color: #ffffff;
	box-shadow:
		0 0 0 1px rgba(249, 132, 74, .18),
		0 14px 28px rgba(249, 132, 74, .22),
		inset 0 1px 0 rgba(255, 255, 255, .20);
}

.login-system-info article:hover {
	transform: translateY(-1px);
	box-shadow:
		0 0 0 1px rgba(249, 132, 74, .24),
		0 18px 32px rgba(249, 132, 74, .26),
		0 0 22px rgba(246, 189, 96, .18),
		inset 0 1px 0 rgba(255, 255, 255, .22);
}

.login-system-info article *,
.login-system-info i,
.login-system-info h6,
.login-system-info small {
	color: #ffffff !important;
}

.login-brand-panel h1 {
	color: #f9844a;
	text-shadow: 0 0 14px rgba(249, 132, 74, .28);
}

.login-feature-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.login-feature-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fffdf8;
	font-size: .82rem;
	font-weight: 700;
}

.login-card,
.login-glass-card {
	border-radius: 32px;
	background:
		radial-gradient(220px 140px at 100% 0%, rgba(184, 221, 215, .22), transparent 72%),
		linear-gradient(180deg, rgba(255, 253, 250, .96), rgba(255, 246, 236, .92));
	box-shadow: 0 30px 60px rgba(38, 70, 83, .20);
}

.login-card-header {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 12px;
}

.login-form-badge {
	background: rgba(77, 144, 142, .12);
	color: var(--accent);
	border-color: rgba(77, 144, 142, .18);
}

.login-card-header-icon {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(249, 132, 74, .18), rgba(246, 189, 96, .24));
	color: var(--cta);
	font-size: 1.2rem;
	flex: 0 0 52px;
}

.login-support-note {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 18px;
	background: rgba(77, 144, 142, .08);
	color: var(--accent);
	font-size: .9rem;
	font-weight: 600;
}

.login-support-note i {
	font-size: 1rem;
}

.login-signup-cta {
	border-top-color: rgba(236, 220, 207, .94);
	}

.login-signup-btn {
	background: linear-gradient(135deg, #264653, #4d908e) !important;
	border-color: rgba(38, 70, 83, .88) !important;
	box-shadow: 0 14px 26px rgba(38, 70, 83, .18);
}

.dashboard-page {
	display: grid;
	gap: 1.5rem;
}

.dashboard-hero {
	position: relative;
	overflow: hidden;
	padding: 32px;
	border-radius: 32px;
	border: 1px solid rgba(236, 220, 207, .96);
	box-shadow: 0 24px 54px rgba(38, 70, 83, .10);
}

.dashboard-hero::before,
.dashboard-hero::after {
	content: '';
	position: absolute;
	border-radius: 999px;
	filter: blur(6px);
	opacity: .8;
}

.dashboard-hero::before {
	width: 220px;
	height: 220px;
	right: -64px;
	top: -58px;
	background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.dashboard-hero::after {
	width: 180px;
	height: 180px;
	left: -42px;
	bottom: -68px;
	background: radial-gradient(circle, rgba(246, 189, 96, .34), rgba(246, 189, 96, 0));
}

.dashboard-hero--therapist {
	background: linear-gradient(135deg, #fff9f2 0%, #eef9f6 46%, #fef1e7 100%);
}

.dashboard-hero--admin {
	background: linear-gradient(135deg, #fff7f0 0%, #eff8f5 42%, #eef2fb 100%);
}

.dashboard-hero--patient {
	background: linear-gradient(135deg, #fff8f4 0%, #eef8f8 46%, #fff6e5 100%);
}

.dashboard-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
	gap: 22px;
	align-items: center;
}

.dashboard-kicker,
.dashboard-section-kicker,
.dashboard-highlight-kicker {
	background: rgba(77, 144, 142, .12);
	border-color: rgba(77, 144, 142, .16);
	color: var(--accent);
}

.dashboard-title {
	margin: 14px 0 12px;
	font-size: clamp(1.9rem, 3.2vw, 3rem);
	line-height: 1.05;
	max-width: 14ch;
}

.dashboard-copy {
	max-width: 62ch;
	font-size: 1rem;
	color: var(--text-soft);
	margin-bottom: 18px;
}

.dashboard-stat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.dashboard-stat-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(236, 220, 207, .92);
	font-weight: 700;
	color: var(--text-main);
	box-shadow: 0 10px 22px rgba(38, 70, 83, .05);
}

.dashboard-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dashboard-highlight-card {
	padding: 24px;
	border-radius: 28px;
	background: rgba(255, 255, 255, .74);
	border: 1px solid rgba(236, 220, 207, .96);
	box-shadow: 0 16px 34px rgba(38, 70, 83, .08);
	display: grid;
	gap: 12px;
}

.dashboard-highlight-row {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(77, 144, 142, .08), rgba(255, 255, 255, .88));
	border: 1px solid rgba(236, 220, 207, .92);
}

.dashboard-highlight-row strong {
	font-size: 1.05rem;
	color: var(--text-main);
}

.dashboard-highlight-row span,
.dashboard-highlight-note {
	color: var(--text-soft);
	font-size: .92rem;
}

.dashboard-highlight-row.is-emphasis {
	background: linear-gradient(135deg, rgba(249, 132, 74, .14), rgba(246, 189, 96, .16));
	border-color: rgba(249, 132, 74, .22);
}

.dashboard-metric-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 16px;
}

.dashboard-metric-grid--compact {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-kpi-card {
	padding: 22px;
	border-radius: 26px;
	border: 1px solid rgba(236, 220, 207, .95);
	background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,246,236,.88));
	box-shadow: 0 18px 34px rgba(38, 70, 83, .07);
	display: grid;
	gap: 10px;
	min-height: 100%;
}

.dashboard-kpi-card h2 {
	margin: 0;
	font-size: clamp(1.7rem, 2.6vw, 2.4rem);
	line-height: 1.05;
}

.dashboard-kpi-card p {
	margin: 0;
	color: var(--text-soft);
	font-size: .92rem;
	line-height: 1.55;
}

.dashboard-kpi-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--depth);
}

.dashboard-kpi-text {
	font-size: clamp(1.05rem, 1.9vw, 1.4rem) !important;
	line-height: 1.45 !important;
}

.dashboard-kpi-card--peach {
	background: linear-gradient(180deg, rgba(249, 132, 74, .12), rgba(255,255,255,.96));
}

.dashboard-kpi-card--mint {
	background: linear-gradient(180deg, rgba(67, 170, 139, .12), rgba(255,255,255,.96));
}

.dashboard-kpi-card--sky {
	background: linear-gradient(180deg, rgba(87, 117, 144, .12), rgba(255,255,255,.96));
}

.dashboard-kpi-card--sun {
	background: linear-gradient(180deg, rgba(246, 189, 96, .16), rgba(255,255,255,.96));
}

.dashboard-kpi-card--lavender {
	background: linear-gradient(180deg, rgba(184, 221, 215, .24), rgba(255,255,255,.96));
}

.dashboard-kpi-card--rose {
	background: linear-gradient(180deg, rgba(255, 205, 178, .22), rgba(255,255,255,.96));
}

.dashboard-kpi-card--aqua {
	background: linear-gradient(180deg, rgba(144, 190, 109, .14), rgba(255,255,255,.96));
}

.dashboard-chart-card,
.dashboard-section-card {
	border-radius: 30px;
	overflow: hidden;
}

.dashboard-section-head {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 16px;
}

.dashboard-actions-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.dashboard-action-tile {
	display: grid;
	gap: 8px;
	padding: 18px;
	border-radius: 22px;
	text-decoration: none;
	color: var(--text-main);
	background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,248,241,.88));
	border: 1px solid rgba(236, 220, 207, .95);
	box-shadow: 0 14px 26px rgba(38, 70, 83, .05);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-action-tile:hover {
	transform: translateY(-2px);
	border-color: rgba(77, 144, 142, .28);
	box-shadow: 0 18px 30px rgba(38, 70, 83, .08);
	color: var(--text-main);
}

.dashboard-action-tile i {
	width: 44px;
	height: 44px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(184, 221, 215, .28), rgba(249, 132, 74, .16));
	color: var(--accent);
	font-size: 1rem;
}

.dashboard-action-tile strong {
	font-size: 1rem;
}

.dashboard-action-tile span,
.dashboard-inline-notes span {
	font-size: .88rem;
	line-height: 1.55;
	color: var(--text-soft);
}

.dashboard-inline-notes {
	display: grid;
	gap: 8px;
}

.dashboard-inline-notes i {
	margin-right: 8px;
	color: var(--accent);
}

.dashboard-progress-card {
	padding: 18px;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,244,231,.90));
	border: 1px solid rgba(236, 220, 207, .95);
	box-shadow: 0 14px 26px rgba(38, 70, 83, .05);
	display: grid;
	gap: 12px;
}

.dashboard-progress-value {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1;
	color: var(--cta);
}

.dashboard-progress-bar {
	height: 12px;
	border-radius: 999px;
	background: rgba(77, 144, 142, .12);
	overflow: hidden;
}

.dashboard-progress-bar .progress-bar {
	background: linear-gradient(135deg, #4d908e, #90be6d, #f6bd60);
	border-radius: 999px;
}

@media (max-width: 1199.98px) {
	.dashboard-metric-grid,
	.dashboard-metric-grid--compact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.login-card-wrap,
	.dashboard-hero-grid {
		grid-template-columns: 1fr;
	}

	.login-brand-panel {
		padding: 28px;
	}

	.dashboard-hero {
		padding: 24px;
	}

	.dashboard-actions-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-metric-grid,
	.dashboard-metric-grid--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.login-mini-stats,
	.dashboard-metric-grid,
	.dashboard-metric-grid--compact {
		grid-template-columns: 1fr;
	}

	.login-brand-panel,
	.login-card,
	.login-glass-card,
	.dashboard-hero,
	.dashboard-highlight-card,
	.dashboard-kpi-card,
	.dashboard-chart-card,
	.dashboard-section-card,
	.dashboard-action-tile,
	.dashboard-progress-card {
		border-radius: 24px;
	}

	.login-card-header {
		align-items: center;
	}

	.login-card-header-icon {
		display: none;
	}

	.dashboard-title {
		max-width: 100%;
		font-size: 1.75rem;
	}

	.dashboard-stat-chip,
	.login-feature-chip {
		width: 100%;
		justify-content: center;
	}

	.dashboard-quick-actions .btn {
		width: 100%;
	}
}