:root {
	--primary: #D86500;
	--primary-active: #C03F2C;
	--primary-disabled: #e6dfd8;
	--ink: #141413;
	--body: #3d3d3a;
	--body-strong: #252523;
	--muted: #6c6a64;
	--muted-soft: #8e8b82;
	--hairline: #e6dfd8;
	--hairline-soft: #ebe6df;
	--canvas: #faf9f5;
	--surface-soft: #f5f0e8;
	--surface-card: #efe9de;
	--surface-cream-strong: #e8e0d2;
	--surface-dark: #181715;
	--surface-dark-elevated: #252320;
	--surface-dark-soft: #1f1e1b;
	--on-primary: #ffffff;
	--on-dark: #faf9f5;
	--on-dark-soft: #a09d96;
	--accent-teal: #5db8a6;
	--accent-amber: #e8a55a;
	--success: #5db872;
	--warning: #d4a017;
	--error: #c64545;
	--success-soft: #e6f4e9;
	--error-soft: #f7e5e2;
	--warning-soft: #f7edcf;
	--font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
	--font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--radius-xs: 4px;
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-pill: 9999px;
	--space-xs: 8px;
	--space-sm: 12px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 32px;
	--space-xxl: 48px;
	--section: 96px;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--canvas);
}

body {
	min-height: 100%;
	margin: 0;
	background: var(--canvas);
	color: var(--body);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
}

body.auth-page,
body.app-page,
body.public-page {
	background: var(--canvas);
}

body.has-fixed-nav {
	padding-top: 88px;
}

body.public-page {
	overflow-x: hidden;
}

body.theme-orange-700 {
	--primary: #c2410c;
	--primary-active: #9a3412;
	--primary-disabled: #fed7aa;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--primary-active);
}

button,
input,
select,
textarea {
	font-family: inherit;
}

code {
	border-radius: var(--radius-xs);
	background: var(--surface-soft);
	color: var(--body-strong);
	font-family: var(--font-code);
	font-size: 13px;
	padding: 2px 5px;
}

::selection {
	background: var(--primary);
	color: var(--on-primary);
}

.auth-screen {
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: var(--space-xxl) var(--space-md);
	padding-top: 80px;
}

.public-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	width: min(1200px, calc(100% - 32px));
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	border: 1px solid rgba(216, 101, 0, 0.16);
	border-radius: var(--radius-pill);
	background: rgba(250, 249, 245, 0.84);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: 0 12px 28px rgba(20, 20, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
	margin: var(--space-md) auto 0;
	padding: 8px 8px 8px var(--space-sm);
}

.public-brand,
.public-nav-links,
.public-hero-actions,
.public-footer nav {
	display: flex;
	align-items: center;
}

.public-brand {
	gap: var(--space-sm);
	min-width: 0;
	color: var(--ink);
	font-weight: 800;
}

.public-brand > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.public-nav-links {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-sm);
}

.public-nav-links a:not(.btn),
.public-footer a {
	color: var(--body);
	font-size: 14px;
	font-weight: 700;
}

.public-nav-links a:not(.btn):hover,
.public-footer a:hover {
	color: var(--primary-active);
}

.public-login-link {
	border-radius: var(--radius-pill);
	padding: 10px 12px;
}

.public-hero {
	position: relative;
	display: grid;
	min-height: min(680px, calc(100vh - 32px));
	align-items: center;
	overflow: hidden;
	margin-top: calc(-1 * var(--space-xl));
	padding: 132px var(--space-md) 96px;
}

.public-hero-bg {
	position: absolute;
	inset: 0;
		background:
			linear-gradient(90deg, rgba(250, 249, 245, 0.98), rgba(250, 249, 245, 0.8) 46%, rgba(250, 249, 245, 0.52)),
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='760' viewBox='0 0 1200 760'%3E%3Crect width='1200' height='760' fill='%23f5f0e8'/%3E%3Cg opacity='.78'%3E%3Crect x='668' y='106' width='380' height='464' rx='32' fill='%23ffffff'/%3E%3Crect x='704' y='148' width='308' height='56' rx='18' fill='%23f3dfc8'/%3E%3Crect x='704' y='232' width='142' height='142' rx='22' fill='%23d86500' fill-opacity='.16'/%3E%3Crect x='870' y='232' width='142' height='142' rx='22' fill='%235db8a6' fill-opacity='.18'/%3E%3Crect x='704' y='404' width='308' height='34' rx='17' fill='%23e6dfd8'/%3E%3Crect x='704' y='462' width='220' height='28' rx='14' fill='%23d86500' fill-opacity='.18'/%3E%3Crect x='704' y='520' width='270' height='28' rx='14' fill='%237aa7f7' fill-opacity='.26'/%3E%3Crect x='610' y='620' width='520' height='34' rx='17' fill='%23e8a55a' fill-opacity='.18'/%3E%3Crect x='586' y='672' width='380' height='24' rx='12' fill='%235db8a6' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E");
	background-position: center;
	background-size: cover;
}

.public-qr-art {
	position: absolute;
	right: max(40px, calc((100vw - 1200px) / 2));
	bottom: 72px;
	display: grid;
	width: min(280px, 32vw);
	aspect-ratio: 1;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	border: 1px solid rgba(216, 101, 0, 0.18);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.74);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 24px 60px rgba(20, 20, 19, 0.16);
	padding: 22px;
}

.public-qr-art span {
	border-radius: 12px;
	background: var(--ink);
}

.public-qr-art span:nth-child(2n) {
	background: var(--primary);
}

.public-qr-art span:nth-child(3n) {
	background: var(--accent-teal);
}

.public-qr-art span:nth-child(5n) {
	opacity: 0.18;
}

.public-hero-inner,
.public-section,
.public-footer {
	position: relative;
	width: min(1200px, calc(100% - 32px));
	margin: 0 auto;
}

