html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

[hidden] {
	display: none !important;
}

.sgb-checkin-shell {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: 18px;
	overflow-x: hidden;
	background:
		radial-gradient(circle at top left, rgba(185, 159, 206, 0.34), transparent 28%),
		radial-gradient(circle at bottom right, rgba(214, 194, 228, 0.3), transparent 32%),
		linear-gradient(135deg, #faf6fb 0%, #f3e9f6 44%, #f4eef8 100%);
}

.sgb-checkin-card,
.sgb-admin-card {
	background: rgba(255, 252, 253, 0.96);
	border: 1px solid rgba(169, 136, 197, 0.18);
	border-radius: 24px;
	box-shadow: 0 20px 44px rgba(88, 62, 119, 0.12);
}

.sgb-checkin-card {
	width: min(100%, 100%);
	max-width: 100%;
	padding: 24px;
	color: #1f2747;
	box-sizing: border-box;
	min-width: 0;
}

.sgb-dashboard-card {
	margin: 18px 0 28px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 25px rgba(2, 6, 23, 0.04);
}

.sgb-dashboard-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.sgb-dashboard-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.2;
	color: #0f172a;
}

.sgb-checkin-card h1 {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.2vw, 2.55rem);
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
	color: #22314f;
}

.sgb-eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	font-weight: 700;
	color: #8c789d;
}

.sgb-copy,
.sgb-panel p,
.sgb-meta {
	font-size: 1rem;
	line-height: 1.6;
}

.sgb-form-stack,
.sgb-form-grid {
	display: grid;
	gap: 14px;
}

.sgb-form-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: 0;
}

.sgb-field {
	display: grid;
	gap: 8px;
}

.sgb-field-span-2 {
	grid-column: span 2;
}

.sgb-field label,
.sgb-panel h2,
.sgb-panel h3 {
	font-weight: 700;
}

.sgb-field input,
.sgb-field select,
.sgb-field textarea,
.sgb-class-picker input,
.sgb-class-picker select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(169, 136, 197, 0.3);
	border-radius: 14px;
	background: #fffdfd;
	color: #1f2747;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	min-height: 52px;
}

.sgb-field textarea {
	min-height: 120px;
	resize: vertical;
	font-family: inherit;
	line-height: 1.45;
}

.sgb-row-list {
	display: grid;
	gap: 10px;
	margin-bottom: 10px;
}

.sgb-row-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px auto;
	gap: 10px;
	align-items: center;
}

.sgb-row-item input {
	width: 100%;
}

.sgb-row-builder .sgb-button {
	width: auto;
}

.sgb-field select,
.sgb-class-picker select {
	appearance: auto;
	-webkit-appearance: menulist;
}

.sgb-class-picker {
	display: grid;
	gap: 10px;
}

.sgb-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 18px;
}

.sgb-stat,
.sgb-panel {
	background: #ffffff;
	border: 1px solid #e7d9ef;
	border-radius: 18px;
	padding: 16px;
	min-width: 0;
}

.sgb-stat-number {
	display: block;
	font-size: 2rem;
	font-weight: 700;
}

.sgb-stat-label,
.sgb-meta {
	color: #64748b;
}

.sgb-notice {
	margin: 18px 0;
	padding: 14px 16px;
	border-radius: 14px;
	font-weight: 600;
}

.sgb-notice-success,
.sgb-notice-info {
	background: #e6f4ea;
	color: #1f5f34;
}

.sgb-notice-reward {
	background: #fff1c9;
	color: #7a4d00;
}

.sgb-notice-duplicate {
	background: #f4efe7;
	color: #654a2c;
}

.sgb-notice-error {
	background: #fde7e3;
	color: #8a2d1c;
}

.sgb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #6d5387 0%, #9a78b5 100%);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
}

