/*
 * Simple Affiliates – affiliate area, reports and admin screens.
 *
 * Neutral colors derive from the surrounding text color (currentColor), so the UI fits light and
 * dark themes alike. One accent color (Settings → Affiliate area → Accent color) drives buttons,
 * active states and charts. Status colors always come with a text label.
 */

.saff-report,
.saff-area,
.saff-admin {
	--saff-accent: #2a78d6;
	--saff-series: var(--saff-accent);
	--saff-on-accent: #fff;
	--saff-line: color-mix(in srgb, currentColor 14%, transparent);
	--saff-line-strong: color-mix(in srgb, currentColor 28%, transparent);
	--saff-faint: color-mix(in srgb, currentColor 4%, transparent);
	--saff-hover: color-mix(in srgb, currentColor 7%, transparent);
	--saff-muted: color-mix(in srgb, currentColor 66%, transparent);
	--saff-tint: color-mix(in srgb, var(--saff-accent) 12%, transparent);
	--saff-good: #0a7a3d;
	--saff-bad: #c4312f;
	--saff-warn: #9a6200;
	--saff-radius: 12px;
	--saff-radius-sm: 8px;
	--saff-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.saff-report *,
.saff-area *,
.saff-admin * {
	box-sizing: border-box;
}

.saff-muted {
	color: var(--saff-muted);
}

.saff-strong {
	font-weight: 600;
}

.saff-icon {
	flex: none;
	vertical-align: -0.2em;
}

.saff-area .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ================================================================== */
/* Affiliate area: base                                                */
/* ================================================================== */

.saff-area {
	max-width: 1100px;
	margin-inline: auto;
	line-height: 1.5;
}

.saff-area h2,
.saff-area h3 {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.3;
}

.saff-area h2 {
	font-size: 1.35em;
	font-weight: 650;
	margin: 0 0 0.35em;
}

.saff-area h3 {
	font-size: 1.05em;
	font-weight: 600;
	margin: 0 0 0.6em;
}

.saff-area p {
	margin: 0 0 0.75em;
}

.saff-area a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 3px;
}

.saff-area a:hover {
	text-decoration-color: currentColor;
}

.saff-area :focus-visible {
	outline: 2px solid var(--saff-accent);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.saff-area .saff-btn,
.saff-report .saff-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0.55em 1.1em;
	border: 1px solid transparent;
	border-radius: var(--saff-radius-sm);
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, filter 0.15s;
}

.saff-area .saff-btn--primary {
	background: var(--saff-accent);
	border-color: var(--saff-accent);
	color: var(--saff-on-accent);
}

.saff-area .saff-btn--primary:hover {
	filter: brightness(0.92);
	color: var(--saff-on-accent);
}

.saff-area .saff-btn--secondary,
.saff-report .saff-btn--secondary {
	background: transparent;
	border-color: var(--saff-line-strong);
	color: inherit;
}

.saff-area .saff-btn--secondary:hover {
	background: var(--saff-hover);
}

.saff-area .saff-btn--ghost {
	background: transparent;
	color: var(--saff-muted);
	min-height: 36px;
	padding-inline: 0.75em;
}

.saff-area .saff-btn--ghost:hover {
	background: var(--saff-hover);
	color: inherit;
}

.saff-area .saff-btn--block {
	width: 100%;
}

.saff-area .saff-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	filter: none;
}

.saff-area .saff-btn.is-busy {
	cursor: progress;
	opacity: 0.8;
}

.saff-area .saff-btn.is-copied {
	background: var(--saff-good);
	border-color: var(--saff-good);
	color: #fff;
}

/* ---------- Inputs ---------- */

.saff-area input[type="text"],
.saff-area input[type="email"],
.saff-area input[type="password"],
.saff-area input[type="url"],
.saff-area input[type="number"],
.saff-area input[type="date"],
.saff-area select,
.saff-area textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.6em 0.8em;
	border: 1px solid var(--saff-line-strong);
	border-radius: var(--saff-radius-sm);
	background: color-mix(in srgb, currentColor 2%, transparent);
	color: inherit;
	font: inherit;
	font-size: max(16px, 1em); /* 16px+ stops iOS from zooming in on focus */
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.saff-area textarea {
	min-height: 0;
	resize: vertical;
}

.saff-area input:focus,
.saff-area select:focus,
.saff-area textarea:focus {
	outline: none;
	border-color: var(--saff-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--saff-accent) 25%, transparent);
}

.saff-area [aria-invalid="true"] {
	border-color: var(--saff-bad) !important;
}

.saff-area [aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--saff-bad) 22%, transparent) !important;
}

.saff-area input[readonly] {
	background: var(--saff-faint);
}

.saff-area input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--saff-accent);
	flex: none;
}

/* ---------- Fields ---------- */

.saff-field {
	margin: 0 0 16px;
}

.saff-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 6px;
}

.saff-field__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.saff-field__link {
	font-size: 0.875em;
}

.saff-optional {
	font-weight: 400;
	color: var(--saff-muted);
	font-size: 0.9em;
}

.saff-area .saff-help {
	margin: 6px 0 0;
	font-size: 0.85em;
	color: var(--saff-muted);
}

.saff-area .saff-help.is-warn {
	color: var(--saff-warn);
}

