:root {
	color-scheme: dark;
	--app-bg: #080b16;
	--app-surface: rgba(255, 255, 255, 0.04);
	--app-border: rgba(255, 255, 255, 0.12);
	--text-muted: rgba(255, 255, 255, 0.68);
	--brand-blue: #2b64f1;
	--brand-red: #c1424b;
	--brand-amber: #f7b23b;
	--tab-border-width: 1.5px;
	--btn-background-gradient: linear-gradient(to bottom, #455AF7, #55389B, #351B6F);
	--border-gradient: linear-gradient(var(--field-fill, var(--app-bg)), var(--field-fill, var(--app-bg))) padding-box, linear-gradient(to bottom, #455AF7, #55389B, #351B6F) border-box;
	/* Field variables (canonical + aliases to keep older refs working) */
	--field-fill-base: rgba(12, 16, 32, 0.82);
	--field-fill-hover: rgba(12, 16, 32, 0.88);
	--field-fill-focus: rgba(15, 21, 40, 0.92);
	--field-border-color: rgba(120, 84, 255, 0.35);
	--field-border-color-hover: rgba(120, 84, 255, 0.55);
	--field-border-color-focus: rgba(120, 84, 255, 0.85);
	--field-shadow-focus: 0 16px 40px rgba(43, 100, 241, 0.22), 0 0 0 4px rgba(120, 84, 255, 0.28);
	/* aliases used by consolidated overrides */
	--field-border: var(--field-border-color);
	--field-border-hover: var(--field-border-color-hover);
	--field-border-focus: var(--field-border-color-focus);
	--text: #f6f8ff;
	--muted: rgba(255,255,255,.68);
	--primary-color: var(--brand-blue);





		/* --- Emergency screen / general accent tokens --- */
	--dark-modebg: #050816;              /* Slightly darker than app-bg */
	--accentwhite: #ffffff;
	--accentred: var(--brand-red);

	/* In case older Figma-exported CSS still uses these */
	--variable-collection-detail-blue: #2683f8;
	--variable-collection-white: #ffffff;
	--color-gray-0: #ffffff;

	/* --- Typography tokens used by the emergency / tab bar UI --- */
	/* "Large semibold" – think status bar time, etc. */
	--body-large-semibold-font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--body-large-semibold-font-weight: 600;
	--body-large-semibold-font-size: 1rem;          /* 16px */
	--body-large-semibold-letter-spacing: 0.02em;
	--body-large-semibold-line-height: 1.4;
	--body-large-semibold-font-style: normal;

	/* "X-small regular" – nav labels, tab labels, etc. */
	--body-xsmall-regular-font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--body-xsmall-regular-font-weight: 400;
	--body-xsmall-regular-font-size: 0.75rem;       /* 12px */
	--body-xsmall-regular-letter-spacing: 0.02em;
	--body-xsmall-regular-line-height: 1.4;
	--body-xsmall-regular-font-style: normal;

	/* These weight tokens are only really relevant if you still use the Google Fonts URL
	   that referenced them, but defining them does no harm. */
	--bold-type-18-font-weight: 700;
	--regular-type-14-font-weight: 400;
	--semibold-type-16-font-weight: 600;
	--medium-type-14-font-weight: 500;

	/* --- Primary / danger / device highlight --- */
	--primary-color: var(--brand-blue);
	--danger-color: var(--brand-red);
	--danger-glow: rgba(193, 66, 75, 0.45);   /* matches the red card shadows */

	/* --- Landing screen tokens (background + badge) --- */
	--landing-page-background: radial-gradient(
		140% 120% at 50% 0%,
		rgba(87, 70, 210, 0.35),
		rgba(8, 11, 22, 0.98) 62%
	);
	--landing-page-foreground: #f6f8ff;
	--landing-badge-size: 3.5rem;            /* ~56px – matches your 54px circle sizes */
	--landing-badge-radius: 999px;

	/* Logo pulse animation (used on the landing logo group) */
	--emcall-logo-pulse-factor: 3.2;
	--emcall-logo-pulse-height: 5px;
	--landing-pulse-duration: 1.4s;

	/* --- Bootstrap alias (if you ever remove Bootstrap, this keeps things working) --- */
	--bs-white: #ffffff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	background-color: var(--app-bg);
}

body {
	margin: 0;
	font-family: "Segoe UI", Arial, sans-serif;
	color: #f6f8ff;
	line-height: 1.6;
}

a {
	color: inherit;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* App shell */
.app {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.app-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
	background: rgba(8, 11, 22, 0.8);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--app-border);
	min-height: 56px;
	text-align: center;
}

.app-header__region {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.app-title {
	flex: 1 1 auto;
	max-width: 100%;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: .015em;
	text-align: center;
}

.app-body {
	flex: 1 1 auto;
	width: 100%;
	padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.app-footer {
	position: sticky;
	bottom: 0;
	left: 0;
	width: 100%;
	margin-top: auto;
	padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px);
	background: rgba(8, 11, 22, 0.88);
	backdrop-filter: blur(16px);
	border-top: 1px solid var(--app-border);
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 10;
}

.app-footer__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 576px) {
	.app-body {
		margin: 0 auto;
		max-width: 420px;
	}

	.app-footer {
		max-width: 420px;
		align-self: center;
	}
}

.stack {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* ---------------------------
   FORM CONTROLS (CONSOLIDATED)
   --------------------------- */

/* Static labels */
.form-label {
	margin: 0 0 .45rem 0;
	color: #f6f8ff;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	letter-spacing: .02em;
}

/* Inputs, date, number, etc. */
.form-control {
	--field-fill: var(--field-fill-base);
	border-radius: 16px;
	border: 1px solid var(--field-border);
	background: var(--border-gradient);
	backdrop-filter: blur(12px);
	color: var(--text);
	padding: 18px 20px;
	line-height: 1.4;
	letter-spacing: .02em;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

	.form-control::placeholder {
		color: rgba(255,255,255,.45);
	}

	.form-control:hover:not(:disabled):not([readonly]) {
		border-color: var(--field-border-hover);
		--field-fill: var(--field-fill-hover);
	}

	.form-control:focus {
		border-color: var(--field-border-focus);
		box-shadow: var(--field-shadow-focus);
		--field-fill: var(--field-fill-focus);
		background: var(--border-gradient);
		color: var(--text);
	}

	.form-control[readonly] {
		opacity: .85;
		box-shadow: none;
		border-color: rgba(255,255,255,.28);
	}

	.form-control:disabled {
		opacity: .6;
		cursor: not-allowed;
		box-shadow: none;
	}

/* Textarea */
textarea.form-control {
	min-height: 120px;
	resize: vertical;
}

/* Select (custom chevron + dark popup) */
.form-select {
	--field-fill: var(--field-fill-base);
	border-radius: 16px;
	border: 1px solid var(--field-border);
	background: var(--border-gradient), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2.5 8 7.5 14 2.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center / 16px 10px;
	color: var(--text);
	padding: 18px 52px 18px 20px;
	backdrop-filter: blur(12px);
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

	.form-select:hover:not(:disabled) {
		border-color: var(--field-border-hover);
		--field-fill: var(--field-fill-hover);
	}

	.form-select:focus {
		border-color: var(--field-border-focus);
		box-shadow: var(--field-shadow-focus);
		--field-fill: var(--field-fill-focus);
		background: var(--border-gradient), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2.5 8 7.5 14 2.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center / 16px 10px;
	}

	.form-select:disabled {
		opacity: .6;
		cursor: not-allowed;
	}

	.form-select option {
		background-color: #0d152b;
		color: #ffffff;
	}

/* File input button */
.form-control[type="file"] {
	padding: 14px 18px;
}

	.form-control[type="file"]::-webkit-file-upload-button,
	.form-control[type="file"]::file-selector-button {
		border: 0;
		border-radius: 12px;
		background: rgba(255,255,255,.18);
		color: #fff;
		font-weight: 600;
		padding: 10px 16px;
		margin-right: 14px;
		cursor: pointer;
		transition: background .2s ease;
	}

		.form-control[type="file"]::-webkit-file-upload-button:hover,
		.form-control[type="file"]::file-selector-button:hover {
			background: rgba(255,255,255,.28);
		}

/* Help text */
.form-text {
	color: var(--muted) !important;
}

/* Checks / radios */
.form-check-input {
	background-color: transparent;
	border-color: rgba(255,255,255,.4);
}

	.form-check-input:checked {
		background-color: #2b64f1;
		border-color: #2b64f1;
	}

	.form-check-input:focus {
		box-shadow: 0 0 0 .2rem rgba(43,100,241,.25);
	}

/* Switches */
.form-switch .form-check-input {
	width: 2.5rem;
	height: 1.25rem;
	background-color: rgba(255,255,255,.18);
	border-color: rgba(255,255,255,.35);
}

	.form-switch .form-check-input:checked {
		background-color: #2b64f1;
		border-color: #2b64f1;
	}

	.form-switch .form-check-input:focus {
		box-shadow: 0 0 0 .2rem rgba(43,100,241,.25);
	}

/* Size variants */
.form-control-lg, .form-select-lg {
        padding: 20px 22px;
        border-radius: 18px;
}

/* Styles preview header (keep) */
.styles-preview__header {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

/* Drop-in gradient CTA */
.btn-gradient {
	--btn-radius: 8px;
	--btn-height: 56px;
	--btn-fs: 24px;
	--btn-fw: 600;
	display: inline-flex; /* centers nicely */
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--btn-height);
	border-radius: var(--btn-radius);
	background: var(--btn-background-gradient);
	color: #fff;
	border: 0;
	font-size: var(--btn-fs);
	font-weight: var(--btn-fw);
	line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
	text-decoration: none; /* safe if used on <a> */
	cursor: pointer;
}

	.btn-gradient:hover,
	.btn-gradient:focus {
		transform: translateY(-1px);
		box-shadow: 0 16px 32px rgba(43, 100, 241, 0.45);
		filter: brightness(1.05);
	}

	.btn-gradient:focus-visible {
		outline: 3px solid rgba(120, 84, 255, 0.65);
		outline-offset: 2px;
	}

	.btn-gradient:disabled {
		opacity: .6;
		transform: none;
		box-shadow: none;
		filter: none;
		cursor: default;
	}

.tabbar {
        display: flex;
        gap: 8px;
}

	.tabbar .btn {
		flex: 1 1 0;
	}

.surface {
	border-radius: 20px;
	padding: 20px;
}

.profile-avatar,
[data-medical-avatar],
[data-profile-avatar] {
	width: clamp(4.5rem, 28vw, 6rem);
	height: clamp(4.5rem, 28vw, 6rem);
	border-radius: 50% !important;
	overflow: hidden;
	flex: 0 0 auto;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.surface-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 1rem;
}

.surface-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.text-subtle {
        color: var(--text-muted);
}

.action-tile {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-radius: 18px;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--app-border);
	transition: background .2s ease, border .2s ease;
}

	.action-tile:hover, .action-tile:focus {
		color: inherit;
		background: rgba(255, 255, 255, 0.07);
		border-color: rgba(255, 255, 255, 0.18);
	}

	.action-tile .tile-icon {
		font-size: 1.25rem;
		line-height: 1;
	}

.btn-pill {
	border-radius: 999px;
}

.btn-cta {
	background-color: var(--brand-blue);
	border-color: var(--brand-blue);
}

.btn-danger-fill {
	background-color: var(--brand-red);
	border-color: var(--brand-red);
}





.landing-logo-group {
    --emcall-logo-font-size: 3rem;
    --emcall-logo-gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--emcall-logo-gap);
    text-align: center;
    white-space: normal;
}

.landing-logo-group .landing-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: var(--emcall-logo-font-size);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    transform-origin: center;
    transition: transform 1200ms cubic-bezier(0.22, 0.68, 0.13, 1), filter 1200ms cubic-bezier(0.22, 0.68, 0.13, 1), opacity 420ms ease;
    will-change: transform, filter, opacity;
}

.landing-logo-group .landing-logo .emcall-logo__img {
    width: calc(var(--emcall-logo-font-size) * 4);
    max-width: 100%;
    height: auto;
    display: block;
}

.landing-logo-group--compact {
    --emcall-logo-font-size: 1.75rem;
    --emcall-logo-gap: 8px;
}

.landing-logo-group--header {
    --emcall-logo-font-size: 1.5rem;
    --emcall-logo-gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .landing-logo-group .landing-logo {
        transition: none;
        filter: none;
        transform: none;
    }
}

.hidden {
    display: none !important;
}

.install-overlay {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom) + 16px);
    background: rgba(8, 11, 22, 0.95);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 16px 48px 16px 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    z-index: 1050;
}