.public-hero-inner {
	max-width: 670px;
	margin-left: max(16px, calc((100vw - 1200px) / 2));
}

.public-hero h1,
.public-section h2 {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1;
}

.public-hero h1 {
	font-size: 76px;
	max-width: 760px;
}

.public-hero p:not(.eyebrow),
.public-section-head p {
	color: var(--body);
	font-size: 18px;
	line-height: 1.65;
}

.public-hero-actions {
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.public-section {
	padding: 86px 0;
}

.public-section-soft {
	width: 100%;
	border-block: 1px solid var(--hairline);
	background: var(--surface-soft);
	padding-inline: max(16px, calc((100vw - 1200px) / 2));
}

.public-section-head {
	max-width: 680px;
	margin-bottom: var(--space-xl);
}

.public-section h2 {
	font-size: 52px;
}

.public-card-grid,
.plan-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-md);
}

.public-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-feature-card,
.plan-card,
.public-feature-list article {
	border: 1px solid rgba(230, 223, 216, 0.9);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(245, 240, 232, 0.88)),
		rgba(250, 249, 245, 0.92);
	box-shadow: 0 8px 20px rgba(20, 20, 19, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.public-feature-card {
	display: grid;
	gap: var(--space-sm);
	padding: var(--space-lg);
}

.public-card-icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: var(--radius-md);
	background: rgba(216, 101, 0, 0.1);
	color: var(--primary-active);
}

.public-card-icon svg {
	width: 20px;
	height: 20px;
}

.public-feature-card h3,
.public-feature-list h3,
.plan-card h3 {
	margin: 0;
	color: var(--ink);
	font-size: 19px;
	line-height: 1.3;
}

.public-feature-card p,
.public-feature-list p,
.plan-card p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.public-feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-md);
}

.public-feature-list article {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: var(--space-md);
	padding: var(--space-lg);
}

.plan-card {
	display: grid;
	gap: var(--space-md);
	padding: var(--space-lg);
}

.plan-card.is-highlighted {
	border-color: rgba(216, 101, 0, 0.36);
	background:
		linear-gradient(145deg, rgba(216, 101, 0, 0.11), rgba(255, 255, 255, 0.74)),
		rgba(250, 249, 245, 0.94);
	box-shadow: 0 16px 36px rgba(216, 101, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.plan-card strong {
	color: var(--ink);
	font-size: 30px;
	line-height: 1;
}

.plan-card ul {
	display: grid;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.plan-card li {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--body);
	font-size: 14px;
}

.plan-card li svg {
	width: 16px;
	height: 16px;
	color: var(--success);
}

.public-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	border-top: 1px solid var(--hairline);
	padding: var(--space-xl) 0;
}

.public-footer strong {
	display: block;
	color: var(--ink);
	margin-bottom: 4px;
}

.public-footer p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.public-footer nav {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-md);
}

.auth-wrap {
	width: 100%;
	max-width: 480px;
}

.auth-wrap-sm {
	max-width: 420px;
}

.auth-card {
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--surface-card);
	padding: var(--space-xl);
}

.auth-head {
	margin-bottom: 28px;
	text-align: center;
}

.auth-logo,
.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	background: var(--surface-dark);
	color: var(--on-dark);
	font-family: var(--font-code);
	font-weight: 700;
}

.auth-logo {
	width: 64px;
	height: 64px;
	font-size: 18px;
}

.auth-logo-image {
	width: min(190px, 100%);
	height: 72px;
	background: transparent;
	margin-inline: auto;
}

.auth-logo-img {
	display: block;
	max-width: 100%;
	max-height: 72px;
	object-fit: contain;
}

.auth-logo-hex,
.brand-mark {
	background: transparent;
	color: inherit;
}

.auth-logo > svg,
.brand-mark > svg {
	width: 22px;
	height: 22px;
}

.hexagon-icon {
	position: relative;
	display: inline-flex;
	width: calc(var(--hexagon-icon-size, 24px) + 20px);
	height: calc(var(--hexagon-icon-size, 24px) + 20px);
	align-items: center;
	justify-content: center;
	color: var(--on-primary);
	transition: transform 0.18s ease;
}

.hexagon-icon:hover {
	transform: scale(1.04);
}

.hexagon-icon-shape,
.hexagon-icon-border {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hexagon-icon-shape path {
	fill: var(--hexagon-icon-color, var(--primary));
	opacity: 1;
}

.hexagon-icon-border {
	display: none;
}

.hexagon-icon-border path {
	fill: none;
	stroke: var(--hexagon-icon-color, var(--primary));
	stroke-width: 2;
}

.hexagon-icon-transparent {
	color: var(--hexagon-icon-color, var(--primary));
}

.hexagon-icon-transparent .hexagon-icon-shape path {
	opacity: 0.28;
}

.hexagon-icon-transparent .hexagon-icon-border {
	display: block;
}

.hexagon-icon-glyph {
	position: relative;
	z-index: 1;
	display: inline-flex;
	color: currentColor;
}

.hexagon-icon-glyph svg,
.hexagon-icon > svg:not(.hexagon-icon-shape):not(.hexagon-icon-border) {
	position: relative;
	z-index: 1;
	width: var(--hexagon-icon-size, 24px);
	height: var(--hexagon-icon-size, 24px);
	stroke: currentColor;
}

.auth-head h1,
.dashboard-hero h1,
.page-header h1 {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.08;
}

.auth-head h1 {
	margin-top: var(--space-md);
	font-size: 34px;
}

.auth-head p,
.auth-link,
.auth-copy,
.muted,
.field-hint {
	color: var(--muted);
}

.auth-head p,
.auth-link {
	margin: var(--space-xs) 0 0;
	font-size: 14px;
}

.auth-link {
	margin-top: var(--space-lg);
	text-align: center;
}

.auth-link a,
.data-list a {
	color: var(--primary);
	font-weight: 600;
}

.auth-copy {
	margin: var(--space-lg) 0 0;
	text-align: center;
	font-size: 12px;
}

.form-stack,
.employee-form,
.employee-list,
.details-list,
.detail-stack,
.chart-bars,
.rank-list,
.breakdown-list {
	display: grid;
	gap: var(--space-md);
}

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
}