.saff-area .saff-field__error {
	margin: 6px 0 0;
	font-size: 0.85em;
	color: var(--saff-bad);
	font-weight: 500;
}

.saff-field--check label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.95em;
	cursor: pointer;
}

.saff-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.saff-hp {
	position: absolute !important;
	left: -9999px !important;
}

/* Password show/hide */
.saff-password {
	position: relative;
}

.saff-area .saff-password input {
	padding-right: 48px;
}

.saff-area .saff-password__toggle {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--saff-muted);
	cursor: pointer;
	min-height: 0;
	box-shadow: none;
}

.saff-area .saff-password__toggle:hover {
	color: inherit;
	background: var(--saff-hover);
}

.saff-password__toggle [hidden] {
	display: none;
}

.saff-pwcheck {
	display: flex;
	align-items: center;
	gap: 6px;
}

.saff-pwcheck__mark {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid var(--saff-line-strong);
	color: transparent;
	transition: all 0.15s;
}

.saff-pwcheck__mark .saff-icon {
	width: 12px;
	height: 12px;
}

.saff-area .saff-pwcheck.is-ok {
	color: var(--saff-good);
}

.saff-pwcheck.is-ok .saff-pwcheck__mark {
	background: var(--saff-good);
	border-color: var(--saff-good);
	color: #fff;
}

/* ---------- Notices & toast ---------- */

.saff-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: var(--saff-radius-sm);
	margin: 0 0 16px;
	background: var(--saff-tint);
	border-left: 3px solid var(--saff-accent);
	font-size: 0.95em;
}

.saff-notice .saff-icon {
	margin-top: 2px;
}

.saff-notice__line {
	display: block;
}

.saff-notice--error {
	background: color-mix(in srgb, var(--saff-bad) 10%, transparent);
	border-left-color: var(--saff-bad);
}

.saff-notice--error > .saff-icon {
	color: var(--saff-bad);
}

.saff-notice--success {
	background: color-mix(in srgb, var(--saff-good) 10%, transparent);
	border-left-color: var(--saff-good);
}

.saff-notice--success > .saff-icon {
	color: var(--saff-good);
}

.saff-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	transform: translateX(-50%);
	padding: 10px 18px;
	border-radius: 999px;
	background: #1d1d1b;
	color: #fff;
	font-size: 0.9em;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	animation: saff-toast-in 0.2s ease-out;
	transition: opacity 0.25s, transform 0.25s;
}

.saff-toast[hidden] {
	display: none;
}

.saff-toast.is-out {
	opacity: 0;
	transform: translate(-50%, 8px);
}

@keyframes saff-toast-in {
	from {
		opacity: 0;
		transform: translate(-50%, 8px);
	}
}

/* ---------- Cards ---------- */

.saff-card {
	border: 1px solid var(--saff-line);
	border-radius: var(--saff-radius);
	background: var(--saff-faint);
	box-shadow: var(--saff-shadow);
	padding: 20px;
	margin: 0 0 16px;
	min-width: 0;
}

.saff-card--flush {
	padding: 0;
	overflow: hidden;
}

.saff-card > :last-child {
	margin-bottom: 0;
}

.saff-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.saff-grid-2 > .saff-card {
	margin: 0;
}

.saff-section-title {
	margin-top: 28px !important;
}

/* ---------- Pills, chips, badges ---------- */

.saff-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: #ececec;
	color: #4a4a4a;
}

.saff-pill--pending { background: #fff1cc; color: #714b00; }
.saff-pill--unpaid { background: #dfecff; color: #184a8c; }
.saff-pill--paid,
.saff-pill--active { background: #d9f3e3; color: #0e5a33; }
.saff-pill--rejected,
.saff-pill--inactive { background: #efefef; color: #555; }

.saff-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.saff-area .saff-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 6px 14px;
	border: 1px solid var(--saff-line-strong);
	border-radius: 999px;
	font-size: 0.875em;
	text-decoration: none;
	transition: background-color 0.15s;
}

.saff-area .saff-chip:hover {
	background: var(--saff-hover);
}

.saff-chip__count {
	min-width: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--saff-hover);
	text-align: center;
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
}

.saff-area .saff-chip[aria-current="true"] {
	background: var(--saff-accent);
	border-color: var(--saff-accent);
	color: var(--saff-on-accent);
	font-weight: 600;
}

.saff-chip[aria-current="true"] .saff-chip__count {
	background: color-mix(in srgb, var(--saff-on-accent) 22%, transparent);
}

.saff-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 0.75em;
	font-weight: 600;
	background: var(--saff-accent);
	color: var(--saff-on-accent);
	vertical-align: middle;
}

.saff-tip {
	color: var(--saff-muted);
	cursor: help;
}

/* ---------- Empty state ---------- */

.saff-empty {
	text-align: center;
	padding: 40px 20px;
	border: 1px dashed var(--saff-line-strong);
	border-radius: var(--saff-radius);
	margin: 0 0 16px;
}

.saff-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--saff-tint);
	color: var(--saff-accent);
	margin-bottom: 12px;
}

.saff-empty__icon .saff-icon {
	width: 26px;
	height: 26px;
}

.saff-area .saff-empty__title {
	font-weight: 650;
	font-size: 1.1em;
	margin: 0 0 4px;
}

