/* ==========================================================================
   Vendamal design system
   Tokens follow docs/BUILD_GUIDE.md section 5. Everything is plain CSS so the
   theme deploys without a build step.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
	/* Brand */
	--vm-navy: #071b3b;
	--vm-navy-800: #0b2654;
	--vm-navy-700: #10336f;
	--vm-blue: #1554d1;
	--vm-blue-hover: #0f45b0;
	--vm-blue-active: #0c3994;
	--vm-sky: #32a2eb;
	--vm-pale: #eff5ff;
	--vm-pale-2: #dfeafd;

	/* Neutrals */
	--vm-bg: #f6f8fc;
	--vm-surface: #ffffff;
	--vm-text: #0b1b33;
	--vm-text-muted: #55657d;
	--vm-text-subtle: #7a889c;
	--vm-border: #e1e7f0;
	--vm-border-strong: #c9d3e2;

	/* Status */
	--vm-success: #127a55;
	--vm-success-bg: #e7f6ef;
	--vm-warning: #9a5b00;
	--vm-warning-bg: #fff4e0;
	--vm-danger: #c02b37;
	--vm-danger-bg: #fdecee;
	--vm-info: var(--vm-blue);
	--vm-info-bg: var(--vm-pale);
	--vm-star: #f2a91d;

	/* Shape and depth */
	--vm-radius-card: 12px;
	--vm-radius-control: 8px;
	--vm-radius-pill: 999px;
	--vm-shadow-sm: 0 1px 2px rgba(7, 27, 59, 0.06);
	--vm-shadow: 0 2px 6px rgba(7, 27, 59, 0.06), 0 8px 24px rgba(7, 27, 59, 0.05);
	--vm-shadow-lg: 0 12px 40px rgba(7, 27, 59, 0.16);
	--vm-focus: 0 0 0 3px rgba(21, 84, 209, 0.35);

	/* Spacing: multiples of 8px (4px for fine adjustments) */
	--vm-space-1: 4px;
	--vm-space-2: 8px;
	--vm-space-3: 16px;
	--vm-space-4: 24px;
	--vm-space-5: 32px;
	--vm-space-6: 48px;
	--vm-space-7: 64px;
	--vm-space-8: 96px;

	/* Type */
	--vm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--vm-text-xs: 0.75rem;
	--vm-text-sm: 0.875rem;
	--vm-text-md: 1rem;
	--vm-text-lg: 1.125rem;
	--vm-text-xl: 1.375rem;
	--vm-text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--vm-text-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);

	--vm-container: 1280px;
	--vm-gutter: 16px;
	--vm-header-h: 72px;
	--vm-sidebar-w: 272px;
}

@media (min-width: 768px) {
	:root { --vm-gutter: 24px; }
}
@media (min-width: 1200px) {
	:root { --vm-gutter: 32px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--vm-bg);
	color: var(--vm-text);
	font-family: var(--vm-font);
	font-size: var(--vm-text-md);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
	margin: 0 0 var(--vm-space-2);
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -0.015em;
	color: var(--vm-text);
}
h1 { font-size: var(--vm-text-3xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--vm-text-2xl); }
h3 { font-size: var(--vm-text-lg); }
p { margin: 0 0 var(--vm-space-3); }

a { color: var(--vm-blue); text-underline-offset: 2px; }
a:hover { color: var(--vm-blue-hover); }

:focus-visible {
	outline: 2px solid var(--vm-blue);
	outline-offset: 2px;
}

.vm-visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vm-skip-link {
	position: absolute;
	left: var(--vm-space-3);
	top: -100px;
	z-index: 1000;
	padding: var(--vm-space-2) var(--vm-space-3);
	background: var(--vm-surface);
	border-radius: var(--vm-radius-control);
	box-shadow: var(--vm-shadow);
	font-weight: 600;
}
.vm-skip-link:focus { top: var(--vm-space-3); }

.vm-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vm-container {
	width: 100%;
	max-width: calc(var(--vm-container) + 2 * var(--vm-gutter));
	margin-inline: auto;
	padding-inline: var(--vm-gutter);
}

.vm-muted { color: var(--vm-text-muted); }
.vm-nowrap { white-space: nowrap; }
.vm-small { font-size: var(--vm-text-sm); }
.vm-stack > * + * { margin-top: var(--vm-space-3); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.vm-btn {
	--vm-btn-bg: var(--vm-blue);
	--vm-btn-color: #fff;
	--vm-btn-border: var(--vm-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--vm-space-2);
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--vm-btn-border);
	border-radius: var(--vm-radius-control);
	background: var(--vm-btn-bg);
	color: var(--vm-btn-color);
	font: inherit;
	font-size: var(--vm-text-md);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.vm-btn:hover { --vm-btn-bg: var(--vm-blue-hover); --vm-btn-border: var(--vm-blue-hover); color: var(--vm-btn-color); }
.vm-btn:active { --vm-btn-bg: var(--vm-blue-active); }
.vm-btn:focus-visible { outline: none; box-shadow: var(--vm-focus); }

.vm-btn--secondary {
	--vm-btn-bg: var(--vm-surface);
	--vm-btn-color: var(--vm-blue);
	--vm-btn-border: var(--vm-blue);
}
.vm-btn--secondary:hover { --vm-btn-bg: var(--vm-pale); --vm-btn-border: var(--vm-blue-hover); --vm-btn-color: var(--vm-blue-hover); }

.vm-btn--ghost {
	--vm-btn-bg: transparent;
	--vm-btn-color: var(--vm-blue);
	--vm-btn-border: transparent;
}
.vm-btn--ghost:hover { --vm-btn-bg: var(--vm-pale); --vm-btn-border: transparent; --vm-btn-color: var(--vm-blue-hover); }

.vm-btn--white {
	--vm-btn-bg: #fff;
	--vm-btn-color: var(--vm-blue);
	--vm-btn-border: #fff;
}
.vm-btn--white:hover { --vm-btn-bg: var(--vm-pale); --vm-btn-border: var(--vm-pale); --vm-btn-color: var(--vm-blue-hover); }

.vm-btn--danger { --vm-btn-bg: var(--vm-danger); --vm-btn-border: var(--vm-danger); }
.vm-btn--danger:hover { --vm-btn-bg: #a3222d; --vm-btn-border: #a3222d; }

.vm-btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--vm-text-sm); }
.vm-btn--lg { min-height: 52px; padding: 14px 28px; font-size: var(--vm-text-lg); }
.vm-btn--block { width: 100%; }
.vm-btn--icon { padding: 0; width: 44px; }

.vm-btn:disabled,
.vm-btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Pending state: add aria-busy="true" while a request runs. */
.vm-btn[aria-busy="true"] { position: relative; color: transparent; pointer-events: none; }
.vm-btn[aria-busy="true"]::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid var(--vm-btn-color);
	border-right-color: transparent;
	border-radius: 50%;
	animation: vm-spin 0.7s linear infinite;
}
@keyframes vm-spin { to { transform: rotate(360deg); } }

.vm-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
}
.vm-link-arrow .vm-icon { transition: transform 0.15s; }
.vm-link-arrow:hover .vm-icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */

.vm-field { display: grid; gap: 6px; margin-bottom: var(--vm-space-3); }
.vm-label { font-size: var(--vm-text-sm); font-weight: 600; color: var(--vm-text); }
.vm-label .vm-required { color: var(--vm-danger); margin-left: 2px; }
.vm-hint { font-size: var(--vm-text-sm); color: var(--vm-text-muted); }
.vm-error-text { font-size: var(--vm-text-sm); color: var(--vm-danger); font-weight: 500; }

.vm-input,
.vm-select,
.vm-textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--vm-border-strong);
	border-radius: var(--vm-radius-control);
	background: var(--vm-surface);
	color: var(--vm-text);
	font: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.vm-textarea { min-height: 120px; resize: vertical; }
.vm-input::placeholder,
.vm-textarea::placeholder { color: var(--vm-text-subtle); }
.vm-input:hover,
.vm-select:hover,
.vm-textarea:hover { border-color: var(--vm-text-subtle); }
.vm-input:focus,
.vm-select:focus,
.vm-textarea:focus { outline: none; border-color: var(--vm-blue); box-shadow: var(--vm-focus); }
.vm-input:disabled,
.vm-select:disabled,
.vm-textarea:disabled { background: var(--vm-bg); color: var(--vm-text-subtle); cursor: not-allowed; }
.vm-input[aria-invalid="true"],
.vm-select[aria-invalid="true"],
.vm-textarea[aria-invalid="true"] { border-color: var(--vm-danger); }
.vm-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 43, 55, 0.25); }

