@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
	--text-gray-50: #F9FAFB;
	--text-gray-100: #F3F4F6;
	--text-gray-200: #E5E7EB;
	--text-gray-300: #D1D5DB;
	--text-gray-400: #9CA3AF;
	--text-gray-500: #6B7280;
	--text-gray-600: #4B5563;
	--text-gray-700: #374151;
	--text-gray-800: #1F2937;
	--text-gray-900: #111827;

	--color-primary: #007A33;
	--color-primary-light: #E6F5EC;

	--color-white: #FFFFFF;
	--bg-page: #F6F8F6;
	--bg-page-header: #EBEEED;

	--color-danger: #8F0029;
	--bg-danger: #FFBFD1;
	--color-warning: #7D6200;
	--bg-warning: #FFF1BF;
	--color-info: #4A1E9E;
	--bg-info: #DDCBFF;
	--color-success: #004700;
	--bg-success: #BFFFBF;

	--fz-xs: 0.75rem; /* 12px */
	--fz-sm: 0.875rem; /* 14px */
	--fz-md: 1rem; /* 16px */
	--fz-lg: 1.125rem; /* 18px */
	--fz-xl: 1.25rem; /* 20px */
	--fz-2xl: 1.5rem; /* 24px */
	--fz-3xl: 2rem; /* 32px */

	--fw-sm: 400;
	--fw-md: 500;
	--fw-lg: 600;
	--fw-xl: 700;

	--lg-sm: 1.2;
	--lg-md: 1.4;
	--lg-lg: 1.6;

	--br-sm: 0.25rem; /* 4px */
	--br-md: 0.5rem; /* 8px */
	--br-lg: 0.75rem; /* 12px */
	--br-xl: 1rem; /* 16px */
	--br-2xl: 1.25rem; /* 20px */
	--br-3xl: 1.5rem; /* 24px */

	--space-xs: 0.25rem; /* 4px */
	--space-sm: 0.5rem; /* 8px */
	--space-md: 0.75rem; /* 12px */
	--space-lg: 1rem; /* 16px */
	--space-xl: 1.25rem; /* 20px */
	--space-2xl: 1.5rem; /* 24px */
	--space-3xl: 1.75rem; /* 28px */
	--space-4xl: 2rem; /* 32px */
	--space-5xl: 2.25rem; /* 36px */
	--space-6xl: 2.5rem; /* 40px */
	--space-7xl: 2.75rem; /* 44px */
	--space-8xl: 3rem; /* 48px */
	--space-9xl: 3.25rem; /* 52px */
	--space-10xl: 3.5rem; /* 56px */

	--modal-content-padding: var(--space-2xl);
	--modal-content-radius: var(--br-lg);
	--modal-header-margin-bottom: var(--space-lg);
	--modal-dialog-max-sm: 20rem;
	--modal-dialog-max-md: 32rem;
	--modal-dialog-max-lg: 50rem; /* 800px */
	--bs-modal-border-radius: var(--modal-content-radius);

	--page-shell-max-width: 26.25rem; /* 420px */

	/* Full-page wait (Feedback.png): opaque black, not a scrim */
	--bg-feedback: #000000;
	/* Translucent dimmer for .loading-screen--overlay on top of a page */
	--overlay-backdrop: rgb(0 0 0 / 0.5);
}

body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background-color: var(--bg-page);
	color: var(--text-gray-900);
	font-family: Inter, system-ui, sans-serif;
	font-size: var(--fz-sm);
	font-optical-sizing: auto;
	scroll-behavior: smooth;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Buttons */

.button {
	display: inline-flex;
	box-sizing: border-box;
	gap: var(--space-sm);
	align-items: center;
	justify-content: center;
	height: var(--space-5xl);
	padding: var(--space-sm) var(--space-lg);
	color: var(--text-gray-900);
	background-color: var(--text-gray-200);
	border: none;
	border-radius: var(--br-md);
	font-size: var(--fz-sm);
	font-weight: var(--fw-md);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	transition: background-color 0.2s ease, color 0.2s ease;
	background-color: var(--text-gray-200);
	color: var(--text-gray-900);
}

.button .lucide {
	width: var(--fz-sm);
	height: var(--fz-sm);
}

