/**
 * PromptVault front end.
 *
 * All colours are custom properties. The defaults below are deliberately
 * neutral so the library looks correct on any theme out of the box; the
 * settings screen overrides them when the admin picks custom colours.
 */

.pvlt {
	/* Working defaults. Never currentColor — that collapses badges. */
	--pvlt-ink: #1f2430;
	--pvlt-bg: transparent;
	--pvlt-card: #ffffff;
	--pvlt-line: rgba(31, 36, 48, 0.14);
	--pvlt-muted: rgba(31, 36, 48, 0.62);
	--pvlt-accent: #5b3fd6;
	--pvlt-accent-soft: rgba(91, 63, 214, 0.1);
	--pvlt-pop: #f5b301;
	--pvlt-free: #0e9e7e;
	--pvlt-free-soft: rgba(14, 158, 126, 0.12);
	--pvlt-on-ink: #ffffff;
	--pvlt-radius: 16px;
	--pvlt-cols: 3;
	--pvlt-hue: 265;

	container-type: inline-size;
	color: inherit;
}

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

/* ─────────── heading ─────────── */

.pvlt-hero {
	margin: 0 0 1.8em;
	padding-left: 18px;
	border-left: 5px solid var(--pvlt-pop);
}

.pvlt-hero-title {
	margin: 0 0 0.3em;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.pvlt-hero-sub {
	margin: 0;
	color: var(--pvlt-muted);
	max-width: 58ch;
}

.pvlt-hero-stats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 14px 0 0;
	font-size: 0.8rem;
}

.pvlt-stat {
	background: var(--pvlt-accent-soft);
	color: var(--pvlt-accent);
	border-radius: 999px;
	padding: 5px 13px;
	font-weight: 600;
}

.pvlt-stat strong {
	font-weight: 800;
}

.pvlt-stat-free {
	background: var(--pvlt-free-soft);
	color: var(--pvlt-free);
}

/* ─────────── controls ─────────── */

.pvlt-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.pvlt-search {
	flex: 1 1 220px;
	min-width: 0;
	border: 2px solid var(--pvlt-line);
	border-radius: 12px;
	padding: 11px 14px;
	font: inherit;
	font-size: 15px;
	background: var(--pvlt-card);
	color: inherit;
}

.pvlt-search:focus {
	outline: none;
	border-color: var(--pvlt-accent);
}

.pvlt-seg {
	display: flex;
	border: 2px solid var(--pvlt-line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--pvlt-card);
}

.pvlt-seg button {
	border: 0;
	background: none;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pvlt-muted);
	cursor: pointer;
}

.pvlt-seg button.is-on {
	background: var(--pvlt-ink);
	color: var(--pvlt-on-ink);
}

.pvlt-chips {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.pvlt-chip {
	border: 2px solid var(--pvlt-line);
	background: var(--pvlt-card);
	border-radius: 999px;
	padding: 6px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pvlt-muted);
	cursor: pointer;
}

.pvlt-chip.is-on {
	background: var(--pvlt-accent);
	border-color: var(--pvlt-accent);
	color: var(--pvlt-on-ink);
}

.pvlt-count {
	font-size: 14px;
	color: var(--pvlt-muted);
	margin: 12px 0;
}

/* ─────────── grid ─────────── */

.pvlt-grid {
	display: grid;
	grid-template-columns: repeat(var(--pvlt-cols), minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 2em;
}

/* Each category gets its own hue so a full grid reads as a set. */
.pvlt-card {
	--pvlt-thumb-bg: hsl(var(--pvlt-hue) 62% 95%);
	--pvlt-thumb-fg: #ffffff;
	--pvlt-thumb-ink: hsl(var(--pvlt-hue) 45% 24%);
	--pvlt-thumb-line: hsl(var(--pvlt-hue) 40% 87%);
	--pvlt-thumb-accent: hsl(var(--pvlt-hue) 58% 52%);
	--pvlt-thumb-pop: hsl(var(--pvlt-hue) 82% 62%);
	--pvlt-thumb-fade: hsla(var(--pvlt-hue), 30%, 40%, 0.35);

	position: relative;
	background: var(--pvlt-card);
	border: 2px solid var(--pvlt-line);
	border-radius: var(--pvlt-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pvlt-card:hover,
.pvlt-card:focus-visible {
	transform: translateY(-5px);
	border-color: var(--pvlt-ink);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
	text-decoration: none;
}

.pvlt-card[hidden] {
	display: none;
}

.pvlt-card::after {
	content: attr(data-hint);
	position: absolute;
	right: 14px;
	bottom: 14px;
	background: var(--pvlt-ink);
	color: var(--pvlt-on-ink);
	font-size: 0.7rem;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.pvlt-card:hover::after,
.pvlt-card:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
}

.pvlt-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--pvlt-thumb-bg);
}

.pvlt-thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(
		120% 90% at 88% 6%,
		hsla(var(--pvlt-hue), 70%, 70%, 0.28),
		transparent 62%
	);
}