.vm-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--vm-text-md); cursor: pointer; }
.vm-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--vm-blue); }

/* Search bar (hero, marketplace) */
.vm-search {
	display: flex;
	align-items: center;
	gap: var(--vm-space-2);
	padding: 6px 6px 6px 16px;
	background: var(--vm-surface);
	border: 1px solid var(--vm-border);
	border-radius: var(--vm-radius-card);
	box-shadow: var(--vm-shadow-sm);
}
.vm-search:focus-within { box-shadow: var(--vm-focus); border-color: var(--vm-blue); }
.vm-search > .vm-icon { color: var(--vm-text-subtle); }
.vm-search input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--vm-text);
}
.vm-search input:focus { outline: none; }
.vm-search .vm-btn { flex: none; }

/* --------------------------------------------------------------------------
   Cards, badges, chips, avatars
   -------------------------------------------------------------------------- */

.vm-card {
	background: var(--vm-surface);
	border: 1px solid var(--vm-border);
	border-radius: var(--vm-radius-card);
	box-shadow: var(--vm-shadow-sm);
}
.vm-card--pad { padding: var(--vm-space-4); }
.vm-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vm-space-3);
	margin-bottom: var(--vm-space-3);
}
.vm-card__header h2,
.vm-card__header h3 { margin: 0; font-size: var(--vm-text-xl); }

.vm-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: var(--vm-radius-pill);
	background: var(--vm-bg);
	color: var(--vm-text-muted);
	font-size: var(--vm-text-xs);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.vm-badge--blue { background: var(--vm-pale); color: var(--vm-blue); }
.vm-badge--success { background: var(--vm-success-bg); color: var(--vm-success); }
.vm-badge--warning { background: var(--vm-warning-bg); color: var(--vm-warning); }
.vm-badge--danger { background: var(--vm-danger-bg); color: var(--vm-danger); }
.vm-badge--navy { background: var(--vm-navy); color: #fff; }

.vm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--vm-border);
	border-radius: var(--vm-radius-pill);
	background: var(--vm-surface);
	color: var(--vm-text);
	font-size: var(--vm-text-sm);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.vm-chip:hover { border-color: var(--vm-blue); color: var(--vm-blue); background: var(--vm-pale); }
.vm-chip .vm-icon { color: var(--vm-blue); }

.vm-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 35%;
	background: var(--vm-pale);
	flex: none;
}
.vm-avatar--lg { width: 56px; height: 56px; }
.vm-avatar--initials {
	display: inline-grid;
	place-items: center;
	color: var(--vm-blue);
	font-weight: 700;
	font-size: var(--vm-text-sm);
}

.vm-icon-tile {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--vm-radius-card);
	background: var(--vm-pale);
	color: var(--vm-blue);
	flex: none;
}
.vm-icon-tile .vm-icon { width: 24px; height: 24px; }

/* Status label for project / payment / payout states (kept visually distinct). */
.vm-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--vm-text-sm);
	font-weight: 600;
}
.vm-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.vm-status--neutral { color: var(--vm-text-muted); }
.vm-status--active { color: var(--vm-blue); }
.vm-status--success { color: var(--vm-success); }
.vm-status--warning { color: var(--vm-warning); }
.vm-status--danger { color: var(--vm-danger); }

/* --------------------------------------------------------------------------
   Notices, toasts, empty, loading, error
   -------------------------------------------------------------------------- */

.vm-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: var(--vm-radius-control);
	border: 1px solid transparent;
	background: var(--vm-info-bg);
	color: var(--vm-navy);
	font-size: var(--vm-text-sm);
}
.vm-notice .vm-icon { margin-top: 1px; color: var(--vm-blue); }
.vm-notice p { margin: 0; }
.vm-notice--success { background: var(--vm-success-bg); }
.vm-notice--success .vm-icon { color: var(--vm-success); }
.vm-notice--warning { background: var(--vm-warning-bg); }
.vm-notice--warning .vm-icon { color: var(--vm-warning); }
.vm-notice--error { background: var(--vm-danger-bg); }
.vm-notice--error .vm-icon { color: var(--vm-danger); }

.vm-toast-region {
	position: fixed;
	right: var(--vm-space-3);
	bottom: var(--vm-space-3);
	z-index: 900;
	display: grid;
	gap: var(--vm-space-2);
	max-width: min(380px, calc(100vw - 32px));
}
.vm-toast {
	padding: 14px 16px;
	border-radius: var(--vm-radius-control);
	background: var(--vm-navy);
	color: #fff;
	box-shadow: var(--vm-shadow-lg);
	font-size: var(--vm-text-sm);
	animation: vm-toast-in 0.2s ease-out;
}
@keyframes vm-toast-in { from { opacity: 0; transform: translateY(8px); } }

.vm-empty {
	display: grid;
	justify-items: center;
	gap: var(--vm-space-2);
	padding: var(--vm-space-6) var(--vm-space-4);
	text-align: center;
}
.vm-empty .vm-icon-tile { width: 56px; height: 56px; margin-bottom: var(--vm-space-2); }
.vm-empty h3 { margin: 0; font-size: var(--vm-text-lg); }
.vm-empty p { margin: 0; max-width: 46ch; color: var(--vm-text-muted); }
.vm-empty .vm-btn { margin-top: var(--vm-space-2); }
.vm-empty--compact { padding: var(--vm-space-4) var(--vm-space-3); }

.vm-skeleton {
	display: block;
	border-radius: var(--vm-radius-control);
	background: linear-gradient(90deg, #eaeff6 25%, #f4f7fb 50%, #eaeff6 75%);
	background-size: 200% 100%;
	animation: vm-shimmer 1.4s linear infinite;
	min-height: 1em;
}
@keyframes vm-shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Tabs, menus, tables, pagination, dialog
   -------------------------------------------------------------------------- */

.vm-tabs {
	display: flex;
	gap: var(--vm-space-1);
	border-bottom: 1px solid var(--vm-border);
	overflow-x: auto;
	scrollbar-width: none;
}
.vm-tab {
	padding: 12px 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--vm-text-muted);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.vm-tab:hover { color: var(--vm-text); }
.vm-tab[aria-selected="true"],
.vm-tab[aria-current="page"] { color: var(--vm-blue); border-bottom-color: var(--vm-blue); }

.vm-dropdown { position: relative; }
.vm-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 200;
	min-width: 220px;
	padding: var(--vm-space-2);
	margin: 0;
	list-style: none;
	background: var(--vm-surface);
	border: 1px solid var(--vm-border);
	border-radius: var(--vm-radius-card);
	box-shadow: var(--vm-shadow-lg);
}
.vm-menu[hidden] { display: none; }
.vm-menu a,
.vm-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--vm-radius-control);
	background: none;
	color: var(--vm-text);
	font: inherit;
	font-size: var(--vm-text-sm);
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.vm-menu a:hover,
.vm-menu button:hover { background: var(--vm-pale); color: var(--vm-blue); }
.vm-menu hr { margin: 6px 0; border: 0; border-top: 1px solid var(--vm-border); }

