.qlt-dashboard {
	max-width: 1120px;
}

.qlt-dashboard__header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 18px 0 20px;
}

.qlt-dashboard__header h1 {
	margin: 0 0 4px;
}

.qlt-dashboard__header p {
	color: #646970;
	margin: 0;
}

.qlt-dashboard__status {
	display: block;
	margin-top: 8px;
}

.qlt-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.qlt-panel {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-sizing: border-box;
	padding: 18px;
}

.qlt-panel h2 {
	font-size: 16px;
	margin: 0 0 16px;
}

/* Frontend User Workspace splits advanced profile tools into focused modules. */
.qlt-dashboard--workspace-profile .qlt-qr-settings,
.qlt-dashboard--workspace-profile .qlt-business-card-settings {
	display: none;
}

.qlt-dashboard--qr .qlt-profile-box,
.qlt-dashboard--qr .qlt-avatar-form,
.qlt-dashboard--business-card .qlt-profile-box,
.qlt-dashboard--business-card .qlt-avatar-form {
	display: none;
}

.qlt-dashboard--qr .qlt-profile-form > :not(.qlt-qr-settings):not(button),
.qlt-dashboard--business-card .qlt-profile-form > :not(.qlt-business-card-settings):not(button) {
	display: none;
}

.qlt-dashboard--qr .qlt-profile-settings-panel > h2,
.qlt-dashboard--business-card .qlt-profile-settings-panel > h2 {
	display: none;
}

