/*
 * Stempy Portal. Uses the Stempy theme's colour tokens when that theme is
 * active; the values after each comma are used with any other theme.
 */

.stempy-portal-page {
	--sp-bg: var(--bg, #f4eee3);
	--sp-bg-2: var(--bg-2, #ede4d3);
	--sp-panel: var(--card, #fbf7ee);
	--sp-ink: var(--ink, #14130f);
	--sp-ink-3: var(--ink-3, #6b6659);
	--sp-line: var(--line, rgba(20, 19, 15, 0.12));
	--sp-accent: var(--accent, #d45b2c);
	--sp-accent-ink: var(--accent-ink, #8a3410);

	/* Stempy's orange, a shade deeper: white text on it reads at 4.9:1. */
	--sp-button: #bf4e1c;
	--sp-ok: var(--ok, #3d6b4a);
	--sp-danger: #b3261e;
	--sp-radius: 18px;

	margin: 0;
	background: var(--sp-bg);
	color: var(--sp-ink);
	font-family: var(--font-geist-sans, system-ui), system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.stempy-portal-page *,
.stempy-portal-page *::before,
.stempy-portal-page *::after {
	box-sizing: border-box;
}

.stempy-portal-page a {
	color: inherit;
}

.stempy-portal-page h1,
.stempy-portal-page h2,
.stempy-portal-page h3 {
	margin: 0 0 12px;
	font-family: var(--font-display, inherit), inherit;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.stempy-portal-page h1 {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.stempy-portal-page h2 {
	font-size: 1.15rem;
}

.stempy-portal-page h3 {
	margin-top: 24px;
	font-size: 1rem;
}

/* Layout */
.sp-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px;
}

.sp-main {
	padding: 32px 0 64px;
}

.sp-main--centered {
	display: grid;
	min-height: 100vh;
	padding: 32px 16px;
	place-items: center;
}

.sp-page-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.sp-page-head h1 {
	margin: 0;
}

.sp-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 20px;
	align-items: start;
}

.sp-panel {
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	background: var(--sp-panel);
}

.sp-muted {
	color: var(--sp-ink-3);
}

.sp-small {
	font-size: 13px;
}

.sp-count {
	margin-left: 6px;
	color: var(--sp-ink-3);
	font-size: 0.6em;
	font-weight: 500;
}

/* Header */
.sp-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--sp-line);
	background: color-mix(in oklab, var(--sp-bg) 92%, transparent);
	backdrop-filter: blur(10px);
}

.sp-header-inner {
	display: flex;
	gap: 8px 24px;
	align-items: center;
	min-height: 64px;
}

.sp-brand {
	font-family: var(--font-display, inherit), inherit;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.sp-nav {
	display: flex;
	flex: 1;
	gap: 4px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.sp-nav a,
.sp-signout {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--sp-ink-3);
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.sp-nav a:hover,
.sp-signout:hover {
	background: var(--sp-bg-2);
	color: var(--sp-ink);
}

.sp-nav a[aria-current="page"] {
	background: color-mix(in oklab, var(--sp-accent) 16%, transparent);
	color: var(--sp-accent-ink);
	font-weight: 600;
}

/* Buttons */
.sp-btn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.stempy-portal-page .sp-btn-primary {
	background: var(--sp-button);
	color: #fff;
}

.stempy-portal-page .sp-btn-primary:hover {
	background: var(--sp-accent-ink);
	color: #fff;
}

.sp-btn-small {
	padding: 7px 14px;
	font-size: 13px;
}

/* A file input inside a button-looking label: the label is what shows. */
.sp-file-button {
	position: relative;
}

.sp-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sp-file-button:focus-within {
	outline: 2px solid var(--sp-accent);
	outline-offset: 2px;
}

/* With JavaScript a chosen file uploads itself; Save is for without. */
.sp-js .sp-no-js {
	display: none;
}

.sp-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--sp-danger);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.stempy-portal-page .sp-btn-accent {
	background: var(--sp-accent);
	color: #fff;
}

.stempy-portal-page .sp-btn-accent:hover {
	background: var(--sp-accent-ink);
}

.stempy-portal-page .sp-btn-ghost {
	border-color: var(--sp-line);
	background: transparent;
	color: var(--sp-ink);
}

.stempy-portal-page .sp-btn-ghost:hover {
	background: var(--sp-bg-2);
}

.stempy-portal-page .sp-btn-danger {
	border-color: var(--sp-danger);
	background: transparent;
	color: var(--sp-danger);
}

.stempy-portal-page .sp-btn-danger:hover {
	background: var(--sp-danger);
	color: #fff;
}

/* Forms */
.sp-form {
	display: grid;
	gap: 14px;
}

.sp-form-row {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	align-items: end;
}

.sp-field {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
}

.sp-field input,
.sp-field textarea,
.sp-field select,
.sp-search input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	background: var(--sp-bg);
	color: var(--sp-ink);
	font: inherit;
	font-size: 15px;
}

/* A select like the text fields, with its own arrow. */
.sp-field select {
	appearance: none;
	padding-right: 42px;
	background-image: url(icons/chevron-down.svg);
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	cursor: pointer;
}

.sp-field select:invalid {
	color: var(--sp-ink-3);
}

.sp-field select option {
	color: var(--sp-ink);
}

/* The join page address being made, under its field. */
.sp-slug-preview {
	overflow-wrap: anywhere;
	color: var(--sp-ink-3);
	font-weight: 400;
}

.sp-slug-preview strong {
	color: var(--sp-ink);
	font-weight: 600;
}

/* Card colours: three pickers side by side. */
.sp-color-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
	gap: 14px;
}

.sp-field input[type="color"] {
	height: 46px;
	padding: 4px;
	cursor: pointer;
}

.sp-field input[type="color"]:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.sp-mono {
	font-family: var(--font-dm-mono, ui-monospace), ui-monospace, monospace;
	font-size: 13px;
	white-space: nowrap;
	color: var(--sp-ink-3);
}

.sp-check {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
}

.sp-search {
	display: flex;
	gap: 8px;
	width: min(100%, 360px);
}

/* Keyboard focus */
.sp-btn:focus-visible,
.sp-field input:focus-visible,
.sp-field textarea:focus-visible,
.sp-field select:focus-visible,
.sp-search input:focus-visible {
	outline: 2px solid var(--sp-accent);
	outline-offset: 2px;
}

/* Notices */
.sp-notice {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
}

.sp-notice.is-ok {
	background: color-mix(in oklab, var(--sp-ok) 14%, transparent);
	color: var(--sp-ok);
}

.sp-notice.is-error {
	background: color-mix(in oklab, var(--sp-danger) 12%, transparent);
	color: var(--sp-danger);
}

/* Sign in */
.sp-login {
	width: min(100%, 420px);
	padding: 32px;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	background: var(--sp-panel);
}

.sp-login .sp-form {
	margin: 20px 0;
}

.sp-login .sp-btn {
	width: 100%;
}

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

/* Dashboard */
.sp-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 20px;
}

.sp-stat {
	display: grid;
	gap: 4px;
}

.sp-stat-label {
	color: var(--sp-ink-3);
	font-size: 13px;
}

.sp-stat-value {
	font-family: var(--font-display, inherit), inherit;
	font-size: 2.2rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

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

.sp-activity li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid var(--sp-line);
}

/* Customer list */
.sp-table {
	width: 100%;
	border-collapse: collapse;
}

.sp-table th,
.sp-table td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--sp-line);
	text-align: left;
	overflow-wrap: anywhere;
}

.sp-table th {
	color: var(--sp-ink-3);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sp-row-link {
	font-weight: 600;
}

/* A wide table scrolls inside its panel on small screens, not the page. */
.sp-table-wrap {
	overflow-x: auto;
}

.sp-table-wrap .sp-table {
	min-width: 640px;
}

.sp-table-wrap .sp-table td {
	overflow-wrap: normal;
}

/* Subscription: plan name with its status, and the plan's facts. */
.sp-plan-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.sp-plan-head h2 {
	margin: 0;
}

.sp-status {
	--sp-tone: var(--sp-ink-3);
	padding: 3px 10px;
	border: 1px solid color-mix(in oklab, var(--sp-tone) 30%, transparent);
	border-radius: 999px;
	background: color-mix(in oklab, var(--sp-tone) 12%, transparent);
	color: var(--sp-tone);
	font-size: 13px;
	font-weight: 600;
}

.sp-status--ok {
	--sp-tone: var(--sp-ok);
}

.sp-status--accent {
	--sp-tone: var(--sp-accent);
}

.sp-status--danger {
	--sp-tone: var(--sp-danger);
}

.sp-facts {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-callout {
	margin: 0 0 14px;
	padding: 12px 16px;
	border: 1px solid color-mix(in oklab, var(--sp-accent) 18%, transparent);
	border-radius: 12px;
	background: color-mix(in oklab, var(--sp-accent) 6%, transparent);
	font-size: 14px;
}

.sp-plan-option {
	padding: 14px 0;
	border-top: 1px solid var(--sp-line);
}

.sp-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Sign up */
.sp-signup {
	display: grid;
	gap: 24px;
	width: min(100%, 560px);
	padding-block: 16px;
}

.sp-narrow {
	width: min(100%, 440px);
}

.sp-signup-head {
	display: grid;
	gap: 10px;
	justify-items: center;
	text-align: center;
}

.sp-signup-head .sp-eyebrow {
	margin: 8px 0 0;
}

.sp-signup-head h1 {
	margin: 0;
	font-size: clamp(1.9rem, 5vw, 2.6rem);
	letter-spacing: -0.03em;
	line-height: 1.08;
	text-wrap: balance;
}

.sp-signup-head .sp-muted {
	max-width: 46ch;
	margin: 0;
	text-wrap: pretty;
}

.sp-site-brand {
	display: inline-flex;
	color: var(--sp-ink);
	text-decoration: none;
}

.sp-site-brand .brand-mark {
	width: 36px;
	height: 36px;
}

.sp-site-brand .brand-word {
	font-size: 30px;
}

/* A form in a raised card (sign-up, join). */
.sp-form-card {
	padding: clamp(20px, 5vw, 36px);
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	background: var(--sp-panel);
	box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04), 0 18px 40px -24px rgba(20, 19, 15, 0.25);
}

/* The chosen plan, at the top of the sign-up form. */
.sp-plan-ticket {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 16px;
	align-items: center;
	margin: 0 0 28px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--sp-bg-2);
}

.sp-plan-ticket-label {
	display: block;
	margin-bottom: 2px;
	color: var(--sp-ink-3);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-plan-ticket-name {
	display: block;
	font-family: var(--font-display, inherit), inherit;
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sp-plan-ticket-period,
.sp-plan-ticket-price span {
	color: var(--sp-ink-3);
	font-size: 13px;
}

.sp-plan-ticket-price {
	margin: 0;
	text-align: right;
}

.sp-plan-ticket-price strong {
	display: block;
	font-family: var(--font-display, inherit), inherit;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.sp-plan-ticket-trial {
	display: flex;
	grid-column: 1 / -1;
	gap: 8px;
	align-items: flex-start;
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px dashed var(--sp-line);
	color: var(--sp-ok);
	font-size: 13.5px;
}

.sp-plan-ticket-trial::before {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	background-color: currentcolor;
	content: "";
	mask: url(icons/check.svg) center / contain no-repeat;
}

/* The sign-up form's parts: about you, then the business. */
.sp-form-section {
	display: grid;
	gap: 16px;
	margin-bottom: 12px;
}

.sp-form-section + .sp-form-section {
	padding-top: 24px;
	border-top: 1px solid var(--sp-line);
}

.stempy-portal-page .sp-form-section-title {
	margin: 0;
	color: var(--sp-ink-3);
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-field small {
	font-weight: 400;
	line-height: 1.45;
}

.sp-field input::placeholder {
	color: color-mix(in oklab, var(--sp-ink-3) 70%, transparent);
}

.stempy-portal-page .sp-btn-block {
	width: 100%;
	padding-block: 14px;
	font-size: 15px;
}

.sp-signup-foot {
	margin: 0;
	color: var(--sp-ink-3);
	text-align: center;
}

.stempy-portal-page .sp-signup-foot a {
	color: var(--sp-ink);
	font-weight: 600;
}

@media (max-width: 420px) {

	.sp-plan-ticket {
		grid-template-columns: 1fr;
	}

	.sp-plan-ticket-price {
		text-align: left;
	}
}

.sp-pages {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

/* Customer page */
.sp-back {
	color: var(--sp-ink-3);
	font-size: 14px;
	text-decoration: none;
}

.sp-back::before {
	content: "← ";
}

.sp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 8px;
}

.sp-plan-option .sp-actions {
	margin: 10px 0 0;
}

.sp-danger h2 {
	color: var(--sp-danger);
}

/* Loyalty card */
.sp-card {
	--sp-card-bg: var(--sp-ink);
	--sp-card-fg: var(--sp-bg);
	--sp-card-label: color-mix(in oklab, var(--sp-card-fg) 65%, transparent);

	display: grid;
	gap: 20px;
	max-width: 380px;
	padding: 22px;
	border-radius: 20px;
	background: var(--sp-card-bg);
	color: var(--sp-card-fg);
}

.sp-card-top,
.sp-card-bottom {
	display: flex;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
}

.sp-card-brand {
	font-family: var(--font-display, inherit), inherit;
	font-size: 1.15rem;
	font-weight: 700;
}

/* The logo before the name, and the banner across the card, as in wallets. */
.sp-card-logo {
	flex: none;
	align-self: center;
	max-width: 40%;
	height: 28px;
	object-fit: contain;
}

.sp-card-top .sp-card-logo + .sp-card-brand {
	margin-right: auto;
}

.sp-card-progress {
	margin: 0;
	color: var(--sp-card-fg);
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	line-height: 1.5;
	white-space: pre-line;
}

.sp-card-banner {
	margin: 0 -22px;
	aspect-ratio: 375 / 144;
	background-position: center;
	background-size: cover;
}

/* Card settings: a row per picture, with its preview and buttons. */
.sp-pictures-note {
	margin: -8px 0 18px;
}

.sp-picture {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.sp-picture + .sp-picture {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--sp-line);
}

.sp-picture h3 {
	margin: 0 0 2px;
	font-size: 1rem;
}

.sp-picture p {
	margin: 0;
}

.sp-picture-preview {
	display: grid;
	place-items: center;
	width: 96px;
	height: 64px;
	overflow: hidden;
	border: 1px dashed var(--sp-line);
	border-radius: 12px;
	background: var(--sp-bg-2);
}

.sp-picture-preview-icon {
	width: 64px;
	justify-self: center;
}

.sp-picture-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sp-picture-preview-banner img {
	object-fit: cover;
}

.sp-picture-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin-top: 10px;
}

.sp-picture-actions form {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
}

/* Staff page: each person, with their details to edit. */
.sp-staff-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-staff-item {
	padding: 14px 16px;
	border: 1px solid var(--sp-line);
	border-radius: 14px;
}

.sp-staff-head {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.sp-staff-head strong,
.sp-staff-head span {
	display: block;
	overflow-wrap: anywhere;
}

.sp-staff-edit summary {
	margin-top: 8px;
	cursor: pointer;
	font-weight: 600;
}

.sp-staff-edit[open] summary {
	margin-bottom: 12px;
}

.sp-staff-edit form + form {
	margin-top: 16px;
}

.sp-card-label {
	color: var(--sp-card-label);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-card-stamps {
	display: grid;
	grid-template-columns: repeat(var(--sp-columns, 5), minmax(0, 52px));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-card-stamps li {
	aspect-ratio: 1;
	border: 2px dashed var(--sp-card-label);
	border-radius: 50%;
}

.sp-card-stamps li.is-filled {
	border: 0;
	background: var(--sp-card-fg);
}

/* Join page: the business's own, in its colours. */
.sp-join {
	--sp-join-bg: var(--sp-ink);
	--sp-join-fg: var(--sp-bg);

	display: grid;
	gap: 24px;
	width: min(100%, 460px);
	padding-block: 16px;
}

.sp-join-head {
	display: grid;
	gap: 8px;
	justify-items: center;
	text-align: center;
}

.sp-join-logo {
	width: 72px;
	height: 72px;
	margin-bottom: 4px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 0 8px 24px -12px rgba(20, 19, 15, 0.4);
}

.sp-join-monogram {
	display: grid;
	width: 64px;
	height: 64px;
	margin-bottom: 4px;
	border-radius: 20px;
	background: var(--sp-join-bg);
	color: var(--sp-join-fg);
	font-family: var(--font-display, inherit), inherit;
	font-size: 28px;
	font-weight: 600;
	place-items: center;
}

.sp-join-head .sp-eyebrow {
	margin: 0;
}

.sp-join-head h1 {
	margin: 0;
	font-size: clamp(1.8rem, 6vw, 2.4rem);
	letter-spacing: -0.03em;
	line-height: 1.08;
	text-wrap: balance;
}

.sp-join-head .sp-muted {
	max-width: 38ch;
	margin: 0;
	text-wrap: pretty;
}

.sp-join-card .sp-card {
	width: 100%;
	box-shadow: 0 24px 48px -24px rgba(20, 19, 15, 0.55);
	transform: rotate(-1.5deg);
}

.sp-join-steps {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	counter-reset: sp-step;
	list-style: none;
	font-size: 14px;
}

.sp-join-steps li {
	display: flex;
	gap: 12px;
	align-items: center;
	counter-increment: sp-step;
}

.sp-join-steps li::before {
	display: grid;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sp-bg-2);
	color: var(--sp-ink);
	content: counter(sp-step);
	font-size: 12px;
	font-weight: 600;
	place-items: center;
}

.stempy-portal-page .sp-join-button {
	background: var(--sp-join-bg);
	color: var(--sp-join-fg);
}

.stempy-portal-page .sp-join-button:hover {
	background: var(--sp-accent);
	color: #fff;
}

.sp-join-foot {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	color: var(--sp-ink-3);
	font-size: 12px;
}

.sp-join-foot .brand-mark {
	width: 18px;
	height: 18px;
}

.sp-join-foot .brand-word {
	font-size: 17px;
}

/* Customer pages: join and card */
.sp-public {
	display: grid;
	gap: 18px;
	width: min(100%, 440px);
}

.sp-public h1 {
	margin: 0;
}

.sp-public > p {
	margin: 0;
}

.sp-public .sp-card {
	width: 100%;
}

.sp-public .sp-btn {
	width: 100%;
}

.sp-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sp-terms {
	margin: 0;
}

.sp-wallets {
	display: grid;
	gap: 10px;
}

.sp-center {
	text-align: center;
}

/* QR codes */
.sp-qr {
	width: min(100%, 200px);
	margin: 12px auto;
	padding: 8px;
	border-radius: 12px;
	background: #fff;
}

.sp-qr:empty {
	display: none;
}

.sp-qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.sp-qr-large {
	width: min(100%, 320px);
}

.sp-copy {
	display: flex;
	gap: 8px;
}

.sp-copy-input {
	flex: 1;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	background: var(--sp-bg);
	color: var(--sp-ink);
	font: inherit;
	font-size: 13px;
}

/* Scanner */
.sp-scanner-video {
	display: block;
	width: 100%;
	margin-bottom: 12px;
	border-radius: 12px;
	background: #000;
}

/* Join poster */
.sp-poster {
	text-align: center;
}

.sp-poster h2 {
	font-size: 2rem;
}

/* Logo */
.sp-logo {
	display: block;
	max-width: 160px;
	max-height: 80px;
	margin-bottom: 12px;
}

@media print {

	.sp-header,
	.sp-no-print {
		display: none;
	}

	.sp-poster {
		border: 0;
	}
}

@media (max-width: 640px) {

	.sp-main {
		padding-top: 20px;
	}

	.sp-panel {
		padding: 18px;
	}

	.sp-hide-small {
		display: none;
	}

	.sp-header-inner {
		flex-wrap: wrap;
		padding-top: 10px;
		padding-bottom: 6px;
	}

	.sp-nav {
		order: 3;
		flex-basis: 100%;
	}

	.sp-signout {
		margin-left: auto;
	}
}