.field label,
.qr-type-field legend,
.inline-filter label,
.details-list dt,
.stat-label {
	display: block;
	margin-bottom: var(--space-xs);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}

.qr-type-field {
	display: grid;
	gap: var(--space-xs);
	border: 0;
	margin: 0;
	padding: 0;
}

.qr-type-choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}

.qr-type-button {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}

.qr-type-button input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.qr-type-button span {
	display: flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid rgba(216, 101, 0, 0.34);
	border-radius: var(--radius-md);
	background: rgba(250, 249, 245, 0.74);
	color: var(--primary-active);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
	padding: 10px 12px;
	text-align: center;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.qr-type-button svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	stroke-width: 2.2;
}

.qr-type-button:hover span,
.qr-type-button input:focus-visible + span {
	border-color: var(--primary);
	background: rgba(216, 101, 0, 0.1);
	box-shadow: 0 8px 18px rgba(216, 101, 0, 0.1);
	transform: translateY(-1px);
}

.qr-type-button input:checked + span {
	border-color: var(--primary);
	background: var(--primary);
	box-shadow: 0 10px 22px rgba(216, 101, 0, 0.2);
	color: var(--on-primary);
}

.input-icon {
	position: relative;
}

.input-icon > span {
	position: absolute;
	left: 14px;
	top: 50%;
	display: grid;
	width: 18px;
	height: 18px;
	place-items: center;
	color: var(--muted-soft);
	transform: translateY(-50%);
}

.input-icon > span svg {
	width: 17px;
	height: 17px;
}

input,
textarea,
.select-control {
	width: 100%;
	min-height: 40px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background: var(--canvas);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	padding: 10px 14px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input[type="color"] {
	min-height: 44px;
	padding: 5px;
}

textarea {
	min-height: 112px;
	resize: vertical;
}

.input-icon input {
	padding-left: 42px;
}

.input-icon input[data-password-input] {
	padding-right: 68px;
}

input:focus,
textarea:focus,
.select-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(184, 95, 67, 0.18);
}

.toggle-password {
	position: absolute;
	right: 10px;
	top: 50%;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--primary);
	cursor: pointer;
	transform: translateY(-50%);
}

.toggle-password svg {
	width: 18px;
	height: 18px;
}

.field-hint,
.field-error {
	margin: var(--space-xs) 0 0;
	font-size: 13px;
}

.field-error {
	color: var(--error);
	font-weight: 600;
}

.alert {
	border-radius: var(--radius-md);
	margin-bottom: var(--space-md);
	padding: 12px 14px;
	font-size: 14px;
}

.alert-danger {
	border: 1px solid rgba(198, 69, 69, 0.32);
	background: var(--error-soft);
	color: var(--error);
}

.alert-success {
	border: 1px solid rgba(93, 184, 114, 0.34);
	background: var(--success-soft);
	color: #2f7d43;
}