.button-xs {
	height: var(--space-2xl);
	gap: var(--space-xs);
	padding: 0 var(--space-sm);
	border-radius: var(--br-md);
	font-size: var(--fz-xs);
}

.button-sm {
	height: var(--space-4xl);
	gap: 0.375rem;
	padding: 0 var(--space-md);
}

.button-md {
	height: var(--space-5xl);
	padding: var(--space-sm) var(--space-lg);
}

.button-lg {
	height: var(--space-6xl);
	padding: 0 var(--space-2xl);
}

.button-icon {
	width: var(--space-5xl);
	height: var(--space-5xl);
	padding: 0;
}

.button.button-icon-circle {
	width: var(--space-5xl);
	height: var(--space-5xl);
	padding: 0;
	border-radius: 9999px;
	border: 1px solid var(--text-gray-300);
	background-color: var(--color-white);
	color: var(--text-gray-900);
}

.button.button-icon-circle:hover {
	background-color: var(--text-gray-100);
	color: var(--text-gray-900);
}

.button.button-pill {
	border-radius: 9999px;
}

.button-primary {
	color: var(--color-white);
	background-color: var(--color-primary);
}

.button-primary:hover {
	transition: background-color 0.2s ease, color 0.2s ease;
	background-color: var(--text-gray-900);
	color: var(--text-gray-300);
}

.button-danger {
	background-color: var(--bg-danger);
	color: var(--color-danger);
}

.button-danger:hover {
	transition: background-color 0.2s ease, color 0.2s ease;
	background-color: var(--color-danger);
	color: var(--text-gray-200);
}

.button-success {
	background-color: var(--bg-success);
	color: var(--color-success);
}

.button-success:hover {
	transition: background-color 0.2s ease, color 0.2s ease;
	background-color: var(--color-success);
	color: var(--text-gray-200);
}

.button-warning {
	background-color: var(--bg-warning);
	color: var(--color-warning);
}

.button-warning:hover {
	transition: background-color 0.2s ease, color 0.2s ease;
	background-color: var(--color-warning);
	color: var(--text-gray-200);
}

.button-info {
	background-color: var(--bg-info);
	color: var(--color-info);
}

.button-info:hover {
	transition: background-color 0.2s ease, color 0.2s ease;
	background-color: var(--color-info);
	color: var(--text-gray-200);
}

.button-outline {
	color: var(--text-gray-900);
	background-color: var(--text-gray-100);
	border: 1px solid var(--text-gray-300);
}

.button-outline:hover {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	background-color: var(--text-gray-100);
	color: var(--text-gray-900);
	border-color: var(--text-gray-300);
}

.button-primary-outline {
	color: var(--color-primary);
	background-color: var(--color-white);
	border: 1px solid var(--color-primary);
}

.button-primary-outline:hover {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.button.button-text {
	padding: 0;
	color: var(--color-primary);
	background-color: transparent;
	border: none;
}

.button.button-text:hover {
	background-color: transparent;
	text-decoration: underline;
}

.button.button-text-danger {
	color: var(--color-danger);
}

.button.button-cta {
	width: 100%;
	height: var(--space-8xl);
	padding: 0 var(--space-2xl);
	border-radius: 9999px;
	font-size: var(--fz-md);
	font-weight: var(--fw-lg);
}

/* Badges */

.badge {
	display: inline-flex;
	align-self: flex-start;
	gap: var(--space-xs);
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	padding: 0.125rem var(--space-sm);
	border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	border-radius: 9999px;
	font-size: var(--fz-xs);
	font-weight: var(--fw-md);
	white-space: nowrap;
	color: var(--text-gray-900);
	background-color: var(--text-gray-200);
}

.badge-sm {
	padding: 0.125rem var(--space-sm);
}

.badge-md {
	padding: var(--space-xs) var(--space-md);
}

.badge-lg {
	padding: 0.375rem var(--space-lg);
}

.badge-danger {
	color: var(--color-danger);
	background-color: var(--bg-danger);
}

.badge-warning {
	color: var(--color-warning);
	background-color: var(--bg-warning);
}

.badge-info {
	color: var(--color-info);
	background-color: var(--bg-info);
}

.badge-success {
	color: var(--color-success);
	background-color: var(--bg-success);
}

.badge-primary {
	color: var(--color-primary);
	background-color: var(--color-primary-light);
}

.badge-secondary {
	color: var(--text-gray-700);
	background-color: var(--text-gray-200);
}

.badge .lucide {
	width: var(--fz-xs);
	height: var(--fz-xs);
	line-height: 1;
}

/* Forms */

.form-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	margin-bottom: var(--space-lg);
	position: relative;
}