.sgb-button:hover,
.sgb-button:focus {
	background: linear-gradient(135deg, #5f4778 0%, #8d69aa 100%);
	color: #fff;
}

.sgb-button-summary {
	list-style: none;
}

.sgb-button-summary::-webkit-details-marker {
	display: none;
}

.sgb-button-launch {
	min-width: 180px;
}

.sgb-newsletter-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.sgb-newsletter-column {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.sgb-tag-cloud,
.sgb-check-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sgb-tag-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f4edf8;
	border: 1px solid #e4d3ee;
	color: #5f4778;
	font-weight: 700;
	font-size: 0.92rem;
}

.sgb-tag-pill-warning {
	background: #fff4e8;
	border-color: #f2d4b0;
	color: #9a5e1a;
}

.sgb-check-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e7d9ef;
	color: #1f2747;
	font-weight: 600;
}

.sgb-check-option input {
	margin: 0;
}

.sgb-check-grid-compact {
	gap: 8px;
}

.sgb-check-option-compact {
	padding: 6px 8px;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 600;
	gap: 6px;
}

.sgb-check-option-compact small {
	display: block;
	font-size: 0.74rem;
	font-weight: 500;
	color: #786c96;
}

.sgb-check-option-compact input {
	width: 14px;
	height: 14px;
}

.sgb-newsletter-groups-list,
.sgb-newsletter-audience-list {
	max-height: 520px;
	overflow: auto;
}

.sgb-newsletter-group-summary {
	list-style: none;
	cursor: pointer;
}

.sgb-newsletter-group-summary::-webkit-details-marker {
	display: none;
}

.sgb-newsletter-group-card[open] {
	background: #fffdfd;
}

.sgb-group-delete-label {
	display: inline-block;
	color: #a06f95;
	font-size: 0.82rem;
	font-weight: 700;
	background: transparent;
	border: 0;
	padding: 0;
}

.sgb-group-delete-inline {
	margin-top: 8px;
}

.sgb-newsletter-group-summary .sgb-group-delete-inline {
	margin-top: 0;
	margin-left: auto;
}

.sgb-group-contact-picker {
	max-height: 220px;
	overflow: auto;
	padding-right: 6px;
}

.sgb-newsletter-preview-card {
	margin-top: 8px;
}

.sgb-newsletter-preview-shell {
	background: #f5f2f8;
	border: 1px solid #e4d3ee;
	border-radius: 18px;
	overflow: hidden;
}

.sgb-newsletter-preview-header {
	background: #5b2d83;
	color: #fff;
	padding: 28px 24px;
	text-align: center;
}

.sgb-newsletter-preview-eyebrow {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.82;
	margin-bottom: 10px;
}

.sgb-newsletter-preview-header h3 {
	margin: 0;
	font-size: 2rem;
	color: #fff;
}

.sgb-newsletter-preview-header p {
	margin: 12px 0 0;
	color: #efe7ff;
}

.sgb-newsletter-preview-image {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	background: #e9deef;
}

.sgb-newsletter-image-picker {
	display: grid;
	gap: 12px;
}

.sgb-newsletter-image-current img {
	display: block;
	width: min(100%, 360px);
	max-height: 190px;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid #e7d9ef;
	background: #faf6fd;
}

.sgb-newsletter-library {
	border: 1px solid #eadcf3;
	border-radius: 16px;
	background: #fcf9fe;
	padding: 12px;
}

.sgb-newsletter-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.sgb-newsletter-library-item {
	display: grid;
	gap: 8px;
	padding: 8px;
	background: #fff;
	border: 1px solid #eadcf3;
	border-radius: 12px;
	text-align: left;
	color: #1f2747;
}

.sgb-newsletter-library-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	background: #ede3f5;
}

.sgb-newsletter-library-item span {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

.sgb-newsletter-preview-body {
	padding: 24px;
	display: grid;
	gap: 14px;
	color: #2a3559;
}

.sgb-newsletter-preview-body h4,
.sgb-newsletter-preview-body strong {
	color: #5b2d83;
}

.sgb-newsletter-preview-callout {
	background: #f0e7f7;
	border-left: 5px solid #5b2d83;
	border-radius: 12px;
	padding: 18px;
}

.sgb-newsletter-preview-extra {
	background: #fff;
	border: 1px solid #eadcf3;
	border-radius: 12px;
	padding: 16px 18px;
	display: grid;
	gap: 8px;
}

.sgb-newsletter-preview-extra-soft {
	background: #faf6fd;
}

.sgb-newsletter-preview-extra p {
	margin: 0;
}

.sgb-newsletter-preview-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: start;
	padding: 13px 22px;
	border-radius: 999px;
	background: #5b2d83;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.sgb-newsletter-preview-button-subtle {
	background: #f0e7f7;
	color: #5b2d83;
	padding: 10px 16px;
}