.btn {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 20px;
	text-align: center;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn svg,
.nav-link svg,
.profile-trigger svg,
.profile-dropdown svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.btn-primary {
	background: var(--primary);
	color: var(--on-primary);
}

.btn-primary:hover {
	background: var(--primary-active);
	color: var(--on-primary);
}

button:disabled, .btn:disabled {
	background: var(--primary-disabled);
	color: #999;
	cursor: not-allowed;
	opacity: 0.6;
	pointer-events: none;
}

.btn-outline {
	border-color: var(--hairline);
	background: var(--canvas);
	color: var(--ink);
}

.btn-outline:hover {
	border-color: var(--primary);
	color: var(--primary-active);
}

.btn-danger {
	border-color: rgba(198, 69, 69, 0.32);
	background: var(--error-soft);
	color: var(--error);
}

.btn-danger:hover {
	border-color: var(--error);
	color: var(--error);
}

.btn-sm {
	min-height: 34px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	padding: 8px 12px;
}

.btn-full {
	width: 100%;
}

.btn-light {
	background: #fff;
	color: #333;
	border: 1px solid var(--hairline);
}

.btn-light:hover {
	background: #f5f5f5;
	color: #111;
}

.oauth-platform {
	line-height: 1.2;
}

.oauth-platform-logo {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.oauth-platform-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.oauth-platform-text {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.oauth-platform-text .oauth-arrow-down {
	vertical-align: middle;
	margin-left: 4px;
	width: 16px;
	height: 16px;
	color: #2057e0;
	font-weight: 900;
}

.oauth-platform-link-inline {
	color: var(--primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.16s ease;
}

.oauth-platform-link-inline:hover {
	color: #0f172a;
}

.oauth-platform-btn {
	display: flex;
	width: 100%;

	align-items: center;
	justify-content: center;
	padding:5px 24px;
	border: 2px solid #2057e0;
	border-radius: var(--radius-md);
	background: #ffffff;
	text-decoration: none;

	transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.oauth-platform-btn:hover {

	
		box-shadow: 0 1px 2px rgba(0, 30, 255, 0.265);
	transform: translateY(-1px);
}

.oauth-platform-btn .oauth-platform-logo {
	width: auto;
	height: 40px;
	max-width: 100%;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin: var(--space-lg) 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 0 1 auto;
	height: 1px;
	background: var(--hairline);
}

.auth-divider span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
	display: grid;
	width: 100%;
	grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
	min-height: 64px;
	align-items: center;
	gap: var(--space-lg);
	border: 1px solid transparent;
	border-radius: 0;
	background: rgba(250, 249, 245, 0);
	margin: 0 auto;
	padding: 12px var(--space-xl);
	transition: top 0.24s ease, width 0.24s ease, border-color 0.24s ease, border-radius 0.24s ease, background-color 0.24s ease, backdrop-filter 0.24s ease;
}

	.topbar.is-scrolled {
		top: 16px;
		width: min(1200px, calc(100% - 32px));
		border-color: rgba(216, 101, 0, 0.22);
	border-radius: 9999px; /* ← capsule/pill shape */
		background: rgba(216, 101, 0, 0.055);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
	}

.brand,
.topnav {
	display: flex;
	align-items: center;
}

.brand {
	gap: var(--space-sm);
	justify-self: start;
	color: var(--ink);
	font-weight: 700;
	min-width: 0;
}

.brand-logo {
	display: block;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	object-fit: contain;
}

.brand-mark {
	width: 44px;
	height: 44px;
	background: transparent;
	color: inherit;
	font-size: 13px;
}

.topnav {
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-sm);
	justify-self: center;
}

.nav-link {
	display: inline-flex;
	position: relative;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	padding: 8px 4px;
}

.nav-link-icon {
	display: none;
}

.nav-label {
	min-width: 0;
}

.nav-link::after {
	position: absolute;
	right: 0;
	bottom: 3px;
	left: 0;
	height: 2px;
	border-radius: var(--radius-pill);
	background: var(--primary);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
	color: var(--primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
	transform: scaleX(1);
}

.profile-menu {
	position: relative;
	justify-self: end;
}

.profile-menu[open] .profile-trigger {
	border-color: rgba(216, 101, 0, 0.22);
	background:
		linear-gradient(135deg, rgba(216, 101, 0, 0.11), rgba(255, 255, 255, 0.7)),
		rgba(250, 249, 245, 0.84);
	color: var(--ink);
	box-shadow: 0 8px 18px rgba(20, 20, 19, 0.06);
}

.profile-trigger {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(230, 223, 216, 0.86);
	border-radius: 9999px;
	background: rgba(250, 249, 245, 0.72);
	color: var(--body-strong);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	list-style: none;
	padding: 8px 12px;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.profile-trigger:hover {
	border-color: rgba(216, 101, 0, 0.18);
	background: rgba(255, 255, 255, 0.82);
	color: var(--ink);
}

.profile-trigger .avatar-pill {
	background: rgba(216, 101, 0, 0.13);
	color: var(--primary-active);
}

.avatar-pill {
	display: inline-grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(216, 101, 0, 0.18);
	background: rgba(216, 101, 0, 0.13);
	color: var(--primary-active);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.avatar-pill-lg {
	width: 40px;
	height: 40px;
	font-size: 14px;
	background: rgba(216, 101, 0, 0.12);
	color: var(--primary-active);
}

.profile-trigger::-webkit-details-marker {
	display: none;
}

.profile-trigger small {
	border-radius: var(--radius-pill);
	background: var(--surface-card);
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	text-transform: uppercase;
}

.profile-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 20;
	min-width: 220px;
	border: 1px solid rgba(230, 223, 216, 0.9);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 240, 232, 0.88)),
		rgba(250, 249, 245, 0.92);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: 0 18px 42px rgba(20, 20, 19, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.86);
	padding: 8px;
}

.profile-dropdown-head {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	border-bottom: 1px solid var(--hairline);
	margin-bottom: 6px;
	padding: 8px 8px 12px;
}

.profile-dropdown-head strong,
.profile-dropdown-head span,
.profile-dropdown-head small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.profile-dropdown-head strong {
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
}

.profile-dropdown-head span {
	color: var(--muted);
	font-size: 12px;
}

.profile-dropdown-head small {
	width: max-content;
	border-radius: var(--radius-pill);
	background: rgba(216, 101, 0, 0.09);
	color: var(--primary-active);
	font-size: 11px;
	font-weight: 600;
	margin-top: 5px;
	padding: 3px 8px;
	text-transform: uppercase;
}

.profile-dropdown a {
	display: flex;
	align-items: center;
	gap: 9px;
	border-radius: var(--radius-md);
	color: var(--body);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 12px;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-dropdown svg {
	color: var(--muted-soft);
	stroke: currentColor;
	transition: color 0.18s ease, stroke 0.18s ease;
}

.profile-dropdown a:hover {
	background: rgba(216, 101, 0, 0.08);
	color: var(--ink);
	transform: translateX(2px);
}

.profile-dropdown a:hover svg {
	color: var(--primary-active);
	stroke: currentColor;
}

.profile-dropdown .dropdown-danger {
	border-top: 1px solid rgba(230, 223, 216, 0.78);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	color: var(--error);
	margin-top: 6px;
	padding-top: 12px;
}

.profile-dropdown .dropdown-danger svg {
	color: var(--error);
	stroke: var(--error);
}

.profile-dropdown .dropdown-danger:hover {
	background: rgba(198, 69, 69, 0.1);
	color: var(--error);
}

.app-shell {
	width: min(1200px, calc(100% - 32px));
	margin: var(--space-xl) auto var(--section);
}

.dashboard-hero,
.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	margin-bottom: var(--space-lg);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: var(--surface-soft);
	padding: var(--space-xl);
}

.dashboard-hero h1,
.page-header h1 {
	margin: 4px 0 var(--space-xs);
	font-size: 48px;
}

.dashboard-hero p,
.page-header p,
.panel-heading p,
.empty-state p,
.rank-main small {
	margin: 0;
	color: var(--muted);
}

.eyebrow {
	margin: 0;
	color: var(--primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.status-pill,
.badge {
	display: inline-flex;
	align-items: center;
	width: max-content;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 5px 12px;
}

.status-pill,
.badge-success {
	background: var(--success-soft);
	color: #2f7d43;
}

.dashboard-grid,
.analytics-grid,
.breakdown-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-md);
}

.platform-stats-header {
	align-items: flex-start;
}

.platform-title {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-width: 0;
}

.platform-module-logo {
	display: block;
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	object-fit: contain;
}

.platform-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-xs);
}

.platform-badge,
.platform-badge-success,
.platform-badge-warning {
	gap: 6px;
	border: 1px solid var(--hairline);
}

.platform-badge {
	background: var(--canvas);
	color: var(--body-strong);
}

.platform-badge-success {
	border-color: rgba(93, 184, 114, 0.28);
	background: var(--success-soft);
	color: #2f7d43;
}

.platform-badge-warning {
	border-color: rgba(212, 160, 23, 0.32);
	background: var(--warning-soft);
	color: #8a5f00;
}

.platform-dashboard-grid,
.platform-section {
	margin-bottom: var(--space-lg);
}

.platform-details-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-summary {
	display: grid;
	gap: var(--space-md);
}

.payment-rate {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm);
	border-radius: var(--radius-md);
	background: var(--canvas);
	padding: var(--space-lg);
}

