/*
 * VP Client Area — the client-facing pages.
 *
 * Portable: every colour, font and radius comes from the theme's custom
 * properties when they exist (the Violet Pixels names), with the
 * violets as fallbacks everywhere else. Under the Violet Pixels theme
 * the 1996 look therefore follows automatically, because that mode
 * redefines the same properties; the few [data-mode="1996"] rules at the
 * end only add its bevels. Mobile first: base rules for phones,
 * min-width queries upwards. Colours stay within the palette tokens so
 * both modes keep their AA contrast.
 *
 * Author: Steve Austen, The PCGP.
 */

.vpca {
	--vpca-bg: var(--bg, #12071F);
	--vpca-bg2: var(--bg2, #1E0F33);
	--vpca-line: var(--line, #3E2166);
	--vpca-fg: var(--fg, #F2E9FF);
	--vpca-fg2: var(--fg2, #B9A3D9);
	--vpca-accent: var(--accent, #B14CFF);
	--vpca-on-accent: var(--on-accent, #12071F);
	--vpca-strong: var(--v3, #7F3FD6);
	--vpca-alert: var(--err, #FF8FE0);
	--vpca-radius: var(--radius, 10px);
	--vpca-font: var(--font, system-ui, -apple-system, "Segoe UI", sans-serif);
	color: var(--vpca-fg);
	font-family: var(--vpca-font);
}

/* Fallbacks for sites whose theme has none of these (zero specificity, so a theme's own rules win). */
:where(.vpca) .btn { display: inline-block; padding: 12px 20px; border-radius: var(--vpca-radius); border: 1px solid var(--vpca-line); background: transparent; color: var(--vpca-fg); font: inherit; text-decoration: none; cursor: pointer; line-height: 1.2; }
:where(.vpca) .btn.primary { background: var(--vpca-accent); border-color: var(--vpca-accent); color: var(--vpca-on-accent); }
:where(.vpca) .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.vpca .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; }

.vpca h1 { margin: 0 0 .4em; }
.vpca h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 .7em; }
.vpca h3 { font-size: 1.1rem; margin: 0 0 .25em; }
.vpca p { max-width: 68ch; }
.vpca a { color: var(--vpca-fg); text-underline-offset: 3px; }
/* The theme pads and rules every section; the client area's own sections set their spacing below. */
.vpca-block, .vpca-panel { border-top: 0; }
.vpca-block { padding: 0; }

/* ---------- Small shared parts ---------- */
.vpca-eyebrow, .vpca-kicker { margin: 0 0 8px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--vpca-fg2); }
.vpca-small, .vpca-help, .vpca-meta { font-size: .9rem; color: var(--vpca-fg2); }
.vpca-help { margin: 4px 0 10px; }
.vpca-meta { margin: 0; }
.vpca-card { background: var(--vpca-bg2); border: 1px solid var(--vpca-line); border-radius: var(--vpca-radius); padding: 20px; }
.vpca-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 0; }
.vpca-wide { width: 100%; text-align: center; }
.vpca-narrow { max-width: 640px; }
.vpca-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.vpca-count { display: inline-flex; min-width: 1.6em; height: 1.6em; padding: 0 .45em; align-items: center; justify-content: center; margin-left: 8px; border-radius: 1em; background: var(--vpca-accent); color: var(--vpca-on-accent); font-size: .8rem; vertical-align: .2em; font-weight: 500; }
.vpca-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vpca-empty { color: var(--vpca-fg2); }

.vpca-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.vpca-badge { display: inline-block; padding: 3px 9px; border: 1px solid var(--vpca-line); border-radius: 999px; font-size: .78rem; line-height: 1.4; color: var(--vpca-fg); background: var(--vpca-bg); }
.vpca-badge.is-attention { background: var(--vpca-accent); border-color: var(--vpca-accent); color: var(--vpca-on-accent); }
.vpca-badge.is-overdue { border-color: var(--vpca-alert); color: var(--vpca-fg); box-shadow: inset 3px 0 0 var(--vpca-alert); }
.vpca-badge.is-resolved.state-done::before, .vpca-badge.is-resolved.state-approved::before { content: "\2713\00a0"; }

/* ---------- Notices ---------- */
.vpca-notice { border: 1px solid var(--vpca-strong); border-left-width: 4px; border-radius: var(--vpca-radius); padding: 12px 16px; margin: 0 0 20px; background: var(--vpca-bg2); }
.vpca-notice p, .vpca-notice ul { margin: 0; }
.vpca-notice ul { padding-left: 18px; }
.vpca-notice.is-problem { border-color: var(--vpca-alert); }

/* ---------- Forms ---------- */
.vpca-label { display: block; font-weight: 500; font-size: .98rem; margin: 0 0 4px; }
.vpca-input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--vpca-line); background: var(--vpca-bg); color: var(--vpca-fg); font: inherit; font-size: 1rem; }
.vpca-input:focus { border-color: var(--vpca-strong); }
/* A visible focus ring on everything the keyboard can reach, whatever the host theme does (1.0.1). */
.vpca :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--vpca-accent, var(--vpca-strong)); outline-offset: 2px; }
textarea.vpca-input { resize: vertical; min-height: 6em; }
.vpca-inline { display: grid; gap: 10px; }
.vpca-stack { display: grid; gap: 16px; }
.vpca-stack > p { margin: 0; }
.vpca-field { min-width: 0; }
.vpca-file-input { display: block; width: 100%; font: inherit; font-size: .95rem; color: var(--vpca-fg2); }
.vpca-file-input::file-selector-button { font: inherit; margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--vpca-line); background: var(--vpca-bg); color: var(--vpca-fg); cursor: pointer; }
.vpca-chosen { list-style: none; margin: 6px 0 0; padding: 0; font-size: .88rem; color: var(--vpca-fg2); }
.vpca-chosen li.is-too-big { color: var(--vpca-fg); box-shadow: inset 3px 0 0 var(--vpca-alert); padding-left: 8px; }
.vpca-radios { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.vpca-radios label { display: flex; gap: 10px; align-items: flex-start; }
.vpca-radios input { margin-top: .35em; accent-color: var(--vpca-strong); }
@media (min-width: 560px) { .vpca-inline { grid-template-columns: 1fr auto; } }

/* ---------- Front door ---------- */
.vpca-door { padding: 48px 0 64px; }
.vpca-door-grid { display: grid; gap: 32px; align-items: start; }
.vpca-door-intro h1 { max-width: 16ch; }
.vpca-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.vpca-ticks li { position: relative; padding-left: 30px; color: var(--vpca-fg2); }
.vpca-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; font-size: .8rem; line-height: 20px; text-align: center; border-radius: 50%; background: var(--vpca-accent); color: var(--vpca-on-accent); margin-top: .2em; }
.vpca-signin { margin-bottom: 14px; }
.vpca-signin .vpca-help { margin-top: 0; }
@media (min-width: 900px) {
	.vpca-door { padding: 80px 0 96px; }
	.vpca-door-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
	.vpca-door-form { padding-top: 34px; }
}
.vpca-bar-inline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; }

