:root {
	--vpm-bg: #ffffff;
	--vpm-bg-soft: #ffffff;
	--vpm-surface: #ffffff;
	--vpm-text: #000000;
	--vpm-text-soft: #000000;
	--vpm-muted: #374151;
	--vpm-border: #e5e7eb;
	--vpm-accent: #2a76b8;
	--vpm-accent-soft: #e8f2fb;
	--vpm-nav-active-bg: #e8f2fb;
	--vpm-nav-active-border: #2a76b8;
	--vpm-brand-blue: #2a76b8;
	--vpm-brand-red: #d94a33;
	--vpm-brand-brick: #b8925f;
	--vpm-brand-gray: #5a5a5a;
	--vpm-status-exceptional: var(--vpm-brand-blue);
	--vpm-status-ahead: #3d8b5a;
	--vpm-status-warning: var(--vpm-brand-brick);
	--vpm-status-critical: var(--vpm-brand-red);
	--vpm-danger: var(--vpm-brand-red);
	/* Moderate corner radius — not sharp, not overly pill-shaped. */
	--vpm-radius: 8px;
	--vpm-radius-sm: 6px;
	--vpm-radius-ui: 2px;
	--vpm-border-strong: #111111;
	--vpm-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 4px 16px rgba(17, 24, 39, 0.04);
	--vpm-sidebar-w: 248px;
	--vpm-tabbar-h: 68px;
	--vpm-topbar-h: 60px;
	--vpm-safe-top: env(safe-area-inset-top, 0px);
	--vpm-safe-bottom: env(safe-area-inset-bottom, 0px);
	--vpm-sticky-head-h: 60px;
	--vpm-update-banner-h: 52px;
	--vpm-font: inherit;
}

body.vpm-portal-page {
	font-family: inherit;
}

.vpm-shell,
.vpm-app {
	min-height: 100dvh;
	min-height: 100svh;
	background: var(--vpm-bg);
	color: var(--vpm-text);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	-webkit-font-smoothing: antialiased;
}

body.vpm-portal-page .vpm-shell {
	position: relative;
	z-index: 9990;
	padding-top: var(--vpm-safe-top);
}

.vpm-app {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	min-height: 100svh;
	max-width: 480px;
	margin: 0 auto;
	padding-bottom: calc(var(--vpm-tabbar-h) + var(--vpm-safe-bottom) + 16px);
}

.vpm-app.vpm-ltr {
	direction: ltr;
	text-align: left;
}

.vpm-app.vpm-rtl {
	direction: ltr;
	text-align: left;
}

.vpm-main__content,
.vpm-panel-card,
.vpm-dash-section,
.vpm-section,
.vpm-panel {
	text-align: inherit;
}

.vpm-sidebar {
	display: none;
}

.vpm-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.vpm-dash-sticky-head {
	position: fixed;
	top: var(--vpm-safe-top);
	left: 50%;
	transform: translateX(-50%);
	width: min(480px, 100%);
	z-index: 99998;
	background: var(--vpm-surface);
	box-shadow: 0 1px 0 var(--vpm-border);
	direction: ltr;
}

.vpm-dash-sticky-head .vpm-topbar {
	position: static;
	border-bottom: none;
}

.vpm-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--vpm-topbar-h);
	padding: 10px 16px;
	background: var(--vpm-surface);
	border-bottom: 1px solid var(--vpm-border);
	/* Logo always left, language switcher always right — regardless of page RTL/LTR. */
	direction: ltr;
	flex-direction: row;
}

.vpm-rtl .vpm-dash-sticky-head,
.vpm-rtl .vpm-topbar,
.vpm-rtl .vpm-topbar__lead,
.vpm-rtl .vpm-topbar__actions,
.vpm-rtl .vpm-form-langs,
.vpm-rtl .vpm-dash-hero-row,
.vpm-rtl .vpm-dash-user-panel,
.vpm-rtl .vpm-tabbar--mobile,
.vpm-rtl .vpm-field-card,
.vpm-rtl .vpm-field-card__content,
.vpm-rtl .vpm-field-card__actions {
	direction: ltr;
}

.vpm-topbar__lead {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	margin-right: auto;
}

