.qret-scanner-app {
	max-width: 480px;
	margin: 0 auto;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}

.qret-title {
	font-size: 1.4em;
	margin-bottom: 16px;
}

.qret-camera-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.qret-camera-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qret-camera-overlay {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	color: #fff;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.8 );
	font-size: 1.1em;
	pointer-events: none;
}

.qret-camera-error {
	background: #fff3e0;
	border: 1px solid #ffb74d;
	border-radius: 8px;
	padding: 16px;
	margin-top: 16px;
	text-align: left;
}

.qret-camera-error .qret-tips {
	font-size: 0.9em;
	color: #555;
}

.qret-result {
	margin-top: 16px;
	padding: 24px 16px;
	border-radius: 12px;
	font-size: 1.15em;
}

.qret-result h3 {
	font-size: 1.6em;
	margin: 8px 0;
}

.qret-result-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.qret-result-warning {
	background: #fff8e1;
	color: #8d6e00;
}

.qret-result-error {
	background: #ffebee;
	color: #b71c1c;
}

.qret-result-icon {
	font-size: 2.5em;
}

.qret-ticket-details p {
	margin: 4px 0;
}

.qret-authorized {
	font-weight: 700;
}

.qret-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 20px;
	font-size: 1em;
	border-radius: 8px;
	border: none;
	background: #1565c0;
	color: #fff;
	cursor: pointer;
}

.qret-btn-secondary {
	background: #eee;
	color: #333;
}

.qret-manual-form {
	margin-top: 12px;
	display: flex;
	gap: 8px;
}

.qret-manual-form input[type="text"] {
	flex: 1;
	padding: 10px;
	font-size: 1em;
	border-radius: 8px;
	border: 1px solid #ccc;
}

.qret-sound-toggle {
	display: block;
	margin-top: 16px;
	font-size: 0.95em;
	color: #555;
}

.qret-hidden {
	display: none !important;
}

.qret-no-access {
	max-width: 480px;
	margin: 40px auto;
	padding: 16px;
	background: #ffebee;
	border-radius: 8px;
	text-align: center;
}

.qret-login-wrap {
	max-width: 360px;
	margin: 40px auto;
	padding: 24px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.qret-login-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

.qret-login-form label {
	font-weight: 600;
	margin-top: 8px;
}

.qret-login-form input {
	padding: 12px;
	font-size: 1em;
	border-radius: 8px;
	border: 1px solid #ccc;
}

.qret-btn-block {
	display: block;
	width: 100%;
	margin-top: 20px;
	text-align: center;
}

.qret-login-error {
	background: #ffebee;
	color: #b71c1c;
	padding: 10px;
	border-radius: 8px;
}

.qret-scanner-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.85em;
	color: #555;
}

.qret-logout-form {
	margin: 0;
}

.qret-logout-btn {
	background: none;
	border: none;
	color: #1565c0;
	text-decoration: underline;
	cursor: pointer;
	font-size: 1em;
	padding: 0;
}