.payment-rate strong {
	color: var(--ink);
	font-size: 34px;
	line-height: 1;
}

.payment-rate span,
.payment-summary-grid span,
.transaction-row span,
.usage-card p {
	color: var(--muted);
	font-size: 13px;
}

.payment-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
}

.payment-summary-grid span {
	display: grid;
	gap: 4px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}

.payment-summary-grid strong,
.transaction-row strong {
	color: var(--ink);
}

.platform-section {
	display: grid;
	gap: var(--space-md);
}

.usage-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--space-md);
}

.usage-card {
	display: grid;
	gap: var(--space-sm);
	min-height: 190px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--surface-card);
	padding: var(--space-lg);
}

.usage-card-head,
.transaction-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-md);
}

.usage-icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: var(--radius-md);
	background: rgba(194, 65, 12, 0.1);
	color: var(--primary);
}

.usage-card h3 {
	margin: 0;
	color: var(--ink);
	font-size: 18px;
	line-height: 1.3;
}

.usage-card p {
	margin: 0;
}

.usage-progress {
	overflow: hidden;
	height: 8px;
	border-radius: var(--radius-pill);
	background: var(--hairline-soft);
	margin-top: auto;
}

.usage-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
}

.transaction-list {
	display: grid;
	gap: var(--space-xs);
}

.transaction-row {
	border-top: 1px solid var(--hairline);
	padding-top: var(--space-sm);
}

.transaction-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.transaction-row > div:last-child {
	text-align: right;
}

.dashboard-empty {
	min-height: 320px;
}

.panel,
.stat-card,
.rank-row,
.employee-row,
.check-card {
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--surface-card);
}

.panel {
	padding: var(--space-xl);
}

.panel-wide {
	grid-column: 1 / -1;
}

.panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}

.panel-heading h2,
.panel h2,
.qr-preview-card h2 {
	margin: 0;
	color: var(--ink);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.panel h2 {
	margin-bottom: var(--space-md);
}

.details-list {
	margin: 0;
}

.details-list div {
	display: grid;
	gap: 4px;
}

.details-list dd {
	margin: 0;
	color: var(--body-strong);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.employee-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-md);
	align-items: center;
	background: var(--canvas);
	padding: 14px;
}

.employee-row strong,
.employee-row span {
	display: block;
}

.employee-row span {
	margin-top: 3px;
	color: var(--muted);
	font-size: 13px;
}

.plain-input-icon input {
	padding-left: 14px;
}

.kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}

.stat-card {
	--stat-rgb: 216, 101, 0;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 160px;
	border-color: rgba(var(--stat-rgb), 0.22);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(135deg, rgba(var(--stat-rgb), 0.105), rgba(255, 255, 255, 0.82) 48%, rgba(var(--stat-rgb), 0.055)),
		rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: 0 2px 8px rgba(20, 20, 19, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.82);
	padding: 30px 110px 28px 32px;
	animation: stat-card-in 0.48s ease both;
	transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, backdrop-filter 0.24s ease;
}

.stat-card::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 58%);
	content: "";
	opacity: 0.82;
	pointer-events: none;
	transition: opacity 0.24s ease;
}

.kpi-grid .stat-card:nth-child(2) {
	animation-delay: 0.06s;
}

.kpi-grid .stat-card:nth-child(3) {
	animation-delay: 0.12s;
}

.kpi-grid .stat-card:nth-child(4) {
	animation-delay: 0.18s;
}

.stat-card:hover {
	border-color: rgba(var(--stat-rgb), 0.34);
	box-shadow: 0 14px 30px rgba(20, 20, 19, 0.105), inset 0 1px 0 rgba(255, 255, 255, 0.88);
	transform: translateY(-4px);
}

.stat-card:hover::before {
	opacity: 1;
}

.stat-label {
	position: relative;
	z-index: 1;
	display: block;
	align-items: center;
	color: var(--muted-soft);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}

.stat-icon {
	position: absolute;
	right: 24px;
	top: 22px;
	z-index: 0;
	display: grid;
	width: 92px;
	height: 92px;
	place-items: center;
	background: transparent;
	color: var(--stat-color, var(--primary));
	opacity: 0.34;
	transform: scale(1);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.stat-icon svg {
	width: 92px;
	height: 92px;
	stroke: currentColor;
	stroke-width: 1.7;
	animation: stat-icon-float 4.2s ease-in-out infinite;
}

.stat-card:hover .stat-icon {
	opacity: 0.48;
	transform: scale(1.06);
}

.stat-card strong {
	position: relative;
	z-index: 1;
	display: block;
	margin-top: 8px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 38px;
	font-weight: 700;
	line-height: 1;
	overflow-wrap: anywhere;
}

.stat-caption {
	position: relative;
	z-index: 1;
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.stat-card-primary {
	--stat-color: var(--primary);
	--stat-rgb: 216, 101, 0;
}

.stat-card-blue {
	--stat-color: #7aa7f7;
	--stat-rgb: 122, 167, 247;
}

.stat-card-success {
	--stat-color: #9fe7d0;
	--stat-rgb: 159, 231, 208;
}

.stat-card-teal {
	--stat-color: var(--accent-teal);
	--stat-rgb: 93, 184, 166;
}

.stat-card-amber {
	--stat-color: var(--accent-amber);
	--stat-rgb: 232, 165, 90;
}

.stat-card-purple {
	--stat-color: #c7b2ff;
	--stat-rgb: 199, 178, 255;
}

.stat-card-muted {
	--stat-color: #c6cbd5;
	--stat-rgb: 198, 203, 213;
}

@keyframes stat-card-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes stat-icon-float {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-4px) scale(1.03);
	}
}