.form-group label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: var(--fz-sm);
	font-weight: var(--fw-md);
	line-height: 1;
}

.form-group-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.form-group-input-wrapper > .lucide:not(.icon-right) {
	position: absolute;
	left: var(--space-md);
	width: var(--fz-sm);
	height: var(--fz-sm);
	color: var(--text-gray-700);
	pointer-events: none;
}

.form-control {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: var(--space-5xl);
	padding: var(--space-xs) var(--space-md);
	border: 1px solid var(--text-gray-300);
	border-radius: 9999px;
	background-color: var(--text-gray-100);
	color: var(--text-gray-900);
	font-size: var(--fz-md);
}

@media (min-width: 768px) {
	.form-control {
		font-size: var(--fz-sm);
	}
}

textarea.form-control {
	height: auto;
	min-height: 4rem;
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--br-md);
	field-sizing: content;
	resize: vertical;
}

.form-group-input-wrapper > .lucide:not(.icon-right) + .form-control {
	padding-left: var(--space-4xl);
}

.form-control:focus {
	outline: none;
	border-color: var(--text-gray-300);
	background-color: var(--text-gray-200);
	box-shadow: none;
}

.form-group.is-invalid .form-control,
.form-control.is-invalid {
	border-color: var(--color-danger);
}

.form-group.is-invalid .form-control:focus,
.form-control.is-invalid:focus {
	border-color: var(--color-danger);
	box-shadow: none;
}

.form-group.is-invalid .form-group-input-wrapper > .lucide:not(.icon-right) {
	color: var(--color-danger);
}

.form-error {
	display: block;
	box-sizing: border-box;
	width: max-content;
	max-width: 100%;
	margin: var(--space-sm) 0 0;
	padding: var(--space-sm) var(--space-lg);
	border-radius: 9999px;
	background-color: #F8EFF1;
	font-size: var(--fz-xs);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: #F24747;
}

.form-group--inline {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}

.form-group--inline label {
	flex-shrink: 0;
}

.form-group--inline .form-control {
	flex: 1;
	width: auto;
	min-width: 0;
}

select.form-control {
	appearance: none;
	padding-right: var(--space-4xl);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--space-md) center;
	background-size: 1rem;
}

/* Cards */

.card {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	box-sizing: border-box;
	padding: var(--space-lg);
	border: 1px solid var(--text-gray-200);
	border-radius: var(--br-3xl);
	background-color: var(--color-white);
	color: var(--text-gray-900);
	font-size: var(--fz-sm);
}

.card--compact {
	gap: 0;
}

/* Alerts */

.alert {
	--bs-alert-padding-x: var(--space-lg);
	--bs-alert-padding-y: var(--space-md);
	--bs-alert-margin-bottom: 0;
	--bs-alert-border-radius: var(--br-2xl);
	--bs-alert-border-width: 0;
	--bs-alert-bg: transparent;
	--bs-alert-color: inherit;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--space-md);
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: var(--space-md) var(--space-lg);
	border: none;
	border-radius: var(--br-2xl);
	font-size: var(--fz-sm);
	line-height: var(--lg-md);
}

.alert-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-8xl);
	height: var(--space-8xl);
	border-radius: var(--br-xl);
	background-color: color-mix(in srgb, currentColor 16%, transparent);
	color: currentColor;
}

.alert-icon .lucide,
.alert-icon img {
	width: var(--fz-xl);
	height: auto;
}

.alert-icon img {
	display: block;
}

.alert-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-md);
	min-width: 0;
}

.alert p {
	margin: 0;
}