.vm-table-wrap { overflow-x: auto; }
.vm-table { width: 100%; border-collapse: collapse; font-size: var(--vm-text-sm); }
.vm-table th,
.vm-table td { padding: 12px 16px; border-bottom: 1px solid var(--vm-border); text-align: left; vertical-align: middle; }
.vm-table th { color: var(--vm-text-muted); font-weight: 600; font-size: var(--vm-text-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.vm-table tbody tr:hover { background: var(--vm-bg); }

.vm-pagination { display: flex; flex-wrap: wrap; gap: var(--vm-space-1); justify-content: center; margin-top: var(--vm-space-5); }
.vm-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--vm-border);
	border-radius: var(--vm-radius-control);
	background: var(--vm-surface);
	color: var(--vm-text);
	font-weight: 600;
	text-decoration: none;
}
.vm-pagination .page-numbers:hover { border-color: var(--vm-blue); color: var(--vm-blue); }
.vm-pagination .page-numbers.current { background: var(--vm-blue); border-color: var(--vm-blue); color: #fff; }

.vm-dialog {
	width: min(520px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: var(--vm-radius-card);
	box-shadow: var(--vm-shadow-lg);
	color: var(--vm-text);
}
.vm-dialog::backdrop { background: rgba(7, 27, 59, 0.55); }
.vm-dialog__body { padding: var(--vm-space-4); }
.vm-dialog__footer {
	display: flex;
	justify-content: flex-end;
	gap: var(--vm-space-2);
	padding: var(--vm-space-3) var(--vm-space-4);
	border-top: 1px solid var(--vm-border);
	background: var(--vm-bg);
}

/* --------------------------------------------------------------------------
   Public header
   -------------------------------------------------------------------------- */

.vm-logo { display: inline-flex; align-items: center; flex: none; }
.vm-logo img { width: auto; height: 36px; }
@media (min-width: 1024px) {
	.vm-logo img { height: 42px; }
}

.vm-header {
	position: sticky;
	top: 0;
	z-index: 300;
	background: rgba(246, 248, 252, 0.92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
}
.admin-bar .vm-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .vm-header { top: 0; position: relative; }
}
.vm-header.is-scrolled { border-bottom-color: var(--vm-border); }

.vm-header__inner {
	display: flex;
	align-items: center;
	gap: var(--vm-space-4);
	min-height: var(--vm-header-h);
}

.vm-nav { margin-right: auto; }
.vm-nav ul { display: flex; align-items: center; gap: var(--vm-space-1); margin: 0; padding: 0; list-style: none; }
.vm-nav a,
.vm-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	border: 0;
	border-radius: var(--vm-radius-control);
	background: none;
	color: var(--vm-text);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}
.vm-nav a:hover,
.vm-nav__toggle:hover { color: var(--vm-blue); background: var(--vm-pale); }
.vm-nav .current-menu-item > a,
.vm-nav a[aria-current="page"] { color: var(--vm-blue); }
.vm-nav .vm-menu { left: 0; right: auto; }

.vm-header__actions { display: flex; align-items: center; gap: var(--vm-space-2); }
.vm-header__login { font-weight: 600; text-decoration: none; padding: 10px 12px; }

.vm-menu-button { display: none; }

@media (max-width: 959px) {
	.vm-menu-button { display: inline-flex; margin-left: auto; }
	.vm-header__inner { flex-wrap: wrap; gap: var(--vm-space-2); }
	.vm-nav,
	.vm-header__actions { display: none; width: 100%; }
	.vm-header.is-open .vm-nav,
	.vm-header.is-open .vm-header__actions { display: block; }
	.vm-header.is-open { background: var(--vm-surface); border-bottom-color: var(--vm-border); }
	.vm-nav ul { flex-direction: column; align-items: stretch; padding-top: var(--vm-space-2); }
	.vm-nav a,
	.vm-nav__toggle { width: 100%; padding: 12px; font-size: var(--vm-text-md); }
	.vm-nav .vm-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 var(--vm-space-3); min-width: 0; }
	.vm-header.is-open .vm-header__actions { display: flex; flex-wrap: wrap; padding: var(--vm-space-2) 0 var(--vm-space-3); }
	.vm-header__actions .vm-btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Sections and homepage
   -------------------------------------------------------------------------- */

.vm-main { display: block; }
.vm-section { padding-block: var(--vm-space-6); }
.vm-section--tight { padding-block: var(--vm-space-4); }
.vm-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: var(--vm-space-3);
	margin-bottom: var(--vm-space-4);
}
.vm-section__head h2 { margin: 0; }
.vm-section__head p { margin: 6px 0 0; color: var(--vm-text-muted); }
.vm-eyebrow {
	display: inline-block;
	margin-bottom: var(--vm-space-2);
	color: var(--vm-blue);
	font-size: var(--vm-text-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Hero */
.vm-hero { padding-top: var(--vm-space-2); }
.vm-hero__panel {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: 20px;
	background: var(--vm-navy);
	color: #fff;
	isolation: isolate;
}
.vm-hero__media {
	position: relative;
	min-height: 260px;
	z-index: -1;
}
.vm-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 30%;
}
.vm-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 27, 59, 0) 55%, var(--vm-navy) 100%);
}
.vm-hero__content { padding: var(--vm-space-4) var(--vm-space-3) var(--vm-space-5); }
.vm-hero h1 { color: #fff; max-width: 14ch; margin-bottom: var(--vm-space-3); }
.vm-hero__lead { max-width: 52ch; font-size: var(--vm-text-lg); color: rgba(255, 255, 255, 0.88); margin-bottom: var(--vm-space-4); }
.vm-hero .vm-search { max-width: 640px; border-color: transparent; }
.vm-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--vm-space-2); margin-top: var(--vm-space-3); }
.vm-hero__ctas .vm-btn { min-width: 180px; }

.vm-hero__card {
	display: none;
	position: absolute;
	right: var(--vm-space-4);
	bottom: var(--vm-space-4);
	padding: var(--vm-space-3) var(--vm-space-4);
	margin: 0;
	list-style: none;
	background: var(--vm-surface);
	border-radius: var(--vm-radius-card);
	box-shadow: var(--vm-shadow-lg);
	color: var(--vm-text);
}
.vm-hero__card li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-weight: 600; font-size: var(--vm-text-sm); }
.vm-hero__card .vm-icon { color: var(--vm-blue); }

@media (min-width: 900px) {
	.vm-hero__panel { min-height: 480px; align-items: center; }
	.vm-hero__media {
		position: absolute;
		inset: 0 0 0 38%;
		min-height: 0;
	}
	.vm-hero__media::after {
		background: linear-gradient(90deg, var(--vm-navy) 0%, rgba(7, 27, 59, 0.75) 22%, rgba(7, 27, 59, 0) 55%);
	}
	.vm-hero__content { padding: var(--vm-space-7) var(--vm-space-6); max-width: 780px; }
	.vm-hero h1 { max-width: none; }
	.vm-hero__card { display: block; }
}
@media (min-width: 1200px) {
	.vm-hero__panel::before {
		content: "";
		position: absolute;
		z-index: -1;
		inset: 0 auto 0 30%;
		width: 34%;
		background: linear-gradient(115deg, transparent 0 45%, rgba(21, 84, 209, 0.55) 45% 62%, transparent 62%);
		mix-blend-mode: screen;
		pointer-events: none;
	}
}

/* Trust strip (replaces the mockup's sample statistics) */
.vm-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--vm-space-3);
	margin-top: var(--vm-space-3);
	padding: var(--vm-space-4);
}
.vm-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.vm-trust__item strong { display: block; font-size: var(--vm-text-md); }
.vm-trust__item span { color: var(--vm-text-muted); font-size: var(--vm-text-sm); }
.vm-trust__item .vm-icon { width: 30px; height: 30px; color: var(--vm-blue); stroke-width: 1.75; }

/* Creator card */
.vm-grid { display: grid; gap: var(--vm-space-3); }
.vm-grid--creators { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vm-grid--opps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.vm-creator-card { position: relative; padding: 8px; transition: box-shadow 0.2s, transform 0.2s; }
.vm-creator-card:hover { box-shadow: var(--vm-shadow); transform: translateY(-2px); }
.vm-creator-card__media { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 8px; background: var(--vm-pale); }
.vm-creator-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vm-creator-card__body { padding: 14px 8px 8px; }
.vm-creator-card__name { margin: 0; font-size: var(--vm-text-lg); }
.vm-creator-card__name a { color: inherit; text-decoration: none; }
.vm-creator-card__name a::after { content: ""; position: absolute; inset: 0; }
.vm-creator-card__role { margin: 2px 0 6px; color: var(--vm-text-muted); font-size: var(--vm-text-sm); }
.vm-creator-card__meta { display: flex; align-items: center; gap: var(--vm-space-2); flex-wrap: wrap; font-size: var(--vm-text-sm); color: var(--vm-text-muted); }
.vm-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--vm-text); }
.vm-rating .vm-icon { color: var(--vm-star); fill: var(--vm-star); width: 16px; height: 16px; }
.vm-creator-card .vm-badge { position: absolute; top: 18px; left: 18px; z-index: 1; }

/* Opportunity row card */
.vm-opp-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--vm-space-3);
	padding: var(--vm-space-3) var(--vm-space-4);
	transition: box-shadow 0.2s;
}
.vm-opp-card:hover { box-shadow: var(--vm-shadow); }
.vm-opp-card__body { flex: 1; min-width: 0; }
.vm-opp-card__title { margin: 0; font-size: var(--vm-text-md); }
.vm-opp-card__title a { color: inherit; text-decoration: none; }
.vm-opp-card__title a::after { content: ""; position: absolute; inset: 0; }
.vm-opp-card__budget { margin: 2px 0; color: var(--vm-blue); font-size: var(--vm-text-xl); font-weight: 750; }
.vm-opp-card__by { margin: 0; color: var(--vm-text-muted); font-size: var(--vm-text-sm); }
.vm-opp-card__go {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--vm-pale);
	color: var(--vm-blue);
	flex: none;
}