.saff-area .saff-empty__text {
	color: var(--saff-muted);
	max-width: 440px;
	margin: 0 auto 16px;
}

/* ---------- Steps ---------- */

.saff-steps {
	list-style: none;
	margin: 16px 0;
	padding: 0;
	text-align: left;
}

.saff-steps li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 14px;
}

.saff-steps li > div,
.saff-steps li > span:last-child {
	flex: 1;
	min-width: 0;
}

.saff-steps__dot {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1.5px solid var(--saff-line-strong);
	font-weight: 650;
	font-size: 0.85em;
	color: var(--saff-muted);
}

.saff-steps__dot .saff-icon {
	width: 16px;
	height: 16px;
}

.saff-steps li.is-current .saff-steps__dot {
	background: var(--saff-accent);
	border-color: var(--saff-accent);
	color: var(--saff-on-accent);
}

.saff-steps li.is-done .saff-steps__dot {
	background: var(--saff-good);
	border-color: var(--saff-good);
	color: #fff;
}

.saff-steps--big li {
	padding: 16px 0;
	margin: 0;
	border-bottom: 1px solid var(--saff-line);
}

.saff-steps--big li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.saff-steps--big strong {
	display: block;
	margin: 4px 0 8px;
}

.saff-steps--big p {
	margin: 0 0 4px;
}

/* ================================================================== */
/* Sign in / sign up / status cards                                    */
/* ================================================================== */

.saff-auth {
	max-width: 460px;
	margin: 0 auto 16px;
	padding: 28px;
}

.saff-auth--register {
	max-width: 520px;
}

.saff-auth__head {
	text-align: center;
	margin-bottom: 20px;
}

.saff-auth__head .saff-muted {
	margin: 0;
}

.saff-auth__badge {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--saff-tint);
	color: var(--saff-accent);
	margin-bottom: 12px;
}

.saff-auth__badge .saff-icon {
	width: 24px;
	height: 24px;
}

.saff-auth__badge--wait {
	background: color-mix(in srgb, var(--saff-warn) 14%, transparent);
	color: var(--saff-warn);
}

.saff-auth__badge--muted {
	background: var(--saff-hover);
	color: var(--saff-muted);
}

.saff-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin: 0 0 24px;
	border-radius: 10px;
	background: var(--saff-hover);
}

.saff-area .saff-switch a {
	display: block;
	padding: 8px 10px;
	border-radius: 7px;
	text-align: center;
	text-decoration: none;
	font-size: 0.925em;
	font-weight: 500;
	color: var(--saff-muted);
}

.saff-area .saff-switch a[aria-current="page"] {
	background: color-mix(in srgb, var(--saff-accent) 14%, transparent);
	color: inherit;
	font-weight: 650;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--saff-accent) 35%, transparent);
}

.saff-area .saff-auth__foot {
	text-align: center;
	margin: 18px 0 0;
	font-size: 0.925em;
	color: var(--saff-muted);
}

.saff-auth__foot a {
	font-weight: 600;
	color: inherit;
}

.saff-perks {
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: var(--saff-radius-sm);
	background: var(--saff-tint);
	font-size: 0.925em;
}

.saff-perks li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 3px 0;
}

.saff-perks .saff-icon {
	color: var(--saff-good);
	margin-top: 2px;
}

.saff-more {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--saff-line);
	border-radius: var(--saff-radius-sm);
}

.saff-more summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9em;
}

.saff-more[open] summary {
	margin-bottom: 12px;
}

.saff-more .saff-field:last-child {
	margin-bottom: 0;
}

.saff-status-card {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
	padding: 32px 28px;
}

.saff-status-card .saff-steps {
	max-width: 420px;
	margin: 20px auto;
}

/* ================================================================== */
/* Dashboard                                                           */
/* ================================================================== */

.saff-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 8px;
}

.saff-hero__who {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.saff-avatar {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	background: var(--saff-tint);
	color: var(--saff-accent);
	font-weight: 700;
	font-size: 1.05em;
	letter-spacing: 0.02em;
}

.saff-avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border-radius: 50%;
}

.saff-area .saff-hero__hello {
	font-size: 1.35em;
	font-weight: 650;
	line-height: 1.25;
	margin: 0;
}

.saff-area .saff-hero__sub {
	margin: 2px 0 0;
	font-size: 0.95em;
}

.saff-area .saff-hero__sub strong {
	font-weight: 650;
}

.saff-tabs {
	display: flex;
	gap: 2px;
	margin: 16px 0 24px;
	border-bottom: 1px solid var(--saff-line);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.saff-tabs::-webkit-scrollbar {
	display: none;
}

.saff-area .saff-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	color: var(--saff-muted);
	text-decoration: none;
	white-space: nowrap;
	font-weight: 500;
	transition: color 0.15s, border-color 0.15s;
}

.saff-area .saff-tabs a:hover {
	color: inherit;
	border-bottom-color: var(--saff-line-strong);
}

.saff-area .saff-tabs a[aria-current="page"] {
	color: inherit;
	font-weight: 650;
	border-bottom-color: var(--saff-accent);
}

.saff-tabs a[aria-current="page"] .saff-icon {
	color: var(--saff-accent);
}

/* Referral link card */

.saff-linkcard__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.saff-area .saff-linkcard__head a {
	font-size: 0.875em;
	color: var(--saff-muted);
	text-decoration: none;
}

