/* VL Prompt Library – frontend */
.vlpl {
	--vlpl-accent: #2563eb;
	--vlpl-text: #111827;
	--vlpl-muted: #6b7280;
	--vlpl-border: #e5e7eb;
	--vlpl-bg: #ffffff;
	--vlpl-soft: #f6f7f9;
	--vlpl-radius: 12px;
	--vlpl-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	color: var(--vlpl-text);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.vlpl *, .vlpl *::before, .vlpl *::after { box-sizing: inherit; }

/* Toolbar */
.vlpl-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
	align-items: center;
}
.vlpl-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 0;
}
.vlpl-search svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--vlpl-muted);
	pointer-events: none;
}
.vlpl .vlpl-search input,
.vlpl .vlpl-toolbar select {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--vlpl-border);
	border-radius: 10px;
	background: var(--vlpl-bg);
	color: var(--vlpl-text);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
}
.vlpl .vlpl-search input { padding-left: 38px; }
.vlpl .vlpl-toolbar select { width: auto; flex: 0 1 200px; min-width: 140px; cursor: pointer; }
.vlpl .vlpl-search input:focus,
.vlpl .vlpl-toolbar select:focus {
	outline: 2px solid var(--vlpl-accent);
	outline-offset: 1px;
	border-color: transparent;
}

.vlpl-count { margin: 0 0 12px; color: var(--vlpl-muted); font-size: 14px; }
.vlpl-results { transition: opacity .15s; }
.vlpl-results.is-loading { opacity: .45; pointer-events: none; }
.vlpl-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--vlpl-muted);
	background: var(--vlpl-soft);
	border-radius: var(--vlpl-radius);
}

/* Grid & cards */
.vlpl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 16px;
}
.vlpl-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	background: var(--vlpl-bg);
	border: 1px solid var(--vlpl-border);
	border-radius: var(--vlpl-radius);
	min-width: 0;
}
.vlpl-card.is-featured { border-color: color-mix(in srgb, var(--vlpl-accent) 45%, var(--vlpl-border)); }
.vlpl-card__head { display: flex; flex-direction: column; gap: 8px; }
.vlpl-card__cats, .vlpl-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vlpl .vlpl-card__title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 650; }
.vlpl .vlpl-card__title a { color: inherit; text-decoration: none; }
.vlpl .vlpl-card__title a:hover { color: var(--vlpl-accent); }
.vlpl .vlpl-card__desc { margin: 0; color: var(--vlpl-muted); font-size: 15px; }

