.check-in-main {
	min-width: 0;
	padding: 24px 16px 56px;
}

.check-in-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-bottom: 18px;
	color: var(--ink-500);
	font-size: 13px;
}

.check-in-breadcrumbs a,
.check-in-breadcrumbs strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.check-in-breadcrumbs a {
	color: #9b6811;
	font-weight: 700;
}

.check-in-hero {
	display: grid;
	gap: 18px;
	margin-bottom: 20px;
}

.check-in-hero > div,
.check-in-grid > *,
.check-in-stats article > div {
	min-width: 0;
}

.check-in-hero h1 {
	margin: 4px 0 6px;
	color: var(--ink-900);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 34px;
	line-height: 1.08;
	letter-spacing: 0;
}

.check-in-hero p:last-child {
	margin: 0;
	color: var(--ink-500);
	line-height: 1.55;
}

.check-in-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.check-in-actions form {
	display: contents;
}

.check-in-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--ink-900);
	font-weight: 800;
	cursor: pointer;
}

.check-in-button svg,
.check-in-icon-button svg,
.check-in-event-meta svg,
.check-in-expiry svg,
.check-in-stat-icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.check-in-button--primary {
	border-color: var(--gold-500);
	background: var(--gold-500);
	color: var(--navy-950);
}

.check-in-button--danger {
	border-color: #f1c5c5;
	background: #fff5f5;
	color: #a42525;
}

.check-in-button--secondary:hover,
.check-in-button--secondary:focus-visible {
	border-color: #9fb0c6;
	background: var(--soft);
}

.check-in-notices:empty {
	display: none;
}

.check-in-stats {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 18px 0;
}

.check-in-stats article {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 104px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.check-in-stat-icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 6px;
	background: #edf3f9;
	color: var(--navy-800);
}