.vpm-topbar__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.vpm-topbar__logo {
	display: block;
	max-height: 36px;
	max-width: 148px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.vpm-topbar__logo-fallback {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--vpm-radius-ui);
	background: var(--vpm-accent, #2072b9);
	color: #fff;
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.vpm-topbar__user-name {
	margin: 0;
	font-size: inherit;
	font-weight: 700;
	line-height: 1.25;
	color: var(--vpm-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: inherit, Tahoma, "Segoe UI", "Iran Sans", "Vazirmatn", "Noto Naskh Arabic", "Arial Unicode MS", sans-serif;
}

.vpm-topbar__title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--vpm-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.vpm-topbar__title--tab {
	margin-top: 2px;
}

.vpm-topbar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
	margin-right: 0;
}

.vpm-form-langs {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: nowrap;
	direction: ltr;
}

.vpm-lang-item {
	min-width: 30px;
	height: 28px;
	padding: 0 8px;
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
	color: var(--vpm-text);
	border: 1px solid var(--vpm-border-strong, #111);
	border-radius: var(--vpm-radius-ui);
	background: var(--vpm-surface);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vpm-lang-item:hover,
.vpm-lang-item:focus-visible {
	color: var(--vpm-text);
	border-color: var(--vpm-border-strong, #111);
	background: var(--vpm-bg-soft);
}

.vpm-lang-item.is-active,
.vpm-lang-item.is-active:hover,
.vpm-lang-item.is-active:focus-visible {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.vpm-notify-btn--desktop {
	display: none !important;
}

@media (max-width: 959px) {
	.vpm-topbar__title--tab {
		display: none;
	}

	.vpm-topbar {
		justify-content: space-between;
		min-height: 48px;
		padding: 8px 12px;
	}
}

.vpm-main__content {
	flex: 1;
	padding: 16px;
	padding-top: calc(var(--vpm-sticky-head-h) + 12px);
	background: #ffffff;
}

.vpm-panel {
	display: none;
}

.vpm-panel-card {
	background: var(--vpm-surface);
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	padding: 20px;
	box-shadow: var(--vpm-shadow);
}

.vpm-panel--active {
	display: block;
}

.vpm-panel-title {
	margin: 0 0 16px;
	font-size: 1.125rem;
	font-weight: 600;
}

.vpm-action-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

.vpm-action-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 18px 16px;
	border: 1px solid #000;
	border-radius: var(--vpm-radius);
	background: #000;
	color: #fff;
	box-shadow: var(--vpm-shadow);
	cursor: pointer;
	text-align: start;
	font-family: inherit;
}

.vpm-action-card--call,
.vpm-action-card--visit {
	background: #000;
	border-color: #000;
	color: #fff;
}

.vpm-action-card:active,
.vpm-action-card:focus-visible {
	border-color: #1a1a1a;
	background: #1a1a1a;
	outline: none;
}

.vpm-action-card__icon {
	font-size: 1.5rem;
	line-height: 1;
}

.vpm-action-card__label {
	font-weight: 600;
	font-size: inherit;
	color: #fff;
}

.vpm-collapse {
	background: var(--vpm-surface);
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	margin-bottom: 16px;
	box-shadow: var(--vpm-shadow);
}

.vpm-collapse summary {
	padding: 14px 16px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.vpm-collapse summary::-webkit-details-marker {
	display: none;
}

.vpm-collapse[open] summary {
	border-bottom: 1px solid var(--vpm-border);
}

.vpm-collapse .vpm-kpi-section {
	padding: 0 12px 12px;
}

.vpm-kpi-section h4 {
	margin: 12px 0 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--vpm-muted);
}

.vpm-kpi-row {
	padding: 10px 0;
	border-bottom: 1px solid var(--vpm-border);
}

.vpm-kpi-row:last-child {
	border-bottom: 0;
}

.vpm-kpi-row__label {
	font-size: 0.875rem;
	font-weight: 500;
}

.vpm-kpi-row__nums {
	font-size: 0.8rem;
	color: var(--vpm-muted);
	margin-top: 2px;
}

.vpm-kpi-bar {
	height: 4px;
	background: var(--vpm-border);
	border-radius: 999px;
	margin-top: 6px;
	overflow: hidden;
}

.vpm-kpi-bar span {
	display: block;
	height: 100%;
	background: var(--vpm-accent);
}

.vpm-section h3,
.vpm-plan-head h2 {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
}

.vpm-plan-page {
	display: grid;
	gap: 16px;
}

.vpm-plan-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
	border: 1px solid #111111;
	border-radius: var(--vpm-radius);
	background: linear-gradient(135deg, rgba(32, 114, 185, 0.08), rgba(255, 255, 255, 0.96));
}

.vpm-plan-head h2 {
	font-size: 1.15rem;
	font-weight: 900;
}

.vpm-plan-head__date {
	margin: 0;
	padding: 6px 10px;
	border: 1px solid rgba(17, 17, 17, 0.14);
	border-radius: 999px;
	background: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	white-space: nowrap;
}

.vpm-list-item {
	background: var(--vpm-surface);
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	padding: 12px 14px;
	margin-bottom: 8px;
	width: 100%;
	text-align: inherit;
	color: inherit;
	font: inherit;
}

button.vpm-list-item {
	cursor: pointer;
}

button.vpm-list-item:hover,
button.vpm-list-item:focus-visible,
.vpm-list-item--active {
	border-color: var(--vpm-primary);
	box-shadow: 0 0 0 2px rgba(32, 114, 185, 0.12);
	outline: none;
}

.vpm-list-item__title {
	font-weight: 600;
	font-size: 0.9rem;
}

.vpm-list-item__meta {
	font-size: 0.8rem;
	color: var(--vpm-muted);
}

.vpm-plan-hint {
	font-size: 0.85rem;
	margin: 0 0 16px;
}

.vpm-plan-list {
	display: grid;
	gap: 12px;
}

.vpm-plan-board {
	display: grid;
	gap: 12px;
}

.vpm-plan-overview {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.vpm-plan-overview__stat,
.vpm-plan-next {
	border: 1px solid #111111;
	border-radius: var(--vpm-radius-sm);
	background: #fff;
	padding: 10px;
}

.vpm-plan-overview__num {
	display: block;
	color: var(--vpm-accent);
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1;
}

.vpm-plan-overview__label,
.vpm-plan-next__label {
	display: block;
	margin-top: 4px;
	color: var(--vpm-muted);
	font-size: 0.68rem;
	font-weight: 800;
}

.vpm-plan-next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: rgba(32, 114, 185, 0.06);
	border-color: rgba(32, 114, 185, 0.28);
}

.vpm-plan-next__title {
	font-size: 0.82rem;
	font-weight: 900;
	color: var(--vpm-text);
	text-align: end;
}

.vpm-plan-timeline {
	display: grid;
	gap: 8px;
}

.vpm-plan-card {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 10px;
	border: 1px solid #111111;
	border-radius: var(--vpm-radius);
	background: #fff;
	padding: 10px;
	cursor: pointer;
	transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.vpm-plan-card:hover,
.vpm-plan-card:focus-within {
	background: rgba(32, 114, 185, 0.045);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.vpm-plan-card--locked {
	border-color: rgba(32, 114, 185, 0.42);
	background: rgba(32, 114, 185, 0.035);
}

.vpm-plan-card__rail {
	display: flex;
	justify-content: center;
}

.vpm-plan-card__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--vpm-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 900;
}

.vpm-plan-card__main {
	min-width: 0;
}

.vpm-plan-card__top,
.vpm-plan-card__meta,
.vpm-plan-card__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.vpm-plan-card__time,
.vpm-plan-card__type,
.vpm-plan-card__source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 999px;
	padding: 4px 7px;
	font-size: 0.62rem;
	font-weight: 900;
}

.vpm-plan-card__time {
	background: #111111;
	color: #ffffff;
}

.vpm-plan-card__type {
	background: rgba(32, 114, 185, 0.1);
	color: var(--vpm-accent);
}

.vpm-plan-card__source {
	background: #f3f4f6;
	color: var(--vpm-muted);
}

.vpm-plan-card__title {
	margin: 8px 0 5px;
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1.45;
	color: var(--vpm-text);
}

.vpm-plan-card__meta {
	color: var(--vpm-muted);
	font-size: 0.72rem;
	font-weight: 700;
}

.vpm-plan-card__actions {
	justify-content: flex-end;
	margin-top: 10px;
}

.vpm-plan-card__btn {
	border: 1px solid rgba(17, 17, 17, 0.18);
	border-radius: 999px;
	background: #fff;
	padding: 7px 10px;
	color: var(--vpm-text);
	font-size: 0.68rem;
	font-weight: 900;
	cursor: pointer;
}

.vpm-plan-card__btn--primary {
	border-color: var(--vpm-accent);
	background: var(--vpm-accent);
	color: #fff;
}

.vpm-plan-card__btn--danger {
	color: var(--vpm-danger);
}

.vpm-plan-card__locked-note {
	color: var(--vpm-muted);
	font-size: 0.64rem;
	font-weight: 800;
}

.vpm-plan-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--vpm-surface);
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	padding: 12px 14px;
	margin-bottom: 8px;
}

.vpm-plan-item--locked {
	border-color: #bfdbfe;
	background: var(--vpm-accent-soft);
}

.vpm-plan-item__time {
	min-width: 44px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--vpm-accent);
}

.vpm-plan-item__body {
	flex: 1;
}

.vpm-plan-item__title {
	font-weight: 600;
	font-size: 0.9rem;
}

.vpm-plan-item__meta {
	font-size: 0.78rem;
	color: var(--vpm-muted);
}

.vpm-plan-item__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--vpm-accent);
	background: #dbeafe;
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 6px;
}