/* How it works */
.vm-how { display: grid; gap: var(--vm-space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.vm-how__col h3 { font-size: var(--vm-text-xl); display: flex; align-items: center; gap: 12px; margin-bottom: var(--vm-space-3); }
.vm-steps { list-style: none; margin: 0; padding: 0; counter-reset: vm-step; display: grid; gap: var(--vm-space-3); }
.vm-steps li { counter-increment: vm-step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.vm-steps li::before {
	content: counter(vm-step);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--vm-blue);
	color: #fff;
	font-weight: 700;
}
.vm-steps strong { display: block; }
.vm-steps span { color: var(--vm-text-muted); font-size: var(--vm-text-sm); }

.vm-categories { display: flex; flex-wrap: wrap; gap: var(--vm-space-2); }

/* Call-to-action band */
.vm-cta {
	display: grid;
	gap: var(--vm-space-3);
	align-items: center;
	padding: var(--vm-space-5) var(--vm-space-4);
	border-radius: 20px;
	background: linear-gradient(120deg, var(--vm-navy) 0%, var(--vm-navy-700) 60%, var(--vm-blue) 130%);
	color: #fff;
}
.vm-cta h2 { color: #fff; margin: 0; }
.vm-cta p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.85); }
.vm-cta__actions { display: flex; flex-wrap: wrap; gap: var(--vm-space-2); }
@media (min-width: 900px) {
	.vm-cta { grid-template-columns: 1fr auto; padding: var(--vm-space-6); }
}

/* Demo-mode banner */
.vm-demo-flag {
	padding: 8px var(--vm-gutter);
	background: var(--vm-warning-bg);
	color: var(--vm-warning);
	font-size: var(--vm-text-sm);
	font-weight: 600;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.vm-footer {
	margin-top: var(--vm-space-7);
	padding-block: var(--vm-space-6) var(--vm-space-4);
	background: var(--vm-navy);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--vm-text-sm);
}
.vm-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.vm-footer a:hover { color: #fff; text-decoration: underline; }
.vm-footer__grid { display: grid; gap: var(--vm-space-5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.vm-footer__brand { grid-column: 1 / -1; max-width: 360px; }
@media (min-width: 900px) {
	.vm-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
	.vm-footer__brand { grid-column: auto; }
}
.vm-footer__brand img { height: 38px; width: auto; margin-bottom: var(--vm-space-3); }
.vm-footer h2 { color: #fff; font-size: var(--vm-text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--vm-space-3); }
.vm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--vm-space-2);
	margin-top: var(--vm-space-6);
	padding-top: var(--vm-space-3);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   Simple pages, 404, route placeholders
   -------------------------------------------------------------------------- */

.vm-page { padding-block: var(--vm-space-6); }
.vm-page__header { margin-bottom: var(--vm-space-4); }
.vm-prose { max-width: 72ch; }
.vm-prose h2 { margin-top: var(--vm-space-5); }

.vm-state {
	display: grid;
	place-items: center;
	min-height: 60vh;
	padding-block: var(--vm-space-6);
	text-align: center;
}
.vm-state__code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; line-height: 1; color: var(--vm-pale-2); letter-spacing: -0.04em; }
.vm-state h1 { font-size: var(--vm-text-2xl); }
.vm-state p { max-width: 48ch; margin-inline: auto; color: var(--vm-text-muted); }
.vm-state .vm-search { max-width: 480px; margin: var(--vm-space-4) auto; }
.vm-state__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--vm-space-2); }

/* --------------------------------------------------------------------------
   Dashboard shell
   -------------------------------------------------------------------------- */

.vm-app { min-height: 100vh; }
.vm-app__sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 400;
	display: flex;
	flex-direction: column;
	width: var(--vm-sidebar-w);
	background: var(--vm-navy);
	color: #fff;
	transform: translateX(-100%);
	transition: transform 0.2s ease;
}
.admin-bar .vm-app__sidebar { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .vm-app__sidebar { top: 46px; }
}
.vm-app.is-nav-open .vm-app__sidebar { transform: none; box-shadow: var(--vm-shadow-lg); }
.vm-app__brand { display: flex; align-items: center; justify-content: space-between; height: var(--vm-header-h); padding: 0 var(--vm-space-4); }
.vm-app__brand img { height: 34px; width: auto; }
.vm-app__icon-btn.vm-app__close { color: #fff; }
.vm-app__icon-btn.vm-app__close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.vm-app__nav { flex: 1; overflow-y: auto; padding: var(--vm-space-2) var(--vm-space-3) var(--vm-space-4); }
.vm-app__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vm-app__nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 14px;
	border-radius: var(--vm-radius-control);
	color: rgba(255, 255, 255, 0.86);
	font-weight: 500;
	text-decoration: none;
}
.vm-app__nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.vm-app__nav a[aria-current="page"] { background: var(--vm-blue); color: #fff; box-shadow: 0 6px 16px rgba(21, 84, 209, 0.45); }
.vm-app__nav .vm-icon { width: 22px; height: 22px; stroke-width: 1.75; }
.vm-app__nav .vm-count { margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: var(--vm-radius-pill); background: var(--vm-blue); font-size: var(--vm-text-xs); font-weight: 700; text-align: center; }

.vm-app__scrim { position: fixed; inset: 0; z-index: 350; background: rgba(7, 27, 59, 0.5); }
.vm-app__scrim[hidden] { display: none; }

.vm-app__topbar {
	position: sticky;
	top: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	gap: var(--vm-space-2);
	height: var(--vm-header-h);
	padding: 0 var(--vm-gutter);
	background: var(--vm-surface);
	border-bottom: 1px solid var(--vm-border);
}
.admin-bar .vm-app__topbar { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .vm-app__topbar { top: 0; }
}
.vm-app__topbar-logo img { height: 30px; width: auto; }
.vm-app__topbar-spacer { flex: 1; }
.vm-app__icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--vm-radius-control);
	background: none;
	color: var(--vm-text);
	cursor: pointer;
	text-decoration: none;
}
.vm-app__icon-btn:hover { background: var(--vm-pale); color: var(--vm-blue); }
.vm-app__icon-btn .vm-icon { width: 24px; height: 24px; }
.vm-app__dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--vm-danger); border: 2px solid #fff; }

.vm-usermenu__button {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px 6px 6px;
	border: 0;
	border-radius: var(--vm-radius-card);
	background: none;
	font: inherit;
	text-align: left;
	color: var(--vm-text);
	cursor: pointer;
}
.vm-usermenu__button:hover { background: var(--vm-pale); }
.vm-usermenu__name { display: block; font-weight: 700; font-size: var(--vm-text-sm); line-height: 1.2; }
.vm-usermenu__role { display: block; color: var(--vm-text-muted); font-size: var(--vm-text-xs); }
@media (max-width: 599px) {
	.vm-usermenu__text { display: none; }
}

.vm-app__main { padding: var(--vm-space-4) var(--vm-gutter) var(--vm-space-6); }
.vm-app__header { margin-bottom: var(--vm-space-4); }
.vm-app__header h1 { font-size: var(--vm-text-2xl); margin-bottom: 4px; }
.vm-app__header p { margin: 0; color: var(--vm-text-muted); font-size: var(--vm-text-lg); }

.vm-preview-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vm-space-2);
	margin-bottom: var(--vm-space-4);
}
.vm-preview-bar .vm-tabs { border: 0; }

