:root {
	--accent: #ec2b3c;
	--accent-dark: #b51626;
	--accent-text: #ff7a86;
	--accent-soft: rgba(236, 43, 60, 0.16);
	--red: #ff7a86;
	--ink: #f4f4f4;
	--muted: #b0b0b0;
	--line: #3a3a3a;
	--paper: #101010;
	--card: #1a1a1a;
	--field: #121212;
	--header: #070707;
	--radius: 8px;
	--shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	--font: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
	--top: 64px;
}

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

[hidden] {
	display: none !important;
}

html {
	background: var(--paper);
	color-scheme: dark;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--font);
	font-size: 1.125rem;
	line-height: 1.45;
}

img {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

a {
	color: var(--accent-text);
}

a:hover {
	color: var(--accent);
}

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

::selection {
	background: var(--accent);
	color: #fff;
}

.vbs-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--top);
	padding: 10px 16px;
	background: var(--header);
	color: #fff;
	border-bottom: 2px solid var(--accent);
}

.vbs-brand img {
	display: block;
	height: 36px;
	width: auto;
}

.vbs-top-user {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.vbs-who {
	color: #fff;
	font-size: 0.95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 34vw;
}

.vbs-link {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.vbs-subnav {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 8px 16px;
	background: var(--card);
	border-bottom: 1px solid var(--line);
}

.vbs-subnav a {
	flex: 0 0 auto;
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
	padding: 8px 12px;
	border-radius: 999px;
}

.vbs-subnav a[aria-current="page"] {
	background: var(--accent);
	color: #fff;
}

.vbs-wrap {
	width: min(720px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0 48px;
}

.vbs-wide {
	width: min(960px, calc(100% - 32px));
}

.vbs-wrap h1,
.vbs-login h1 {
	margin: 0 0 8px;
	font-size: 1.8rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.vbs-lead,
.vbs-hint,
.vbs-meta {
	color: var(--muted);
}

.vbs-lead {
	margin: 0 0 20px;
}

.vbs-empty {
	padding: 20px;
	background: var(--card);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

.vbs-banner {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	overflow-wrap: anywhere;
}

.vbs-banner.is-error {
	border-left-color: var(--red);
	background: var(--accent-soft);
}

.vbs-login {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 24px 16px;
}

.vbs-login-card {
	width: min(420px, 100%);
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 0 0 8px;
	overflow: hidden;
}

.vbs-login-brand {
	padding: 28px 22px 0;
}

.vbs-login-body {
	padding: 22px 22px 16px;
}

.vbs-login-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 52px;
	margin: 0;
	object-fit: contain;
	object-position: left center;
}

.vbs-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	font-weight: 700;
}

.vbs-field span,
.vbs-check span {
	font-size: 0.95rem;
}

.vbs-field input,
.vbs-field textarea,
.vbs-field select,
.vbs-filter select,
.vbs-rule select,
.vbs-rule input {
	width: 100%;
	min-height: 52px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--field);
	color: var(--ink);
	font-weight: 400;
}

.vbs-field textarea {
	min-height: 96px;
	resize: vertical;
}

.vbs-field input::placeholder,
.vbs-field textarea::placeholder,
.vbs-q-control input::placeholder,
.vbs-q-control textarea::placeholder {
	color: var(--muted);
}

.vbs-field input:-webkit-autofill,
.vbs-field textarea:-webkit-autofill,
.vbs-field select:-webkit-autofill,
.vbs-q-control input:-webkit-autofill,
.vbs-q-control textarea:-webkit-autofill,
.vbs-q-control select:-webkit-autofill {
	-webkit-text-fill-color: var(--ink);
	caret-color: var(--ink);
	box-shadow: 0 0 0 1000px var(--field) inset;
}

.vbs-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-weight: 600;
}

.vbs-check input {
	width: 22px;
	height: 22px;
	accent-color: var(--accent);
}

.vbs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 16px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.vbs-btn-primary {
	background: var(--accent);
	color: #fff;
	width: 100%;
}

.vbs-pagehead .vbs-btn-primary,
.vbs-form-actions .vbs-btn-primary,
.vbs-row-actions .vbs-btn-primary,
.vbs-filter .vbs-btn,
.vbs-inline .vbs-btn {
	width: auto;
}

.vbs-btn-primary:hover {
	background: var(--accent-dark);
	color: #fff;
}

.vbs-btn-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}