.vpm-plan-item__remove {
	background: transparent;
	border: 0;
	color: var(--vpm-danger);
	font-size: 1.25rem;
	cursor: pointer;
}

.vpm-plan-add {
	background: var(--vpm-surface);
	border: 1px solid #111111;
	border-radius: var(--vpm-radius);
	padding: 14px;
	margin-top: 4px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.vpm-plan-add__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.vpm-plan-add__head h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 900;
}

.vpm-plan-add__head p {
	max-width: 340px;
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.6;
}

.vpm-plan-add__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.vpm-plan-add__wide {
	grid-column: 1 / -1;
}

.vpm-plan-add__submit {
	width: 100%;
	margin-top: 12px;
}

@media (max-width: 640px) {
	.vpm-plan-head,
	.vpm-plan-add__head,
	.vpm-plan-next {
		flex-direction: column;
		align-items: stretch;
	}

	.vpm-plan-head__date,
	.vpm-plan-next__title {
		text-align: start;
	}

	.vpm-plan-overview,
	.vpm-plan-add__grid {
		grid-template-columns: 1fr;
	}

	.vpm-plan-card {
		grid-template-columns: 28px minmax(0, 1fr);
		padding: 9px;
	}

	.vpm-plan-card__actions {
		justify-content: flex-start;
	}
}

.vpm-field-row {
	display: flex;
	gap: 12px;
}

.vpm-field--half {
	flex: 1;
}

.vpm-tabbar--5 {
	grid-template-columns: repeat(5, 1fr);
}