/* ---------- Project list ---------- */
.vpca-project-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vpca-project-card { display: grid; gap: 8px; height: 100%; text-decoration: none; transition: border-color .15s; }
.vpca-project-card:hover, .vpca-project-card:focus-visible { border-color: var(--vpca-strong); }
.vpca-ref { font-size: .8rem; color: var(--vpca-fg2); letter-spacing: .04em; }
.vpca-project-name { font-size: 1.2rem; font-weight: 500; line-height: 1.25; }
.vpca-project-stage { font-size: .92rem; color: var(--vpca-fg2); }
.vpca-project-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; }

/* ---------- Products (1.1.0) ----------
   One card per product: the name and what it is for, then a list of facts
   (price, dates, next renewal). The next renewal is picked out with the
   accent edge; a cancelled product is quieter. */
.vpca-section-title { margin: 32px 0 6px; }
.vpca-products { margin-top: 40px; }
.vpca-product-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vpca-product { display: grid; gap: 12px; align-content: start; }
.vpca-product-name { font-size: 1.15rem; font-weight: 500; margin: 2px 0 0; }
.vpca-product-detail { margin: 2px 0 0; color: var(--vpca-fg2); font-size: .95rem; overflow-wrap: anywhere; }
.vpca-facts { margin: 0; display: grid; gap: 6px; }
.vpca-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--vpca-line); }
.vpca-facts dt { color: var(--vpca-fg2); font-size: .9rem; }
.vpca-facts dd { margin: 0; text-align: right; font-weight: 500; }
.vpca-facts .is-next { padding-left: 10px; box-shadow: inset 3px 0 0 var(--vpca-accent); }
.vpca-product-note { margin: 0; }
.vpca-product.is-cancelled { opacity: .85; }
.vpca-product.is-cancelled .vpca-product-name { color: var(--vpca-fg2); }
.vpca-products-team { margin-top: 28px; }