.alert-title {
	margin: 0;
	font-weight: var(--fw-md);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.alert-description {
	margin: 0;
	color: var(--text-gray-600);
	font-size: var(--fz-xs);
}

.alert-success {
	color: var(--color-success);
	background-color: var(--bg-success);
}

.alert-danger {
	color: var(--color-danger);
	background-color: var(--bg-danger);
}

.alert-danger-strong {
	color: var(--color-white);
	background-color: #F24747;
}

.alert-danger-strong .alert-icon {
	background-color: #F46868;
	color: var(--color-white);
}

.alert-danger-strong .alert-title,
.alert-danger-strong .alert-description {
	color: var(--color-white);
}

.alert-danger-strong .alert-close {
	background-color: color-mix(in srgb, var(--color-white) 18%, transparent);
	color: var(--color-white);
}

.alert-danger-strong .alert-actions .button {
	background-color: var(--color-white);
	color: var(--color-danger);
}

.alert-warning {
	color: var(--color-warning);
	background-color: var(--bg-warning);
}

.alert-warning .alert-icon {
	background-color: #F4C115;
	color: #5B4724;
}

.alert-info {
	color: var(--color-info);
	background-color: var(--bg-info);
}

.alert-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-sm);
}

.alert:has(> .alert-close) {
	padding-right: var(--space-8xl);
}

.alert-close {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--space-2xl);
	height: var(--space-2xl);
	padding: 0;
	border: none;
	border-radius: 9999px;
	background-color: color-mix(in srgb, currentColor 16%, transparent);
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.alert-close .lucide,
.alert-close svg {
	width: var(--fz-sm);
	height: var(--fz-sm);
}

.alert-close:hover {
	opacity: 0.85;
}

/* Callouts */

.callout {
	display: flex;
	align-items: flex-start;
	gap: var(--space-md);
	box-sizing: border-box;
	width: 100%;
	padding: var(--space-lg);
	border-radius: var(--br-lg);
	font-size: var(--fz-sm);
	line-height: var(--lg-md);
}

.callout-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-5xl);
	height: var(--space-5xl);
	border-radius: var(--br-md);
	background-color: color-mix(in srgb, currentColor 12%, transparent);
	color: inherit;
}

.callout-icon .lucide {
	width: var(--fz-md);
	height: var(--fz-md);
}

.callout-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

.callout-title {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-lg);
	line-height: var(--lg-sm);
}

.callout-body {
	margin: 0;
	font-size: var(--fz-sm);
	line-height: var(--lg-md);
}

.callout-body p {
	margin: 0;
}

.callout-body p + p {
	margin-top: var(--space-sm);
}

.callout-info {
	background-color: #EBF3FF;
	color: var(--text-gray-600);
}

.callout-info .callout-title {
	color: var(--text-gray-900);
}

.callout-info .callout-body {
	color: var(--text-gray-600);
}

.callout-info .callout-icon {
	color: #0088FF;
}

.callout-warning {
	color: var(--color-warning);
	background-color: var(--bg-warning);
}

.callout-danger {
	color: var(--color-danger);
	background-color: var(--bg-danger);
}

.callout-success {
	color: var(--color-success);
	background-color: var(--bg-success);
}

.callout-primary {
	color: var(--color-primary);
	background-color: var(--color-primary-light);
}

/* Avatar, dividers */

.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	width: var(--space-4xl);
	height: var(--space-4xl);
	border-radius: 9999px;
	background-color: var(--text-gray-200);
	color: var(--text-gray-700);
	font-size: var(--fz-xs);
	font-weight: var(--fw-md);
	line-height: 1;
}

.avatar-sm {
	width: var(--space-2xl);
	height: var(--space-2xl);
	font-size: 0.625rem;
}

.avatar-lg {
	width: var(--space-6xl);
	height: var(--space-6xl);
	font-size: var(--fz-sm);
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.divider {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
	border: none;
	background-color: var(--text-gray-300);
}

.divider-vertical {
	display: inline-block;
	width: 1px;
	height: 100%;
	min-height: var(--space-4xl);
	background-color: var(--text-gray-200);
}

/* Modals */

.modal .modal-content {
	overflow: hidden;
	border: none;
	border-radius: var(--modal-content-radius);
	padding: var(--modal-content-padding);
	background-color: var(--color-white);
}

.modal .modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-lg);
	padding: 0;
	margin-bottom: var(--modal-header-margin-bottom);
	border-bottom: none;
}