.vpm-tabbar--6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.vpm-tabbar--7 {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vpm-tabbar--6 .vpm-tab,
.vpm-tabbar--7 .vpm-tab {
	font-size: 0.54rem;
	padding: 4px 1px;
}

.vpm-tabbar--6 .vpm-tab__icon,
.vpm-tabbar--7 .vpm-tab__icon {
	width: 20px;
	height: 20px;
	background-size: 16px 16px;
}

.vpm-tab__label--truncate {
	max-width: 52px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpm-tab--utility {
	position: relative;
	text-decoration: none;
	color: var(--vpm-muted);
}

.vpm-tabbar-logout {
	cursor: pointer;
}

.vpm-tab--utility.vpm-tab--active {
	background: transparent;
	color: var(--vpm-muted);
}

.vpm-tab__icon--notify {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 11-6 0'/%3E%3C/svg%3E");
}

.vpm-tab__icon--logout {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 16l4-4m0 0l-4-4m4 4H9m4 4v1a2 2 0 01-2 2H6a2 2 0 01-2-2V7a2 2 0 012-2h5a2 2 0 012 2v1'/%3E%3C/svg%3E");
}

.vpm-tab--utility .vpm-notify-badge {
	top: 0;
	right: 2px;
}

.vpm-request-line {
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	padding: 12px;
	margin-bottom: 10px;
	background: var(--vpm-surface);
}

.vpm-quote-option {
	border-left: 3px solid var(--vpm-accent);
	padding: 8px 10px;
	margin: 8px 0;
	background: var(--vpm-bg-soft);
	font-size: 0.875rem;
}

.vpm-inbox-badge {
	display: inline-block;
	min-width: 18px;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--vpm-danger);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	margin-inline-start: 4px;
}

.vpm-tabbar--mobile {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	width: min(480px, 100%);
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 8px 10px calc(10px + var(--vpm-safe-bottom));
	background: rgba(255, 255, 255, 0.98);
	border-top: 1px solid var(--vpm-border);
	z-index: 99999;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 -4px 24px rgba(17, 24, 39, 0.06);
}

.vpm-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 6px 4px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--vpm-text);
	font-size: 0.62rem;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
}

.vpm-tab__label {
	line-height: 1.2;
	font-weight: 500;
}

.vpm-tab__icon {
	width: 22px;
	height: 22px;
	display: block;
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	opacity: 1;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 18px 18px;
	mask-size: 18px 18px;
}

.vpm-tab__icon--home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10.5L12 3l9 7.5V21a1 1 0 01-1 1h-5v-7H9v7H4a1 1 0 01-1-1v-10.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10.5L12 3l9 7.5V21a1 1 0 01-1 1h-5v-7H9v7H4a1 1 0 01-1-1v-10.5z'/%3E%3C/svg%3E"); }
.vpm-tab__icon--plan { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3M4 11h16M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3M4 11h16M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E"); }
.vpm-tab__icon--log { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.vpm-tab__icon--customers { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a4 4 0 00-4-4h-1M9 20H4v-2a4 4 0 014-4h1m4-4a4 4 0 11-8 0 4 4 0 018 0zm6 4a4 4 0 00-4-4H9a4 4 0 00-4 4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a4 4 0 00-4-4h-1M9 20H4v-2a4 4 0 014-4h1m4-4a4 4 0 11-8 0 4 4 0 018 0zm6 4a4 4 0 00-4-4H9a4 4 0 00-4 4'/%3E%3C/svg%3E"); }
.vpm-tab__icon--inbox { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20 13V7a2 2 0 00-2-2H6a2 2 0 00-2 2v6m16 0v4a2 2 0 01-2 2H6a2 2 0 01-2-2v-4m16 0H4l2-4h12l2 4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20 13V7a2 2 0 00-2-2H6a2 2 0 00-2 2v6m16 0v4a2 2 0 01-2 2H6a2 2 0 01-2-2v-4m16 0H4l2-4h12l2 4z'/%3E%3C/svg%3E"); }
.vpm-tab__icon--reports { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 19v-6a2 2 0 012-2h2a2 2 0 012 2v6M9 19H7a2 2 0 01-2-2V9a2 2 0 012-2h2m4 12h2a2 2 0 002-2V5a2 2 0 00-2-2h-2m-4 0V3a2 2 0 012-2h2a2 2 0 012 2v2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 19v-6a2 2 0 012-2h2a2 2 0 012 2v6M9 19H7a2 2 0 01-2-2V9a2 2 0 012-2h2m4 12h2a2 2 0 002-2V5a2 2 0 00-2-2h-2m-4 0V3a2 2 0 012-2h2a2 2 0 012 2v2'/%3E%3C/svg%3E"); }

.vpm-tab--active {
	color: var(--vpm-text);
}

.vpm-tab--active .vpm-tab__icon {
	opacity: 1;
}

.vpm-tabbar--mobile .vpm-tab--active {
	background: transparent;
}

.vpm-tabbar--mobile .vpm-tab--active .vpm-tab__icon {
	background-color: #111111;
}

.vpm-tabbar--mobile .vpm-tab--accent.vpm-tab--active .vpm-tab__icon {
	background-color: #111111;
}

.vpm-field {
	display: block;
	margin-bottom: 12px;
}

.vpm-field span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--vpm-text-soft);
}

.vpm-field input,
.vpm-field textarea,
.vpm-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-bg-soft);
	font-family: inherit;
	font-size: 0.95rem;
}

.vpm-type-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.vpm-type-btn {
	padding: 14px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-surface);
	font-weight: 600;
	cursor: pointer;
}

.vpm-type-btn--active {
	border-color: #000;
	background: #000;
	color: #fff;
}

.vpm-steps {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
}

.vpm-step {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: var(--vpm-border);
}

.vpm-step--active {
	background: var(--vpm-accent);
}

.vpm-step-pane {
	display: none;
}

.vpm-step-pane--active {
	display: block;
}

.vpm-wizard-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	margin-bottom: calc(var(--vpm-tabbar-h) + var(--vpm-safe-bottom));
}

#vpm-crm-form-view .vpm-btn,
#vpm-crm-detail-view .vpm-btn,
.vpm-plan-add .vpm-btn {
	margin-bottom: calc(var(--vpm-tabbar-h) + var(--vpm-safe-bottom));
}