.saff-area .saff-linkcard__head a:hover {
	color: inherit;
}

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

.saff-copy input {
	flex: 1;
	min-width: 0;
	font-variant-ligatures: none;
}

.saff-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.saff-area .saff-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--saff-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.85em;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	min-height: 0;
	transition: background-color 0.15s, border-color 0.15s;
}

.saff-area .saff-share__btn:hover {
	background: var(--saff-hover);
	border-color: var(--saff-line-strong);
}

.saff-share__btn .saff-icon {
	width: 16px;
	height: 16px;
}

.saff-share__btn[hidden] {
	display: none;
}

/* Onboarding */

.saff-onboard__head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.saff-onboard__head .saff-auth__badge {
	margin: 0;
	flex: none;
}

.saff-onboard__head h2 {
	margin-top: 4px;
}

/* Tables */

.saff-card--flush .saff-table th,
.saff-card--flush .saff-table td {
	padding: 12px 16px;
}

.saff-card--flush .saff-table tbody tr:last-child td {
	border-bottom: 0;
}

.saff-table tbody tr {
	transition: background-color 0.1s;
}

.saff-table tbody tr:hover td {
	background: var(--saff-faint);
}

.saff-area .saff-legend {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.85em;
	margin: 0 2px 16px;
}

.saff-legend .saff-icon {
	width: 16px;
	height: 16px;
	margin-top: 2px;
}

.saff-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 16px 0;
}

/* Payouts */

.saff-payout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}

.saff-area .saff-payout__main > p:first-child {
	margin: 0;
}

.saff-area .saff-payout__amount {
	font-size: 2.3em;
	font-weight: 700;
	line-height: 1.15;
	margin: 4px 0 14px;
}

.saff-area .saff-payout__hint {
	margin: 10px 0 0;
	font-size: 0.9em;
}

.saff-payout__hint .saff-icon {
	color: var(--saff-good);
}

.saff-payout__side {
	margin: 0;
}

.saff-payout__side > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--saff-line);
}

.saff-payout__side > div:last-child {
	border-bottom: 0;
}

.saff-payout__side dt {
	color: var(--saff-muted);
	margin: 0;
	white-space: nowrap;
}

.saff-payout__side dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
	min-width: 0;
	overflow-wrap: anywhere;
}

.saff-deflist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin: 0;
}

.saff-deflist dt {
	font-size: 0.85em;
	color: var(--saff-muted);
	margin: 0 0 2px;
}

.saff-deflist dd {
	margin: 0;
	font-weight: 600;
}

/* Payout methods */

.saff-field__legend {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin: 0 0 8px;
	padding: 0;
}

.saff-methods {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.saff-method {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--saff-line-strong);
	border-radius: var(--saff-radius-sm);
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.saff-method:hover {
	background: var(--saff-hover);
}

.saff-method input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.saff-method:has(input:checked) {
	border-color: var(--saff-accent);
	background: var(--saff-tint);
	box-shadow: inset 0 0 0 1px var(--saff-accent);
}

.saff-method:has(input:focus-visible) {
	outline: 2px solid var(--saff-accent);
	outline-offset: 2px;
}

.saff-method__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--saff-hover);
	color: var(--saff-accent);
}

.saff-method:has(input:checked) .saff-method__icon {
	background: var(--saff-accent);
	color: var(--saff-on-accent);
}

.saff-method__text strong {
	display: block;
	font-size: 0.95em;
	line-height: 1.3;
}

.saff-method__text span {
	display: block;
	font-size: 0.8em;
	color: var(--saff-muted);
	line-height: 1.35;
	margin-top: 2px;
}

.saff-method-fields[hidden] {
	display: none;
}

.saff-area .saff-method-note,
.saff-area .saff-secure-note {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin: 0 0 14px;
}

.saff-secure-note .saff-icon {
	color: var(--saff-good);
	width: 16px;
	height: 16px;
	margin-top: 2px;
}

.saff-notice--action {
	align-items: center;
	flex-wrap: wrap;
}

.saff-notice--action > span {
	flex: 1 1 260px;
}

.saff-notice--action .saff-btn {
	min-height: 36px;
	font-size: 0.875em;
}

/* ================================================================== */
/* Reports (shared by the dashboard and wp-admin)                      */
/* ================================================================== */

.saff-range {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 8px 0 16px;
	transition: opacity 0.15s;
}

.saff-range.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.saff-area .saff-range select,
.saff-area .saff-range input[type="date"] {
	width: auto;
	min-height: 40px;
	padding-block: 0.4em;
}

.saff-range [hidden] {
	display: none !important;
}

.saff-range__custom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.saff-range__dates {
	color: var(--saff-muted);
	font-size: 0.875em;
}

.saff-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.saff-tile {
	flex: 1 1 150px;
	border: 1px solid var(--saff-line);
	border-radius: var(--saff-radius);
	padding: 16px 18px;
	background: var(--saff-faint);
	box-shadow: var(--saff-shadow);
}

.saff-tile__label {
	font-size: 0.8125em;
	color: var(--saff-muted);
}

.saff-tile__value {
	font-size: 1.65em;
	font-weight: 650;
	line-height: 1.25;
	margin-top: 4px;
}