.vbs-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.vbs-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 112px;
	padding: 18px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow);
}

.vbs-card h2 {
	margin: 0;
	font-size: 1.3rem;
}

.vbs-card p {
	margin: 0;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vbs-card-cta {
	margin-top: auto;
	color: var(--accent-text);
	font-weight: 700;
}

.vbs-card:hover {
	border-color: var(--accent);
}

.vbs-pagehead,
.vbs-form-actions,
.vbs-inline,
.vbs-filter,
.vbs-row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.vbs-pagehead {
	justify-content: space-between;
	margin-bottom: 12px;
}

.vbs-pagehead h1,
.vbs-pagehead h2,
.vbs-section h2 {
	margin: 0;
}

.vbs-admin-list,
.vbs-fields {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.vbs-fields {
	list-style: decimal;
	padding-left: 1.2rem;
}

.vbs-admin-list li,
.vbs-fields li,
.vbs-panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
}

.vbs-admin-list li,
.vbs-fields li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
}

.vbs-admin-list h2,
.vbs-fields strong {
	display: block;
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.vbs-admin-list .vbs-meta,
.vbs-fields .vbs-meta {
	margin: 0;
	font-size: 0.95rem;
}

.vbs-fields li.is-off {
	opacity: 0.6;
}

.vbs-row-actions form {
	display: inline;
}

.vbs-row-actions button,
.vbs-row-actions a {
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--field);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.vbs-row-actions button.is-danger {
	color: var(--red);
	border-color: var(--accent);
}

.vbs-row-actions button:disabled {
	opacity: 0.4;
}

.vbs-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--paper);
	font-size: 0.85rem;
	font-weight: 700;
	margin-right: 6px;
}

.vbs-badge.is-on {
	background: var(--accent-soft);
	color: var(--accent-text);
}

.vbs-section {
	margin-top: 28px;
}

body.vbs-modal-open {
	overflow: hidden;
}

.vbs-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.vbs-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.vbs-modal__backdrop {
	position: fixed;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.72);
	cursor: pointer;
}

.vbs-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	margin: auto 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.vbs-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
}

.vbs-modal__head h2 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.vbs-modal__close {
	flex: 0 0 auto;
	min-width: 44px;
	min-height: 44px;
	margin: -8px -8px -8px 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.vbs-modal__close:hover {
	color: var(--ink);
	background: var(--field);
}

.vbs-modal__body {
	padding: 16px 18px 18px;
}

.vbs-panel--flat {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.vbs-panel {
	margin: 12px 0 20px;
}

.vbs-rules {
	margin: 8px 0 16px;
	padding: 0;
	border: 0;
}

.vbs-rules legend {
	font-weight: 700;
	margin-bottom: 6px;
}

.vbs-rule {
	display: grid;
	gap: 8px;
	margin-bottom: 8px;
}

.vbs-back {
	margin: 0 0 8px;
}

.vbs-answers {
	margin: 20px 0 0;
}

.vbs-answers div {
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.vbs-answers dt {
	font-weight: 700;
}

.vbs-answers dd {
	margin: 4px 0 0;
}

.vbs-colophon {
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
	padding: 8px 16px 24px;
}

.vbs-fill {
	width: min(680px, 100%);
	margin: 0 auto;
	padding: 8px 16px 32px;
}

.vbs-fill-title {
	margin: 4px 0 16px;
	font-size: 1.35rem;
}

.vbs-fill-progress {
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0 -16px 16px;
	padding: 12px 16px 10px;
	background: var(--paper);
}

.vbs-progress-label {
	margin: 0 0 8px;
	font-weight: 700;
	color: var(--muted);
	font-size: 0.95rem;
}

.vbs-progress {
	height: 8px;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}

.vbs-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--accent);
}

.vbs-q {
	background: var(--card);
	border-radius: 16px;
	padding: 20px 16px 16px;
	margin: 0 0 12px;
	box-shadow: var(--shadow);
	scroll-margin-top: 72px;
}

.vbs-q[hidden] {
	display: none !important;
}

.vbs-q.is-invalid {
	outline: 2px solid var(--red);
}

.vbs-q h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.25;
}