.modal-title {
	margin: 0;
	font-size: var(--fz-lg);
	font-weight: var(--fw-lg);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.modal-body {
	padding: 0;
	color: var(--text-gray-700);
	font-size: var(--fz-sm);
	line-height: var(--lg-md);
}

.modal-body p {
	margin: 0;
}

.modal-body p + p {
	margin-top: var(--space-sm);
}

.modal .modal-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-sm);
	padding: 0;
	margin-top: var(--space-lg);
	border-top: none;
}

.modal-dialog.modal-size-sm {
	max-width: var(--modal-dialog-max-sm);
}

.modal-dialog.modal-size-md {
	max-width: var(--modal-dialog-max-md);
}

.modal-dialog.modal-size-lg {
	max-width: var(--modal-dialog-max-lg);
}

.modal-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-8xl);
	height: var(--space-8xl);
	margin-inline: auto;
	margin-bottom: var(--space-lg);
	border-radius: 9999px;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
}

.modal-icon .lucide {
	width: var(--fz-xl);
	height: var(--fz-xl);
}

.modal-icon--success {
	background-color: var(--bg-success);
	color: var(--color-success);
}

.modal-icon--warning {
	background-color: var(--bg-warning);
	color: var(--color-warning);
}

.modal-icon--danger {
	background-color: var(--bg-danger);
	color: var(--color-danger);
}

.modal-centered .modal-header,
.modal-centered .modal-body,
.modal-centered .modal-footer {
	text-align: center;
}

.modal-centered .modal-footer {
	justify-content: center;
}

/* App chrome */

.brand-header {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	box-sizing: border-box;
	width: 100%;
	padding: var(--space-md) var(--space-lg);
	background-color: var(--color-primary);
	color: var(--color-white);
}

.brand-header__crest {
	display: block;
	flex-shrink: 0;
	width: auto;
	height: var(--space-6xl);
	object-fit: contain;
}

.brand-header__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
}

.brand-header .badge-official {
	flex-shrink: 0;
	padding: var(--space-sm);
	border-color: transparent;
	color: var(--color-white);
	background-color: color-mix(in srgb, var(--color-white) 22%, var(--color-primary));
	font-size: var(--fz-sm);
}

.brand-header .badge-official .lucide {
	width: var(--fz-sm);
	height: var(--fz-sm);
}

.app-bar {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	box-sizing: border-box;
	width: 100%;
	padding: var(--space-md) var(--space-lg);
	background-color: var(--bg-page-header);
}

.app-bar__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

.app-bar__title {
	margin: 0;
	font-size: var(--fz-xl);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.app-bar__subtitle {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-500);
}

.bottom-nav {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	gap: var(--space-sm);
	box-sizing: border-box;
	width: 100%;
	max-width: 22rem;
	margin-inline: auto;
	padding: var(--space-sm);
	background-color: var(--color-white);
	border-radius: 9999px;
	box-shadow:
		0 1px 2px rgb(17 24 39 / 0.06),
		0 8px 24px rgb(17 24 39 / 0.1);
}

.bottom-nav__item {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	padding: var(--space-sm);
	border: none;
	border-radius: calc(9999px - var(--space-sm));
	background-color: transparent;
	color: var(--text-gray-700);
	font-size: var(--fz-xs);
	font-weight: var(--fw-md);
	line-height: var(--lg-sm);
	text-decoration: none;
	cursor: pointer;
}

.bottom-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bottom-nav__icon .lucide {
	width: var(--fz-xl);
	height: var(--fz-xl);
}

.bottom-nav__item.is-active {
	color: var(--color-primary);
	background-color: var(--text-gray-200);
}

.page-greeting {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.page-greeting__title {
	margin: 0;
	font-size: var(--fz-3xl);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.page-greeting__lede {
	margin: 0;
	font-size: var(--fz-md);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-500);
}

/* Invoice and payment detail blocks */

.entity-header {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-width: 0;
}

.entity-header__logo {
	flex-shrink: 0;
	width: var(--space-7xl);
	height: var(--space-7xl);
}

.entity-header__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

.entity-header__title {
	margin: 0;
	font-size: var(--fz-md);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.entity-header__subtitle {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-500);
}

.amount-display {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.amount-display__label {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-500);
}

.amount-display__value {
	margin: 0;
	font-size: var(--fz-2xl);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.amount-display__value--primary {
	color: var(--color-primary);
}

.field {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.field__label {
	margin: 0;
	font-size: var(--fz-xs);
	font-weight: var(--fw-md);
	line-height: var(--lg-md);
	color: var(--text-gray-800);
}

.field__value {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-600);
}

.metadata-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.meta-row {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-width: 0;
}

.meta-row__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: var(--text-gray-900);
}

.meta-row__icon .lucide {
	width: var(--fz-md);
	height: var(--fz-md);
}

.meta-row__label {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-lg);
	line-height: var(--lg-md);
	color: var(--text-gray-900);
}