.table-panel {
	padding: 0;
	overflow: hidden;
}

.table-panel .panel-heading,
.table-panel .toolbar,
.empty-state {
	padding: var(--space-xl);
}

.toolbar {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 180px 180px auto;
	gap: var(--space-sm);
	align-items: end;
	border-top: 1px solid var(--hairline);
	background: var(--surface-soft);
}

.toolbar-search {
	min-width: 0;
}

.table-live-status {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	border-top: 1px solid var(--hairline);
	background: rgba(250, 249, 245, 0.68);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	padding: 12px var(--space-xl);
}

.inline-filter {
	display: flex;
	align-items: end;
	gap: var(--space-sm);
}

.inline-filter .select-control {
	min-width: 140px;
}

.table-scroll {
	overflow-x: auto;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.data-table th,
.data-table td {
	border-top: 1px solid var(--hairline);
	padding: 15px 16px;
	text-align: left;
	vertical-align: middle;
}

.data-table th {
	background: var(--surface-soft);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}

.data-table td > span,
.data-table td small {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

.table-title {
	color: var(--ink);
	font-weight: 700;
}

.table-actions {
	width: 1%;
}

.badge-soft {
	background: var(--surface-cream-strong);
	color: var(--ink);
}

.badge-muted {
	background: var(--surface-soft);
	color: var(--muted);
}

.action-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
}

.action-row-table {
	flex-wrap: nowrap;
	justify-content: flex-end;
	min-width: max-content;
}

.action-row form {
	display: inline-flex;
	flex: 0 0 auto;
	margin: 0;
}

.action-row-stretch .btn {
	flex: 1 1 140px;
}

.action-btn {
	--action-color: var(--primary);
	position: relative;
	display: inline-grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	place-items: center;
	border: 1px solid color-mix(in srgb, var(--action-color) 34%, transparent);
	border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--action-color) 10%, #ffffff);
	color: var(--action-color);
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
	border-color: var(--action-color);
	background: var(--action-color);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--action-color) 24%, transparent);
	color: #ffffff;
	transform: translateY(-2px);
}

.action-btn:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--action-color) 28%, transparent);
	outline-offset: 3px;
}

.action-btn svg {
	width: 17px;
	height: 17px;
	stroke-width: 2.15;
}

.action-btn-view {
	--action-color: #22C55E;
}

.action-btn-edit {
	--action-color: #3B82F6;
}

.action-btn-delete {
	--action-color: #EF4444;
}

.action-btn-duplicate {
	--action-color: #F59E0B;
}

.action-btn-archive {
	--action-color: #8B5CF6;
}

.action-btn-export {
	--action-color: #6366F1;
}

.action-btn-approve {
	--action-color: #10B981;
}

.action-btn-reject {
	--action-color: #F43F5E;
}

[data-tooltip] {
	position: relative;
}

[data-tooltip]::after {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 1000;
	border-radius: var(--radius-sm);
	background: #1F2937;
	color: #ffffff;
	content: attr(data-tooltip);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	opacity: 0;
	padding: 5px 10px;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
	white-space: nowrap;
}

[data-tooltip]::before {
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	z-index: 1000;
	width: 8px;
	height: 8px;
	background: #1F2937;
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px) rotate(45deg);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::after,
[data-tooltip]:focus-visible::before {
	opacity: 1;
	transform: translate(-50%, 0);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
	transform: translate(-50%, 0) rotate(45deg);
}

.empty-state {
	display: grid;
	gap: var(--space-sm);
	justify-items: start;
	border-top: 1px solid var(--hairline);
}

.qr-tabs {
	display: grid;
	gap: var(--space-lg);
}

.tab-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-lg);
	border-bottom: 1px solid var(--hairline);
}

.tab-button {
	position: relative;
	min-height: 42px;
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	padding: 4px 0 12px;
}

.tab-button::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	border-radius: var(--radius-pill);
	background: var(--primary);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.is-active {
	color: var(--primary-active);
}

.tab-button:focus-visible {
	outline: 2px solid rgba(216, 101, 0, 0.18);
	outline-offset: 4px;
}

.tab-button.is-active::after {
	transform: scaleX(1);
}

.tab-panel {
	animation: tab-panel-in 0.22s ease both;
}

.tab-panel[hidden] {
	display: none;
}

@keyframes tab-panel-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.qr-form-grid,
.qr-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: var(--space-lg);
	align-items: start;
}

.panel-form-main {
	min-width: 0;
}

.qr-preview-card {
	display: grid;
	gap: var(--space-md);
	background: var(--surface-dark);
	color: var(--on-dark);
}

.qr-preview-card h2,
.qr-preview-card .field label,
.qr-preview-card .field-hint,
.qr-preview-card .check-card,
.qr-preview-card .btn-outline {
	color: var(--on-dark);
}

.qr-preview-card .field label,
.qr-preview-card .field-hint {
	color: var(--on-dark-soft);
}

.qr-preview-card input,
.qr-preview-card .select-control {
	border-color: var(--surface-dark-elevated);
	background: var(--surface-dark-soft);
	color: var(--on-dark);
}