.vm-stats { display: grid; gap: var(--vm-space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: var(--vm-space-3); }
.vm-stat { display: flex; align-items: center; gap: var(--vm-space-3); padding: var(--vm-space-4); }
.vm-stat .vm-icon-tile { width: 56px; height: 56px; }
.vm-stat__value { display: block; font-size: var(--vm-text-2xl); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.vm-stat__label { display: block; color: var(--vm-text-muted); }
@media (max-width: 599px) {
	.vm-stats { grid-template-columns: 1fr 1fr; gap: var(--vm-space-2); }
	.vm-stat { flex-direction: column; align-items: flex-start; gap: 12px; padding: var(--vm-space-3); }
	.vm-stat .vm-icon-tile { width: 44px; height: 44px; }
	.vm-stat__value { font-size: var(--vm-text-xl); }
}

.vm-dash-grid { display: grid; gap: var(--vm-space-3); }
@media (min-width: 1100px) {
	.vm-dash-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
}

.vm-progress-ring { display: grid; place-items: center; margin: var(--vm-space-2) auto var(--vm-space-4); width: 168px; height: 168px; position: relative; }
.vm-progress-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.vm-progress-ring circle { fill: none; stroke-width: 14; }
.vm-progress-ring .vm-ring-track { stroke: var(--vm-pale-2); }
.vm-progress-ring .vm-ring-value { stroke: var(--vm-blue); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.vm-progress-ring strong { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; }

.vm-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vm-checklist li { display: flex; align-items: center; gap: 12px; }
.vm-checklist__box {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--vm-border-strong);
	border-radius: 6px;
	flex: none;
	color: #fff;
}
.vm-checklist li.is-done .vm-checklist__box { background: var(--vm-blue); border-color: var(--vm-blue); }
.vm-checklist__box .vm-icon { width: 16px; height: 16px; stroke-width: 3; }
.vm-checklist a { color: var(--vm-text); text-decoration: none; }
.vm-checklist a:hover { color: var(--vm-blue); text-decoration: underline; }

@media (min-width: 1024px) {
	.vm-app__sidebar { transform: none; }
	.admin-bar .vm-app__sidebar { top: 32px; }
	.vm-app__body { margin-left: var(--vm-sidebar-w); }
	.vm-app__close,
	.vm-app__topbar-logo,
	.vm-app__topbar [data-vm-nav-open] { display: none; }
	.vm-app__main { padding: var(--vm-space-5) var(--vm-space-5) var(--vm-space-6); }
	.vm-app__scrim { display: none; }
}

/* --------------------------------------------------------------------------
   Forms in pages: sign-up, profile editor, settings
   -------------------------------------------------------------------------- */

.vm-h2 { font-size: var(--vm-text-2xl); }
.vm-h3 { font-size: var(--vm-text-lg); margin-bottom: var(--vm-space-3); }
.vm-mt-2 { margin-top: var(--vm-space-2); }
.vm-avatar--xl { width: 112px; height: 112px; font-size: var(--vm-text-xl); }
.vm-icon-tile--lg { width: 64px; height: 64px; margin-inline: auto; }
.vm-icon-tile--lg .vm-icon { width: 30px; height: 30px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
fieldset:disabled .vm-btn { opacity: 0.5; cursor: not-allowed; }
.vm-field > legend { margin-bottom: 6px; }

.vm-app__flash { margin-bottom: var(--vm-space-3); }
.vm-app__header--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--vm-space-3); }
.vm-app__main > .vm-notice { margin-bottom: var(--vm-space-3); }

.vm-form-grid { display: grid; gap: 0 var(--vm-space-3); }
@media (min-width: 700px) {
	.vm-form-grid { grid-template-columns: 1fr 1fr; }
}
.vm-form-section + .vm-form-section { margin-top: var(--vm-space-3); }
.vm-form-section h2 { font-size: var(--vm-text-lg); margin-bottom: var(--vm-space-3); }
.vm-form-narrow { max-width: 760px; }

.vm-editor { display: grid; gap: var(--vm-space-3); align-items: start; }
@media (min-width: 1100px) {
	.vm-editor { grid-template-columns: minmax(0, 1fr) 320px; }
	.vm-sticky { position: sticky; top: calc(var(--vm-header-h) + var(--vm-space-3)); }
}
.vm-editor__actions { display: grid; gap: var(--vm-space-2); margin: var(--vm-space-3) 0 var(--vm-space-2); }
.vm-withdraw { margin-top: var(--vm-space-3); }

.vm-photo-field { display: flex; flex-wrap: wrap; gap: var(--vm-space-3); align-items: center; margin-bottom: var(--vm-space-3); }
.vm-photo-field .vm-field { flex: 1 1 260px; margin: 0; }
.vm-photo-field__preview img,
.vm-photo-field__preview .vm-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; }
.vm-photo-field__preview .vm-avatar--initials { display: grid; place-items: center; }
.vm-input--file { padding: 9px 12px; }

.vm-choice-chips { display: flex; flex-wrap: wrap; gap: var(--vm-space-2); }
.vm-choice-chip { position: relative; cursor: pointer; }
.vm-choice-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vm-choice-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--vm-border-strong);
	border-radius: var(--vm-radius-pill);
	background: var(--vm-surface);
	font-size: var(--vm-text-sm);
	font-weight: 600;
	color: var(--vm-text);
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.vm-choice-chip:hover span { border-color: var(--vm-blue); }
.vm-choice-chip input:checked + span { background: var(--vm-blue); border-color: var(--vm-blue); color: #fff; }
.vm-choice-chip input:focus-visible + span { box-shadow: var(--vm-focus); }
.vm-choice-chip input:disabled + span { opacity: 0.6; cursor: not-allowed; }

.vm-meter { height: 8px; border-radius: var(--vm-radius-pill); background: var(--vm-pale-2); overflow: hidden; margin-bottom: var(--vm-space-2); }
.vm-meter span { display: block; height: 100%; background: var(--vm-blue); border-radius: inherit; }
.vm-missing { margin: 0 0 var(--vm-space-2); padding-left: 1.2em; font-size: var(--vm-text-sm); color: var(--vm-text-muted); }

.vm-settings { display: grid; gap: var(--vm-space-3); max-width: 760px; }
.vm-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--vm-space-2) var(--vm-space-4); margin: 0 0 var(--vm-space-3); }
.vm-dl dt { color: var(--vm-text-muted); font-size: var(--vm-text-sm); }
.vm-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Sign-up */
.vm-auth__layout { display: grid; gap: var(--vm-space-5); align-items: start; max-width: 1040px; margin-inline: auto; }
@media (min-width: 900px) {
	.vm-auth__layout { grid-template-columns: 1fr minmax(0, 520px); padding-top: var(--vm-space-4); }
}
.vm-auth__intro h1 { font-size: var(--vm-text-3xl); }
.vm-auth__points { list-style: none; margin: var(--vm-space-4) 0 0; padding: 0; display: grid; gap: var(--vm-space-3); }
.vm-auth__points li { display: flex; gap: var(--vm-space-2); align-items: flex-start; }
.vm-auth__points .vm-icon { color: var(--vm-success); margin-top: 3px; flex: none; }
.vm-auth__card { max-width: 520px; width: 100%; margin-inline: auto; }
.vm-auth__card--center { text-align: center; }
.vm-auth__card > .vm-notice { margin-bottom: var(--vm-space-3); text-align: left; }
.vm-auth__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--vm-space-2); margin-top: var(--vm-space-4); }
.vm-auth__foot { text-align: center; margin: var(--vm-space-3) 0 0; }

.vm-role-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--vm-space-2); }
.vm-role-option { position: relative; cursor: pointer; }
.vm-role-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vm-role-option__body {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: var(--vm-space-3);
	border: 1.5px solid var(--vm-border-strong);
	border-radius: var(--vm-radius-card);
	background: var(--vm-surface);
	transition: border-color 0.15s, background 0.15s;
}
.vm-role-option__body .vm-icon-tile { width: 40px; height: 40px; margin-bottom: 4px; }
.vm-role-option:hover .vm-role-option__body { border-color: var(--vm-blue); }
.vm-role-option input:checked + .vm-role-option__body { border-color: var(--vm-blue); background: var(--vm-pale); box-shadow: inset 0 0 0 1px var(--vm-blue); }
.vm-role-option input:focus-visible + .vm-role-option__body { box-shadow: var(--vm-focus); }
@media (max-width: 379px) {
	.vm-role-options { grid-template-columns: 1fr; }
}

/* Honeypot: hidden from people, visible to simple bots. */
.vm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Marketplace, public profiles, portfolio and services
   -------------------------------------------------------------------------- */

.vm-mt-3 { margin-top: var(--vm-space-3); }
.vm-mb-3 { margin-bottom: var(--vm-space-3); }
.vm-btn-row { display: flex; flex-wrap: wrap; gap: var(--vm-space-2); align-items: center; }
.vm-text-danger { color: var(--vm-danger); }
.vm-text-danger:hover { color: var(--vm-danger); background: var(--vm-danger-bg); }
.vm-chip.is-active { background: var(--vm-blue); border-color: var(--vm-blue); color: #fff; }

.vm-draft-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vm-space-2) var(--vm-space-3);
	padding: 12px 16px;
	border-radius: var(--vm-radius-control);
	background: var(--vm-pale);
	color: var(--vm-navy);
	font-size: var(--vm-text-sm);
}
.vm-draft-bar > .vm-icon { color: var(--vm-blue); flex: none; }
.vm-draft-bar p { margin: 0; flex: 1 1 280px; }