.install-overlay__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.install-overlay__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.app-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    color: #e4e7f5;
}

.app-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.app-notice__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.app-notice__text {
    flex: 1 1 auto;
}

.app-notice--info {
    background: rgba(43, 100, 241, 0.12);
    border-color: rgba(43, 100, 241, 0.35);
    color: #e1e9ff;
}

.app-notice--success {
    background: rgba(0, 171, 102, 0.18);
    border-color: rgba(0, 171, 102, 0.45);
    color: #d8ffee;
}

.app-notice--warning {
    background: rgba(247, 178, 59, 0.16);
    border-color: rgba(247, 178, 59, 0.5);
    color: #fff4d8;
}

.app-notice--error {
    background: rgba(193, 66, 75, 0.18);
    border-color: rgba(193, 66, 75, 0.6);
    color: #ffe0e4;
}

.form-check-input {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
}

.form-check-input:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.install-overlay__step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.install-overlay__badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.install-overlay__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.install-overlay__step-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.install-overlay__step-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.install-overlay__dismiss {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.install-overlay__dismiss:hover,
.install-overlay__dismiss:focus {
    color: #fff;
}

@media (min-width: 576px) {
    .install-overlay {
        max-width: 420px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.responder-card {
    gap: 1.5rem;
}

[data-responder-card] .surface {
    background: #ffffff;
    color: #1f2332;
    box-shadow: 0 30px 60px rgba(8, 11, 22, 0.42);
    border: 1px solid rgba(8, 11, 22, 0.08);
    --text-muted: rgba(34, 41, 54, 0.6);
}

[data-responder-card] .surface-header {
    align-items: flex-start;
}

[data-responder-card] .surface-title {
    color: var(--brand-red);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

[data-responder-card] .text-subtle {
    color: rgba(34, 41, 54, 0.58);
}

.responder-card__header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(193, 66, 75, 0.18);
    color: var(--brand-red);
    font-size: 1.4rem;
}

.responder-card__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.responder-card__section-title {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.responder-card__section-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.responder-card__field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.responder-card__field--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.responder-card__label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.responder-card__label::after {
    content: ":";
    margin-left: 0.4rem;
    color: var(--text-muted);
}

.responder-card__value {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
}

.responder-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.responder-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.responder-card__list li {
    position: relative;
    padding-left: 1rem;
    font-weight: 500;
}

.responder-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.responder-card__empty {
    color: var(--text-muted);
    font-style: italic;
}

.responder-card__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.responder-card__contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.03);
}

.responder-card__contact-name {
    font-weight: 600;
}

.responder-card__contact-phone {
    font-weight: 500;
}

.responder-card__contact-note {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.responder-card__notes {
    margin: 0;
    white-space: pre-wrap;
    font-weight: 500;
}

@media (min-width: 576px) {
    .responder-card__contact {
        flex-direction: row;
        align-items: baseline;
        gap: 1.25rem;
    }

    .responder-card__contact-note {
        margin-left: auto;
    }
}

/* Mobile portal home */
.mobile-portal-home {
    gap: 1.75rem;
}

.mobile-portal-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.mobile-portal-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 43px;
    cursor: pointer;
    background-color: transparent;
    border-radius: 8px;
    border-style: solid;
    border-width: var(--tab-border-width);
    border-color: var(--bs-white);
    text-align: center;
}

.mobile-portal-tab:focus {
    outline: none;
}

    .mobile-portal-tab.is-active {
        position: relative;
        border: var(--tab-border-width) solid transparent;
        color: #fff;
        box-sizing: border-box;
        background: var(--border-gradient);
    }

.mobile-alert-card-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-alert-card {
    width: 100%;

    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.4);
}

.mobile-alert-card.is-disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(20%);
}