.qr-preview-card .btn-outline {
	border-color: var(--surface-dark-elevated);
	background: var(--surface-dark-elevated);
}

.qr-preview-card .check-card {
	border-color: var(--surface-dark-elevated);
	background: var(--surface-dark-soft);
	color: var(--on-dark);
}

.qr-type-panel {
	display: none;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--surface-soft);
	padding: var(--space-md);
}

.qr-type-panel.is-visible {
	display: grid;
	gap: var(--space-md);
}

.check-card {
	display: flex;
	min-height: 46px;
	align-items: center;
	gap: var(--space-sm);
	background: var(--canvas);
	color: var(--body-strong);
	font-size: 14px;
	font-weight: 600;
	padding: 11px 12px;
}

.check-card input {
	width: auto;
	min-height: auto;
}

.qr-preview {
	display: grid;
	place-items: center;
	border: 1px solid var(--surface-dark-elevated);
	border-radius: var(--radius-lg);
	background: var(--canvas);
	padding: var(--space-lg);
}

.qr-preview svg {
	width: min(100%, 280px);
	height: auto;
}

.qr-detail-grid {
	grid-template-columns: 340px minmax(0, 1fr);
}

.qr-kpi-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0;
}

.analytics-grid,
.breakdown-grid {
	align-items: stretch;
}

.chart-canvas-wrap {
	position: relative;
	width: 100%;
	min-height: 280px;
}

.chart-canvas-lg {
	min-height: 330px;
}

.chart-canvas-md {
	min-height: 270px;
}

.chart-canvas-sm {
	min-height: 230px;
}

.chart-canvas-wrap canvas {
	width: 100% !important;
	height: 100% !important;
}

.bar-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 44px;
	gap: var(--space-sm);
	align-items: center;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.compact-bars .bar-row {
	grid-template-columns: 100px minmax(0, 1fr) 36px;
}

.bar-track {
	position: relative;
	height: 10px;
	overflow: hidden;
	border-radius: var(--radius-pill);
	background: var(--surface-cream-strong);
}

.bar-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--primary);
}

.rank-row {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 40px;
	gap: var(--space-sm);
	align-items: center;
	background: var(--canvas);
	padding: 12px;
}

.rank-number {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: var(--radius-md);
	background: var(--surface-dark);
	color: var(--on-dark);
	font-weight: 700;
}

.rank-main {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.rank-main strong,
.rank-main small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rank-main small {
	font-size: 12px;
}

.rank-total {
	color: var(--ink);
	text-align: right;
	font-weight: 700;
}

.breakdown-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.breakdown-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	border-bottom: 1px solid var(--hairline);
	padding-bottom: var(--space-sm);
}

.breakdown-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.profile-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-sm);
}

.app-footer {
	border-top: 1px solid var(--hairline);
	background: var(--surface-soft);
	color: var(--muted);
	padding: 56px var(--space-xl);
}

.app-footer-inner {
	display: grid;
	width: min(1200px, 100%);
	grid-template-columns: minmax(220px, 1fr) auto;
	gap: var(--space-xl);
	margin: 0 auto;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	min-width: 0;
}

.footer-logo {
	display: block;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	object-fit: contain;
}

.footer-brand-copy {
	min-width: 0;
}

.app-footer strong {
	display: block;
	color: var(--ink);
	font-size: 16px;
	margin-bottom: var(--space-xs);
}