/* Media tiles (PDF, video) */
.vm-media-tile {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	min-height: 140px;
	border: 0;
	border-radius: 8px;
	background: var(--vm-pale);
	color: var(--vm-blue);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.vm-media-tile .vm-icon { width: 32px; height: 32px; }
.vm-media-tile small { font-weight: 500; color: var(--vm-text-muted); font-size: var(--vm-text-xs); }
.vm-media-tile--youtube,
.vm-media-tile--tiktok,
.vm-media-tile--instagram { background: var(--vm-navy); color: #fff; }
.vm-media-tile--youtube small { color: rgba(255, 255, 255, 0.7); }
.vm-media-tile:hover { filter: brightness(1.05); }
.vm-media-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 8px; display: block; }

/* Dashboard: manage portfolio */
.vm-portfolio-manage { list-style: none; margin: var(--vm-space-3) 0 0; padding: 0; display: grid; gap: var(--vm-space-3); }
.vm-portfolio-manage__item { display: grid; gap: var(--vm-space-3); padding: var(--vm-space-3); }
@media (min-width: 700px) {
	.vm-portfolio-manage__item { grid-template-columns: 200px minmax(0, 1fr) auto; align-items: start; }
}
.vm-portfolio-manage__media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--vm-pale); }
.vm-portfolio-manage__media img { width: 100%; height: 100%; object-fit: cover; }
.vm-portfolio-manage__body p { margin-bottom: 6px; }
.vm-portfolio-manage__actions { display: flex; flex-wrap: wrap; gap: 4px; }

/* Services */
.vm-service-list { display: grid; gap: var(--vm-space-3); margin-top: var(--vm-space-3); }
.vm-service-grid { display: grid; gap: var(--vm-space-3); }
@media (min-width: 800px) {
	.vm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
	.vm-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vm-service.is-paused { opacity: 0.7; }
.vm-service__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--vm-space-3); }
.vm-service__head .vm-h3 { margin-bottom: 4px; }
.vm-service__price { font-size: var(--vm-text-xl); font-weight: 800; color: var(--vm-navy); white-space: nowrap; }
.vm-service__deliverables { list-style: none; margin: 0 0 var(--vm-space-3); padding: 0; display: grid; gap: 6px; font-size: var(--vm-text-sm); }
.vm-service__deliverables li { display: flex; gap: 8px; align-items: flex-start; }
.vm-service__deliverables .vm-icon { color: var(--vm-success); flex: none; margin-top: 2px; width: 16px; height: 16px; }
.vm-service__terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vm-space-2); margin: 0 0 var(--vm-space-2); padding: var(--vm-space-2) 0; border-top: 1px solid var(--vm-border); font-size: var(--vm-text-sm); }
.vm-service__terms dt { color: var(--vm-text-muted); font-size: var(--vm-text-xs); }
.vm-service__terms dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Save button */
.vm-save-form { display: inline-flex; margin: 0; }
.vm-save-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--vm-border-strong);
	border-radius: var(--vm-radius-pill);
	background: var(--vm-surface);
	color: var(--vm-danger);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.vm-save-btn:hover { border-color: var(--vm-danger); background: var(--vm-danger-bg); color: var(--vm-danger); }
.vm-save-btn:focus-visible { outline: none; box-shadow: var(--vm-focus); }
.vm-save-btn.is-saved { background: var(--vm-danger-bg); border-color: var(--vm-danger); }
.vm-save-btn.is-saved .vm-icon { fill: currentColor; }

/* Creator rows (mockup 02) */
.vm-creator-list { display: grid; gap: var(--vm-space-3); }
.vm-creator-row { display: grid; gap: var(--vm-space-3); padding: var(--vm-space-2); }
@media (min-width: 760px) {
	.vm-creator-row { grid-template-columns: 240px minmax(0, 1fr) auto; align-items: center; padding: var(--vm-space-3); }
}
.vm-creator-row__media { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--vm-pale); }
.vm-creator-row__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vm-creator-row__name { margin: 0; font-size: var(--vm-text-xl); }
.vm-creator-row__name a { color: var(--vm-text); text-decoration: none; }
.vm-creator-row__name a:hover { color: var(--vm-blue); }
.vm-creator-row__role { margin: 2px 0 4px; color: var(--vm-text-muted); }
.vm-creator-row__loc { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--vm-space-2); color: var(--vm-text-muted); font-size: var(--vm-text-sm); }
.vm-creator-row__loc .vm-icon { width: 16px; height: 16px; }
.vm-creator-row__side { display: grid; gap: var(--vm-space-2); justify-items: start; }
@media (min-width: 760px) {
	.vm-creator-row__side { justify-items: end; text-align: right; }
}
.vm-creator-row__price { margin: 0; line-height: 1.2; }
.vm-creator-row__price span { display: block; color: var(--vm-text-muted); font-size: var(--vm-text-sm); }
.vm-creator-row__price strong { font-size: var(--vm-text-xl); color: var(--vm-navy); }
.vm-creator-row__actions { display: flex; gap: var(--vm-space-2); align-items: center; }
.vm-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vm-tags li { padding: 4px 12px; border-radius: var(--vm-radius-pill); background: var(--vm-pale); color: var(--vm-blue); font-size: var(--vm-text-xs); font-weight: 600; }

/* Marketplace page */
.vm-market__header { margin-bottom: var(--vm-space-4); }
.vm-market__header h1 { margin-bottom: 4px; }
.vm-market__header p { font-size: var(--vm-text-lg); }
.vm-market__filters { margin-bottom: var(--vm-space-4); }
.vm-market__search { max-width: none; margin-bottom: var(--vm-space-3); }
.vm-market__selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vm-space-2); }
@media (min-width: 900px) {
	.vm-market__selects { display: flex; flex-wrap: wrap; }
	.vm-filter { flex: 0 1 220px; }
}
.vm-filter .vm-select { font-weight: 600; }
.vm-market__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--vm-space-2); margin-top: var(--vm-space-4); }
.vm-market__count { margin: 0; font-weight: 700; }
.vm-sort { display: flex; align-items: center; gap: var(--vm-space-2); font-size: var(--vm-text-sm); color: var(--vm-text-muted); }
.vm-sort .vm-select { width: auto; min-width: 190px; color: var(--vm-text); font-weight: 600; }
.vm-market__pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--vm-space-3); margin-top: var(--vm-space-4); }
.vm-market__pages p { margin: 0; }