.meta-row__value {
	flex-shrink: 0;
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-600);
	text-align: right;
}

.meta-row .badge {
	align-self: center;
}

.meta-row__value--emphasis {
	font-weight: var(--fw-lg);
	color: var(--text-gray-900);
}

.pay-ref {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}

.pay-ref__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

.pay-ref__value {
	margin: 0;
	font-size: var(--fz-md);
	font-weight: var(--fw-lg);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.featured-cta {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	box-sizing: border-box;
	width: 100%;
	padding: var(--space-md);
	border-radius: var(--br-3xl);
	background-color: var(--color-primary);
	color: var(--color-white);
}

.featured-cta__head {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.featured-cta__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-2xl);
	height: var(--space-2xl);
}

.featured-cta__icon img {
	display: block;
	width: var(--space-2xl);
	height: var(--space-2xl);
}

.featured-cta__title {
	margin: 0;
	font-size: var(--fz-md);
	font-weight: var(--fw-sm);
	line-height: var(--lg-sm);
}

.featured-cta__panel {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-lg);
	border-radius: var(--br-3xl);
	background-color: #CCEAD6;
	color: var(--color-primary);
}

.featured-cta__panel-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

.featured-cta__panel-title {
	margin: 0;
	font-size: var(--fz-lg);
	font-weight: var(--fw-lg);
	line-height: var(--lg-sm);
}

.featured-cta__panel-lede {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-md);
	line-height: var(--lg-md);
	color: var(--text-gray-600);
}

.featured-cta__panel-logo {
	display: block;
	flex-shrink: 0;
	width: 4.375rem;
	height: 4.375rem;
	object-fit: contain;
}

.featured-cta__action {
	width: 100%;
	height: var(--space-6xl);
	border-radius: var(--br-lg);
	background-color: var(--color-white);
	color: var(--color-primary);
	font-weight: var(--fw-lg);
}

.featured-cta__action:hover {
	background-color: var(--text-gray-50);
}

/* Option rows */

.option-row {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	box-sizing: border-box;
	width: 100%;
	padding: var(--space-lg);
	border: 1px solid var(--text-gray-200);
	border-radius: var(--br-3xl);
	background-color: var(--color-white);
	color: var(--text-gray-900);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.option-row__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-6xl);
	height: var(--space-6xl);
	border-radius: var(--br-lg);
	background-color: var(--color-primary-light);
	color: var(--color-primary);
}

.option-row__icon .lucide {
	width: var(--fz-xl);
	height: var(--fz-xl);
}

.option-row__icon--enter {
	background-color: var(--color-primary);
	color: var(--color-white);
	font-size: var(--fz-md);
	font-weight: var(--fw-xl);
	line-height: 1;
}

.option-row__icon--scan {
	background-color: #F4C115;
	color: #5B4724;
}

.option-row__icon--bank {
	background-color: var(--color-primary);
	color: var(--color-primary-light);
}

.option-row__icon--channel {
	background-color: var(--color-white);
}

.option-row__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.option-row__icon--channel img {
	width: auto;
	height: var(--space-4xl);
	max-width: 100%;
}

.option-row__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-width: 0;
}

.option-row__title {
	margin: 0;
	font-size: var(--fz-md);
	font-weight: var(--fw-md);
	line-height: var(--lg-sm);
}

.option-row__desc {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-500);
}

.option-row__chevron {
	flex-shrink: 0;
	width: var(--fz-xl);
	height: var(--fz-xl);
	color: var(--text-gray-500);
}

/* Payment instructions */

.segment-control {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	gap: var(--space-xs);
	box-sizing: border-box;
	padding: var(--space-xs);
	border-radius: 9999px;
	background-color: var(--text-gray-100);
}