.saff-tile__delta {
	font-size: 0.8125em;
	margin-top: 6px;
}

.saff-delta--up { color: var(--saff-good); }
.saff-delta--down { color: var(--saff-bad); }
.saff-delta--flat { color: var(--saff-muted); }

.saff-minitiles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 32px;
	margin: 0 0 20px;
	padding: 12px 18px;
	border: 1px solid var(--saff-line);
	border-radius: var(--saff-radius);
}

.saff-minitiles dt {
	font-size: 0.8125em;
	color: var(--saff-muted);
	margin: 0;
}

.saff-minitiles dd {
	margin: 0;
	font-weight: 600;
}

/* Chart */

.saff-chart {
	position: relative;
	border: 1px solid var(--saff-line);
	border-radius: var(--saff-radius);
	padding: 16px 18px 10px;
	box-shadow: var(--saff-shadow);
}

.saff-chart__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.saff-chart__title {
	margin: 0 !important;
	font-size: 1em !important;
	font-family: inherit;
}

.saff-chart__metrics {
	display: inline-flex;
	padding: 3px;
	gap: 2px;
	border-radius: 9px;
	background: var(--saff-hover);
	max-width: 100%;
	overflow-x: auto;
}

.saff-chart__metrics button {
	all: unset;
	cursor: pointer;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 0.8125em;
	font-weight: 500;
	line-height: 1.6;
	color: inherit;
	white-space: nowrap;
}

.saff-chart__metrics button[aria-pressed="true"] {
	background: var(--saff-accent);
	color: var(--saff-on-accent);
	font-weight: 600;
}

.saff-chart__metrics button:focus-visible {
	outline: 2px solid var(--saff-accent);
	outline-offset: 1px;
}

.saff-chart__plot {
	position: relative;
	height: 260px;
}

.saff-chart__plot svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.saff-chart__plot .grid { stroke: var(--saff-line); stroke-width: 1; shape-rendering: crispEdges; }
.saff-chart__plot .axis-text { fill: var(--saff-muted); font-size: 11px; }
.saff-chart__plot .bar { fill: var(--saff-series); transition: opacity 0.12s; }
.saff-chart__plot.is-hovering .bar { opacity: 0.45; }
.saff-chart__plot.is-hovering .bar.is-active { opacity: 1; }
.saff-chart__plot .hit { fill: transparent; cursor: default; }
.saff-chart__plot .hit:focus { outline: none; }
.saff-chart__plot .hit:focus-visible { stroke: var(--saff-series); stroke-width: 2; }

.saff-chart__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--saff-muted);
	font-size: 0.875em;
}

.saff-chart__tip {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	padding: 6px 10px;
	border-radius: 6px;
	background: #1d1d1b;
	color: #f5f5f2;
	font-size: 0.8125em;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.saff-chart__tip strong {
	display: block;
	font-weight: 600;
}

/* Tables */

.saff-tableview {
	margin: 10px 0 20px;
	font-size: 0.875em;
}

.saff-tableview summary {
	cursor: pointer;
	color: var(--saff-muted);
}

.saff-scroll {
	max-height: 320px;
	overflow: auto;
	margin-top: 8px;
}

.saff-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	margin: 0;
}

.saff-table th,
.saff-table td {
	text-align: left;
	padding: 8px 8px;
	border: 0;
	border-bottom: 1px solid var(--saff-line);
	background: none;
	vertical-align: middle;
}

.saff-table th {
	font-weight: 600;
	color: var(--saff-muted);
	font-size: 0.875em;
}

.saff-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.saff-report__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 16px;
}

.saff-panel {
	border: 1px solid var(--saff-line);
	border-radius: var(--saff-radius);
	padding: 16px 18px;
	min-width: 0;
	box-shadow: var(--saff-shadow);
}

.saff-panel h3 {
	margin: 0 0 8px !important;
	font-size: 1em !important;
	font-family: inherit;
}

.saff-barcell {
	position: relative;
	max-width: 0;
	width: 60%;
}

.saff-barcell__bar {
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	border-radius: 0 4px 4px 0;
	background: color-mix(in srgb, var(--saff-series) 14%, transparent);
}

.saff-barcell__label {
	position: relative;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-left: 6px;
}

/* Commission slabs */

.saff-tiers__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 12px;
}

.saff-tiers__head h3 {
	margin: 0 !important;
	font-family: inherit;
}

.saff-tiers__head .saff-muted {
	font-size: 0.8125em;
}

.saff-tiers__stats {
	border: 0;
	padding: 0;
	margin-bottom: 12px;
}

.saff-meter {
	height: 10px;
	border-radius: 5px;
	background: color-mix(in srgb, var(--saff-accent) 16%, transparent);
	overflow: hidden;
}

.saff-meter span {
	display: block;
	height: 100%;
	border-radius: 5px;
	background: var(--saff-accent);
	transition: width 0.6s ease-out;
}

.saff-tiers__hint {
	margin: 10px 0 12px;
	font-size: 0.9em;
}

.saff-tiers__table tr.is-current td {
	font-weight: 600;
	background: var(--saff-tint);
}

.saff-tiers__details {
	margin: 0 0 16px;
	font-size: 0.9em;
}

.saff-tiers__details summary {
	cursor: pointer;
	color: var(--saff-muted);
	margin-bottom: 6px;
}