/* Public profile (mockup 03) */
.vm-profile-page { padding-bottom: var(--vm-space-7); }
.vm-profile-hero { margin-top: var(--vm-space-3); overflow: hidden; }
.vm-profile-hero__cover { height: 140px; background: linear-gradient(120deg, var(--vm-navy) 0%, var(--vm-navy-700) 55%, var(--vm-blue) 100%); }
@media (min-width: 900px) {
	.vm-profile-hero__cover { height: 200px; }
}
.vm-profile-hero__main { display: grid; gap: var(--vm-space-3); padding: 0 var(--vm-space-3) var(--vm-space-4); }
@media (min-width: 900px) {
	.vm-profile-hero__main { grid-template-columns: 200px minmax(0, 1fr) minmax(240px, 340px); padding: 0 var(--vm-space-5) var(--vm-space-4); align-items: start; }
}
.vm-profile-hero__photo { width: 132px; height: 132px; margin-top: -66px; border-radius: 50%; border: 5px solid var(--vm-surface); background: var(--vm-pale); overflow: hidden; box-shadow: var(--vm-shadow); }
@media (min-width: 900px) {
	.vm-profile-hero__photo { width: 176px; height: 176px; margin-top: -88px; }
}
.vm-profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.vm-profile-hero__identity { padding-top: var(--vm-space-2); }
.vm-profile-hero__identity h1 { font-size: var(--vm-text-2xl); margin-bottom: 4px; }
@media (min-width: 900px) {
	.vm-profile-hero__identity h1 { font-size: 2.25rem; }
}
.vm-profile-hero__headline { margin: 0 0 4px; font-size: var(--vm-text-lg); color: var(--vm-text-muted); }
.vm-profile-hero__loc { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--vm-space-3); color: var(--vm-text-muted); }
.vm-profile-hero__side { display: grid; gap: var(--vm-space-3); padding-top: var(--vm-space-3); }
.vm-profile-hero__actions { display: flex; gap: var(--vm-space-2); }
@media (min-width: 900px) {
	.vm-profile-hero__actions { justify-content: flex-end; }
}
.vm-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--vm-space-2); }
.vm-socials a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: var(--vm-radius-pill); background: var(--vm-pale); color: var(--vm-blue); font-size: var(--vm-text-sm); font-weight: 600; text-decoration: none; }
.vm-socials a:hover { background: var(--vm-pale-2); }
.vm-socials .vm-icon { width: 16px; height: 16px; }
.vm-profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--vm-space-2); margin: 0; }
.vm-profile-facts > div { padding: 12px; border-radius: var(--vm-radius-control); background: var(--vm-bg); }
.vm-profile-facts dt { font-size: var(--vm-text-xs); color: var(--vm-text-muted); }
.vm-profile-facts dd { margin: 2px 0 0; font-weight: 700; }
.vm-profile-tabs { margin: var(--vm-space-4) 0 var(--vm-space-3); position: sticky; top: var(--vm-header-h); z-index: 5; background: var(--vm-bg); }
@media (max-width: 419px) {
	.vm-profile-tabs .vm-tab { padding: 12px 10px; }
}
.vm-profile-section { scroll-margin-top: calc(var(--vm-header-h) + 64px); margin-bottom: var(--vm-space-5); }
.vm-portfolio-filter { margin-bottom: var(--vm-space-3); }
.vm-portfolio-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--vm-space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.vm-portfolio-tile { background: var(--vm-surface); border: 1px solid var(--vm-border); border-radius: var(--vm-radius-card); padding: 8px; }
.vm-portfolio-tile[hidden] { display: none; }
.vm-portfolio-tile > a,
.vm-portfolio-tile > .vm-media-tile { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.vm-portfolio-tile > .vm-media-tile { display: grid; height: auto; min-height: 0; }
.vm-portfolio-tile > .vm-media-frame { aspect-ratio: 4 / 3; }
.vm-portfolio-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.vm-portfolio-tile a:hover img { transform: scale(1.03); }
.vm-portfolio-tile__text { padding: 10px 6px 4px; }
.vm-portfolio-tile__text h3 { font-size: var(--vm-text-md); margin-bottom: 4px; }
.vm-portfolio-tile__text p { margin: 0; font-size: var(--vm-text-sm); color: var(--vm-text-muted); }
.vm-profile-bio { font-size: var(--vm-text-lg); max-width: 70ch; }

/* --------------------------------------------------------------------------
   Opportunities: cards, client management, public detail (mockup 04)
   -------------------------------------------------------------------------- */

.vm-opp-card__meta { margin: 4px 0 0; font-size: var(--vm-text-xs); color: var(--vm-text-muted); }
.vm-opp-mini { display: grid; gap: var(--vm-space-2); }
.vm-opp-mini .vm-opp-card { box-shadow: none; }

.vm-opp-manage { display: grid; gap: var(--vm-space-3); }
.vm-opp-manage__item { display: grid; gap: var(--vm-space-3); }
@media (min-width: 900px) {
	.vm-opp-manage__item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.vm-opp-manage__actions { justify-content: flex-end; }
}
.vm-opp-manage__main .vm-h3 { margin-bottom: 4px; }
.vm-opp-manage__main p { margin-bottom: 4px; }

.vm-back-link { text-decoration: none; font-weight: 600; }
.vm-opp-page .vm-notice { margin-bottom: var(--vm-space-3); }
.vm-opp-layout { display: grid; gap: var(--vm-space-4); align-items: start; }
@media (min-width: 1024px) {
	.vm-opp-layout { grid-template-columns: minmax(0, 1fr) 360px; }
	.vm-opp-layout__side { position: sticky; top: calc(var(--vm-header-h) + var(--vm-space-3)); }
}
.vm-opp-layout__main { display: grid; gap: var(--vm-space-3); min-width: 0; }
.vm-opp-layout__side { display: grid; gap: var(--vm-space-3); }
.vm-opp-head h1 { font-size: var(--vm-text-2xl); margin-bottom: var(--vm-space-3); }
@media (min-width: 900px) {
	.vm-opp-head h1 { font-size: 2.5rem; }
}
.vm-opp-head__by { display: flex; align-items: center; gap: var(--vm-space-2); margin-bottom: var(--vm-space-3); }
.vm-opp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: var(--vm-space-2); }
@media (min-width: 900px) {
	.vm-opp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vm-opp-facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: var(--vm-space-3); }
.vm-opp-facts > div > .vm-icon { grid-row: span 2; width: 28px; height: 28px; color: var(--vm-blue); }
.vm-opp-facts dt { font-size: var(--vm-text-sm); color: var(--vm-text-muted); }
.vm-opp-facts dd { margin: 0; font-weight: 800; color: var(--vm-navy); overflow-wrap: anywhere; }
.vm-opp-brief { font-size: var(--vm-text-lg); max-width: 75ch; }
.vm-opp-lists { display: grid; gap: var(--vm-space-3); }
@media (min-width: 800px) {
	.vm-opp-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vm-opp-apply { display: grid; gap: var(--vm-space-2); }
.vm-opp-apply p { margin: 0; }
.vm-opp-layout__side .vm-small .vm-icon { width: 16px; height: 16px; vertical-align: -3px; }
.vm-opp-editor .vm-form-section + .vm-form-section { margin-top: var(--vm-space-3); }

/* --------------------------------------------------------------------------
   Applications, offers and agreements
   -------------------------------------------------------------------------- */

.vm-applicant-list { display: grid; gap: var(--vm-space-3); }
.vm-applicant__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--vm-space-2) var(--vm-space-3); align-items: center; margin-bottom: var(--vm-space-2); }
@media (min-width: 700px) {
	.vm-applicant__head { grid-template-columns: auto minmax(0, 1fr) auto; }
}
.vm-applicant__head .vm-h3 { margin-bottom: 2px; }
.vm-applicant__head .vm-h3 a { color: inherit; }
.vm-applicant__head p { margin: 0; }
.vm-applicant__price { display: grid; gap: 4px; justify-items: start; grid-column: 1 / -1; }
@media (min-width: 700px) {
	.vm-applicant__price { grid-column: auto; justify-items: end; text-align: right; }
}
.vm-applicant__price strong { font-size: var(--vm-text-xl); color: var(--vm-navy); }
.vm-applicant__pitch { max-width: 75ch; }
.vm-offer-form { margin-top: var(--vm-space-3); padding-top: var(--vm-space-3); border-top: 1px solid var(--vm-border); }
.vm-agreement { display: grid; gap: var(--vm-space-3); max-width: 860px; }
.vm-agreement .vm-dl dd ul { margin: 0; }
.vm-history { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: var(--vm-text-sm); color: var(--vm-text-muted); }

/* --------------------------------------------------------------------------
   Messages (mockup 07): conversation list + thread. On narrow screens only
   one pane shows: the list, or the open conversation with a back button.
   -------------------------------------------------------------------------- */