.vpm-btn {
	flex: 1;
	padding: 13px 18px;
	border: 1px solid #000;
	border-radius: var(--vpm-radius-sm);
	background: #000;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.vpm-btn:hover,
.vpm-btn:focus-visible {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.vpm-btn--ghost {
	background: #fff;
	border: 1px solid #000;
	color: #000;
	flex: 0 0 auto;
}

.vpm-btn--ghost:hover,
.vpm-btn--ghost:focus-visible {
	background: #f5f5f5;
	color: #000;
}

.vpm-btn--soft {
	background: #000;
	color: #fff;
	border-color: #000;
	width: 100%;
}

.vpm-btn--soft:hover,
.vpm-btn--soft:focus-visible {
	background: #1a1a1a;
	color: #fff;
}

.vpm-feedback {
	margin-top: 12px;
	padding: 12px;
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-bg-soft);
	color: var(--vpm-text);
	border: 1px solid var(--vpm-border);
}

.vpm-feedback--error {
	background: #fff;
	border-color: var(--vpm-accent);
	color: var(--vpm-text);
}

.vpm-muted {
	color: var(--vpm-muted);
	font-size: 0.875rem;
}

.vpm-empty {
	text-align: center;
	padding: 24px;
	color: var(--vpm-muted);
}

.vpm-rtl .vpm-sidebar,
.vpm-rtl .vpm-plan-item {
	direction: ltr;
}

.vpm-ltr .vpm-crm-card,
.vpm-ltr .vpm-search-item {
	text-align: left;
}

.vpm-rtl .vpm-crm-card,
.vpm-rtl .vpm-search-item {
	text-align: left;
}

.vpm-rtl .vpm-crm-card__title,
.vpm-rtl .vpm-crm-card__meta,
.vpm-rtl .vpm-plan-item__title,
.vpm-rtl .vpm-plan-item__meta,
.vpm-rtl .vpm-topbar__title {
	unicode-bidi: plaintext;
}
.vpm-crm-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.vpm-field--search input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-surface);
	font-family: inherit;
}

.vpm-crm-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vpm-crm-card {
	display: block;
	width: 100%;
	text-align: start;
	padding: 14px 16px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-surface);
	cursor: pointer;
	font-family: inherit;
	box-shadow: var(--vpm-shadow);
}

.vpm-crm-card__title {
	font-weight: 600;
	color: var(--vpm-text);
}

.vpm-crm-card__meta {
	font-size: 0.8125rem;
	color: var(--vpm-muted);
	margin-top: 2px;
}

.vpm-crm-heading {
	margin: 8px 0 4px;
	font-size: 1.25rem;
	font-weight: 700;
}

.vpm-crm-subhead {
	margin: 20px 0 10px;
	font-size: 1rem;
	font-weight: 600;
}

.vpm-crm-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 16px 0 8px;
}

.vpm-crm-section-head h3 {
	margin: 0;
	font-size: 1rem;
}

.vpm-btn--sm {
	flex: 0 0 auto;
	width: auto;
	padding: 8px 12px;
	font-size: 0.8125rem;
}

.vpm-back-link {
	display: inline-block;
	margin-bottom: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vpm-accent);
	font-family: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.vpm-crm-info {
	margin: 4px 0;
	font-size: 0.875rem;
}

.vpm-settings-fold {
	margin-top: 24px;
}

.vpm-search-results {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
	max-height: 220px;
	overflow-y: auto;
}

.vpm-search-item {
	display: block;
	width: 100%;
	text-align: start;
	padding: 10px 12px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-surface);
	cursor: pointer;
	font-family: inherit;
}

.vpm-search-item__title {
	font-weight: 600;
	font-size: 0.9375rem;
}

.vpm-search-item__meta {
	font-size: 0.8125rem;
	color: var(--vpm-muted);
}

.vpm-selected-chip {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--vpm-accent-soft);
	color: var(--vpm-accent);
	font-size: 0.875rem;
	font-weight: 500;
}

.vpm-timeline-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--vpm-border);
}

.vpm-timeline-item__title {
	font-weight: 600;
}

.vpm-timeline-item__meta {
	font-size: 0.8125rem;
	color: var(--vpm-muted);
}

.vpm-timeline-item__body {
	font-size: 0.875rem;
	margin-top: 4px;
	color: var(--vpm-text-soft);
}