.segment-control__tab {
	flex: 0 0 auto;
	padding: var(--space-sm) var(--space-md);
	border: none;
	border-radius: 9999px;
	background-color: transparent;
	color: var(--text-gray-600);
	font-size: var(--fz-xs);
	font-weight: var(--fw-md);
	line-height: var(--lg-sm);
	white-space: nowrap;
	cursor: pointer;
}

.segment-control__tab.is-active {
	background-color: var(--color-white);
	color: var(--text-gray-900);
	box-shadow: 0 1px 2px rgb(17 24 39 / 0.06);
}

.payment-instructions {
	gap: var(--space-md);
}

.payment-instructions__panel {
	display: none;
}

.payment-instructions__panel.is-active {
	display: block;
}

.instruction-steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.instruction-steps__item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-md);
}

.instruction-steps__marker {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-3xl);
	height: var(--space-3xl);
	border-radius: 9999px;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
	font-size: var(--fz-sm);
	font-weight: var(--fw-lg);
	line-height: 1;
}

.instruction-steps__text {
	margin: 0;
	padding-top: 0.375rem;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-600);
}

/* Loading / feedback */

.loading-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xl);
	box-sizing: border-box;
	width: 100%;
	min-height: 20rem;
	padding: var(--space-2xl);
	background-color: var(--bg-feedback);
	color: var(--color-white);
	text-align: center;
	text-decoration: none;
}

.loading-screen--overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	width: auto;
	min-height: 0;
	background-color: var(--overlay-backdrop);
}

.loading-screen__spinner {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--space-6xl);
	height: var(--space-6xl);
	color: var(--text-gray-400);
	transform-origin: center center;
	animation: loading-screen-spin 2.4s linear infinite;
}

.loading-screen__spinner svg.lucide {
	display: block;
	width: 100%;
	height: 100%;
}

.loading-screen__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
}

.loading-screen__title {
	margin: 0;
	font-size: var(--fz-xl);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
}

.loading-screen__lede {
	margin: 0;
	font-size: var(--fz-xs);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-400);
}

@keyframes loading-screen-spin {
	to {
		transform: rotate(360deg);
	}
}

/* App shell */

.app-page {
	--app-bottom-nav-slot: 5.5rem;

	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100dvh;
	min-height: 100dvh;
	max-width: var(--page-shell-max-width);
	margin-inline: auto;
	overflow: hidden;
	background-color: var(--bg-page);
	color: var(--text-gray-900);
}

.app-page__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-lg);
	min-height: 0;
	padding: var(--space-lg);
	padding-bottom: calc(var(--app-bottom-nav-slot) + var(--space-lg) + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
}

.app-page__nav {
	position: fixed;
	z-index: 100;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--page-shell-max-width);
	margin-inline: auto;
	padding: var(--space-lg);
	padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
}

.app-section {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.app-section__title {
	margin: 0;
	font-size: var(--fz-lg);
	font-weight: var(--fw-lg);
	line-height: var(--lg-md);
	color: var(--text-gray-900);
}

.app-section__title--prominent {
	font-size: var(--fz-md);
	font-weight: var(--fw-xl);
	color: var(--text-gray-900);
}

.app-page--flow {
	--app-bottom-nav-slot: 0;
	--app-footer-cta-slot: 5.75rem;
}

.app-page--flow:not(.app-page--flow-end) .app-page__content {
	padding-bottom: calc(var(--app-footer-cta-slot) + var(--space-lg) + env(safe-area-inset-bottom, 0px));
}

.app-page--flow-end .app-page__content {
	padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
}

.app-page__lede {
	margin: 0;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-600);
	text-align: start;
}

.app-page__cta {
	position: fixed;
	z-index: 100;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--page-shell-max-width);
	margin-inline: auto;
	padding: var(--space-lg);
	padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(to top, var(--bg-page) 65%, rgb(246 248 246 / 0));
}

.app-page__cta--split {
	display: flex;
	gap: var(--space-md);
}

.app-page__cta--split .button-cta {
	flex: 1;
	min-width: 0;
}

/* App pages (chronological) */

/* Page: home */

/* Page: invoice-search */

/* Page: invoice-enter */

.invoice-enter .form-group {
	margin-bottom: 0;
}

.invoice-enter .form-control {
	background-color: var(--color-white);
}

/* Page: invoice-scan */