.sgb-newsletter-preview-footer {
	background: #5b2d83;
	color: #fff;
	padding: 18px 24px;
	text-align: center;
}

.sgb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.sgb-button-secondary {
	background: linear-gradient(135deg, #ece3f5 0%, #d7c4e7 100%);
	color: #2d3555;
}

.sgb-button-secondary:hover,
.sgb-button-secondary:focus {
	background: linear-gradient(135deg, #e1d4ef 0%, #ccb5e0 100%);
	color: #1f2747;
}

.sgb-panel-accent {
	background: linear-gradient(180deg, #fffdfd 0%, #fbf4ff 100%);
}

.sgb-alert-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 18px 0 0;
	padding: 14px 16px;
	border: 1px solid rgba(169, 136, 197, 0.24);
	border-radius: 18px;
	background: linear-gradient(135deg, #f8f1fb 0%, #f1edf8 100%);
}

.sgb-alert-bell {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sgb-alert-bell strong,
.sgb-alert-chip {
	color: #22314f;
}

.sgb-alert-bell span {
	display: block;
	color: #6f7392;
	font-size: 0.94rem;
}

.sgb-alert-bell-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: linear-gradient(135deg, #7b5e95 0%, #b491c9 100%);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	box-shadow: 0 14px 28px rgba(123, 94, 149, 0.22);
}

.sgb-alert-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.sgb-alert-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(169, 136, 197, 0.2);
	font-size: 0.9rem;
	font-weight: 700;
}

.sgb-staff-main {
	min-width: 0;
}

.sgb-choice-grid,
.sgb-time-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.sgb-option-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid rgba(154, 120, 181, 0.28);
	border-radius: 14px;
	background: #fff;
	color: #26304d;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(88, 62, 119, 0.06);
}

.sgb-option-button-class {
	background: linear-gradient(180deg, #fbf6ff 0%, #f3ebfa 100%);
}

.sgb-option-button-time {
	font-weight: 600;
}

.sgb-option-button.is-active {
	border-color: #7f5e9b;
	background: linear-gradient(135deg, #6d5387 0%, #9a78b5 100%);
	color: #fff;
	box-shadow: 0 12px 24px rgba(109, 83, 135, 0.22);
}

.sgb-selection-summary,
.sgb-empty-state,
.sgb-time-empty {
	padding: 13px 14px;
	border: 1px dashed rgba(154, 120, 181, 0.34);
	border-radius: 14px;
	background: #fffdfd;
	color: #5f6684;
}

.sgb-empty-state {
	display: grid;
	gap: 4px;
	grid-column: 1 / -1;
}

.sgb-search-field {
	position: relative;
}

.sgb-search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 40;
	display: grid;
	gap: 8px;
	max-height: 340px;
	padding: 10px;
	overflow: auto;
	background: rgba(255, 252, 253, 0.98);
	border: 1px solid #e7d9ef;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(88, 62, 119, 0.16);
}

.sgb-search-result,
.sgb-search-empty {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid rgba(169, 136, 197, 0.18);
	border-radius: 14px;
	background: #fff;
	text-align: left;
	color: #1f2747;
}

.sgb-search-result {
	cursor: pointer;
}

.sgb-search-result strong {
	font-size: 1rem;
}

.sgb-search-result span,
.sgb-search-result em {
	font-size: 0.9rem;
	font-style: normal;
	color: #6f7392;
}

.sgb-selected-profile {
	display: grid;
	gap: 16px;
	padding: 18px;
	border: 1px solid #e7d9ef;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #f9f3fe 100%);
	grid-column: 1 / -1;
	min-width: 0;
}

.sgb-selected-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.sgb-selected-head h3 {
	margin: 0;
}

.sgb-selected-head p {
	margin: 4px 0 0;
}

.sgb-selected-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	min-width: 0;
}

.sgb-selected-stat {
	display: grid;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid rgba(169, 136, 197, 0.18);
	border-radius: 14px;
	background: #fff;
	min-width: 0;
}

.sgb-selected-stat-label {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #7c5a99;
}

.sgb-inline-form {
	display: grid;
	gap: 12px;
	grid-column: 1 / -1;
}

.sgb-form-grid-tight {
	align-items: end;
}

.sgb-field-action {
	align-self: end;
}

.sgb-field-action .sgb-button {
	width: 100%;
}

.sgb-modal-form {
	display: grid;
	gap: 16px;
}

.sgb-inline-editor {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eadfea;
}

.sgb-inline-editor summary {
	cursor: pointer;
	font-weight: 700;
	color: #7c5a99;
}

.sgb-link {
	color: #8c789d;
	text-decoration: none;
	font-weight: 600;
}

.sgb-link:hover,
.sgb-link:focus {
	text-decoration: underline;
}

.sgb-hello {
	font-weight: 700;
	margin-top: 0;
}

.sgb-meta {
	margin-top: 16px;
}

.sgb-inline-status {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.sgb-inline-status-test {
	margin-bottom: 12px;
	background: #eff6ff;
	border-color: #bfdbfe;
}

.sgb-checkin-launch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.sgb-session-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.sgb-session-card {
	display: grid;
	gap: 6px;
	text-align: left;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	color: #0f172a;
	cursor: pointer;
}

.sgb-session-card.is-selected {
	border-color: #111827;
	box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.sgb-class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.sgb-class-card {
	display: grid;
	gap: 8px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	color: #0f172a;
	text-align: left;
	cursor: pointer;
}

.sgb-class-card-title {
	font-size: 1.05rem;
	font-weight: 700;
}

.sgb-class-card-meta {
	color: #64748b;
	font-size: 0.95rem;
}

.sgb-session-name {
	font-size: 1.05rem;
	font-weight: 700;
}

.sgb-session-time {
	color: #64748b;
	font-size: 0.95rem;
}

.sgb-request-confirm {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #f8fafc;
}

.sgb-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 16px;
}

.sgb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.56);
	backdrop-filter: blur(6px);
}

.sgb-modal-dialog {
	position: relative;
	width: min(92vw, 760px);
	max-height: calc(100vh - 32px);
	overflow: auto;
	margin: 0;
	padding: 24px;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
	overscroll-behavior: contain;
}

.sgb-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 999px;
	background: #f1f5f9;
	color: #0f172a;
	cursor: pointer;
}