.vpm-notify-btn {
	position: relative;
	border: 1px solid var(--vpm-border);
	background: var(--vpm-surface);
	border-radius: var(--vpm-radius-sm);
	width: 40px;
	height: 40px;
	padding: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.vpm-notify-btn__icon {
	width: 18px;
	height: 18px;
	display: block;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 11-6 0'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vpm-notify-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 999px;
	background: var(--vpm-danger);
	color: #fff;
	font-size: 0.625rem;
	line-height: 16px;
	text-align: center;
	font-weight: 700;
}

.vpm-notify-panel {
	position: fixed;
	z-index: 100001;
	background: var(--vpm-surface);
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	padding: 12px;
	max-height: min(320px, 50vh);
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	left: 12px;
	right: 12px;
	bottom: calc(var(--vpm-tabbar-h) + var(--vpm-safe-bottom) + 8px);
}

/* Desktop sidebar layout (SQUIRE-inspired) */
@media (min-width: 960px) {
	.vpm-app {
		flex-direction: row;
		max-width: none;
		margin: 0;
		padding-bottom: 0;
		min-height: 100vh;
	}

	.vpm-sidebar {
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		width: var(--vpm-sidebar-w);
		min-height: 100vh;
		position: sticky;
		top: 0;
		align-self: flex-start;
		background: var(--vpm-surface);
		border-inline-end: 1px solid var(--vpm-border);
		padding: 24px 0 20px;
	}

	.vpm-sidebar__brand {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 0 20px 28px;
	}

	.vpm-sidebar__mark {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		border-radius: 10px;
		background: var(--vpm-accent);
		color: #fff;
		font-size: 0.72rem;
		font-weight: 800;
		letter-spacing: 0.04em;
	}

	.vpm-sidebar__brand-text {
		font-size: 0.95rem;
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--vpm-text);
		line-height: 1.2;
	}

	.vpm-sidebar__nav {
		display: flex;
		flex-direction: column;
		gap: 2px;
		padding: 0 12px;
		flex: 1;
	}

	.vpm-sidebar__nav .vpm-tab {
		flex-direction: row;
		justify-content: flex-start;
		gap: 12px;
		width: 100%;
		padding: 11px 12px;
		border-radius: 8px;
		font-size: 0.875rem;
		color: var(--vpm-text-soft);
		border-inline-start: 3px solid transparent;
	}

	.vpm-sidebar__nav .vpm-tab__icon {
		width: 20px;
		height: 20px;
		flex-shrink: 0;
	}

	.vpm-sidebar__nav .vpm-tab--active {
		background: var(--vpm-nav-active-bg);
		color: var(--vpm-text);
		border-inline-start-color: var(--vpm-nav-active-border);
		font-weight: 600;
	}

	.vpm-sidebar__nav .vpm-tab--accent .vpm-tab__icon {
		background-color: var(--vpm-accent);
		border-radius: 50%;
		background-size: 12px 12px;
		opacity: 1;
	}

	.vpm-sidebar__footer {
		padding: 16px 20px 0;
		border-top: 1px solid var(--vpm-border);
		margin-top: auto;
	}

	.vpm-sidebar__user {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 12px;
	}

	.vpm-sidebar__avatar {
		width: 36px;
		height: 36px;
		border-radius: var(--vpm-radius-ui);
		background: var(--vpm-bg-soft);
		color: var(--vpm-text);
		font-weight: 700;
		font-size: 0.875rem;
		display: grid;
		place-items: center;
		flex-shrink: 0;
		overflow: hidden;
	}

	.vpm-sidebar__avatar-img,
	.vpm-sidebar__avatar img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
		border-radius: inherit;
	}

	.vpm-sidebar__avatar .vpm-user-avatar--initials {
		width: 100%;
		height: 100%;
		display: grid;
		place-items: center;
	}

	.vpm-sidebar__user-name {
		display: block;
		font-size: 0.875rem;
		font-weight: 600;
		color: var(--vpm-text);
		line-height: 1.3;
		font-family: inherit, Tahoma, "Segoe UI", "Iran Sans", "Vazirmatn", "Noto Naskh Arabic", "Arial Unicode MS", sans-serif;
	}

	.vpm-sidebar__user-greet {
		display: block;
		font-size: 0.75rem;
		color: var(--vpm-muted);
	}

	.vpm-sidebar__logout {
		display: block;
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--vpm-muted);
		text-decoration: none;
		padding: 4px 0 8px;
	}

	.vpm-sidebar__logout:hover,
	.vpm-sidebar__logout:focus {
		color: var(--vpm-text);
	}

	.vpm-tabbar--mobile {
		display: none;
	}

	.vpm-main {
		flex: 1;
		min-height: 100vh;
	}

	.vpm-main__content {
		padding: 24px 28px 32px;
		padding-top: calc(var(--vpm-sticky-head-h) + 16px);
		max-width: 1280px;
	}

	.vpm-dash-sticky-head {
		left: var(--vpm-sidebar-w);
		right: 0;
		width: auto;
		transform: none;
	}

	.vpm-topbar {
		padding: 18px 28px;
	}

	.vpm-notify-btn--desktop {
		display: grid !important;
	}

	.vpm-notify-btn--mobile {
		display: none;
	}

	.vpm-notify-panel {
		left: auto;
		right: 28px;
		bottom: auto;
		top: calc(var(--vpm-topbar-h) + 8px);
		width: min(360px, calc(100vw - 56px));
	}

	.vpm-topbar__title--tab {
		font-size: 0.8125rem;
	}
}

.vpm-notify-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.vpm-notify-item {
	padding: 8px 0;
	border-bottom: 1px solid var(--vpm-border);
}

.vpm-notify-item--unread .vpm-notify-item__title {
	font-weight: 700;
}

.vpm-report-card,
.vpm-report-row {
	padding: 10px 12px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius-sm);
	margin-bottom: 8px;
}

.vpm-report-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.vpm-phase-alerts {
	margin: 12px 0;
}

.vpm-alert {
	padding: 10px 12px;
	border-radius: var(--vpm-radius-sm);
	margin-bottom: 6px;
	font-size: 0.875rem;
	border: 1px solid var(--vpm-border);
}

.vpm-alert--critical,
.vpm-alert--high {
	font-weight: 600;
}

.vpm-tags-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vpm-tag-check {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
}