/* ================================================================== */
/* wp-admin                                                            */
/* ================================================================== */

.saff-admin .saff-card,
.wp-admin .saff-report .saff-card {
	background: #fff;
}

.wp-admin .saff-tile,
.wp-admin .saff-chart,
.wp-admin .saff-panel,
.wp-admin .saff-minitiles {
	background: #fff;
}

.saff-admin .saff-pill {
	font-size: 12px;
}

.saff-avatar-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}

.saff-avatar-cell img {
	border-radius: 50%;
	flex: none;
}

.saff-admin .row-actions .saff-danger a,
.saff-admin a.saff-danger {
	color: #b32d2e;
}

.saff-checklist {
	max-width: 760px;
	padding: 20px 24px;
	margin: 16px 0 20px;
}

.saff-checklist__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.saff-checklist__head h2 {
	margin: 0;
	font-size: 1.2em;
}

.saff-checklist .saff-meter {
	margin: 12px 0 8px;
	max-width: 320px;
}

.saff-checklist ol {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.saff-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #f0f0f1;
	margin: 0;
}

.saff-checklist li .saff-steps__dot {
	width: 26px;
	height: 26px;
}

.saff-checklist li.is-done .saff-steps__dot {
	background: var(--saff-good);
	border-color: var(--saff-good);
	color: #fff;
}

.saff-checklist li.is-done .saff-checklist__text strong {
	text-decoration: line-through;
	color: #646970;
	font-weight: 500;
}

.saff-checklist__text {
	flex: 1;
}

.saff-checklist__text span {
	display: block;
	color: #646970;
	font-size: 13px;
}

.saff-admin-empty {
	padding: 40px 20px !important;
	text-align: center;
	color: #646970;
}

.saff-settings-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 8px;
}

.saff-settings-nav a {
	padding: 4px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	font-size: 13px;
}

.saff-settings-nav a:hover {
	border-color: var(--saff-accent);
}

.saff-settings-section {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
	scroll-margin-top: 48px;
}

.saff-settings-section:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.saff-settings-section > h2 {
	margin-bottom: 0;
}

.saff-settings-section > .description {
	margin: 4px 0 0;
}

.saff-method-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	white-space: nowrap;
}

.saff-method-tag .saff-icon {
	color: var(--saff-accent);
}

.saff-paydetails {
	margin: 0;
	font-size: 13px;
}

.saff-paydetails > div {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 8px;
	padding: 2px 0;
}

.saff-paydetails dt {
	color: #646970;
}

.saff-paydetails dd {
	margin: 0;
	font-family: Menlo, Consolas, monospace;
	font-size: 12.5px;
	overflow-wrap: anywhere;
	user-select: all;
}

.saff-payform {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.saff-payform input[type="text"] {
	width: 170px;
}

.saff-payout-table td {
	vertical-align: top;
}

.saff-admin-payout summary {
	cursor: pointer;
	color: #2271b1;
}

/* ================================================================== */
/* iNodes admin design                                                 */
/* To rebrand: change these colors and assets/img/inodes-logo.svg.     */
/* ================================================================== */

.inodes-screen {
	--inodes-primary: #4f46e5;
	--inodes-primary-dark: #4338ca;
	--inodes-violet: #9333ea;
	--inodes-tint: #eef2ff;
	--inodes-ink: #0f172a;
	--inodes-text: #334155;
	--inodes-muted: #64748b;
	--inodes-line: #e2e8f0;
	--inodes-bg: #f5f6fb;
}

.inodes-screen #wpcontent,
.inodes-screen #wpfooter {
	background: var(--inodes-bg);
}

.inodes-screen .wrap.saff-admin {
	margin-top: 16px;
	color: var(--inodes-text);
}

/* Buttons */
.inodes-screen .wrap .button-primary {
	background: var(--inodes-primary);
	border-color: var(--inodes-primary);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25);
}

.inodes-screen .wrap .button-primary:hover,
.inodes-screen .wrap .button-primary:focus {
	background: var(--inodes-primary-dark);
	border-color: var(--inodes-primary-dark);
}

.inodes-screen .wrap .button:not(.button-primary) {
	border-radius: 8px;
	border-color: #cbd5e1;
	color: var(--inodes-ink);
	background: #fff;
}

.inodes-screen .wrap .button:not(.button-primary):hover {
	border-color: var(--inodes-primary);
	color: var(--inodes-primary);
}

.inodes-screen .wrap a.saff-danger.button {
	color: #b91c1c;
}

/* Header */
.inodes-header {
	margin: 0 0 18px;
}

.inodes-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 10px 12px 10px 16px;
	background: #fff;
	border: 1px solid var(--inodes-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.inodes-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--inodes-ink);
}

.inodes-brand:focus {
	box-shadow: none;
	outline: 2px solid var(--inodes-primary);
	outline-offset: 4px;
	border-radius: 8px;
}

.inodes-brand img {
	border-radius: 9px;
	display: block;
}

.inodes-brand__name {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.inodes-brand__ver {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--inodes-tint);
	color: var(--inodes-primary-dark);
	font-size: 11px;
	font-weight: 600;
}

.inodes-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.inodes-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: 9px;
	color: var(--inodes-muted);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.inodes-nav a .saff-icon {
	width: 16px;
	height: 16px;
}