.check-in-stat-icon.is-green { background: #eaf7ef; color: #25814c; }
.check-in-stat-icon.is-blue { background: #eaf2fc; color: #2366a8; }
.check-in-stat-icon.is-gold { background: #fff5da; color: #a66a00; }
.check-in-stat-icon.is-red { background: #fff0ef; color: #b33a35; }

.check-in-stats article > div > strong,
.check-in-stats article > div > span,
.check-in-stats article > div > small {
	display: block;
}

.check-in-stats article > div > strong {
	color: var(--ink-900);
	font-size: 25px;
	line-height: 1.05;
}

.check-in-stats article > div > span {
	margin-top: 5px;
	color: var(--ink-900);
	font-weight: 800;
}

.check-in-stats article > div > small {
	margin-top: 3px;
	color: var(--ink-500);
}

.check-in-stats .check-in-stat-window {
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.check-in-grid {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.check-in-session-card,
.check-in-settings-card {
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow-md);
}

.check-in-card-header,
.check-in-settings-card > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e8edf3;
}

.check-in-card-header h2,
.check-in-settings-card h2 {
	margin: 8px 0 0;
	color: var(--ink-900);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.check-in-session-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--ink-500);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.check-in-session-status > span:first-child {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #8592a3;
}

.check-in-session-status.is-open { color: #247347; }
.check-in-session-status.is-open > span:first-child { background: #33a767; box-shadow: 0 0 0 4px #e5f7ec; }
.check-in-session-status.is-closed { color: #a42525; }
.check-in-session-status.is-closed > span:first-child { background: #c7423c; }
.check-in-session-status.is-locked { color: #7952a3; }
.check-in-session-status.is-locked > span:first-child { background: #7952a3; }

.check-in-icon-button {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--navy-800);
	cursor: pointer;
}

.check-in-event-meta {
	display: grid;
	gap: 10px;
	padding: 16px 0;
	color: var(--ink-700);
	font-size: 14px;
}

.check-in-event-meta > span {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.check-in-event-meta > span > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.check-in-event-meta svg {
	flex: 0 0 18px;
	color: #73839a;
}

.check-in-code-area {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding-top: 4px;
}

.check-in-qr-frame {
	width: min(100%, 360px);
	aspect-ratio: 1;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}

.check-in-qr-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.check-in-expiry {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	color: var(--ink-500);
	font-size: 13px;
	text-align: center;
}

.check-in-manual-code {
	display: grid;
	width: min(100%, 360px);
	justify-items: center;
	gap: 4px;
	padding: 14px;
	border: 1px dashed #c9a34c;
	border-radius: 8px;
	background: #fffbef;
}

.check-in-manual-code span,
.check-in-manual-code small {
	color: var(--ink-500);
}

.check-in-manual-code strong {
	color: var(--navy-950);
	font-size: 30px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 3px;
}

.check-in-empty-state {
	display: grid;
	min-height: 330px;
	place-items: center;
	align-content: center;
	gap: 10px;
	padding: 30px 16px;
	border: 1px dashed #cfd8e4;
	border-radius: 8px;
	background: var(--soft);
	color: var(--ink-500);
	text-align: center;
}

.check-in-empty-state svg {
	width: 54px;
	height: 54px;
	fill: none;
	stroke: #8b9aaf;
	stroke-width: 1.4;
}

.check-in-empty-state strong {
	color: var(--ink-900);
}

.check-in-settings-card form {
	display: grid;
	gap: 0;
}

.check-in-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 15px 0;
	border-bottom: 1px solid #edf1f5;
	cursor: pointer;
}

.check-in-toggle-row > span:first-child {
	min-width: 0;
}

.check-in-toggle-row strong,
.check-in-toggle-row small {
	display: block;
}

.check-in-toggle-row strong {
	color: var(--ink-900);
	font-size: 14px;
}

.check-in-toggle-row small {
	margin-top: 3px;
	color: var(--ink-500);
	line-height: 1.4;
}

.check-in-switch-control {
	position: relative;
	display: inline-flex;
	flex: 0 0 42px;
	width: 42px;
	height: 24px;
}

.check-in-switch-control input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.check-in-switch {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	background: #bdc7d3;
	pointer-events: none;
	transition: background 150ms ease;
}

.check-in-switch::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(6, 26, 53, 0.25);
	content: "";
	transition: transform 150ms ease;
}

.check-in-switch-control input:checked ~ .check-in-switch {
	background: var(--gold-500);
}

.check-in-switch-control input:checked ~ .check-in-switch::after {
	transform: translateX(18px);
}

.check-in-switch-control input:focus-visible ~ .check-in-switch {
	outline: 3px solid rgba(31, 111, 235, 0.25);
	outline-offset: 2px;
}

.check-in-setting-fields,
.check-in-window-fields {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 0;
	border-bottom: 1px solid #edf1f5;
	background: var(--soft);
}

.check-in-setting-fields[hidden] {
	display: none;
}

.check-in-setting-fields label,
.check-in-window-fields label {
	display: grid;
	gap: 6px;
	min-width: 0;
	color: var(--ink-700);
	font-size: 13px;
	font-weight: 700;
}

.check-in-setting-fields input,
.check-in-window-fields input {
	min-width: 0;
	width: 100%;
	height: 42px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: var(--ink-900);
}

.check-in-location-capture {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	grid-column: 1 / -1;
	padding-top: 2px;
}

.check-in-location-capture__status {
	color: var(--ink-500);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.check-in-location-capture__status[data-state="loading"] {
	color: #8a5a00;
}

.check-in-location-capture__status[data-state="success"] {
	color: #147a4b;
}

.check-in-location-capture__status[data-state="error"] {
	color: #b42318;
}

.check-in-location-capture__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: var(--navy);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.check-in-location-capture__button:hover {
	border-color: var(--navy);
}

.check-in-location-capture__button:disabled {
	cursor: wait;
	opacity: .6;
}

.check-in-location-capture__button svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.check-in-input-suffix {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.check-in-input-suffix input {
	border-radius: 6px 0 0 6px;
}

.check-in-input-suffix > span {
	display: grid;
	height: 42px;
	place-items: center;
	padding: 0 11px;
	border: 1px solid #cbd5e1;
	border-left: 0;
	border-radius: 0 6px 6px 0;
	background: #edf1f5;
	color: var(--ink-500);
}

.check-in-window-fields {
	margin: 14px 0;
	border: 1px solid #e1e7ee;
	border-radius: 8px;
}

.check-in-window-fields legend {
	padding: 0 6px;
	color: var(--ink-900);
	font-weight: 800;
}

.check-in-form-errors {
	margin: 14px 0 0;
	padding: 12px;
	border: 1px solid #f1b8b5;
	border-radius: 6px;
	background: #fff4f3;
	color: #9a2723;
}

.check-in-form-errors p {
	margin: 4px 0 0;
}

.check-in-save {
	width: 100%;
}

@media (min-width: 640px) {
	.check-in-main { padding: 30px 24px 64px; }
	.check-in-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.check-in-setting-fields--location { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.check-in-setting-fields--location label:last-of-type { grid-column: 1 / -1; }
	.check-in-location-capture { flex-direction: row; align-items: center; justify-content: space-between; }
	.check-in-window-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.check-in-window-fields legend { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
	.check-in-main { padding: 36px 34px 72px; }
	.check-in-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
	.check-in-actions { justify-content: flex-end; }
	.check-in-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.check-in-grid { grid-template-columns: minmax(420px, 1.2fr) minmax(340px, .8fr); align-items: start; }
	.check-in-session-card,
	.check-in-settings-card { padding: 22px; }
}

@media print {
	.workspace-sidebar,
	.workspace-topbar,
	.check-in-breadcrumbs,
	.check-in-hero,
	.event-workspace-tabs,
	.check-in-notices,
	.check-in-stats,
	.check-in-settings-card,
	.check-in-icon-button,
	.check-in-event-meta,
	.check-in-expiry { display: none !important; }
	.workspace-content,
	.check-in-main,
	.check-in-grid { display: block; padding: 0; }
	.check-in-session-card { border: 0; box-shadow: none; }
	.check-in-qr-frame { width: 150mm; }
}