.mobile-alert-card--medical {
    background: var(--brand-red);
    background-image: url("/img/medical-help.png");
    background-size: cover;
    box-shadow: 0 28px 48px rgba(193, 66, 75, 0.45);
}

.mobile-alert-card--police {
    background: var(--brand-blue);
    background-image: url("/img/police-help.png");
    background-size: cover;
    box-shadow: 0 28px 48px rgba(43, 100, 241, 0.45);
}

.mobile-alert-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.mobile-alert-card__icon svg {
    width: 88px;
    height: 88px;
}

.mobile-alert-card__title {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: initial;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mobile-alert-card__subtitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.tap-indicator {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tap-indicator__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border-color: var(--bs-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.tap-indicator__dot.is-active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.mobile-portal-alert {
    margin: 0;
    width: 100%;
    padding: 14px 18px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.mobile-portal-alert.alert-success {
    background: rgba(68, 214, 144, 0.22);
    border-color: rgba(68, 214, 144, 0.45);
    color: #d6ffe9;
}

.mobile-portal-alert.alert-danger {
    background: rgba(193, 66, 75, 0.28);
    border-color: rgba(193, 66, 75, 0.5);
    color: #ffe2e5;
}

.mobile-portal-alert.alert-warning {
    background: rgba(247, 160, 70, 0.26);
    border-color: rgba(247, 160, 70, 0.48);
    color: #ffe9d0;
}

.mobile-portal-alert.alert-info {
    background: rgba(43, 100, 241, 0.26);
    border-color: rgba(43, 100, 241, 0.48);
    color: #dbe6ff;
}


.mobile-bottom-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    backdrop-filter: blur(10px);
}

.mobile-bottom-nav__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mobile-bottom-nav__item:focus-visible {
    outline: none;
}

.mobile-bottom-nav__item--active {
    color: inherit;
}

.mobile-bottom-nav__item--active::after {
    content: none;
}

.mobile-bottom-nav__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #f6f8ff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-nav__item:hover .mobile-bottom-nav__icon,
.mobile-bottom-nav__item:focus-visible .mobile-bottom-nav__icon {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.mobile-bottom-nav__item--active .mobile-bottom-nav__icon {
    border-color: var(--brand-blue);
    background: rgba(43, 100, 241, 0.18);
    box-shadow: 0 0 0 4px rgba(43, 100, 241, 0.2);
    transform: translateY(-2px);
}

.mobile-bottom-nav__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.mobile-bottom-nav__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.mobile-bottom-nav__item--active .mobile-bottom-nav__label,
.mobile-bottom-nav__item:focus-visible .mobile-bottom-nav__label {
    color: var(--brand-blue);
}

/* Messages */
.messages-screen {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
}

.messages-screen__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    min-height: 0;
}

.messages-screen__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.messages-screen__participant {
    display: flex;
    align-items: center;
    gap: 12px;
}

.messages-screen__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(43, 100, 241, 0.32), rgba(255, 255, 255, 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.messages-screen__name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.messages-screen__status {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.messages-screen__actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #f6f8ff;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.messages-screen__actions svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.messages-thread {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1 1 auto;
}

.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message__avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.message__content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: min(100%, 360px);
}

.message__bubble {
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    line-height: 1.55;
}

.message__bubble p {
    margin-bottom: 0.5rem;
}

.message__bubble p:last-child {
    margin-bottom: 0;
}

.message--outgoing {
    justify-content: flex-end;
}

.message--outgoing .message__content {
    align-items: flex-end;
    margin-left: auto;
}

.message--outgoing .message__bubble {
    background: linear-gradient(135deg, #2b64f1, #1d47e7);
    border-color: rgba(43, 100, 241, 0.4);
    color: #fff;
}

.message--incoming {
    justify-content: flex-start;
}

.message--incoming .message__content {
    align-items: flex-start;
}

.message__meta {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.message--outgoing .message__meta {
    text-align: right;
}

.message-media {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-media img {
    display: block;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.message-media figcaption {
    font-weight: 500;
}

.message-call {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(8, 11, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.message-call__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.message-call__icon svg {
    width: 22px;
    height: 22px;
    fill: #f7b23b;
}

.message-call__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-call__title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.message-call__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}

.message-call__summary li {
    margin: 0;
}

.message-call__label {
    font-weight: 600;
    margin-right: 4px;
}

.message-call__note {
    font-size: 0.85rem;
    line-height: 1.5;
}

.message-composer {
    position: relative;
}

.message-composer__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(8, 11, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.message-composer__action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #f6f8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.message-composer__action.is-recording {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 12px 24px rgba(193, 66, 75, 0.45);
}

.message-composer__action svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.message-composer__input {
    flex: 1 1 auto;
    background: transparent;
    border: none;
    color: #f6f8ff;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0;
}

.message-composer__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.message-composer__send {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--brand-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 20px 36px rgba(43, 100, 241, 0.45);
}

.message-composer__send svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transform: translateX(1px);
}

.message-composer__attachments {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    display: flex;
    flex-direction: column;
    width: 220px;
    background: rgba(8, 11, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 8px 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.message-composer__attachments.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.message-composer__option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #f6f8ff;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
}

.message-composer__option:hover,
.message-composer__option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.message-composer__option-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 100, 241, 0.18);
    color: #7fa3ff;
}

.message-composer__option:nth-child(2) .message-composer__option-icon {
    background: rgba(247, 178, 59, 0.2);
    color: #f7b23b;
}

.message-composer__option:nth-child(3) .message-composer__option-icon {
    background: rgba(72, 193, 147, 0.2);
    color: #48c193;
}

.message-composer__option:nth-child(4) .message-composer__option-icon {
    background: rgba(193, 66, 75, 0.2);
    color: #ff7a82;
}

.message-composer__option-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-alert-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
}

.mobile-alert-screen__content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 1rem 0 2rem;
    text-align: center;
}

.mobile-alert-screen__test-banner {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
    text-align: center;
    border-radius: 0.75rem;
}

.mobile-alert-screen__content::before {
    content: "";
    position: absolute;
    inset: -36px -48px -72px;
    background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
    filter: blur(0.5px);
    z-index: 0;
}

.mobile-alert-screen__headline {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    color: #ff4d57;
    text-shadow: 0 16px 32px rgba(193, 66, 75, 0.45);
}

.mobile-alert-screen__timer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mobile-alert-screen__timer-ring {
    position: relative;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.mobile-alert-screen__timer-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1));
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.mobile-alert-screen__timer-ring::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: inherit;
    background-color: rgba(8, 11, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0) 75%);
    z-index: 0;
}

.mobile-alert-screen__timer-ring.is-complete::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.18));
    box-shadow: 0 32px 60px rgba(193, 66, 75, 0.35);
}