.inodes-nav a:hover {
	background: #f1f5f9;
	color: var(--inodes-ink);
}

.inodes-nav a[aria-current="page"] {
	background: var(--inodes-tint);
	color: var(--inodes-primary-dark);
	font-weight: 600;
}

.inodes-nav a:focus {
	box-shadow: 0 0 0 2px var(--inodes-primary);
}

.inodes-nav__badge {
	min-width: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.inodes-header__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 2px 0;
}

.inodes-screen .wrap .inodes-header__title h1 {
	margin: 0;
	padding: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--inodes-ink);
}

.inodes-header__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Dashboard banner */
.inodes-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px 32px;
	padding: 30px 32px;
	margin: 0 0 20px;
	border-radius: 18px;
	color: #fff;
	background: linear-gradient(125deg, var(--inodes-primary) 0%, #6d28d9 55%, var(--inodes-violet) 100%);
	box-shadow: 0 10px 30px rgba(79, 70, 229, 0.28);
}

.inodes-banner::before,
.inodes-banner::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
}

.inodes-banner::before {
	width: 380px;
	height: 380px;
	right: -90px;
	top: -170px;
}

.inodes-banner::after {
	width: 260px;
	height: 260px;
	left: 38%;
	bottom: -170px;
}

.inodes-banner__text {
	position: relative;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	max-width: 720px;
}

.inodes-banner__logo {
	flex: none;
	border-radius: 14px;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.18);
}

.inodes-banner__eyebrow {
	margin: 0 0 6px !important;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

.inodes-screen .inodes-banner h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.inodes-banner p {
	margin: 0;
	font-size: 14px;
	opacity: 0.92;
}

.inodes-banner__actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.inodes-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s, background-color 0.15s;
}

.inodes-btn:hover {
	transform: translateY(-1px);
}

.inodes-btn .saff-icon {
	width: 16px;
	height: 16px;
}

.inodes-btn--light {
	background: #fff;
	color: var(--inodes-primary-dark);
}

.inodes-btn--light:hover,
.inodes-btn--light:focus {
	color: var(--inodes-primary-dark);
}

.inodes-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.inodes-btn--ghost:hover,
.inodes-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* KPIs */
.inodes-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 8px;
}

.inodes-kpi {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--inodes-line);
	border-radius: 14px;
}

.inodes-kpi__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: var(--inodes-tint);
	color: var(--inodes-primary);
}

.inodes-kpi__label {
	color: var(--inodes-muted);
	font-size: 13px;
}

.inodes-kpi__value {
	color: var(--inodes-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.inodes-kpis__note {
	grid-column: 1 / -1;
	margin: 2px 2px 0;
	color: var(--inodes-muted);
	font-size: 12.5px;
}

/* Option tiles */
.inodes-screen .wrap .inodes-section-title {
	margin: 26px 2px 12px;
	font-size: 16px;
	font-weight: 650;
	color: var(--inodes-ink);
}

.inodes-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.inodes-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--inodes-line);
	border-radius: 14px;
	color: var(--inodes-text);
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.inodes-tile:hover,
.inodes-tile:focus {
	transform: translateY(-2px);
	border-color: #c7d2fe;
	box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
	color: var(--inodes-text);
}

.inodes-tile__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 6px;
	border-radius: 11px;
	color: #fff;
	background: linear-gradient(135deg, var(--inodes-primary), var(--inodes-violet));
}

.inodes-tile__title {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--inodes-ink);
	font-size: 15px;
	font-weight: 650;
}

.inodes-tile__badge {
	padding: 1px 8px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 11.5px;
	font-weight: 600;
}

.inodes-tile__desc {
	color: var(--inodes-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* Panels */
.inodes-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 16px;
	margin-top: 22px;
}

.inodes-screen .saff-card {
	border-color: var(--inodes-line);
	border-radius: 14px;
	box-shadow: none;
}

.inodes-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 6px;
}

.inodes-screen .inodes-panel__head h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 650;
	color: var(--inodes-ink);
}

.inodes-mini-table {
	width: 100%;
	border-collapse: collapse;
}

.inodes-mini-table td {
	padding: 10px 4px;
	border-top: 1px solid var(--inodes-line);
	vertical-align: middle;
}

.inodes-mini-table .num {
	text-align: right;
	white-space: nowrap;
}

.inodes-support {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 14px;
	border-radius: 12px;
	background: var(--inodes-tint);
}

.inodes-support img {
	border-radius: 9px;
	flex: none;
}

.inodes-support > div {
	flex: 1;
	min-width: 0;
}

.inodes-support strong {
	display: block;
	color: var(--inodes-ink);
}

.inodes-support span {
	color: var(--inodes-muted);
	font-size: 12.5px;
}

/* Settings tabs */
.inodes-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--inodes-line);
}

.inodes-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--inodes-muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.inodes-tabs a:hover {
	color: var(--inodes-ink);
}

.inodes-tabs a:focus {
	box-shadow: none;
	outline: 2px solid var(--inodes-primary);
	outline-offset: -2px;
	border-radius: 6px 6px 0 0;
}

.inodes-tabs a[aria-selected="true"] {
	color: var(--inodes-primary-dark);
	font-weight: 650;
	border-bottom-color: var(--inodes-primary);
}