/* ---------- Invoices (1.2.0) ----------
   The account table, the invoice document, and print. Status badges use
   the palette only: owed is outlined in the alert colour, paid is quiet. */
.vpca-invoices { margin-top: 32px; }
.vpca-owed { font-size: 1.15rem; font-weight: 500; margin: 4px 0 12px; }
.vpca-owed .vpca-small { display: block; font-weight: 400; }
.vpca-table-wrap { overflow-x: auto; }
.vpca-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.vpca-table th, .vpca-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--vpca-line); vertical-align: top; }
.vpca-table thead th { font-size: .82rem; font-weight: 500; color: var(--vpca-fg2); letter-spacing: .03em; }
.vpca-table tbody th { font-weight: 500; }
.vpca-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vpca-badge.inv-overdue { border-color: var(--vpca-alert); box-shadow: inset 3px 0 0 var(--vpca-alert); }
.vpca-badge.inv-unpaid, .vpca-badge.inv-part { border-color: var(--vpca-strong); }
.vpca-badge.inv-paid { color: var(--vpca-fg2); }
.vpca-badge.inv-paid::before { content: "\2713\00a0"; }
.vpca-badge.inv-void { color: var(--vpca-fg2); text-decoration: line-through; }
/* Narrow screens: each row is a card, each cell labelled from data-label. */
@media (max-width: 640px) {
	.vpca-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.vpca-table, .vpca-table tbody, .vpca-table tr, .vpca-table th, .vpca-table td { display: block; }
	.vpca-table tr { padding: 10px 0; border-bottom: 1px solid var(--vpca-line); }
	.vpca-table th, .vpca-table td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.vpca-table [data-label]::before { content: attr(data-label); color: var(--vpca-fg2); font-weight: 400; text-align: left; }
	.vpca-table .is-num { white-space: normal; }
}