.pvlt-thumb-svg,
.pvlt-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pvlt-badge {
	position: absolute;
	top: 11px;
	left: 11px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: 7px;
	z-index: 3;
}

.pvlt-badge.is-free {
	background: var(--pvlt-free);
	color: #ffffff;
}

.pvlt-badge.is-pro {
	background: var(--pvlt-ink);
	color: var(--pvlt-pop);
}

.pvlt-lockmark {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: 2;
}

.pvlt-lockmark > span {
	background: var(--pvlt-pop);
	color: var(--pvlt-ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 7px 20px;
	border-radius: 3px;
	transform: rotate(-5deg);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* locked treatments */

.pvlt-lock-seal .is-locked .pvlt-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: repeating-linear-gradient(
		48deg,
		rgba(20, 14, 32, 0.56) 0 13px,
		rgba(20, 14, 32, 0.34) 13px 26px
	);
}

.pvlt-lock-blur .is-locked .pvlt-thumb-svg,
.pvlt-lock-blur .is-locked .pvlt-thumb-img {
	filter: blur(7px);
	transform: scale(1.12);
}

.pvlt-lock-blur .is-locked .pvlt-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(20, 14, 32, 0.2);
}

.pvlt-lock-icon .is-locked .pvlt-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(20, 14, 32, 0.5);
}

.pvlt-lock-icon .pvlt-lockmark > span {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	padding: 0;
	font-size: 20px;
	transform: none;
}

.pvlt-body {
	padding: 15px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pvlt-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.25;
	color: inherit;
}

.pvlt-excerpt {
	margin: 0;
	font-size: 0.875rem;
	color: var(--pvlt-muted);
	flex: 1;
}

.pvlt-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 0.75rem;
}

.pvlt-model {
	background: var(--pvlt-accent-soft);
	color: var(--pvlt-accent);
	padding: 3px 9px;
	border-radius: 6px;
	font-weight: 700;
}

.pvlt-cat {
	color: var(--pvlt-muted);
}

.pvlt-empty,
.pvlt-noresults {
	color: var(--pvlt-muted);
	padding: 1.4em 0;
}

/* ─────────── pricing strip ─────────── */

.pvlt-pricing {
	position: relative;
	overflow: hidden;
	background: var(--pvlt-ink);
	color: var(--pvlt-on-ink);
	border-radius: var(--pvlt-radius);
	padding: 28px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 2em;
}

.pvlt-pricing::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -80px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--pvlt-pop);
	opacity: 0.13;
	pointer-events: none;
}

.pvlt-pricing > * {
	position: relative;
}

.pvlt-pricing h3 {
	margin: 0 0 6px;
	color: inherit;
}

.pvlt-pricing p {
	margin: 0;
	opacity: 0.72;
	max-width: 48ch;
}

.pvlt-pricing-action {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.pvlt-price {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.pvlt-price small {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.65;
	margin-top: 5px;
}

/* ─────────── buttons ─────────── */

.pvlt-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 2px solid var(--pvlt-line);
	background: var(--pvlt-card);
	color: var(--pvlt-ink);
	border-radius: 11px;
	padding: 12px 20px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.pvlt-btn:hover {
	text-decoration: none;
	border-color: var(--pvlt-ink);
}

.pvlt-btn-accent {
	background: var(--pvlt-accent);
	border-color: var(--pvlt-accent);
	color: var(--pvlt-on-ink);
}

.pvlt-btn-accent:hover {
	border-color: var(--pvlt-accent);
	filter: brightness(0.94);
}

.pvlt-btn-pop {
	background: var(--pvlt-pop);
	border-color: var(--pvlt-pop);
	color: var(--pvlt-ink);
}

.pvlt-btn-pop:hover {
	border-color: var(--pvlt-pop);
	filter: brightness(0.94);
}

/* ─────────── single prompt page ─────────── */

.pvlt-single {
	margin: 0 0 2em;
}

.pvlt-back {
	display: inline-block;
	margin-bottom: 1.2em;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pvlt-muted);
	text-decoration: none;
}

.pvlt-back:hover {
	color: var(--pvlt-accent);
}

.pvlt-single-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 1.2em;
	font-size: 0.8rem;
}