.sgb-modal-step {
	display: grid;
	gap: 18px;
}

.sgb-modal-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sgb-text-button {
	padding: 0;
	border: none;
	background: transparent;
	color: #2563eb;
	font-weight: 700;
	cursor: pointer;
}

body.sgb-modal-open {
	overflow: hidden;
}

.sgb-link-button {
	padding: 0;
	border: none;
	background: transparent;
	color: #8c789d;
	font-weight: 700;
	cursor: pointer;
}

.sgb-link-button-danger {
	color: #a35a82;
}

.sgb-staff-layout {
	width: min(100%, 1280px);
	max-width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 92px;
	gap: 18px;
	align-items: start;
	overflow-x: hidden;
	min-width: 0;
}

.sgb-checkin-shell-staff {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 18px clamp(12px, 2vw, 28px);
}

.sgb-checkin-shell-staff .sgb-staff-layout {
	width: 100%;
	max-width: 1700px;
	margin: 0 auto;
}

.sgb-staff-head-actions {
	margin: 8px 0 2px;
}

.sgb-staff-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin-top: 18px;
	min-width: 0;
}

.sgb-work-panel {
	border: 1px solid rgba(169, 136, 197, 0.18);
	border-radius: 22px;
	background: rgba(255, 252, 253, 0.82);
	overflow: hidden;
}

.sgb-work-panel summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	align-items: center;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
	background: linear-gradient(180deg, #fff 0%, #faf3ff 100%);
	font-weight: 700;
	color: #22314f;
}

.sgb-work-panel summary::-webkit-details-marker {
	display: none;
}

.sgb-work-panel summary span {
	font-size: 1.15rem;
}