.app-footer p {
	margin: 0;
	font-size: 14px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.footer-links a {
	color: var(--body);
	font-size: 14px;
	font-weight: 600;
}

.footer-links a:hover {
	color: var(--primary-active);
}

@media (max-width: 900px) {
	.kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.public-card-grid,
	.plan-grid,
	.public-feature-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.public-hero h1 {
		font-size: 58px;
	}

	.public-section h2 {
		font-size: 42px;
	}

	.qr-form-grid,
	.qr-detail-grid {
		grid-template-columns: 1fr;
	}

	.qr-card-table-wrap {
		overflow: visible;
	}

	.qr-data-table,
	.qr-data-table tbody {
		display: block;
	}

	.qr-data-table thead {
		display: none;
	}

	.qr-data-table tbody {
		display: grid;
		gap: var(--space-md);
		border-top: 1px solid var(--hairline);
		background: var(--surface-soft);
		padding: var(--space-md);
	}

	.qr-data-table tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-md);
		border: 1px solid rgba(230, 223, 216, 0.9);
		border-radius: var(--radius-lg);
		background:
			linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 240, 232, 0.88)),
			rgba(250, 249, 245, 0.92);
		box-shadow: 0 8px 20px rgba(20, 20, 19, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
		padding: var(--space-md);
	}

	.qr-data-table td {
		display: grid;
		grid-template-columns: minmax(78px, 0.4fr) minmax(0, 1fr);
		gap: var(--space-sm);
		align-items: center;
		border-top: 0;
		min-width: 0;
		padding: 0;
	}

	.qr-data-table td::before {
		color: var(--muted-soft);
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		line-height: 1.3;
		text-transform: uppercase;
	}

	.qr-card-title-cell,
	.qr-card-actions-cell {
		grid-column: 1 / -1;
	}

	.qr-card-title-cell {
		display: block;
	}

	.qr-card-title-cell::before,
	.qr-card-actions-cell::before {
		display: none;
	}

	.qr-card-title-cell .table-title {
		display: block;
		font-size: 16px;
		line-height: 1.35;
	}

	.qr-card-actions-cell {
		display: block;
		border-top: 1px solid var(--hairline);
		padding-top: var(--space-sm);
	}

	.qr-card-actions-cell .action-row-table {
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	body.has-fixed-nav {
		padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
	}

	.public-nav {
		width: calc(100% - 24px);
		align-items: center;
		gap: var(--space-sm);
		border-radius: var(--radius-lg);
		margin-top: var(--space-sm);
	}

	.public-nav-links a[href^="#"] {
		display: none;
	}

	.public-login-link {
		display: none;
	}

	.public-hero {
		min-height: auto;
		padding: 96px var(--space-md) 64px;
	}

	.public-hero-inner {
		max-width: none;
		margin-left: auto;
	}

	.public-hero h1 {
		font-size: 44px;
	}

	.public-hero p:not(.eyebrow),
	.public-section-head p {
		font-size: 16px;
	}

	.public-qr-art {
		display: none;
	}

	.public-section {
		padding: 56px 0;
	}

	.public-section-soft {
		padding-inline: var(--space-md);
	}

	.public-section h2 {
		font-size: 34px;
	}

	.public-card-grid,
	.plan-grid,
	.public-feature-list {
		grid-template-columns: 1fr;
	}

	.public-feature-list article {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.public-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.public-footer nav {
		justify-content: flex-start;
	}

	.auth-screen {
		padding: var(--space-lg) var(--space-md);
	}

	.auth-card,
	.panel,
	.dashboard-hero,
	.page-header,
	.table-panel .panel-heading,
	.table-panel .toolbar,
	.empty-state {
		padding: var(--space-lg);
	}

	.auth-head h1 {
		font-size: 30px;
	}

	.dashboard-hero h1,
	.page-header h1 {
		font-size: 34px;
	}

	.grid-2,
	.dashboard-grid,
	.analytics-grid,
	.breakdown-grid,
	.employee-row,
	.kpi-grid,
	.qr-kpi-grid,
	.platform-details-list,
	.payment-summary-grid,
	.toolbar,
	.app-footer-inner {
		grid-template-columns: 1fr;
	}

	.platform-stats-header,
	.platform-title {
		align-items: flex-start;
	}

	.platform-title {
		flex-direction: column;
	}

	.platform-badges {
		justify-content: flex-start;
	}

	.topbar,
	.dashboard-hero,
	.page-header {
		align-items: stretch;
	}

	.topbar {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: var(--space-sm);
		padding: var(--space-sm) var(--space-md);
	}

	.topbar.is-scrolled {
		top: 0;
		width: 100%;
		border-color: transparent;
		border-radius: 0;
		background: rgba(250, 249, 245, 0);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.brand {
		min-width: 0;
		justify-self: start;
	}

	.brand > span:last-child {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.topnav {
		position: fixed;
		right: 16px;
		bottom: max(12px, env(safe-area-inset-bottom, 0px));
		left: 16px;
		z-index: 70;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: center;
		justify-content: initial;
		justify-self: auto;
		gap: 6px;
		border: 1px solid rgba(216, 101, 0, 0.2);
		border-radius: var(--radius-pill);
		background:
			linear-gradient(135deg, rgba(216, 101, 0, 0.09), rgba(255, 255, 255, 0.68)),
			rgba(250, 249, 245, 0.86);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
		box-shadow: 0 18px 42px rgba(20, 20, 19, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
		padding: 6px;
	}

	.nav-link {
		flex-direction: column;
		gap: 4px;
		min-height: 58px;
		justify-content: center;
		border-radius: var(--radius-pill);
		color: var(--muted);
		font-size: 11px;
		font-weight: 700;
		line-height: 1.1;
		padding: 7px 4px;
		text-align: center;
	}

	.nav-link-icon {
		display: block;
		width: 18px;
		height: 18px;
	}

	.nav-label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.nav-link::after {
		display: none;
	}

	.nav-link:hover,
	.nav-link:focus-visible {
		background: rgba(216, 101, 0, 0.1);
		color: var(--primary-active);
	}

	.nav-link.is-active {
		background: var(--primary);
		box-shadow: 0 10px 22px rgba(216, 101, 0, 0.22);
		color: var(--on-primary);
	}

	.profile-menu {
		width: auto;
		justify-self: end;
	}

	.profile-trigger {
		width: auto;
	}

	.profile-trigger > span:not(.avatar-pill) {
		display: none;
	}

	.profile-dropdown {
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
		width: min(280px, calc(100vw - 32px));
		margin-top: var(--space-xs);
	}

	.inline-filter {
		align-items: stretch;
		flex-direction: column;
	}

	.tab-list {
		gap: var(--space-md);
	}

	.qr-data-table tbody {
		padding: var(--space-md);
	}

	.qr-data-table tr {
		grid-template-columns: 1fr;
	}

	.qr-data-table td {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.tab-button {
		flex: 1 1 120px;
		text-align: center;
	}

	.action-row {
		align-items: stretch;
	}

	.action-row .btn,
	.action-row form,
	.action-row form .btn {
		width: 100%;
	}

	.qr-card-actions-cell .action-row-table form {
		width: auto;
	}

	.qr-card-actions-cell .action-row-table .action-btn {
		width: 38px;
	}

	.stat-card {
		min-height: 142px;
		padding: 24px 86px 22px 24px;
	}

	.stat-card strong {
		font-size: 32px;
	}

	.stat-icon,
	.stat-icon svg {
		width: 72px;
		height: 72px;
	}

	.stat-icon {
		right: 16px;
		top: 16px;
	}

	.chart-canvas-lg,
	.chart-canvas-md,
	.chart-canvas-sm {
		min-height: 250px;
	}

	.bar-row,
	.compact-bars .bar-row {
		grid-template-columns: 58px minmax(0, 1fr) 34px;
	}

	.footer-links {
		flex-direction: column;
	}
}

.phone-group {
	display: flex;
	gap: 0;
}

.phone-group .phone-code {
	width: 80px;
	flex-shrink: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	text-align: center;
	font-family: 'JetBrains Mono', monospace;
	font-size: .85rem;
}

.phone-group .phone-number {
	flex: 1;
	min-width: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	border-left: 0;
}