.pvlt-single-lede {
	font-size: 1.05rem;
	color: var(--pvlt-muted);
	max-width: 66ch;
	margin: 0 0 1.6em;
}

.pvlt-panel {
	border: 2px solid var(--pvlt-line);
	border-radius: var(--pvlt-radius);
	overflow: hidden;
	background: var(--pvlt-card);
	margin-bottom: 1.4em;
}

.pvlt-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	border-bottom: 2px solid var(--pvlt-line);
	background: var(--pvlt-accent-soft);
}

.pvlt-panel-label {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pvlt-accent);
}

.pvlt-pre {
	background: var(--pvlt-ink);
	color: var(--pvlt-on-ink);
	padding: 22px;
	margin: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85rem;
	line-height: 1.75;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-x: auto;
}

.pvlt-locked-panel {
	padding: 40px 24px;
	text-align: center;
	background: var(--pvlt-accent-soft);
	border: 2px dashed var(--pvlt-line);
	border-radius: var(--pvlt-radius);
	margin-bottom: 1.6em;
}

.pvlt-locked-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 14px;
	background: var(--pvlt-pop);
	color: var(--pvlt-ink);
	display: grid;
	place-items: center;
	font-size: 24px;
	transform: rotate(-5deg);
}

.pvlt-locked-panel strong {
	display: block;
	font-size: 1.2rem;
	margin-bottom: 8px;
}

.pvlt-locked-panel p {
	color: var(--pvlt-muted);
	max-width: 44ch;
	margin: 0 auto 20px;
}

.pvlt-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 1.8em;
}

.pvlt-share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 16px 0;
	border-top: 1px solid var(--pvlt-line);
	border-bottom: 1px solid var(--pvlt-line);
	margin-bottom: 2em;
}

.pvlt-share-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--pvlt-muted);
	margin-right: 4px;
}

.pvlt-share a,
.pvlt-share button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 2px solid var(--pvlt-line);
	background: var(--pvlt-card);
	color: var(--pvlt-muted);
	border-radius: 9px;
	padding: 7px 13px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.pvlt-share a:hover,
.pvlt-share button:hover {
	border-color: var(--pvlt-accent);
	color: var(--pvlt-accent);
	text-decoration: none;
}

.pvlt-related-title {
	font-size: 1.1rem;
	margin: 0 0 1em;
}

.pvlt-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%) translateY(16px);
	background: #16101f;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 11px;
	font-size: 0.875rem;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 100000;
}

.pvlt-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ─────────── focus and motion ─────────── */