.sgb-work-panel summary small {
	font-size: 0.92rem;
	font-weight: 600;
	color: #7b6a91;
}

.sgb-work-panel summary::after {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #efe4f2;
	color: #7f5e9b;
	font-size: 1.2rem;
	line-height: 1;
}

.sgb-work-panel[open] summary::after {
	content: "-";
}

.sgb-work-panel .sgb-panel {
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.sgb-side-card {
	position: relative;
	align-self: start;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	width: 92px;
	min-width: 0;
}

.sgb-candidate-list,
.sgb-recent-list {
	display: grid;
	gap: 14px;
}

.sgb-candidate-card,
.sgb-recent-item {
	padding: 16px;
	background: linear-gradient(180deg, #fffdfd 0%, #faf5fb 100%);
	border: 1px solid rgba(184, 161, 201, 0.18);
	border-radius: 18px;
}

.sgb-candidate-summary,
.sgb-recent-item {
	display: grid;
	gap: 4px;
	margin-bottom: 14px;
}

.sgb-draft-item {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 16px;
}

.sgb-draft-item-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.sgb-campaign-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.sgb-campaign-stats span {
	display: inline-flex;
	align-items: center;
	border: 1px solid #eadcf2;
	border-radius: 999px;
	background: #ffffff;
	color: #765a91;
	font-size: 0.78rem;
	font-weight: 800;
	padding: 5px 8px;
}

.sgb-campaign-details-button {
	white-space: nowrap;
	align-self: center;
}

.sgb-campaign-details-modal {
	width: min(1080px, calc(100vw - 32px));
}

.sgb-campaign-details-modal h3,
.sgb-campaign-details-modal p {
	margin: 0;
}

.sgb-campaign-recipient-table-wrap {
	overflow-x: auto;
	border: 1px solid #eadcf2;
	border-radius: 16px;
	background: #fff;
}

.sgb-campaign-recipient-table {
	width: 100%;
	min-width: 860px;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.sgb-campaign-recipient-table th,
.sgb-campaign-recipient-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f0e7f5;
	text-align: left;
	vertical-align: top;
}

.sgb-campaign-recipient-table th {
	background: #fbf7fd;
	color: #5b2d83;
	font-size: 0.78rem;
	text-transform: uppercase;
}

.sgb-campaign-recipient-table tr:last-child td {
	border-bottom: none;
}

.sgb-campaign-recipient-table td strong,
.sgb-campaign-recipient-table td span {
	display: block;
}

.sgb-campaign-recipient-table td span {
	color: #6f7392;
	font-size: 0.82rem;
}

.sgb-campaign-status {
	display: inline-flex !important;
	width: fit-content;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef2ff;
	color: #3730a3 !important;
	font-weight: 800;
}

.sgb-campaign-status-opened,
.sgb-campaign-status-clicked {
	background: #ecfdf5;
	color: #047857 !important;
}

.sgb-campaign-status-delivered,
.sgb-campaign-status-sent {
	background: #eff6ff;
	color: #1d4ed8 !important;
}

.sgb-campaign-status-bounced,
.sgb-campaign-status-failed,
.sgb-campaign-status-unsubscribed {
	background: #fff1f2;
	color: #be123c !important;
}

.sgb-candidate-summary strong {
	font-size: 1.1rem;
}

.sgb-muted {
	color: #6f7392;
}

.sgb-history-card {
	position: sticky;
	top: 18px;
}

.sgb-history-toggle {
	width: 92px;
	border: 1px solid #e0d0eb;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #f6eef8 100%);
	overflow: hidden;
	box-shadow: 0 18px 36px rgba(88, 62, 119, 0.12);
	transition: width .22s ease, box-shadow .22s ease;
}

.sgb-history-toggle[open] {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 20;
	width: min(340px, calc(100vw - 40px));
	max-width: calc(100vw - 40px);
}

.sgb-history-toggle summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 18px 16px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #6d5387;
	white-space: nowrap;
}

.sgb-history-toggle summary::-webkit-details-marker {
	display: none;
}

.sgb-history-toggle summary::after {
	content: ">";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: auto;
	border-radius: 999px;
	background: #efe4f2;
	color: #8c789d;
	font-size: 0.95rem;
	line-height: 1;
}

.sgb-history-toggle[open] summary::after {
	content: "<";
}

.sgb-history-body {
	padding: 0 20px 20px;
	display: grid;
	gap: 18px;
}

.sgb-history-section h3 {
	margin: 0 0 10px;
	color: #22314f;
	font-size: 1.1rem;
}

.sgb-admin-wrap .sgb-admin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.sgb-admin-card {
	padding: 24px;
}

.sgb-qr-preview {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
	padding: 12px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid rgba(88, 58, 24, 0.1);
}

.sgb-modal[hidden],
[hidden] {
	display: none !important;
}

.sgb-modal-dialog-profile {
	width: min(1080px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	overflow: auto;
	margin: 0;
	padding: 34px;
}

.sgb-profile-editor {
	display: grid;
	gap: 22px;
}

.sgb-profile-section {
	padding: 22px;
	border: 1px solid rgba(184, 161, 201, 0.22);
	border-radius: 24px;
	background: linear-gradient(180deg, #fffdfd 0%, #faf6fc 100%);
}

.sgb-profile-section-head {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
}

.sgb-profile-section-head h3,
.sgb-foundation-card h4 {
	margin: 0;
	color: #21304d;
}

.sgb-profile-section-head p {
	margin: 0;
	color: #6f7392;
}

.sgb-role-grid,
.sgb-foundations-grid {
	display: grid;
	gap: 14px;
}

.sgb-role-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sgb-role-toggle,
.sgb-check-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid rgba(184, 161, 201, 0.22);
	border-radius: 18px;
	background: #fff;
	color: #2f3656;
	font-weight: 600;
}

.sgb-check-toggle {
	justify-content: flex-start;
	min-height: 58px;
	cursor: pointer;
}

.sgb-staff-main .sgb-check-toggle {
	display: inline-flex;
	width: 100%;
	max-width: 520px;
	min-height: 54px;
	justify-content: flex-start;
	align-items: center;
	padding: 10px 14px;
	background: linear-gradient(180deg, #fff 0%, #fbf7fd 100%);
	border-color: rgba(184, 161, 201, 0.28);
	box-shadow: 0 10px 24px rgba(88, 62, 119, 0.06);
}

.sgb-check-toggle input[type="checkbox"],
.sgb-staff-main .sgb-check-toggle input[type="checkbox"] {
	position: relative;
	flex: 0 0 auto;
	width: 44px !important;
	height: 24px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	min-height: 24px !important;
	max-height: 24px !important;
	margin: 0;
	padding: 0 !important;
	border: 1px solid #d8c8e4;
	border-radius: 999px;
	background: #f8f2fb;
	box-shadow: inset 0 1px 2px rgba(31, 39, 71, 0.08);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sgb-check-toggle input[type="checkbox"]::before,
.sgb-staff-main .sgb-check-toggle input[type="checkbox"]::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(31, 39, 71, 0.18);
	transition: transform 0.18s ease;
}

.sgb-check-toggle input[type="checkbox"]:checked,
.sgb-staff-main .sgb-check-toggle input[type="checkbox"]:checked {
	border-color: #8b73a8;
	background: #8b73a8;
	box-shadow: 0 8px 18px rgba(139, 115, 168, 0.22);
}

.sgb-check-toggle input[type="checkbox"]:checked::before,
.sgb-staff-main .sgb-check-toggle input[type="checkbox"]:checked::before {
	transform: translateX(20px);
}

.sgb-check-toggle input[type="checkbox"]:focus-visible,
.sgb-staff-main .sgb-check-toggle input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(139, 115, 168, 0.18);
}

.sgb-check-toggle span,
.sgb-staff-main .sgb-check-toggle span {
	display: block;
	line-height: 1.3;
	color: #2f3656;
	font-weight: 700;
}

.sgb-foundation-card {
	padding: 18px;
	border: 1px solid rgba(184, 161, 201, 0.22);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.95);
}

.sgb-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sgb-static-pill {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 16px;
	border-radius: 16px;
	background: #f6eef8;
	border: 1px solid rgba(184, 161, 201, 0.22);
	color: #6d5387;
	font-weight: 700;
}

.sgb-access-summary {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 16px;
	background: linear-gradient(180deg, #f7f0fb 0%, #fdfafd 100%);
	border: 1px solid rgba(184, 161, 201, 0.22);
	color: #6d5387;
	font-weight: 700;
}

.sgb-foundation-mode {
	margin: 0 0 14px;
	color: #6f7392;
	font-weight: 700;
}

.sgb-foundation-status {
	margin: -6px 0 14px;
	padding: 10px 12px;
	border-radius: 12px;
	background: linear-gradient(180deg, #efe7f9 0%, #f8f2fc 100%);
	border: 1px solid rgba(137, 87, 184, 0.24);
	color: #5b3f7a;
	font-weight: 700;
	font-size: 0.92rem;
}

.sgb-foundations-setup-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sgb-foundation-setup-card {
	padding: 14px;
	border-radius: 16px;
	border: 1px solid rgba(184, 161, 201, 0.22);
	background: linear-gradient(180deg, #fff 0%, #faf6fc 100%);
}

.sgb-foundation-setup-card h3 {
	margin: 0 0 10px;
	font-size: 1rem;
	color: #2d2252;
}

.sgb-actions-sticky {
	position: sticky;
	bottom: -20px;
	margin-top: 8px;
	padding-top: 14px;
	background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,253,254,0.95) 26%, rgba(255,253,254,1) 100%);
}

@media (max-width: 600px) {
	.sgb-checkin-card {
		padding: 16px;
	}

	.sgb-form-grid,
	.sgb-staff-layout,
	.sgb-staff-columns,
	.sgb-newsletter-grid {
		grid-template-columns: 1fr;
	}

	.sgb-checkin-shell {
		padding: 10px;
	}

	.sgb-checkin-shell-staff {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 10px;
	}

	.sgb-checkin-card h1 {
		font-size: 2rem;
	}

	.sgb-history-card {
		position: static;
	}

	.sgb-alert-strip {
		flex-direction: column;
		align-items: flex-start;
	}

	.sgb-alert-chips {
		justify-content: flex-start;
	}

	.sgb-side-card,
	.sgb-history-toggle,
	.sgb-history-toggle[open] {
		width: 100%;
	}

	.sgb-history-toggle[open] {
		position: static;
	}

	.sgb-field-span-2 {
		grid-column: auto;
	}

	.sgb-stats {
		grid-template-columns: 1fr;
	}

	.sgb-search-results {
		position: static;
		max-height: 260px;
	}

	.sgb-selected-head,
	.sgb-selected-stats {
		grid-template-columns: 1fr;
	}

	.sgb-choice-grid,
	.sgb-time-suggestions,
	.sgb-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sgb-field input,
	.sgb-field select,
	.sgb-field textarea {
		font-size: 16px;
	}

	.sgb-row-item {
		grid-template-columns: 1fr;
	}

	.sgb-option-button,
	.sgb-actions .sgb-button,
	.sgb-actions .sgb-button-secondary,
	.sgb-actions .sgb-link-button {
		width: 100%;
	}

	.sgb-modal {
		padding: 0;
	}

	.sgb-modal-dialog {
		width: 100vw;
		max-width: 100vw;
		max-height: 100dvh;
		height: 100dvh;
		border-radius: 0;
		padding: 52px 12px calc(16px + env(safe-area-inset-bottom));
	}

	.sgb-modal-close {
		position: fixed;
		top: calc(8px + env(safe-area-inset-top));
		right: 10px;
		z-index: 3;
	}

	.sgb-modal-dialog-profile {
		width: calc(100vw - 18px);
		max-width: calc(100vw - 18px);
		max-height: calc(100dvh - 18px);
		margin: 0;
		padding: 18px;
	}

	.sgb-profile-section {
		padding: 16px;
	}

	.sgb-role-grid {
		grid-template-columns: 1fr;
	}

	.sgb-foundations-setup-grid {
		grid-template-columns: 1fr;
	}

	.sgb-newsletter-groups-list,
	.sgb-newsletter-audience-list {
		max-height: none;
	}
}
