/* Client portal. Builds on the theme's studio design (.vdh). */

.vds {
	--vds-card: #161411;
	--vds-line: rgba(244, 239, 228, 0.1);
}

.vds-signin-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

.vds-notice {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1.1rem;
	border-radius: 12px;
	background: rgba(73, 209, 125, 0.12);
	border: 1px solid rgba(73, 209, 125, 0.35);
	color: var(--vd-ink);
}

.vds-notice-warn {
	background: rgba(255, 77, 36, 0.12);
	border-color: rgba(255, 77, 36, 0.4);
}

.vds-small {
	margin: 1rem 0 0;
	color: var(--vd-muted);
	font-size: 0.9rem;
}

.vds-small a,
.vds-body a,
.vds-contract a,
.vds .vdh-eyebrow a {
	color: var(--vd-ink);
}

/* Project list */
.vds-project-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 1.25rem;
}

.vds-project-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.75rem;
	border-radius: 18px;
	background: var(--vds-card);
	box-shadow: 0 0 0 1px var(--vds-line);
	color: var(--vd-ink);
	text-decoration: none;
	transition: box-shadow 0.3s, transform 0.3s;
}

.vds-project-card:hover {
	color: var(--vd-ink);
	transform: translateY(-3px);
	box-shadow: 0 0 0 1px rgba(255, 77, 36, 0.55);
}

.vds-project-card strong {
	font-family: var(--vd-serif);
	font-weight: 400;
	font-size: 2rem;
	line-height: 1;
}

.vds-project-card small {
	color: var(--vd-muted);
}

/* Progress */
.vds-bar {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: rgba(244, 239, 228, 0.1);
	overflow: hidden;
}

.vds-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--vd-signal);
	transition: width 1s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.vds-bar-lg {
	height: 8px;
	margin-top: 1.25rem;
	max-width: 46rem;
}

.vds-stages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	animation-delay: 0.2s;
}

.vds-stages li span {
	display: inline-block;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--vds-line);
	color: var(--vd-muted);
	font-size: 0.9rem;
}

.vds-stages li.is-done span {
	color: var(--vd-ink);
	border-color: rgba(244, 239, 228, 0.3);
}

.vds-stages li.is-done span::before {
	content: "✓ ";
	color: var(--vd-signal);
}

.vds-stages li.is-current span {
	background: var(--vd-signal);
	border-color: var(--vd-signal);
	color: #120f0c;
	font-weight: 500;
}

/* Layout */
.vds-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	padding-bottom: clamp(4rem, 8vw, 6rem);
}

.vds-side {
	display: grid;
	gap: 1.25rem;
	position: sticky;
	top: 6rem;
}

.vds-h {
	margin: 0 0 1.25rem;
	font-family: var(--vd-serif);
	font-weight: 400;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	letter-spacing: -0.02em;
	color: var(--vd-ink);
}

.vds-h-sm {
	font-size: 1.6rem;
	margin-bottom: 0.9rem;
}

.vds-section,
.vds-attention {
	margin-bottom: 3rem;
}

.vds-card {
	padding: 1.5rem;
	border-radius: 18px;
	background: var(--vds-card);
	box-shadow: 0 0 0 1px var(--vds-line);
}

.vds-attention .vds-card + .vds-card {
	margin-top: 1rem;
}

.vds-card-approval,
.vds-attention .vds-card {
	box-shadow: 0 0 0 1px rgba(255, 77, 36, 0.45);
}

.vds-card h3,
.vds-event h3 {
	margin: 0.6rem 0 0.4rem;
	font-family: var(--vd-serif);
	font-weight: 400;
	font-size: 1.6rem;
	color: var(--vd-ink);
}

.vds-body {
	color: #d6cebf;
	line-height: 1.6;
}

.vds-body p {
	margin: 0 0 0.75rem;
}

.vds-tag {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--vds-line);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vd-muted);
}

.vds-tag-signal {
	border-color: rgba(255, 77, 36, 0.6);
	color: var(--vd-signal);
}