.pvlt :focus-visible {
	outline: 3px solid var(--pvlt-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pvlt-card,
	.pvlt-toast,
	.pvlt-card::after {
		transition: none;
	}

	.pvlt-card:hover {
		transform: none;
	}
}

/* ─────────── responsive ───────────
   Container thresholds are measured against realistic theme content widths,
   so a 700px content area still honours a three-column setting. */

@container (max-width: 620px) {
	.pvlt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 430px) {
	.pvlt-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Fallback for browsers without container query support. */
@supports not (container-type: inline-size) {
	@media (max-width: 900px) {
		.pvlt-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	@media (max-width: 600px) {
		.pvlt-grid {
			grid-template-columns: minmax(0, 1fr);
		}
	}
}

@media (max-width: 600px) {
	.pvlt-pricing {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px;
	}

	.pvlt-pre {
		padding: 16px;
		font-size: 0.8rem;
	}

	.pvlt-actions .pvlt-btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ═══════════════ LIBRARY TEMPLATES ═══════════════ */

/* — List: dense rows, small thumbnails — */

.pvlt-lib-list .pvlt-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.pvlt-lib-list .pvlt-card {
	flex-direction: row;
	align-items: stretch;
}

.pvlt-lib-list .pvlt-thumb {
	flex: 0 0 160px;
	aspect-ratio: auto;
}

.pvlt-lib-list .pvlt-card::after {
	display: none;
}

.pvlt-lib-list .pvlt-body {
	padding: 16px 18px;
}

/* — Magazine: the first prompt runs large — */

@container (min-width: 560px) {
	.pvlt-lib-magazine .pvlt-grid > .pvlt-card:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.pvlt-lib-magazine .pvlt-grid > .pvlt-card:first-child .pvlt-title {
		font-size: 1.6rem;
	}

	.pvlt-lib-magazine .pvlt-grid > .pvlt-card:first-child .pvlt-excerpt {
		font-size: 1rem;
	}

	.pvlt-lib-magazine .pvlt-grid > .pvlt-card:first-child .pvlt-body {
		padding: 22px 24px 24px;
	}
}

/* — Minimal: no thumbnails, a coloured rule per category — */

.pvlt-lib-minimal .pvlt-grid {
	gap: 26px 22px;
}

.pvlt-lib-minimal .pvlt-card {
	background: transparent;
	border: 0;
	border-top: 4px solid hsl(var(--pvlt-hue) 58% 52%);
	border-radius: 0;
	padding-top: 4px;
	overflow: visible;
}

.pvlt-lib-minimal .pvlt-card:hover {
	transform: none;
	box-shadow: none;
}

.pvlt-lib-minimal .pvlt-card:hover .pvlt-title {
	color: var(--pvlt-accent);
}

.pvlt-lib-minimal .pvlt-card::after {
	display: none;
}

.pvlt-lib-minimal .pvlt-thumb {
	aspect-ratio: auto;
	background: none;
	padding-top: 14px;
}

.pvlt-lib-minimal .pvlt-thumb-svg,
.pvlt-lib-minimal .pvlt-thumb-img,
.pvlt-lib-minimal .pvlt-thumb::before,
.pvlt-lib-minimal .pvlt-thumb::after {
	display: none;
}

.pvlt-lib-minimal .pvlt-badge,
.pvlt-lib-minimal .pvlt-lockmark {
	position: static;
	display: inline-block;
}

.pvlt-lib-minimal .pvlt-lockmark > span {
	transform: none;
	box-shadow: none;
	font-size: 0.62rem;
	padding: 4px 10px;
}

.pvlt-lib-minimal .pvlt-body {
	padding: 10px 0 0;
}

.pvlt-lib-minimal .pvlt-title {
	font-size: 1.3rem;
	transition: color 0.15s ease;
}

/* — Notes: tilted paper in category colours — */

.pvlt-lib-notes .pvlt-grid {
	gap: 26px;
}

.pvlt-lib-notes .pvlt-card {
	border: 0;
	background: hsl(var(--pvlt-hue) 78% 94%);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
}

.pvlt-lib-notes .pvlt-grid > .pvlt-card:nth-child(odd) {
	transform: rotate(-1.2deg);
}

.pvlt-lib-notes .pvlt-grid > .pvlt-card:nth-child(even) {
	transform: rotate(1deg);
}

.pvlt-lib-notes .pvlt-card:hover {
	transform: rotate(0deg) translateY(-5px);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.pvlt-lib-notes .pvlt-thumb {
	aspect-ratio: 16 / 7;
}

/* ═══════════════ PROMPT PAGE TEMPLATES ═══════════════ */

.pvlt-single-layout {
	display: block;
}

.pvlt-window {
	display: none;
}

/* — Centered — */

.pvlt-sgl-centered .pvlt-single-layout {
	max-width: 720px;
	margin: 0 auto;
}

.pvlt-sgl-centered .pvlt-single-head {
	text-align: center;
}

.pvlt-sgl-centered .pvlt-single-meta,
.pvlt-sgl-centered .pvlt-actions,
.pvlt-sgl-centered .pvlt-share {
	justify-content: center;
}

.pvlt-sgl-centered .pvlt-single-lede {
	margin-left: auto;
	margin-right: auto;
}

/* — Split: sticky sidebar — */

@media (min-width: 860px) {
	.pvlt-sgl-split .pvlt-single-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 34px;
		align-items: start;
	}

	.pvlt-sgl-split .pvlt-single-aside {
		position: sticky;
		top: 32px;
	}

	.pvlt-sgl-split .pvlt-share {
		flex-direction: column;
		align-items: stretch;
		border: 2px solid var(--pvlt-line);
		border-radius: var(--pvlt-radius);
		padding: 16px;
	}

	.pvlt-sgl-split .pvlt-share a,
	.pvlt-sgl-split .pvlt-share button {
		justify-content: center;
	}
}

/* — Banner — */

.pvlt-sgl-banner .pvlt-single-head {
	background: hsl(var(--pvlt-hue) 62% 95%);
	border-left: 6px solid hsl(var(--pvlt-hue) 58% 52%);
	border-radius: var(--pvlt-radius);
	padding: 30px 32px;
	margin-bottom: 26px;
}

.pvlt-sgl-banner .pvlt-single-lede {
	margin-bottom: 0;
}

/* — Terminal — */

.pvlt-sgl-terminal .pvlt-panel {
	border-color: var(--pvlt-ink);
	background: var(--pvlt-ink);
}

.pvlt-sgl-terminal .pvlt-panel-head {
	background: rgba(255, 255, 255, 0.06);
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.pvlt-sgl-terminal .pvlt-panel-label {
	color: rgba(255, 255, 255, 0.62);
}

.pvlt-sgl-terminal .pvlt-window {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ff5f57;
	box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
	margin-right: 40px;
}

/* ═══════════════ template responsive ═══════════════ */

@media (max-width: 600px) {
	.pvlt-lib-list .pvlt-thumb {
		flex-basis: 104px;
	}

	.pvlt-lib-list .pvlt-body {
		padding: 12px 14px;
	}

	.pvlt-lib-notes .pvlt-grid > .pvlt-card {
		transform: none;
	}
}

/* ═══════════════ CONSOLE: dark cards ═══════════════ */

.pvlt-lib-console .pvlt-card {
	background: var(--pvlt-ink);
	border-color: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.pvlt-lib-console .pvlt-card:hover {
	border-color: var(--pvlt-pop);
}

.pvlt-lib-console .pvlt-title {
	color: #ffffff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.98rem;
}

.pvlt-lib-console .pvlt-excerpt,
.pvlt-lib-console .pvlt-cat {
	color: rgba(255, 255, 255, 0.62);
}

.pvlt-lib-console .pvlt-model {
	background: rgba(255, 255, 255, 0.12);
	color: var(--pvlt-pop);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pvlt-lib-console .pvlt-thumb {
	background: rgba(255, 255, 255, 0.05);
}

.pvlt-lib-console .pvlt-thumb::before {
	opacity: 0.35;
}

.pvlt-lib-console .pvlt-card::after {
	background: var(--pvlt-pop);
	color: var(--pvlt-ink);
}

.pvlt-lib-console .pvlt-search,
.pvlt-lib-console .pvlt-seg,
.pvlt-lib-console .pvlt-chip {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13.5px;
}

/* ═══════════════ design-level cohesion ═══════════════ */

/* Editorial: more air, a heavier rule under the heading. */
.pvlt-lib-magazine .pvlt-hero,
.pvlt-sgl-banner .pvlt-back {
	border-left-width: 7px;
}

.pvlt-lib-magazine .pvlt-hero-title {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

/* Minimal: drop the pill stats and soften the rule. */
.pvlt-lib-minimal .pvlt-hero {
	border-left: 0;
	padding-left: 0;
	border-bottom: 2px solid var(--pvlt-line);
	padding-bottom: 18px;
}

.pvlt-lib-minimal .pvlt-stat {
	background: none;
	padding: 0 14px 0 0;
	color: var(--pvlt-muted);
}

/* Directory: tighter heading, controls carry the page. */
.pvlt-lib-list .pvlt-hero {
	margin-bottom: 1.2em;
}

/* Console: mono controls and a dark pricing strip edge. */
.pvlt-lib-console .pvlt-hero {
	border-left-color: var(--pvlt-pop);
}

.pvlt-lib-console .pvlt-pricing {
	border: 2px solid rgba(255, 255, 255, 0.16);
}