.vm-messages { display: grid; gap: var(--vm-space-3); min-width: 0; }
.vm-messages__list,
.vm-thread { min-width: 0; overflow: hidden; }
.vm-messages.is-thread-open .vm-messages__list { display: none; }
.vm-messages:not(.is-thread-open) .vm-thread { display: none; }
@media (min-width: 960px) {
	.vm-messages { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: stretch; height: calc(100vh - var(--vm-header-h) - 64px); min-height: 520px; }
	.vm-messages.is-thread-open .vm-messages__list,
	.vm-messages:not(.is-thread-open) .vm-thread { display: flex; }
	.vm-thread__back { display: none !important; }
}
.vm-messages__list { display: flex; flex-direction: column; }
.vm-messages__list-head { padding: var(--vm-space-3); display: grid; gap: var(--vm-space-2); }
.vm-messages__list-head .vm-h2 { margin: 0; }
.vm-search--sm { padding: 2px 8px 2px 12px; box-shadow: none; background: var(--vm-bg); }
.vm-search--sm input { min-height: 40px; }
.vm-conv-list { list-style: none; margin: 0; padding: 0 var(--vm-space-2) var(--vm-space-2); overflow-y: auto; flex: 1; }
.vm-conv { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--vm-radius-card); color: var(--vm-text); text-decoration: none; }
.vm-conv:hover { background: var(--vm-bg); }
.vm-conv[aria-current="true"] { background: var(--vm-pale); }
.vm-conv__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.vm-conv__top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.vm-conv__name { font-weight: 700; color: var(--vm-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-conv__time { flex: none; font-size: var(--vm-text-xs); color: var(--vm-text-subtle); }
.vm-conv__title { font-size: var(--vm-text-sm); color: var(--vm-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-conv__preview { font-size: var(--vm-text-sm); color: var(--vm-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-conv.is-unread .vm-conv__preview { color: var(--vm-text); font-weight: 600; }
.vm-conv__dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--vm-blue); }

.vm-thread { display: flex; flex-direction: column; min-height: 60vh; }
.vm-thread > .vm-state { margin: auto; }
.vm-thread__head { display: flex; align-items: center; gap: 12px; padding: 12px var(--vm-space-3); border-bottom: 1px solid var(--vm-border); }
.vm-thread__who { flex: 1; min-width: 0; }
.vm-thread__who .vm-h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-thread__who a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-thread__body { flex: 1; overflow-y: auto; padding: var(--vm-space-3); background: var(--vm-bg); }
.vm-thread__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vm-thread__more,
.vm-thread__empty { text-align: center; margin: 0 0 var(--vm-space-3); }
.vm-thread__new { display: flex; align-items: center; gap: 8px; color: var(--vm-blue); font-size: var(--vm-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.vm-thread__new::before,
.vm-thread__new::after { content: ""; flex: 1; height: 1px; background: var(--vm-pale-2); }
.vm-thread__seen { text-align: right; margin: 6px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.vm-thread__seen .vm-icon { width: 14px; height: 14px; color: var(--vm-blue); }
.vm-thread__status { margin: 0; padding: 0 var(--vm-space-3); font-size: var(--vm-text-sm); color: var(--vm-text-muted); }
.vm-thread__status:empty { display: none; }
.vm-thread__status.is-error { color: var(--vm-danger); padding-top: 8px; }
.vm-thread__closed { padding: var(--vm-space-3); }

.vm-msg { display: grid; justify-items: start; gap: 4px; max-width: min(85%, 560px); }
.vm-msg--mine { justify-self: end; justify-items: end; }
.vm-msg__bubble { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--vm-surface); box-shadow: var(--vm-shadow-sm); overflow-wrap: anywhere; line-height: 1.5; }
.vm-msg--mine .vm-msg__bubble { border-radius: 14px 14px 4px 14px; background: var(--vm-blue); color: #fff; }
.vm-msg__time { font-size: var(--vm-text-xs); color: var(--vm-text-subtle); }
.vm-msg__file { display: grid; gap: 8px; width: min(300px, 100%); padding: 8px; border-radius: var(--vm-radius-card); background: var(--vm-surface); box-shadow: var(--vm-shadow-sm); max-width: 100%; }
.vm-msg__image img { display: block; max-width: 100%; width: 280px; max-height: 280px; object-fit: cover; border-radius: var(--vm-radius-control); }
.vm-msg__file-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vm-msg__file-type { flex: none; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 6px; background: var(--vm-danger); color: #fff; font-size: 0.625rem; font-weight: 800; }
.vm-msg__file-text { display: grid; min-width: 0; flex: 1; }
.vm-msg__file-name { font-weight: 600; color: var(--vm-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-msg__file-row .vm-app__icon-btn { flex: none; background: var(--vm-pale); color: var(--vm-blue); }

.vm-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; padding: 12px var(--vm-space-3) var(--vm-space-3); border-top: 1px solid var(--vm-border); }
.vm-composer__box { display: flex; align-items: flex-end; gap: 4px; padding: 4px 4px 4px 14px; border: 1px solid var(--vm-border-strong); border-radius: var(--vm-radius-card); background: var(--vm-surface); }
.vm-composer__box:focus-within { border-color: var(--vm-blue); box-shadow: var(--vm-focus); }
.vm-composer__text { flex: 1; min-width: 0; min-height: 44px; max-height: 180px; padding: 10px 0; border: 0; resize: vertical; font: inherit; color: var(--vm-text); background: transparent; }
.vm-composer__text:focus { outline: none; }
.vm-composer__attach { flex: none; }
.vm-composer__attach:focus-within { box-shadow: var(--vm-focus); }
.vm-composer__send { width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.vm-composer__hint,
.vm-composer .vm-error-text { grid-column: 1 / -1; margin: 0; }
.vm-composer.is-sending .vm-composer__send { opacity: 0.6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Project workspace, deliveries and reviews
   -------------------------------------------------------------------------- */

.vm-h4 { font-size: var(--vm-text-md); font-weight: 700; color: var(--vm-navy); margin: 0 0 var(--vm-space-2); }
.vm-project { display: grid; gap: var(--vm-space-3); }
.vm-project > * { margin: 0; }
.vm-project__head { display: flex; align-items: center; justify-content: space-between; gap: var(--vm-space-2); flex-wrap: wrap; }
.vm-project__head .vm-h3 { margin: 0; }
.vm-project__box { padding: var(--vm-space-3); border: 1px solid var(--vm-border); border-radius: var(--vm-radius-card); background: var(--vm-bg); }
.vm-project__box--focus { border-color: var(--vm-pale-2); background: var(--vm-pale); }
.vm-project__box form .vm-field:last-of-type { margin-bottom: var(--vm-space-2); }
.vm-project__pay { margin-left: 8px; }
.vm-project__money { margin: 0; }
.vm-project__more { display: grid; gap: var(--vm-space-2); }
.vm-project__more details,
.vm-project__activity { border-top: 1px solid var(--vm-border); padding-top: var(--vm-space-2); }
.vm-project__more summary,
.vm-project__activity summary { cursor: pointer; font-weight: 600; color: var(--vm-blue); padding: 6px 0; }
.vm-project__more details form { margin-top: var(--vm-space-2); }
.vm-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--vm-space-2); flex-wrap: wrap; }
.vm-progress li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--vm-text-sm); color: var(--vm-text-subtle); }
.vm-progress li + li::before { content: ""; width: 24px; height: 2px; background: var(--vm-border); }
.vm-progress li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--vm-border-strong); font-size: var(--vm-text-xs); font-weight: 700; }
.vm-progress li.is-done { color: var(--vm-navy); font-weight: 600; }
.vm-progress li.is-done span { background: var(--vm-blue); border-color: var(--vm-blue); color: #fff; }
.vm-deliveries { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--vm-space-2); }
.vm-delivery { padding: var(--vm-space-3); border: 1px solid var(--vm-border); border-radius: var(--vm-radius-card); }
.vm-delivery__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.vm-delivery__note { margin: 8px 0; overflow-wrap: anywhere; }
.vm-delivery__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vm-delivery__files a { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.vm-delivery__files .vm-icon { width: 16px; height: 16px; flex: none; }
.vm-stars { border: 0; padding: 0; margin: 0 0 var(--vm-space-3); display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.vm-stars legend { width: 100%; float: left; }
.vm-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vm-stars label { cursor: pointer; color: var(--vm-border-strong); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--vm-radius-control); }
.vm-stars label .vm-icon { width: 28px; height: 28px; }
.vm-stars input:checked ~ label,
.vm-stars label:hover,
.vm-stars label:hover ~ label { color: var(--vm-star); }
.vm-stars label:hover .vm-icon,
.vm-stars input:checked ~ label .vm-icon { fill: currentColor; }
.vm-stars input:focus-visible + label { box-shadow: var(--vm-focus); }
.vm-stars .vm-error-text { width: 100%; }
.vm-star { color: var(--vm-star); fill: currentColor; }
.vm-star--off { color: var(--vm-border-strong); fill: none; }
.vm-rating-line { display: flex; align-items: center; gap: 6px; margin: 0; }
.vm-profile-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--vm-space-3); }
.vm-profile-section__head .vm-h2 { margin: 0; }
.vm-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--vm-space-3); }
.vm-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.vm-review p { margin: 0; overflow-wrap: anywhere; }
.vm-stars-static { display: inline-flex; gap: 2px; }
.vm-stars-static .vm-icon { width: 18px; height: 18px; }
.vm-review__report { margin-top: 8px; }
.vm-review__report summary { cursor: pointer; color: var(--vm-text-muted); }
.vm-review__report form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vm-review__report .vm-select { max-width: 260px; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