.vbs-q-meta,
.vbs-q-hint {
	margin: 0 0 8px;
	color: var(--muted);
}

.vbs-q-control input[type="text"],
.vbs-q-control textarea,
.vbs-q-control select {
	width: 100%;
	min-height: 56px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--field);
	color: var(--ink);
	font-size: 1.125rem;
}

.vbs-q-control textarea {
	min-height: 160px;
}

.vbs-search-list {
	display: grid;
	gap: 14px;
}

.vbs-search-list__combo {
	position: relative;
}

.vbs-search-list__menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 280px;
	margin: 0;
	padding: 6px;
	overflow: auto;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--field);
	box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.vbs-search-list__option {
	padding: 12px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.0625rem;
	font-weight: 600;
}

.vbs-search-list__option.is-pinned {
	font-weight: 700;
}

.vbs-search-list__option.is-active,
.vbs-search-list__option:hover {
	background: rgb(0 0 0 / 6%);
}

.vbs-search-list__sep {
	height: 1px;
	margin: 6px 8px;
	background: var(--line);
	list-style: none;
}

.vbs-search-list__empty {
	padding: 12px 14px;
	color: var(--muted);
}

.vbs-search-list__selected,
.vbs-search-list__other-rows {
	display: grid;
	gap: 12px;
}

.vbs-search-list__row {
	display: grid;
	gap: 10px;
	padding: 12px 14px;
	border: 2px dashed var(--line);
	border-radius: 12px;
}

.vbs-search-list__field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.vbs-search-list__field span {
	font-size: 0.875rem;
	color: var(--muted);
}

.vbs-search-list__field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg);
	font-size: 1rem;
}

.vbs-search-list__field input.is-readonly {
	background: var(--field);
	color: var(--ink);
	cursor: default;
}

.vbs-search-list__row-remove {
	justify-self: start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

@media (min-width: 640px) {
	.vbs-search-list__row {
		grid-template-columns: 1fr 1fr auto;
		align-items: end;
	}

	.vbs-search-list__row:not(:has(.vbs-search-list__field:nth-child(2))) {
		grid-template-columns: 1fr auto;
	}

	.vbs-search-list__row-remove {
		justify-self: end;
		align-self: center;
	}
}

.vbs-search-list__other-wrap {
	display: grid;
	gap: 10px;
	padding-top: 4px;
	border-top: 1px solid var(--line);
}

.vbs-search-list__other-title {
	margin: 0;
	font-weight: 700;
}

.vbs-search-list__query:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.vbs-choices,
.vbs-yesno,
.vbs-rating {
	display: grid;
	gap: 10px;
}

.vbs-yesno {
	grid-template-columns: 1fr 1fr;
}

.vbs-yesno--with-other {
	grid-template-columns: 1fr;
}

.vbs-choice-other {
	display: block;
	margin-top: 10px;
}

.vbs-choice-other input {
	width: 100%;
	min-height: 56px;
	padding: 12px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--field);
	font: inherit;
}

.vbs-choice-other:not([hidden]) input:disabled {
	opacity: 0.55;
}

.vbs-rating {
	grid-template-columns: repeat(var(--vbs-rating-cols, 6), minmax(0, 1fr));
}

.vbs-choice,
.vbs-rate {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 12px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--field);
	font-weight: 700;
}

.vbs-rate {
	position: relative;
	justify-content: center;
	padding: 8px 4px;
}

.vbs-choice input,
.vbs-rate input {
	width: 22px;
	height: 22px;
	accent-color: var(--accent);
	flex: 0 0 auto;
}

.vbs-rate input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.vbs-rate span {
	font-size: 1.25rem;
}

.vbs-choice:has(input:checked),
.vbs-rate:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.vbs-step-error {
	margin: 12px 0 0;
	color: var(--red);
	font-weight: 700;
}

.vbs-fill-nav {
	margin-top: 8px;
	padding-bottom: env(safe-area-inset-bottom);
}

.vbs-fill-nav .vbs-btn {
	width: 100%;
}

@media (min-width: 800px) {
	.vbs-who {
		max-width: none;
	}

	.vbs-rule {
		grid-template-columns: 1.4fr 0.8fr 1fr;
	}

	.vbs-login-card {
		padding: 36px 32px;
	}
}