.vpm-pwa-install {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vpm-pwa-install-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(72px + env(safe-area-inset-bottom));
	background: #111;
	color: #fff;
	border-radius: 10px;
	padding: 12px;
	z-index: 99999;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.vpm-pwa-install-banner__text {
	margin: 0 0 10px;
	font-size: 0.65rem;
	line-height: 1.45;
}

.vpm-pwa-install-banner__actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.vpm-pwa-install-banner .vpm-btn--soft {
	background: transparent;
	color: #fff;
	border-color: #666;
}

.vpm-live-map {
	margin-top: 20px;
}

.vpm-map-canvas {
	height: 220px;
	border-radius: var(--vpm-radius-sm);
	border: 1px solid var(--vpm-border);
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--vpm-bg-soft);
}

.vpm-live-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vpm-visit-gps {
	margin-top: 8px;
}

.vpm-wc-results {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}

/* Activity picker modal — same pattern as VP Product Form wizards */
body.vpm-modal-open {
	overflow: hidden;
}

.vpm-wizard {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	padding-bottom: calc(16px + var(--vpm-tabbar-h) + var(--vpm-safe-bottom));
}

.vpm-wizard[hidden] {
	display: none !important;
}

.vpm-wizard__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.vpm-wizard__panel {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: min(85dvh, 720px);
	overflow: auto;
	background: var(--vpm-surface);
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	padding: 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	margin: auto;
}

.vpm-wizard__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--vpm-text);
}

.vpm-wizard__panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.vpm-wizard__panel-head .vpm-wizard__title {
	flex: 1;
	min-width: 0;
}

.vpm-wizard__close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--vpm-text);
	padding: 0 4px;
}

.vpm-wizard__body {
	margin-bottom: 16px;
}

.vpm-wizard__nav {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.vpm-wizard__nav .vpm-btn--ghost {
	flex: 0 0 auto;
}

.vpm-wizard__nav .vpm-btn:not(.vpm-btn--ghost) {
	flex: 0 0 auto;
	min-width: 120px;
}

.vpm-modal-picker__toolbar {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.vpm-modal-picker__toolbar .vpm-btn--soft {
	width: auto;
	flex: 0 0 auto;
	padding: 10px 14px;
	font-size: 0.875rem;
}

.vpm-modal-selected {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
	border-radius: var(--vpm-radius-sm);
	background: var(--vpm-bg-soft);
	border: 1px solid var(--vpm-border);
	font-size: 0.875rem;
}

.vpm-modal-selected__change {
	border: 0;
	background: none;
	padding: 0;
	color: var(--vpm-status-exceptional);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	flex-shrink: 0;
}

.vpm-modal-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: min(42vh, 360px);
	overflow: auto;
}

.vpm-modal-list .vpm-search-item {
	width: 100%;
	text-align: inherit;
}

.vpm-modal-hint {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	color: var(--vpm-muted);
	line-height: 1.45;
}

@media (max-width: 640px) {
	.vpm-wizard {
		padding: 16px;
		padding-bottom: calc(16px + var(--vpm-tabbar-h) + var(--vpm-safe-bottom));
		align-items: center;
		justify-content: center;
	}

	.vpm-wizard__panel {
		width: min(480px, 100%);
		max-height: calc(100dvh - var(--vpm-tabbar-h) - var(--vpm-safe-bottom) - 32px);
		border-radius: var(--vpm-radius);
		padding: 16px;
	}
}

@media (min-width: 960px) {
	.vpm-wizard {
		padding-bottom: 16px;
	}
}

/* Address, phone rows, project contacts */
.vpm-address-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 8px;
}

.vpm-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.vpm-field-head > span {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--vpm-text);
}

.vpm-phones-field,
.vpm-contacts-field {
	margin-bottom: 12px;
}

.vpm-phone-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vpm-phone-row {
	display: grid;
	grid-template-columns: minmax(110px, 140px) 1fr auto;
	gap: 8px;
	align-items: end;
}

.vpm-field--phone-code,
.vpm-field--phone-num {
	margin: 0;
}

.vpm-phone-remove {
	align-self: end;
	min-width: 36px;
	padding: 8px;
	line-height: 1;
}

.vpm-contact-card {
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius, 10px);
	padding: 12px;
	margin-bottom: 10px;
	background: var(--vpm-surface, #fff);
}

.vpm-contact-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.vpm-name-i18n {
	margin: 8px 0 12px;
}

.vpm-name-i18n > summary {
	cursor: pointer;
	list-style: none;
	display: inline-block;
}

.vpm-name-i18n > summary::-webkit-details-marker {
	display: none;
}

.vpm-name-i18n__body {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px dashed var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius, 10px);
	background: var(--vpm-soft, #f8fafc);
}