/* Forms */
.vds textarea,
.vds input[type="text"],
.vds input[type="email"] {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(244, 239, 228, 0.16);
	border-radius: 12px;
	background: #0f0e0c;
	color: var(--vd-ink);
	font: inherit;
}

.vds textarea:focus,
.vds input:focus {
	outline: none;
	border-color: var(--vd-signal);
	box-shadow: 0 0 0 3px rgba(255, 77, 36, 0.2);
}

.vds label {
	display: block;
	margin: 0.75rem 0 0.4rem;
	color: var(--vd-muted);
	font-size: 0.9rem;
}

.vds .vdh-actions {
	margin-top: 1rem;
}

.vds button.vdh-btn {
	border: 0;
	font: inherit;
	cursor: pointer;
}

.vds button.vdh-btn-ghost {
	border: 1px solid rgba(244, 239, 228, 0.3);
	background: transparent;
	color: var(--vd-ink);
}

.vds-compose {
	margin-bottom: 1.5rem;
}

.vds-compose-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 0.75rem;
}

.vds-attach {
	position: relative;
	margin: 0 !important;
	cursor: pointer;
}

.vds-attach input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.vds-attach span {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1.1rem;
	border-radius: 999px;
	border: 1px dashed rgba(244, 239, 228, 0.3);
	color: var(--vd-ink);
}

.vds-attach:focus-within span {
	outline: 2px solid var(--vd-signal);
}

.vds-check {
	display: flex !important;
	gap: 0.6rem;
	align-items: flex-start;
	color: var(--vd-ink) !important;
}

.vds-sign .vdh-btn {
	margin-top: 1rem;
}

/* Timeline */
.vds-timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 1.75rem;
	list-style: none;
}

.vds-timeline::before {
	content: "";
	position: absolute;
	left: 0.35rem;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 1px;
	background: var(--vds-line);
}

.vds-event {
	position: relative;
	padding: 0 0 2rem;
}

.vds-event::before {
	content: "";
	position: absolute;
	left: -1.75rem;
	top: 0.35rem;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: #2a2622;
	box-shadow: 0 0 0 4px var(--vd-paper);
}

.vds-event-milestone::before,
.vds-event-approval::before,
.vds-event-paid::before,
.vds-event-contract::before {
	background: var(--vd-signal);
}

.vds-event-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.vds-meta {
	color: var(--vd-muted);
	font-size: 0.85rem;
}

.vds-decision {
	display: inline-block;
	margin: 0.75rem 0 0;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	font-size: 0.85rem;
}

.vds-decision-approved {
	background: rgba(73, 209, 125, 0.14);
	color: #7fe0a4;
}

.vds-decision-changes {
	background: rgba(255, 77, 36, 0.14);
	color: #ff8a6b;
}

/* Files */
.vds-files {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.vds-files a {
	display: block;
	padding: 0.6rem;
	border-radius: 12px;
	border: 1px solid var(--vds-line);
	color: var(--vd-ink);
	text-decoration: none;
	font-size: 0.85rem;
	word-break: break-word;
}

.vds-files a:hover {
	border-color: rgba(255, 77, 36, 0.55);
	color: var(--vd-ink);
}

.vds-files img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 0.5rem;
}

.vds-files small {
	display: block;
	color: var(--vd-muted);
}

.vds-file-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vds-file-list a {
	color: var(--vd-ink);
	word-break: break-word;
}

.vds-file-list small {
	display: block;
	color: var(--vd-muted);
	font-size: 0.8rem;
}

.vds-contract {
	max-height: 18rem;
	overflow: auto;
	padding-right: 0.5rem;
	color: #d6cebf;
	font-size: 0.95rem;
	line-height: 1.6;
}

.vds-signout {
	text-align: center;
}

@media (max-width: 900px) {
	.vds-signin-grid,
	.vds-layout {
		grid-template-columns: 1fr;
	}

	.vds-side {
		position: static;
	}
}

.vds-code code {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #0f0e0c;
	border: 1px solid rgba(244, 239, 228, 0.16);
	color: var(--vd-ink);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	user-select: all;
}