.inodes-tabs a .saff-icon {
	width: 16px;
	height: 16px;
}

.inodes-settings .saff-settings-section,
.inodes-settings .saff-settings-section:first-of-type {
	margin: 0 0 16px;
	padding: 6px 24px 10px;
	background: #fff;
	border: 1px solid var(--inodes-line);
	border-radius: 14px;
}

.inodes-settings .saff-settings-section > h2 {
	margin-top: 18px;
	font-size: 17px;
	color: var(--inodes-ink);
}

.inodes-settings.is-js .saff-settings-section:not(.is-active) {
	display: none;
}

.inodes-settings p.submit {
	position: sticky;
	bottom: 0;
	z-index: 5;
	margin: 0;
	padding: 14px 0;
	background: linear-gradient(to top, var(--inodes-bg) 75%, rgba(245, 246, 251, 0));
}

/* Tables and list chrome */
.inodes-screen .wrap .widefat {
	border: 1px solid var(--inodes-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.inodes-screen .wrap .widefat thead th,
.inodes-screen .wrap .widefat tfoot th {
	background: #f8fafc;
	color: var(--inodes-muted);
	font-size: 12.5px;
	font-weight: 600;
}

.inodes-screen .wrap .widefat td {
	padding-top: 12px;
	padding-bottom: 12px;
}

.inodes-screen .wrap .subsubsub a.current {
	color: var(--inodes-primary-dark);
}

.inodes-screen .saff-checklist {
	max-width: none;
	--saff-accent: var(--inodes-primary);
}

.inodes-screen .notice {
	border-radius: 10px;
}

@media (max-width: 1100px) {
	.inodes-kpis,
	.inodes-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.inodes-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.inodes-nav a span {
		display: none;
	}

	.inodes-banner {
		padding: 22px;
	}

	.inodes-kpis,
	.inodes-tiles {
		grid-template-columns: 1fr;
	}
}

/* My Account tab */
.saff-myaccount .saff-deflist.saff-card {
	margin-bottom: 16px;
}

.saff-myaccount__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.saff-myaccount__invite {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.saff-myaccount__invite .saff-auth__badge {
	flex: none;
	margin: 0;
}

/* ================================================================== */
/* Small screens                                                       */
/* ================================================================== */

@media (max-width: 640px) {
	.saff-row {
		grid-template-columns: 1fr;
	}

	.saff-card {
		padding: 16px;
	}

	.saff-auth {
		padding: 22px 18px;
	}

	.saff-hero__logout span {
		display: none;
	}

	.saff-copy {
		flex-direction: column;
	}

	.saff-payout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.saff-onboard__head .saff-auth__badge {
		display: none;
	}

	.saff-chart__plot {
		height: 220px;
	}

	.saff-chart__metrics button {
		padding: 4px 9px;
	}

	/* Tables become compact two-line cards: what + status, then when + amount. */
	.saff-table--stack thead,
	.saff-card--flush .saff-table--stack td.c-sale,
	.saff-card--flush .saff-table--stack td.c-rate {
		display: none;
	}

	.saff-table--stack,
	.saff-table--stack tbody {
		display: block;
		width: 100%;
	}

	.saff-table--stack tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "ref status" "date amount";
		gap: 2px 12px;
		align-items: center;
		padding: 12px 16px;
		border-bottom: 1px solid var(--saff-line);
	}

	.saff-table--stack tr:last-child {
		border-bottom: 0;
	}

	.saff-card--flush .saff-table--stack td {
		display: block;
		padding: 0;
		border: 0;
		text-align: left;
	}

	.saff-table--stack .c-ref { grid-area: ref; font-weight: 600; }
	.saff-table--stack .c-status { grid-area: status; justify-self: end; }
	.saff-table--stack .c-date { grid-area: date; color: var(--saff-muted); font-size: 0.9em; }
	.saff-card--flush .saff-table--stack .c-amount { grid-area: amount; justify-self: end; text-align: right; }
	.saff-table--stack tr:not(:has(.c-status)) .c-amount { grid-row: 1 / span 2; }

	.saff-table tbody tr:hover td {
		background: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.saff-area *,
	.saff-report * {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Ultimate Affiliate Pro importer ---------- */
.inodes-import-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	border-left: 4px solid var(--inodes-1, #4f46e5);
}
.inodes-import-cta > div { flex: 1; }
.inodes-import-cta p { margin: 4px 0 0; color: #50575e; }
.saff-import .saff-card { margin: 0 0 20px; }
.saff-import__notes { margin: 14px 0 0 18px; list-style: disc; }
.saff-import__notes li { margin: 6px 0; }
.saff-import__notes li.is-warn { color: #8a4b00; }
.saff-import__map { margin-top: 12px; max-width: 900px; }
.saff-import__map th.num,
.saff-import__map td.num { text-align: right; white-space: nowrap; }
.saff-import__progress { max-width: 560px; margin-top: 12px; }
.saff-import__progress .saff-meter span { transition: width .3s ease; }
.saff-import__done h2 { display: flex; align-items: center; gap: 8px; color: #137333; }
.saff-import__next { margin-left: 18px; }
@media (max-width: 782px) {
	.inodes-import-cta { flex-direction: column; align-items: flex-start; }
}