.vpca-invoice-page { padding: 24px 0 64px; }
.vpca-invoice-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; max-width: 860px; margin: 0 auto 16px; }
.vpca-invoice-tools .vpca-badges { margin: 0; }
.vpca-invoice { max-width: 860px; margin: 0 auto; background: var(--vpca-bg2); border: 1px solid var(--vpca-line); border-radius: var(--vpca-radius); padding: 24px; display: grid; gap: 24px; }
.vpca-invoice h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; }
.vpca-invoice h2 { font-size: 1rem; margin: 0 0 6px; color: var(--vpca-fg2); font-weight: 500; }
.vpca-invoice p { margin: 0; }
.vpca-invoice-head { display: grid; gap: 20px; }
.vpca-invoice-business { font-size: 1.2rem; font-weight: 500; margin-bottom: 4px !important; }
.vpca-invoice-from p + p { margin-top: 6px; color: var(--vpca-fg2); }
.vpca-invoice-meta dl, .vpca-invoice-sums, .vpca-invoice-pay dl { margin: 0; display: grid; gap: 4px; }
.vpca-invoice-meta dl > div, .vpca-invoice-sums > div, .vpca-invoice-pay dl > div { display: flex; justify-content: space-between; gap: 16px; }
.vpca-invoice-meta dt, .vpca-invoice-sums dt, .vpca-invoice-pay dt { color: var(--vpca-fg2); }
.vpca-invoice-meta dd, .vpca-invoice-sums dd, .vpca-invoice-pay dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.vpca-invoice-sums { justify-self: end; min-width: min(100%, 320px); }
.vpca-invoice-sums .is-total { border-top: 1px solid var(--vpca-line); padding-top: 6px; font-size: 1.05rem; }
.vpca-invoice-sums .is-due { border-top: 2px solid var(--vpca-accent); padding-top: 6px; font-size: 1.15rem; }
.vpca-invoice-sums .is-due dt { color: var(--vpca-fg); font-weight: 500; }
.vpca-invoice-pay { border: 1px solid var(--vpca-line); border-left: 4px solid var(--vpca-accent); border-radius: var(--vpca-radius); padding: 16px 18px; display: grid; gap: 8px; }
.vpca-invoice-pay dl { max-width: 420px; }
.vpca-invoice-payments ul { margin: 0; padding-left: 18px; }
.vpca-invoice-notes, .vpca-invoice-footer { color: var(--vpca-fg2); }
.vpca-print-only { display: none !important; }
@media (min-width: 700px) {
	.vpca-invoice { padding: 40px; }
	.vpca-invoice-head { grid-template-columns: 1fr auto; align-items: start; }
	.vpca-invoice-meta { min-width: 260px; }
}
[data-mode="1996"] .vpca-invoice, [data-mode="1996"] .vpca-invoice-pay { border-radius: 0; }
[data-mode="1996"] .vpca-invoice { border: 3px solid var(--v5, #F2E9FF); border-right-color: var(--v2, #3E2166); border-bottom-color: var(--v2, #3E2166); }

/* Statements and credit notes (1.3.0). */
.vpca-badge.inv-credited { color: var(--vpca-fg2); }
.vpca-subtitle { font-size: 1rem; margin: 20px 0 6px; }
.vpca-statement-dates { max-width: 860px; margin: 0 auto 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.vpca-statement-dates p { margin: 0; }
.vpca-statement-go { display: flex; flex-wrap: wrap; gap: 8px; }
.vpca-statement-summary { margin: 0; display: grid; gap: 4px; max-width: 360px; }
.vpca-statement-summary > div { display: flex; justify-content: space-between; gap: 16px; }
.vpca-statement-summary dt { color: var(--vpca-fg2); }
.vpca-statement-summary dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.vpca-statement-summary .is-due { font-size: 1.15rem; border-bottom: 2px solid var(--vpca-accent); padding-bottom: 6px; }
.vpca-statement-table tr.is-forward td, .vpca-statement-table tr.is-forward th { color: var(--vpca-fg2); font-style: italic; }
.vpca-statement-table tr.kind-payment td:nth-child(5), .vpca-statement-table tr.kind-credit td:nth-child(5) { color: var(--vpca-fg); }
.vpca-ageing caption { text-align: left; font-size: .9rem; color: var(--vpca-fg2); padding: 0 0 6px; }

/* Print: only the invoice, black on white, whatever the mode. */
@media print {
	body * { visibility: hidden; }
	.vpca-invoice, .vpca-invoice * { visibility: visible; }
	.vpca-invoice { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; border-radius: 0; padding: 0; background: #fff !important; color: #000 !important; }
	.vpca-invoice * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
	.vpca-invoice .vpca-table th, .vpca-invoice .vpca-table td { border-bottom: 1px solid #999; }
	.vpca-invoice-pay { border: 1px solid #999 !important; }
	.vpca-print-only { display: flex !important; }
	.vpca-no-print { display: none !important; }
	@page { margin: 16mm; }
}

/* ---------- Progress meter ---------- */
.vpca-meter { display: block; height: 6px; border-radius: 3px; background: var(--vpca-line); overflow: hidden; }
.vpca-meter > span { display: block; height: 100%; background: var(--vpca-accent); border-radius: inherit; }
.vpca-meter-lg { height: 10px; border-radius: 5px; margin: 6px 0 22px; }

/* ---------- Project header ---------- */
.vpca-topbar { border-bottom: 1px solid var(--vpca-line); font-size: .9rem; }
.vpca-topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.vpca-crumbs { display: flex; gap: 8px; align-items: center; color: var(--vpca-fg2); }
.vpca-crumbs a { color: var(--vpca-fg2); }
.vpca-crumbs [aria-current] { color: var(--vpca-fg); }
.vpca-who { margin: 0; color: var(--vpca-fg2); }
.vpca-banner { background: var(--vpca-bg2); border-bottom: 1px solid var(--vpca-line); box-shadow: inset 4px 0 0 var(--vpca-accent); }
.vpca-banner p { margin: 0; padding: 10px 0; font-size: .92rem; }
.vpca-banner a { margin-left: 6px; }
.vpca-hero { padding: 36px 0 28px; }
.vpca-hero h1 { max-width: 22ch; }
.vpca-hero .lead { margin-bottom: 0; }
@media (min-width: 800px) { .vpca-hero { padding: 56px 0 36px; } }

/* ---------- Stage tracker ---------- */
.vpca-stages { border-top: 1px solid var(--vpca-line); border-bottom: 1px solid var(--vpca-line); padding: 28px 0 32px; background: color-mix(in srgb, var(--vpca-bg2) 60%, transparent); }
.vpca-stages-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.vpca-stages-head h2 { margin: 0; }
.vpca-stages-head p { margin: 0; }
/* Phones: a vertical list. Wider: a row of steps joined by a line. */
.vpca-track { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.vpca-track li { display: flex; align-items: center; gap: 12px; color: var(--vpca-fg2); font-size: .95rem; }
.vpca-step { flex: none; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--vpca-line); background: var(--vpca-bg); font-size: .85rem; font-weight: 500; color: var(--vpca-fg2); }
.vpca-track .is-done .vpca-step { background: var(--vpca-strong); border-color: var(--vpca-strong); color: #F2E9FF; }
.vpca-track .is-done { color: var(--vpca-fg); }
.vpca-track .is-current { color: var(--vpca-fg); font-weight: 500; }
.vpca-track .is-current .vpca-step { background: var(--vpca-accent); border-color: var(--vpca-accent); color: var(--vpca-on-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vpca-accent) 30%, transparent); }
@media (min-width: 760px) {
	.vpca-track { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
	.vpca-track li { flex-direction: column; align-items: flex-start; gap: 8px; position: relative; padding-right: 8px; font-size: .9rem; }
	.vpca-track li::after { content: ""; position: absolute; top: 15px; left: 40px; right: 8px; height: 2px; background: var(--vpca-line); }
	.vpca-track li.is-done::after { background: var(--vpca-strong); }
	.vpca-track li:last-child::after { display: none; }
}
.vpca-now { display: grid; gap: 16px; }
.vpca-now > div { background: var(--vpca-bg2); border: 1px solid var(--vpca-line); border-radius: var(--vpca-radius); padding: 16px 18px; }
.vpca-now > div:first-child { border-color: var(--vpca-strong); box-shadow: inset 4px 0 0 var(--vpca-accent); }
.vpca-now p { margin: 0; font-size: .98rem; color: var(--vpca-fg2); }
.vpca-now .vpca-kicker { margin-bottom: 2px; font-size: .78rem; }
.vpca-now .vpca-now-name { color: var(--vpca-fg); font-weight: 500; font-size: 1.1rem; margin-bottom: 4px; }
@media (min-width: 760px) { .vpca-now { grid-template-columns: 1fr 1fr; } }

/* ---------- Main layout ---------- */
.vpca-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
.vpca-main, .vpca-side { min-width: 0; }
.vpca-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) {
	.vpca-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 40px; }
}
.vpca-block { margin: 0 0 40px; }

/* ---------- Waiting on you ---------- */
.vpca-ask { margin: 0 0 16px; border-color: var(--vpca-strong); box-shadow: inset 4px 0 0 var(--vpca-accent); }
.vpca-ask.is-overdue { box-shadow: inset 4px 0 0 var(--vpca-alert); }
.vpca-ask .vpca-body { margin: 12px 0; }
.vpca-ask form.vpca-answer { margin-top: 16px; }
.vpca-ask > form.vpca-answer:not(.vpca-stack) { display: inline-block; margin-right: 8px; }
.vpca-more { display: inline-block; margin-top: 16px; vertical-align: top; }
.vpca-more[open] { display: block; }
.vpca-more > summary { list-style: none; }
.vpca-more > summary::-webkit-details-marker { display: none; }
.vpca-more[open] > summary { margin-bottom: 4px; }
.vpca-signin-note { margin: 14px 0 0; }

/* ---------- Timeline ---------- */
.vpca-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.vpca-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--vpca-line); }
.vpca-entry { position: relative; padding: 0 0 26px 34px; }
.vpca-entry .vpca-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--vpca-bg); border: 2px solid var(--vpca-strong); }
.vpca-entry.is-client .vpca-dot { border-color: var(--vpca-fg2); }
.vpca-kind-stage .vpca-dot { background: var(--vpca-accent); border-color: var(--vpca-accent); }
.vpca-entry article { background: var(--vpca-bg2); border: 1px solid var(--vpca-line); border-radius: var(--vpca-radius); padding: 16px 18px; }
.vpca-entry.is-client article { background: transparent; }
.vpca-kind-stage article { border-color: var(--vpca-strong); }
.vpca-body { font-size: 1rem; }
.vpca-body > :last-child { margin-bottom: 0; }
.vpca-body p { max-width: 70ch; }
.vpca-body img { border-radius: 6px; }
.vpca-entry .vpca-body { margin-top: 10px; }
.vpca-replies { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.vpca-reply { border-left: 2px solid var(--vpca-strong); padding: 2px 0 2px 14px; }
.vpca-reply p { margin: 4px 0 0; }

/* ---------- Files ---------- */
.vpca-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vpca-file { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--vpca-line); border-radius: 8px; text-decoration: none; background: var(--vpca-bg); }
.vpca-file:hover, .vpca-file:focus-visible { border-color: var(--vpca-strong); }
.vpca-file-ext { grid-row: 1 / 3; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 6px; background: var(--vpca-accent); color: var(--vpca-on-accent); font-size: .7rem; font-weight: 500; letter-spacing: .04em; }
.vpca-file-name { font-size: .95rem; overflow-wrap: anywhere; }
.vpca-file-meta { font-size: .8rem; color: var(--vpca-fg2); }
.vpca-files.is-compact .vpca-file { padding: 8px 10px; }
.vpca-files.is-compact .vpca-file-ext { width: 34px; height: 34px; font-size: .62rem; }
.vpca-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vpca-thumbs a { display: block; border: 1px solid var(--vpca-line); border-radius: 8px; overflow: hidden; text-decoration: none; background: var(--vpca-bg); }
.vpca-thumbs a:hover, .vpca-thumbs a:focus-visible { border-color: var(--vpca-strong); }
.vpca-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vpca-thumb-name { display: block; padding: 6px 8px; font-size: .78rem; color: var(--vpca-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Side panels ---------- */
.vpca-panel { padding: 18px; }
.vpca-panel h2 { font-size: 1rem; margin: 0 0 12px; letter-spacing: .01em; }
.vpca-facts { margin: 0; display: grid; gap: 8px; }
.vpca-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.vpca-facts dt { color: var(--vpca-fg2); }
.vpca-facts dd { margin: 0; text-align: right; font-weight: 500; }
.vpca-facts .is-total { border-top: 1px solid var(--vpca-line); padding-top: 8px; }
.vpca-contact-name { margin: 0 0 6px; font-weight: 500; }
.vpca-copy { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.vpca-copy .vpca-input { font-size: .8rem; padding: 10px; }
.vpca-copy .btn { padding: 10px 14px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.vpca-project-card { transition: none; }
}

/* ---------- 1996 mode: the theme's bevels ---------- */
[data-mode="1996"] .vpca-facts > div { border-top-style: dotted; }
[data-mode="1996"] .vpca-card, [data-mode="1996"] .vpca-entry article, [data-mode="1996"] .vpca-now > div { border: 3px solid var(--v5, #F2E9FF); border-right-color: var(--v2, #3E2166); border-bottom-color: var(--v2, #3E2166); box-shadow: none; }
[data-mode="1996"] .vpca-ask, [data-mode="1996"] .vpca-now > div:first-child { border-left: 6px solid var(--v2, #3E2166); }
[data-mode="1996"] .vpca-badge, [data-mode="1996"] .vpca-count, [data-mode="1996"] .vpca-step, [data-mode="1996"] .vpca-entry .vpca-dot { border-radius: 0; }
[data-mode="1996"] .vpca-input { border: 3px solid var(--v2, #3E2166); border-right-color: var(--v5, #F2E9FF); border-bottom-color: var(--v5, #F2E9FF); background: #fff; border-radius: 0; }
[data-mode="1996"] .vpca-meter, [data-mode="1996"] .vpca-meter > span { border-radius: 0; }
[data-mode="1996"] .vpca-track .is-current .vpca-step { box-shadow: none; outline: 3px solid var(--v2, #3E2166); }
[data-mode="1996"] .vpca-stages { background: var(--v5, #F2E9FF); }

/* ---------- Your details (1.5.0) ---------- */
.vpca-narrow { max-width: 760px; }
.vpca-details-list { margin: 0; display: grid; gap: 10px; }
.vpca-details-list > div { display: grid; gap: 2px 16px; }
.vpca-details-list dt { font-size: .82rem; color: var(--vpca-fg2); letter-spacing: .03em; }
.vpca-details-list dd { margin: 0; }
@media (min-width: 560px) { .vpca-details-list > div { grid-template-columns: 160px 1fr; } }
.vpca-details-form { margin-top: 20px; }
.vpca-fieldset { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.vpca-fieldset legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.vpca-fieldset > p { margin: 0; }
.vpca-two { display: grid; gap: 14px; }
@media (min-width: 560px) { .vpca-two { grid-template-columns: 1fr 1fr; } }
.vpca-static { display: block; padding: 12px 0 2px; }
.vpca-field .vpca-help { display: block; margin-top: 4px; }