.vpm-name-i18n__en {
	margin: 0 0 10px;
	font-size: 0.92rem;
	color: var(--vpm-muted, #64748b);
}

.vpm-crm-contacts {
	margin: 12px 0 16px;
}

.vpm-crm-contact-row {
	padding: 8px 0;
	border-bottom: 1px solid var(--vpm-border, #e5e7eb);
}

.vpm-crm-contact-row:last-child {
	border-bottom: 0;
}

.vpm-feedback--ok {
	color: #166534;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 10px 12px;
	border-radius: var(--vpm-radius, 10px);
	margin-bottom: 12px;
}

@media (max-width: 480px) {
	.vpm-phone-row {
		grid-template-columns: 1fr;
	}
}

.vpm-project-pick-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	text-align: inherit;
	padding: 14px 16px;
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius, 10px);
	background: var(--vpm-surface, #fff);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vpm-project-pick-card:hover {
	border-color: var(--vpm-accent, #111827);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vpm-project-pick-card__title {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--vpm-text, #111827);
}

.vpm-project-pick-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.vpm-badge--pipeline {
	background: #eff6ff;
	color: #1d4ed8;
}

.vpm-badge--phase {
	background: #f0fdf4;
	color: #166534;
}

.vpm-radio-card {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius, 10px);
	margin-bottom: 8px;
	cursor: pointer;
}

.vpm-radio-card:has(input:checked) {
	border-color: var(--vpm-accent, #111827);
	background: var(--vpm-accent-soft, #f3f4f6);
}

.vpm-wizard__panel--wide {
	max-width: min(640px, 100%);
}

.vpm-sample-line {
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius, 10px);
	padding: 12px;
	margin-bottom: 12px;
	background: var(--vpm-bg-soft, #f9fafb);
}

.vpm-sample-line__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.vpm-sample-photo-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.vpm-sample-photo-thumb {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--vpm-border, #e5e7eb);
}

.vpm-sample-photo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vpm-sample-photo-rm {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.vpm-auto-datetime {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	margin-bottom: 12px;
	border-radius: var(--vpm-radius, 10px);
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.vpm-auto-datetime__label {
	font-size: 0.75rem;
	color: var(--vpm-muted);
}

.vpm-auto-datetime__value {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--vpm-text);
}

.vpm-auto-datetime__hint {
	font-size: 0.75rem;
	color: #166534;
}

.vpm-datetime-input--calendar {
	width: 100%;
	cursor: pointer;
}

.vpm-search-select__wrap {
	position: relative;
}

.vpm-search-select__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius-sm, 8px);
	font: inherit;
	background: #fff;
}

.vpm-search-select.is-disabled .vpm-search-select__input {
	background: var(--vpm-bg-soft, #f9fafb);
	color: var(--vpm-muted);
}

.vpm-search-select__dropdown {
	position: absolute;
	z-index: 40;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	max-height: 220px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: var(--vpm-radius-sm, 8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.vpm-search-select__option {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	text-align: inherit;
	font: inherit;
	cursor: pointer;
}

.vpm-search-select__option:hover {
	background: var(--vpm-bg-soft, #f3f4f6);
}

.vpm-search-select__empty {
	padding: 12px;
	font-size: 0.8125rem;
	color: var(--vpm-muted);
}

.vpm-sample-line__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

@media (min-width: 520px) {
	.vpm-sample-line__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.vpm-sample-line__num {
	font-weight: 600;
	font-size: 0.9375rem;
}

.vpm-sample-delivery {
	margin-bottom: 12px;
}

.vpm-sample-delivery__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.vpm-pill-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--vpm-border, #e5e7eb);
	border-radius: 999px;
	font-size: 0.8125rem;
	cursor: pointer;
	background: #fff;
}

.vpm-pill-check:has(input:checked) {
	border-color: #000;
	background: #f3f4f6;
	font-weight: 600;
}

.vpm-btn--block {
	width: 100%;
	margin-top: 8px;
}

.vpm-sample-modal-intro {
	margin-bottom: 14px;
}

.vpm-wizard__panel--wide {
	max-width: min(640px, 100%);
}

.vpm-update-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100110;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding: 10px 16px;
	padding-top: max(10px, env(safe-area-inset-top, 0px));
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(30, 58, 138, 0.35);
	text-align: center;
}

.vpm-update-banner[hidden] {
	display: none !important;
}

.vpm-update-banner__text {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	flex: 1 1 200px;
	max-width: 640px;
}

.vpm-update-banner__btn {
	flex-shrink: 0;
	background: #fff !important;
	color: #1e40af !important;
	border: 0 !important;
	font-weight: 700;
}

.vpm-update-banner__btn:hover,
.vpm-update-banner__btn:focus {
	background: #eff6ff !important;
}

.vpm-update-banner__busy {
	margin: 0;
	width: 100%;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #fde68a;
}

body.vpm-has-update-banner.vpm-portal-page .vpm-shell {
	padding-top: calc(var(--vpm-safe-top) + var(--vpm-update-banner-h));
}

/* Real-time inbox toast */
.vpm-inbox-toast-stack {
	position: fixed;
	top: calc(var(--vpm-safe-top, 0px) + 12px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 10050;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(420px, calc(100vw - 24px));
	pointer-events: none;
}

body.vpm-has-update-banner .vpm-inbox-toast-stack {
	top: calc(var(--vpm-safe-top, 0px) + var(--vpm-update-banner-h, 52px) + 8px);
}

.vpm-inbox-toast {
	pointer-events: auto;
	background: #111;
	color: #fff;
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
	border: 1px solid rgba(201, 162, 39, .35);
	animation: vpmToastIn .35s ease;
}

.vpm-inbox-toast__title {
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 4px;
	color: #c9a227;
}

.vpm-inbox-toast__body {
	font-size: 12px;
	line-height: 1.5;
	margin: 0 0 10px;
	color: #e5e7eb;
}

.vpm-inbox-toast__actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.vpm-inbox-toast__btn {
	border: 0;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.vpm-inbox-toast__btn--primary {
	background: #c9a227;
	color: #111;
}

.vpm-inbox-toast__btn--ghost {
	background: transparent;
	color: #d1d5db;
	border: 1px solid #4b5563;
}

@keyframes vpmToastIn {
	from { opacity: 0; transform: translateY(-12px); }
	to { opacity: 1; transform: translateY(0); }
}