.vlpl .vlpl-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--vlpl-accent) 10%, transparent);
	color: var(--vlpl-accent);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.6;
}
.vlpl .vlpl-badge--featured { background: var(--vlpl-accent); color: #fff; }
.vlpl .vlpl-tag {
	color: var(--vlpl-muted);
	font-size: 13px;
	text-decoration: none;
}
.vlpl .vlpl-tag:hover, .vlpl a.vlpl-badge:hover { text-decoration: underline; }

/* Prompt text */
.vlpl-prompt { position: relative; }
.vlpl .vlpl-prompt__text {
	margin: 0;
	padding: 14px;
	background: var(--vlpl-soft);
	border: 1px solid var(--vlpl-border);
	border-radius: 10px;
	color: var(--vlpl-text);
	font-family: var(--vlpl-mono);
	font-size: 13.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: anywhere;
	max-width: 100%;
	overflow: auto;
}
.vlpl-prompt.is-collapsed .vlpl-prompt__text {
	max-height: 220px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
	mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.vlpl .vlpl-expand {
	margin-top: 6px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--vlpl-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* Footer */
.vlpl-card__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.vlpl-card__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.vlpl-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	color: var(--vlpl-muted);
	font-size: 13px;
}
.vlpl-stars { color: #f59e0b; letter-spacing: 1px; }
.vlpl-stars__off { color: var(--vlpl-border); }
.vlpl-model {
	padding: 1px 8px;
	border: 1px solid var(--vlpl-border);
	border-radius: 6px;
}
.vlpl-card__actions { display: flex; gap: 8px; margin-left: auto; }

.vlpl .vlpl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--vlpl-accent);
	border-radius: 9px;
	background: var(--vlpl-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s, background .15s;
}
.vlpl .vlpl-btn:hover { filter: brightness(1.08); }
.vlpl .vlpl-btn:focus-visible { outline: 2px solid var(--vlpl-accent); outline-offset: 2px; }
.vlpl .vlpl-btn--ghost { background: transparent; color: var(--vlpl-accent); }
.vlpl .vlpl-btn--ghost:hover { background: color-mix(in srgb, var(--vlpl-accent) 8%, transparent); filter: none; }
.vlpl .vlpl-btn.is-done { background: #16a34a; border-color: #16a34a; color: #fff; }
.vlpl .vlpl-btn[disabled] { opacity: .6; cursor: default; }

/* Pagination */
.vlpl-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.vlpl .vlpl-page, .vlpl-page-gap {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border-radius: 9px;
	font-size: 14px;
	text-decoration: none;
	color: var(--vlpl-text);
}
.vlpl .vlpl-page { border: 1px solid var(--vlpl-border); }
.vlpl .vlpl-page.is-current { background: var(--vlpl-accent); border-color: var(--vlpl-accent); color: #fff; }

/* Single / embed */
.vlpl-card.is-single { padding: 0; border: 0; background: transparent; }
.vlpl-card.is-single .vlpl-prompt__text { font-size: 14.5px; }
.vlpl-embed { margin: 1.5em 0; }

/* Modal */
.vlpl-modal[hidden] { display: none; }
.vlpl-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 24, 39, .55);
}
.vlpl-modal__box {
	width: min(760px, 100%);
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: var(--vlpl-bg);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	overflow: hidden;
}
.vlpl-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--vlpl-border);
}
.vlpl .vlpl-modal__title { margin: 0; font-size: 17px; font-weight: 650; }
.vlpl .vlpl-modal__close {
	width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 8px;
	background: transparent; color: var(--vlpl-muted);
	font-size: 24px; line-height: 1; cursor: pointer;
}
.vlpl .vlpl-modal__close:hover { background: var(--vlpl-soft); }
.vlpl-modal__body { padding: 16px 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.vlpl .vlpl-modal__prompt {
	width: 100%;
	min-height: 140px;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--vlpl-border);
	border-radius: 10px;
	background: var(--vlpl-soft);
	color: var(--vlpl-text);
	font-family: var(--vlpl-mono);
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
}
.vlpl .vlpl-modal__prompt[readonly] { max-height: 180px; }
.vlpl-modal__hint { margin: -6px 0 0; font-size: 13px; color: var(--vlpl-muted); }
.vlpl-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vlpl-modal__stats { font-size: 13px; color: var(--vlpl-muted); }
.vlpl-answer {
	padding: 14px 16px;
	border: 1px solid var(--vlpl-border);
	border-radius: 10px;
	font-size: 15px;
	overflow-wrap: anywhere;
}
.vlpl-answer.is-error { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.vlpl-answer > :first-child { margin-top: 0; }
.vlpl-answer > :last-child { margin-bottom: 0; }
.vlpl-answer pre { padding: 10px; background: var(--vlpl-soft); border-radius: 8px; overflow: auto; font-size: 13px; }
.vlpl-answer code { font-family: var(--vlpl-mono); font-size: .9em; }
.vlpl-answer h2, .vlpl-answer h3, .vlpl-answer h4 { font-size: 1.05em; margin: 1em 0 .4em; }
.vlpl-spinner {
	width: 18px; height: 18px;
	border: 2px solid var(--vlpl-border);
	border-top-color: var(--vlpl-accent);
	border-radius: 50%;
	animation: vlpl-spin .8s linear infinite;
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}
@keyframes vlpl-spin { to { transform: rotate(360deg); } }
body.vlpl-modal-open { overflow: hidden; }

@media (max-width: 600px) {
	.vlpl .vlpl-toolbar select { flex: 1 1 calc(50% - 5px); }
	.vlpl-card { padding: 14px; }
	.vlpl-card__actions { width: 100%; }
	.vlpl-card__actions .vlpl-btn { flex: 1; }
}

/* =========================================================
   Frontend management: table + form
   ========================================================= */
.vlpl .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.vlpl-notice, .vlpl-alert {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	padding: 14px 16px; margin: 0 0 16px;
	border-radius: 10px; background: var(--vlpl-soft); border: 1px solid var(--vlpl-border);
}
.vlpl-alert.is-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.vlpl-alert.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.vlpl-muted { color: var(--vlpl-muted); font-size: 14px; }
.vlpl-nowrap { white-space: nowrap; }
.vlpl-check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.vlpl-check input { margin: 0; }
.vlpl .vlpl-btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.vlpl .vlpl-btn--block { width: 100%; }
.vlpl .vlpl-toolbar__new { margin-left: auto; min-height: 44px; }
.vlpl .vlpl-toolbar .vlpl-btn--ghost { min-height: 44px; }

/* Status pills */
.vlpl-status {
	display: inline-block; padding: 2px 9px; border-radius: 999px;
	font-size: 12px; font-weight: 600; white-space: nowrap;
	background: var(--vlpl-soft); color: var(--vlpl-muted);
}
.vlpl-status--publish { background: #dcfce7; color: #166534; }
.vlpl-status--pending { background: #fef3c7; color: #92400e; }
.vlpl-status--draft { background: #e5e7eb; color: #374151; }
.vlpl-status--private { background: #ede9fe; color: #5b21b6; }

/* Table */
.vlpl-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--vlpl-border); border-radius: var(--vlpl-radius); background: var(--vlpl-bg); }
.vlpl .vlpl-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14.5px; border: 0; }
.vlpl .vlpl-table th, .vlpl .vlpl-table td {
	padding: 11px 14px; text-align: left; vertical-align: top;
	border: 0; border-bottom: 1px solid var(--vlpl-border);
}
.vlpl .vlpl-table thead th {
	background: var(--vlpl-soft); font-size: 12.5px; font-weight: 650;
	text-transform: uppercase; letter-spacing: .03em; color: var(--vlpl-muted);
}
.vlpl .vlpl-table thead th a { color: inherit; text-decoration: none; }
.vlpl .vlpl-table thead th a:hover { color: var(--vlpl-accent); }
.vlpl .vlpl-table tbody tr:last-child td { border-bottom: 0; }
.vlpl .vlpl-table tbody tr:hover td { background: color-mix(in srgb, var(--vlpl-accent) 3%, transparent); }
.vlpl .vlpl-table .vlpl-num { text-align: right; }
.vlpl-table__title { min-width: 220px; }
.vlpl .vlpl-table__title a { color: var(--vlpl-text); font-weight: 600; text-decoration: none; }
.vlpl .vlpl-table__title a:hover { color: var(--vlpl-accent); }
.vlpl-table__title .vlpl-badge { margin-left: 6px; vertical-align: 1px; }
.vlpl-table__desc { display: block; margin-top: 2px; font-size: 13px; color: var(--vlpl-muted); }
.vlpl-table__tags { color: var(--vlpl-muted); font-size: 13px; }
.vlpl .vlpl-table__actions { white-space: nowrap; text-align: right; }
.vlpl-table__actions .vlpl-btn + .vlpl-btn { margin-left: 6px; }
.vlpl-version-text td { background: var(--vlpl-soft); }

/* Form */
.vlpl-form-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.vlpl .vlpl-back { color: var(--vlpl-muted); text-decoration: none; font-size: 15px; }
.vlpl .vlpl-back:hover { color: var(--vlpl-accent); }
.vlpl-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.vlpl-form-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vlpl-form-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.vlpl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vlpl-field-row { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.vlpl .vlpl-field label { font-weight: 600; font-size: 14.5px; }
.vlpl-req { color: #dc2626; }
.vlpl .vlpl-form input[type="text"],
.vlpl .vlpl-form textarea,
.vlpl .vlpl-form select {
	width: 100%; margin: 0; padding: 10px 12px;
	border: 1px solid var(--vlpl-border); border-radius: 9px;
	background: var(--vlpl-bg); color: var(--vlpl-text);
	font: inherit; font-size: 15px; line-height: 1.45; box-shadow: none;
}
.vlpl .vlpl-form textarea { resize: vertical; }
.vlpl .vlpl-form .vlpl-code {
	font-family: var(--vlpl-mono); font-size: 13.5px; line-height: 1.55;
	background: var(--vlpl-soft); min-height: 260px; tab-size: 4;
}
.vlpl .vlpl-form input:focus, .vlpl .vlpl-form textarea:focus, .vlpl .vlpl-form select:focus {
	outline: 2px solid var(--vlpl-accent); outline-offset: 1px; border-color: transparent;
}
.vlpl-editor-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.vlpl-counter { color: var(--vlpl-muted); font-size: 13px; }
.vlpl-editor-actions { display: flex; gap: 6px; }
.vlpl-help { font-size: 13px; }
.vlpl-answer-box { border: 1px solid var(--vlpl-border); border-left: 4px solid var(--vlpl-accent); border-radius: 10px; overflow: hidden; }
.vlpl-answer-box.is-error { border-left-color: #dc2626; }
.vlpl-answer-box__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--vlpl-soft); font-size: 14px; }
.vlpl-answer-box__head span { color: var(--vlpl-muted); font-size: 13px; }
.vlpl-answer-box .vlpl-answer { border: 0; border-radius: 0; max-height: 480px; overflow: auto; }

.vlpl-panel { padding: 16px; border: 1px solid var(--vlpl-border); border-radius: var(--vlpl-radius); background: var(--vlpl-bg); display: flex; flex-direction: column; gap: 12px; }
.vlpl .vlpl-panel h3 { margin: 0; font-size: 15px; font-weight: 650; }
.vlpl .vlpl-panel p { margin: 0; }
.vlpl .vlpl-checklist { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.vlpl .vlpl-checklist.is-child { max-height: none; padding-left: 20px; }
.vlpl .vlpl-checklist li { margin: 4px 0; padding: 0; }
.vlpl .vlpl-checklist label { display: inline-flex; gap: 7px; align-items: center; font-size: 15px; cursor: pointer; }
.vlpl-versions-panel { margin-top: 24px; }
.vlpl-delete-form { margin-top: 16px; text-align: right; }
.vlpl .vlpl-link-danger { background: none; border: 0; padding: 0; color: #b91c1c; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

@media (max-width: 860px) {
	.vlpl-form-grid { grid-template-columns: 1fr; }
	.vlpl-form-side { position: static; }
	.vlpl-field-row { grid-template-columns: 1fr; }
}

/* Table as cards on phones */
@media (max-width: 720px) {
	.vlpl .vlpl-toolbar__new { margin-left: 0; flex: 1 1 100%; }
	.vlpl-table-wrap { border: 0; background: transparent; overflow: visible; }
	.vlpl .vlpl-table, .vlpl .vlpl-table tbody, .vlpl .vlpl-table tr, .vlpl .vlpl-table td { display: block; width: 100%; }
	.vlpl .vlpl-table thead { display: none; }
	.vlpl .vlpl-table tbody tr {
		margin-bottom: 12px; padding: 12px 14px;
		border: 1px solid var(--vlpl-border); border-radius: var(--vlpl-radius); background: var(--vlpl-bg);
	}
	.vlpl .vlpl-table tbody tr:hover td { background: none; }
	.vlpl .vlpl-table td { padding: 4px 0; border: 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
	.vlpl .vlpl-table td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--vlpl-muted); font-size: 13px; text-align: left; flex: 0 0 auto; }
	.vlpl .vlpl-table td.vlpl-table__title { display: block; text-align: left; font-size: 16px; padding-bottom: 8px; }
	.vlpl .vlpl-table td.vlpl-table__title::before { display: none; }
	.vlpl .vlpl-table .vlpl-table__actions { justify-content: flex-start; padding-top: 10px; }
	.vlpl-table__actions .vlpl-btn { flex: 1; }
	.vlpl .vlpl-table tr.vlpl-version-text { margin-top: -8px; }
	.vlpl .vlpl-table tr.vlpl-version-text[hidden] { display: none; }
	.vlpl .vlpl-table tr.vlpl-version-text td { display: block; text-align: left; background: none; }
}

/* =========================================================
   1.2: description images, project background, generator, byline
   ========================================================= */
.vlpl .vlpl-form textarea.vlpl-desc-field { height: 200px; min-height: 200px; }
.vlpl .vlpl-label { font-weight: 600; font-size: 14.5px; }
.vlpl .vlpl-card__byline { margin: -2px 0 0; font-size: 12.5px; color: var(--vlpl-muted); }
.vlpl-card.is-single .vlpl-card__byline { margin: 0; }

.vlpl-context {
	padding: 16px;
	border: 1px solid var(--vlpl-border);
	border-radius: var(--vlpl-radius);
	background: color-mix(in srgb, var(--vlpl-accent) 4%, var(--vlpl-bg));
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vlpl .vlpl-context h3 { margin: 0; font-size: 15px; font-weight: 650; }
.vlpl .vlpl-context__intro { margin: -4px 0 0; font-size: 13px; }
.vlpl-context__list { display: flex; flex-direction: column; gap: 10px; }
.vlpl-context__list > .vlpl-muted { margin: 0; }
.vlpl-context__card {
	padding: 12px 14px;
	border: 1px solid var(--vlpl-border);
	border-radius: 10px;
	background: var(--vlpl-bg);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vlpl-context__card.is-editing { border-color: var(--vlpl-accent); }
.vlpl-context__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vlpl-context__head .vlpl-btn { margin-left: auto; }
.vlpl-context__text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.vlpl-context__text.is-collapsed {
	max-height: 9.5em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
	mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.vlpl .vlpl-context__card p { margin: 0; }
.vlpl .vlpl-context__textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vlpl-border);
	border-radius: 9px;
	font: inherit;
	font-size: 14.5px;
	line-height: 1.5;
	resize: vertical;
	background: var(--vlpl-bg);
	color: var(--vlpl-text);
}
.vlpl-context__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vlpl .vlpl-context__saved { margin: 0; color: #166534; font-size: 14px; font-weight: 600; }

.vlpl .vlpl-btn--magic {
	background: linear-gradient(135deg, var(--vlpl-accent), color-mix(in srgb, var(--vlpl-accent) 55%, #9333ea));
	border-color: transparent;
}
.vlpl .vlpl-gen-status { margin: 0; padding: 8px 12px; border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 13.5px; }
.vlpl .vlpl-gen-status.is-error { background: #fef2f2; color: #991b1b; }
.vlpl .vlpl-gen-status[hidden] { display: none; }

.vlpl-table__created { font-size: 13.5px; }
.vlpl-table__created span { display: block; }
.vlpl .vlpl-table__by { color: var(--vlpl-muted); font-size: 12.5px; }
.vlpl-table__title .vlpl-table__tags { display: block; margin-top: 3px; }
@media (max-width: 720px) {
	.vlpl-table__created span { display: inline; margin-left: 4px; }
}

/* Compact table actions (stacked) */
.vlpl .vlpl-table th, .vlpl .vlpl-table td { padding: 11px 10px; }
.vlpl .vlpl-table td.vlpl-table__actions { width: 1%; }
.vlpl-table__actions { display: table-cell; }
.vlpl .vlpl-table__actions .vlpl-btn { display: flex; width: 100%; }
.vlpl .vlpl-table__actions .vlpl-btn + .vlpl-btn { margin: 6px 0 0; }
@media (max-width: 720px) {
	.vlpl .vlpl-table td.vlpl-table__actions { width: 100%; display: flex; }
	.vlpl .vlpl-table__actions .vlpl-btn { width: auto; }
	.vlpl .vlpl-table__actions .vlpl-btn + .vlpl-btn { margin: 0 0 0 6px; }
}

/* 1.3 – implemented badge + IT project */
.vlpl .vlpl-impl-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin: 0;
	padding: 3px 10px 3px 4px;
	border-radius: 999px;
	background: #dcfce7;
	color: #166534;
	font-size: 13px;
	line-height: 1.4;
}
.vlpl .vlpl-impl-badge strong { font-weight: 700; }
.vlpl-impl-badge__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 18px; height: 18px; border-radius: 50%;
	background: #16a34a; color: #fff; font-size: 11px; font-weight: 700;
}
.vlpl-table__impl { min-width: 150px; }
.vlpl-impl-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vlpl .vlpl-impl-project-input {
	display: none;
	width: 100%;
	min-width: 130px;
	margin: 0;
	padding: 5px 8px;
	border: 1px solid var(--vlpl-border);
	border-radius: 7px;
	background: var(--vlpl-bg);
	color: var(--vlpl-text);
	font: inherit;
	font-size: 13px;
	transition: border-color .2s, box-shadow .2s;
}
.vlpl-impl-cell.is-on .vlpl-impl-project-input { display: block; }
.vlpl .vlpl-impl-project-input:focus { outline: 2px solid var(--vlpl-accent); outline-offset: 1px; border-color: transparent; }
.vlpl .vlpl-impl-project-input.is-saved { border-color: #16a34a; box-shadow: 0 0 0 2px #bbf7d0; }
.vlpl .vlpl-impl-project-input.is-error { border-color: #dc2626; }
.vlpl-impl-project-text { font-size: 13px; font-weight: 600; color: #166534; }
.vlpl-impl-cell:not(.is-on) .vlpl-impl-project-text { display: none; }
.vlpl .vlpl-form .vlpl-impl-project input[type="text"] { padding: 8px 10px; font-size: 14px; }
@media (max-width: 720px) {
	.vlpl-impl-cell { align-items: flex-end; }
	.vlpl .vlpl-impl-project-input { text-align: right; }
}

/* 1.5 – language switcher */
.vlpl-langbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.vlpl-langbar.is-inline { display: inline-flex; margin: 0; }
.vlpl-lang { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.vlpl .vlpl-lang__label { display: inline-flex; color: var(--vlpl-muted); }
.vlpl .vlpl-lang select {
	width: auto;
	height: 34px;
	margin: 0;
	padding: 0 28px 0 10px;
	border: 1px solid var(--vlpl-border);
	border-radius: 8px;
	background-color: var(--vlpl-bg);
	color: var(--vlpl-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.vlpl .vlpl-lang select:focus { outline: 2px solid var(--vlpl-accent); outline-offset: 1px; }

/* 1.6 – dictation controls inside the frontend form */
.vlpl .vlpl-form select.vlpl-dictate__lang { width: auto; height: 32px; padding: 0 26px 0 10px; font-size: 13px; line-height: 30px; border-radius: 8px; }
