:root {
	color-scheme: light;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-synthesis: none;
	--bk-ink: #153432;
	--bk-deep: #0b3d3b;
	--bk-sea: #0f766e;
	--bk-mint: #dff3ec;
	--bk-foam: #f3f6f5;
	--bk-line: #d8e2df;
	--bk-muted: #647673;
	--bk-alert: #a83b28;
	--bk-sun: #f2b84b;
}

* {
	box-sizing: border-box;
}

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

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(circle at 90% -10%, rgba(63, 169, 152, 0.22), transparent 32rem),
		var(--bk-foam);
	color: var(--bk-ink);
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--bk-sun);
	outline-offset: 3px;
}

.bk-staff-shell {
	width: min(100%, 54rem);
	min-height: 100vh;
	margin: 0 auto;
}

.bk-staff-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: calc(0.9rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.9rem max(1rem, env(safe-area-inset-left));
	background: rgba(243, 246, 245, 0.88);
	border-bottom: 1px solid rgba(216, 226, 223, 0.86);
	backdrop-filter: blur(16px);
}

.bk-staff-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.bk-staff-brand > span:last-child {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.bk-staff-brand strong {
	overflow: hidden;
	font-size: 0.95rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bk-staff-brand small {
	color: var(--bk-muted);
}

.bk-staff-mark,
.bk-staff-gate__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.6rem;
	aspect-ratio: 1;
	background: var(--bk-deep);
	border-radius: 0.8rem;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.bk-staff-signout {
	color: var(--bk-sea);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.bk-staff-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex: 0 0 auto;
}

.bk-staff-header .bk-lang {
	display: flex;
	gap: 0.15rem;
	width: max-content;
	padding: 0.18rem;
	border: 1px solid rgba(11, 61, 59, 0.13);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
}

.bk-staff-header .bk-lang__item {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	min-height: 1.9rem;
	padding: 0.28rem 0.5rem;
	border-radius: 999px;
	color: var(--bk-muted);
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.bk-staff-header .bk-lang__item.is-active {
	background: var(--bk-deep);
	color: #fff;
	box-shadow: 0 2px 7px rgba(11, 61, 59, 0.2);
}

.bk-staff-header .bk-lang__flag {
	font-size: 0.92rem;
	line-height: 1;
}

.bk-staff-main {
	padding: 1.4rem max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.bk-staff-intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.5rem 0 1rem;
}

.bk-staff-eyebrow {
	margin: 0 0 0.25rem;
	color: var(--bk-sea);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

h1,
h2,
p {
	margin-top: 0;
}

.bk-staff-intro h1 {
	margin-bottom: 0.2rem;
	font-size: clamp(2rem, 8vw, 3.2rem);
	letter-spacing: -0.055em;
	line-height: 1;
}

.bk-staff-updated {
	margin-bottom: 0;
	color: var(--bk-muted);
	font-size: 0.8rem;
}

.bk-staff-refresh,
.bk-staff-install button,
.bk-staff-login button,
.bk-staff-primary-link {
	min-height: 2.8rem;
	padding: 0.65rem 1rem;
	background: var(--bk-deep);
	border: 0;
	border-radius: 0.8rem;
	color: #fff;
	font-weight: 750;
	cursor: pointer;
	text-decoration: none;
}

.bk-staff-refresh:disabled {
	cursor: wait;
	opacity: 0.6;
}

.bk-staff-connection {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1rem;
	color: var(--bk-sea);
	font-size: 0.75rem;
}

.bk-staff-connection span {
	width: 0.5rem;
	height: 0.5rem;
	background: #20a36b;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(32, 163, 107, 0.12);
}

.bk-staff-connection.is-offline {
	color: var(--bk-alert);
}

.bk-staff-connection.is-offline span {
	background: var(--bk-alert);
	box-shadow: 0 0 0 4px rgba(168, 59, 40, 0.12);
}

.bk-staff-install {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--bk-mint);
	border: 1px solid #c5e3d8;
	border-radius: 1rem;
}

.bk-staff-install h2 {
	margin-bottom: 0.2rem;
	font-size: 1rem;
}

.bk-staff-install p {
	margin-bottom: 0;
	color: #486a65;
	font-size: 0.8rem;
}

.bk-ios-install {
	flex-basis: 100%;
	font-weight: 700;
}

.bk-staff-list {
	display: grid;
	gap: 0.75rem;
}

.bk-staff-card {
	padding: 1rem;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--bk-line);
	border-radius: 1rem;
	box-shadow: 0 8px 26px rgba(11, 61, 59, 0.055);
}

.bk-staff-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.bk-staff-card h2 {
	margin-bottom: 0.2rem;
	font-size: 1.25rem;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.bk-staff-card__service,
.bk-staff-card__registered {
	margin: 0;
	color: var(--bk-muted);
	font-size: 0.78rem;
}

.bk-staff-card__service {
	color: var(--bk-teal);
	font-size: 0.9rem;
	font-weight: 750;
}

.bk-staff-card__registered {
	margin-bottom: 0.9rem;
}

.bk-staff-activity {
	flex: 0 0 auto;
	padding: 0.28rem 0.58rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}

.bk-staff-activity.is-active {
	background: #dff6e9;
	color: #12663f;
}

.bk-staff-activity.is-inactive {
	background: #edf0ef;
	color: #63706e;
}

.bk-staff-card__details {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 0.65rem;
}

.bk-staff-detail {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem;
	background: var(--bk-foam);
	border-radius: 0.75rem;
}

.bk-staff-detail > span {
	color: var(--bk-muted);
	font-size: 0.7rem;
}

.bk-staff-detail strong {
	overflow: hidden;
	font-size: 0.92rem;
	text-overflow: ellipsis;
}

.bk-staff-timer {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.025em;
}

.bk-staff-timer.is-low {
	color: var(--bk-alert);
}

.bk-staff-status.is-active {
	color: #12663f;
}

.bk-staff-status.is-failed,
.bk-staff-status.is-cancelled {
	color: var(--bk-alert);
}

.bk-staff-alert,
.bk-staff-empty {
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	background: #fff0ec;
	border: 1px solid #efc7bd;
	border-radius: 0.85rem;
	color: #7f2e1e;
}

.bk-staff-empty {
	background: #fff;
	border-color: var(--bk-line);
	color: var(--bk-muted);
}

.bk-staff-loading {
	height: 9rem;
	background: linear-gradient(100deg, #e5ecea 20%, #f6f8f7 40%, #e5ecea 60%);
	background-size: 200% 100%;
	border-radius: 1rem;
	animation: bk-staff-shimmer 1.2s infinite linear;
}

.bk-staff-gate {
	width: min(100%, 28rem);
	margin: clamp(2rem, 12vh, 7rem) auto 0;
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--bk-line);
	border-radius: 1.2rem;
	box-shadow: 0 20px 55px rgba(11, 61, 59, 0.09);
}

.bk-staff-gate__icon {
	width: 3.5rem;
	margin-bottom: 1.2rem;
	border-radius: 1rem;
	font-size: 1.05rem;
}

.bk-staff-gate h1 {
	margin-bottom: 0.55rem;
	font-size: 1.75rem;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.bk-staff-gate > p:not(.bk-staff-eyebrow) {
	color: var(--bk-muted);
	line-height: 1.5;
}

.bk-staff-login {
	display: grid;
	gap: 0.9rem;
	margin-top: 1.2rem;
}

.bk-staff-login label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
}

.bk-staff-login input {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.75rem;
	background: #fff;
	border: 1px solid #aebfbb;
	border-radius: 0.7rem;
	color: var(--bk-ink);
}

.bk-staff-primary-link {
	display: inline-flex;
	align-items: center;
}

@keyframes bk-staff-shimmer {
	to { background-position: -200% 0; }
}

@media (min-width: 42rem) {
	.bk-staff-main {
		padding-top: 2rem;
	}

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

	.bk-staff-install {
		padding: 1.15rem 1.3rem;
	}
}

@media (max-width: 28rem) {
	.bk-staff-header {
		align-items: flex-start;
	}

	.bk-staff-header__actions {
		align-items: flex-end;
		flex-direction: column;
		gap: 0.35rem;
	}

	.bk-staff-header .bk-lang__item {
		padding-inline: 0.42rem;
	}

	.bk-staff-intro {
		align-items: stretch;
		flex-direction: column;
	}

	.bk-staff-refresh {
		width: 100%;
	}

	.bk-staff-install {
		align-items: stretch;
		flex-direction: column;
	}

	.bk-staff-install button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bk-staff-loading {
		animation: none;
	}
}

/* Customer-name lookup. Sized for a thumb on a location, not a desk. */
.bk-staff-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin: 0 0 1rem;
}

.bk-staff-search__field {
	flex: 1 1 14rem;
}

.bk-staff-search__field input {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	background: #fff;
	border: 2px solid var(--bk-line);
	border-radius: 0.8rem;
	color: var(--bk-ink);
	font: inherit;
	font-size: 1rem;
}

.bk-staff-search__field input:focus-visible {
	border-color: var(--bk-sea);
	outline: 3px solid var(--bk-sun);
	outline-offset: 1px;
}

.bk-staff-search__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--bk-ink);
	font-size: 0.9rem;
	font-weight: 650;
	cursor: pointer;
}

.bk-staff-search__toggle input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--bk-deep);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