.qr-scanner {
	position: relative;
	overflow: hidden;
	border-radius: var(--br-3xl);
	background-color: var(--text-gray-900);
}

.qr-scanner__preview {
	width: 100%;
	min-height: 22rem;
	background-color: #1a1a1a;
}

.qr-scanner__target {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 52%;
	max-width: 12rem;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
}

.qr-scanner__corner {
	position: absolute;
	width: 1.75rem;
	height: 1.75rem;
	border: 3px solid #22C55E;
}

.qr-scanner__corner--tl {
	top: 0;
	left: 0;
	border-right: none;
	border-bottom: none;
	border-top-left-radius: var(--br-sm);
}

.qr-scanner__corner--tr {
	top: 0;
	right: 0;
	border-left: none;
	border-bottom: none;
	border-top-right-radius: var(--br-sm);
}

.qr-scanner__corner--bl {
	bottom: 0;
	left: 0;
	border-top: none;
	border-right: none;
	border-bottom-left-radius: var(--br-sm);
}

.qr-scanner__corner--br {
	right: 0;
	bottom: 0;
	border-top: none;
	border-left: none;
	border-bottom-right-radius: var(--br-sm);
}

.qr-scanner__line {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #22C55E 20%, #22C55E 80%, transparent);
	box-shadow: 0 0 8px rgb(34 197 94 / 0.85);
	animation: qr-scanner-line 2.4s ease-in-out infinite;
}

@keyframes qr-scanner-line {
	0%,
	100% {
		top: 0;
		opacity: 1;
	}

	50% {
		top: calc(100% - 2px);
		opacity: 0.85;
	}
}

.scan-tips {
	box-sizing: border-box;
	padding: var(--space-lg);
	border-radius: var(--br-3xl);
	background-color: #EBF3FF;
	color: var(--text-gray-600);
}

.scan-tips__title {
	margin: 0 0 var(--space-md);
	font-size: var(--fz-md);
	font-weight: var(--fw-lg);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.scan-tips__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.scan-tips__list li {
	display: flex;
	gap: var(--space-sm);
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
}

.scan-tips__list li::before {
	content: "";
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	margin-top: 0.5em;
	border-radius: 9999px;
	background-color: #0088FF;
}

/* Page: invoice-checking */

.loading-screen--page {
	flex: 1;
	width: 100%;
	min-height: 100dvh;
	background-color: var(--bg-feedback);
}

.app-page--feedback {
	height: 100dvh;
	min-height: 100dvh;
	overflow: hidden;
	background-color: var(--bg-feedback);
}

/* Page: invoice-details */

/* Page: payment-methods */

/* Page: payment-details */

.payment-details .form-group--inline {
	margin-bottom: 0;
}

.payment-details .form-group--inline .form-control {
	max-width: 13.5rem;
	height: var(--space-4xl);
	padding: 0 var(--space-4xl) 0 var(--space-lg);
	background-color: var(--text-gray-100);
	font-size: var(--fz-sm);
}

/* Page: payment-details-wallet (mobile wallet channels; static copy uses Mpamba placeholders) */

.payment-details-wallet .payment-details-wallet__phone.form-group {
	margin-bottom: 0;
}

.payment-details-wallet .payment-details-wallet__phone .form-control {
	background-color: var(--color-white);
}

/* Page: payment-processing */

/* Page: payment-success */

.payment-success .payment-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	text-align: center;
}

.payment-success .payment-result__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--space-8xl);
	height: var(--space-8xl);
	border-radius: 9999px;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
}

.payment-success .payment-result__icon .lucide {
	width: var(--space-4xl);
	height: var(--space-4xl);
}

.payment-success .payment-result__title {
	margin: 0;
	font-size: var(--fz-xl);
	font-weight: var(--fw-xl);
	line-height: var(--lg-sm);
	color: var(--text-gray-900);
}

.payment-success .payment-result__lede {
	margin: 0;
	max-width: 18rem;
	font-size: var(--fz-sm);
	font-weight: var(--fw-sm);
	line-height: var(--lg-md);
	color: var(--text-gray-600);
}

.payment-success .receipt-card {
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.payment-success .receipt-card__banner {
	padding: var(--space-lg);
	background-color: #EBF3FF;
}

.payment-success .receipt-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	padding: var(--space-lg);
}