.qlt-panel__title {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.qlt-panel__title h2 {
	margin: 0;
}

.qlt-profile-box {
	align-items: center;
	display: flex;
	gap: 14px;
	margin-bottom: 18px;
}

.qlt-profile-box img {
	aspect-ratio: 1;
	border-radius: 50%;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.qlt-profile-box label,
.qlt-form-row label,
.qlt-avatar-form label,
.qlt-avatar-presets legend {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.qlt-profile-box code {
	display: inline-block;
	margin-top: 2px;
	white-space: normal;
	word-break: break-word;
}

.qlt-avatar-form input[type='file'] {
	display: block;
	margin-bottom: 6px;
	max-width: 100%;
}

.qlt-profile-form {
	border-top: 1px solid #dcdcde;
	margin-top: 18px;
	padding-top: 18px;
}

.qlt-profile-form textarea {
	box-sizing: border-box;
	font-family: Consolas, Monaco, monospace;
	max-width: 100%;
	min-height: 150px;
	resize: vertical;
	width: 100%;
}

.qlt-avatar-presets {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin: 0 0 18px;
	padding: 14px;
}

.qlt-avatar-presets legend {
	padding: 0 6px;
}

.qlt-avatar-presets__grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	margin-top: 12px;
}

.qlt-avatar-preset {
	align-items: center;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-sizing: border-box;
	cursor: pointer;
	display: grid;
	gap: 8px;
	justify-items: center;
	margin: 0;
	min-height: 126px;
	padding: 10px 8px;
	text-align: center;
}

.qlt-avatar-preset input {
	margin: 0;
}

.qlt-avatar-preset img,
.qlt-avatar-preset__placeholder {
	aspect-ratio: 1;
	border-radius: 50%;
	height: 64px;
	object-fit: cover;
	width: 64px;
}

.qlt-avatar-preset__placeholder {
	align-items: center;
	background: #f6f7f7;
	border: 1px dashed #8c8f94;
	color: #50575e;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	justify-content: center;
}

.qlt-avatar-preset span:last-child {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
}

.qlt-handle-field {
	align-items: center;
	display: flex;
	max-width: 100%;
}

.qlt-handle-field span {
	background: #f6f7f7;
	border: 1px solid #8c8f94;
	border-right: 0;
	box-sizing: border-box;
	color: #50575e;
	display: inline-flex;
	min-height: 30px;
	padding: 0 10px;
}

.qlt-handle-field input {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
}

.qlt-contact-settings,
.qlt-qr-settings,
.qlt-business-card-settings {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin: 18px 0;
	padding: 14px;
}

.qlt-contact-settings legend,
.qlt-qr-settings legend,
.qlt-business-card-settings legend {
	font-weight: 700;
	padding: 0 6px;
}

.qlt-qr-settings__content {
	align-items: center;
	display: flex;
	gap: 16px;
}

.qlt-qr-preview {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-sizing: border-box;
	display: inline-flex;
	flex: 0 0 auto;
	padding: 10px;
}

.qlt-qr-preview svg {
	display: block;
	height: 132px;
	width: 132px;
}

.qlt-qr-settings__body {
	min-width: 0;
}

.qlt-qr-settings__body p {
	color: #50575e;
	margin: 0 0 10px;
}

.qlt-qr-public-toggle {
	margin-top: 14px;
}

.qlt-business-card-settings__grid {
	display: block;
}

.qlt-business-card-settings input[type='file'] {
	max-width: 100%;
}

.qlt-business-card-settings input[type='color'] {
	height: 38px;
	padding: 2px;
	width: 76px;
}

.qlt-business-card-side-options {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.qlt-business-card-side-options > span {
	font-weight: 700;
}

.qlt-business-card-side-options label {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0;
}

.qlt-business-card-admin-preview {
	--qlt-business-card-bg: #111111;
	display: grid;
	gap: 12px;
	margin: 0 12px 16px;
	max-width: 360px;
	width: calc(100% - 24px);
}

.qlt-business-card-admin-preview__front,
.qlt-business-card-admin-preview__back {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
		var(--qlt-business-card-bg);
	border-radius: 10px;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
	box-sizing: border-box;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 150px;
	overflow: hidden;
	padding: 18px;
}

.qlt-business-card-admin-preview__front {
	justify-content: flex-end;
}

.qlt-business-card-admin-preview__front img {
	align-self: center;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	height: 76px;
	margin: 0 0 auto;
	max-width: 128px;
	object-fit: contain;
	width: auto;
}

.qlt-business-card-admin-preview__front strong {
	font-size: 14px;
	letter-spacing: 0;
	line-height: 1.2;
	overflow-wrap: anywhere;
	text-transform: uppercase;
}

.qlt-business-card-admin-preview__front span {
	font-size: 11px;
	opacity: 0.78;
	overflow-wrap: anywhere;
}

.qlt-business-card-admin-preview__back {
	align-items: center;
	justify-content: center;
}

.qlt-business-card-admin-preview__back svg {
	background: #fff;
	border-radius: 6px;
	display: block;
	height: 92px;
	padding: 8px;
	width: 92px;
}

.qlt-business-card-public-url > label:first-child,
.qlt-business-card-public-url > a {
	display: block;
}

.qlt-business-card-public-url > a {
	margin: 6px 0 12px;
	overflow-wrap: anywhere;
}

.qlt-business-card-public-url code {
	white-space: normal;
}

.qlt-contact-fields {
	display: grid;
	gap: 4px;
	margin-top: 10px;
}

.qlt-form-row {
	margin-bottom: 14px;
}

.qlt-form-row input[type='text'],
.qlt-form-row input[type='url'],
.qlt-form-row input[type='number'] {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

.qlt-inline-fields {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: 150px 1fr;
}

.qlt-checkbox {
	align-items: center;
	display: flex;
	font-weight: 600;
	gap: 8px;
	margin-bottom: 14px;
}

.qlt-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qlt-links-panel {
	margin-top: 16px;
}

.qlt-integrations-panel {
	margin-top: 16px;
}

.qlt-embed-preview {
	align-items: center;
	background: linear-gradient(135deg, #f6fffb, #f8fbff);
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-sizing: border-box;
	display: flex;
	gap: 14px;
	margin: 14px 0;
	max-width: 460px;
	padding: 14px;
}

.qlt-embed-preview img {
	aspect-ratio: 1;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(23, 32, 42, 0.12);
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.qlt-embed-preview strong,
.qlt-embed-preview span,
.qlt-embed-preview small {
	display: block;
	overflow-wrap: anywhere;
}

.qlt-embed-preview strong {
	color: #17202a;
	font-size: 18px;
	line-height: 1.15;
	margin-bottom: 2px;
}

.qlt-embed-preview span {
	color: #667085;
	margin-bottom: 8px;
}

.qlt-embed-preview small {
	color: #2271b1;
	font-weight: 700;
}

.qlt-embed-code {
	box-sizing: border-box;
	font-family: Consolas, Monaco, monospace;
	max-width: 100%;
	resize: vertical;
	width: 100%;
}

.qlt-messages-panel {
	margin-top: 16px;
}

.qlt-status {
	color: #646970;
	font-weight: 600;
	min-height: 20px;
}

.qlt-status[data-type='success'] {
	color: #008a20;
}

.qlt-status[data-type='error'] {
	color: #b32d2e;
}

.qlt-table-wrap {
	overflow-x: auto;
}

.qlt-links-table td,
.qlt-links-table th {
	vertical-align: middle;
}

.qlt-links-table td:nth-child(4) {
	max-width: 360px;
	word-break: break-word;
}

.qlt-links-table td:last-child {
	white-space: nowrap;
}

.qlt-messages-table td:last-child {
	white-space: nowrap;
}

.qlt-message-detail {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-sizing: border-box;
	max-width: 960px;
	padding: 18px;
}

.qlt-message-detail dl {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.qlt-message-detail dl > div {
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 12px;
}

.qlt-message-detail dt {
	color: #50575e;
	font-weight: 700;
	margin-bottom: 4px;
}

.qlt-message-detail dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.qlt-message-detail__full {
	grid-column: 1 / -1;
}

.qlt-message-body {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 12px;
	white-space: pre-wrap;
}

.qlt-seed-page {
	max-width: 1120px;
}

.qlt-seed-form {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-sizing: border-box;
	margin-top: 16px;
	padding: 18px;
}

.qlt-seed-form .form-table th {
	width: 220px;
}

.qlt-seed-form input[type='number'] {
	width: 120px;
}

.qlt-seed-cli-panel {
	margin-top: 16px;
}

.qlt-seed-cli-panel code {
	display: block;
	line-height: 1.6;
	overflow-x: auto;
	padding: 12px;
	white-space: pre-wrap;
}

.qlt-danger-button {
	color: #b32d2e !important;
	margin-left: 6px !important;
}

.qlt-register-form {
	max-width: 420px;
}

.qlt-register-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.qlt-register-form input {
	box-sizing: border-box;
	width: 100%;
}

.qlt-honeypot {
	height: 0;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.qlt-captcha {
	margin: 16px 0;
	min-height: 78px;
}

.qlt-notice {
	border-left: 4px solid #2271b1;
	margin: 0 0 16px;
	padding: 10px 12px;
}

.qlt-notice--success {
	border-left-color: #008a20;
}

.qlt-notice--error {
	border-left-color: #b32d2e;
}

@media (max-width: 782px) {
	.qlt-dashboard__header,
	.qlt-panel__title {
		align-items: flex-start;
		flex-direction: column;
	}

	.qlt-grid,
	.qlt-inline-fields {
		grid-template-columns: 1fr;
	}

	.qlt-qr-settings__content {
		align-items: flex-start;
		flex-direction: column;
	}

	.qlt-message-detail dl {
		grid-template-columns: 1fr;
	}
}