.mobile-alert-screen__timer-ring.is-cancelled::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.35);
}

.mobile-alert-screen__timer-value {
    position: relative;
    z-index: 1;
    font-size: clamp(3.4rem, 16vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ff4d57;
    text-shadow: 0 20px 40px rgba(193, 66, 75, 0.5);
    animation: mobile-alert-pulse 1s ease-in-out infinite;
}

.mobile-alert-screen__cancel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #ff4d57, #c1424b);
    border: none;
    box-shadow: 0 24px 42px rgba(193, 66, 75, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mobile-alert-screen__cancel:hover,
.mobile-alert-screen__cancel:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 28px 52px rgba(193, 66, 75, 0.55);
    filter: brightness(1.05);
}

.mobile-alert-screen__cancel:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

.mobile-alert-screen__cancel:disabled {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
    filter: none;
    cursor: default;
}

.mobile-alert-screen .mobile-bottom-nav {
    margin-top: auto;
}

.mobile-alert-screen[data-state="connecting"] .mobile-alert-screen__headline {
    color: #f6f8ff;
}

.mobile-alert-screen[data-state="connecting"] .mobile-alert-screen__timer-value {
    color: #f6f8ff;
    animation: none;
}

.mobile-alert-screen[data-state="cancelled"] .mobile-alert-screen__headline {
    color: var(--text-muted);
    text-shadow: none;
}

.mobile-alert-screen[data-state="cancelled"] .mobile-alert-screen__timer-value {
    color: var(--text-muted);
    animation: none;
}

@keyframes mobile-alert-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}



.data-display {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.data-display__label {
	display: block;
	font-weight: 600;
	text-transform: uppercase;
}

.data-display__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.data-display__value {
	margin-bottom: 0;
}

.data-display__value--emphasis {
	font-weight: 600;
}