/**
 * Star Project staff app.
 *
 * Everything hangs off #sp-app. The theme's stylesheet still loads on this page
 * (wp_head), and themes style bare h1, h2, input and button freely -- an id
 * outranks those rules, so the app looks the same whatever the theme. The few
 * !important declarations are on heading type, where themes most often reach
 * for !important themselves.
 *
 * One palette drives the app, the class register and the metrics: their own
 * stylesheets' custom properties are pointed at the app's tokens below, so
 * light and dark mode are whole-screen rather than patchy. --sp-app-colour is
 * the app colour from Settings.
 */

/* Tokens ------------------------------------------------------------------ */

#sp-app {
	--sp-accent: var( --sp-app-colour, #2a78d6 );
	--sp-accent-ink: #ffffff;
	--sp-accent-soft: rgba( 42, 120, 214, 0.12 );

	--sp-bg: #f2f4f7;
	--sp-surface: #ffffff;
	--sp-surface-2: #f7f8fa;
	--sp-ink: #14171c;
	--sp-ink-2: #5b6271;
	--sp-ink-3: #8a909c;
	--sp-line: rgba( 20, 23, 28, 0.09 );
	--sp-line-strong: rgba( 20, 23, 28, 0.16 );
	--sp-shadow: 0 1px 2px rgba( 16, 24, 40, 0.06 ), 0 1px 3px rgba( 16, 24, 40, 0.08 );

	--sp-ok: #16794a;
	--sp-ok-soft: rgba( 22, 121, 74, 0.1 );
	--sp-out: #2459b8;
	--sp-out-soft: rgba( 36, 89, 184, 0.1 );
	--sp-bad: #b42318;
	--sp-bad-soft: rgba( 180, 35, 24, 0.09 );
	--sp-warn: #9a5b00;
	--sp-warn-soft: rgba( 220, 140, 20, 0.12 );

	--sp-radius: 14px;
	--sp-radius-sm: 10px;
	--sp-header: 56px;
}

@supports ( color: color-mix( in srgb, red 10%, white ) ) {
	#sp-app {
		--sp-accent-soft: color-mix( in srgb, var( --sp-accent ) 14%, transparent );
	}
}

@media ( prefers-color-scheme: dark ) {
	#sp-app {
		--sp-bg: #0e1014;
		--sp-surface: #171a20;
		--sp-surface-2: #1e222a;
		--sp-ink: #f1f3f6;
		--sp-ink-2: #a9afbb;
		--sp-ink-3: #7c8390;
		--sp-line: rgba( 255, 255, 255, 0.08 );
		--sp-line-strong: rgba( 255, 255, 255, 0.16 );
		--sp-shadow: none;

		--sp-ok: #4cc38a;
		--sp-ok-soft: rgba( 76, 195, 138, 0.14 );
		--sp-out: #7aa7ff;
		--sp-out-soft: rgba( 122, 167, 255, 0.14 );
		--sp-bad: #ff7a6e;
		--sp-bad-soft: rgba( 255, 122, 110, 0.13 );
		--sp-warn: #f2b45a;
		--sp-warn-soft: rgba( 242, 180, 90, 0.13 );
	}
}

/* Page and base type ------------------------------------------------------- */

html:has( body.sp-app-body ),
body.sp-app-body {
	margin: 0 !important;
	padding: 0 !important;
	background: #f2f4f7;
}

@media ( prefers-color-scheme: dark ) {
	html:has( body.sp-app-body ),
	body.sp-app-body {
		background: #0e1014;
	}
}

#sp-app {
	min-height: 100vh;
	min-height: 100dvh;
	padding-bottom: calc( 72px + env( safe-area-inset-bottom ) );
	background: var( --sp-bg );
	color: var( --sp-ink );
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	text-align: left;
}

#sp-app *,
#sp-app *::before,
#sp-app *::after {
	box-sizing: border-box;
}

/* Themes often set display on sections, paragraphs and lists, which beats the
   browser's own [hidden] rule; in the app, hidden always means hidden. */
#sp-app [hidden] {
	display: none !important;
}

#sp-app h1,
#sp-app h2,
#sp-app h3 {
	margin: 0;
	font-family: inherit !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	line-height: 1.25 !important;
	color: var( --sp-ink ) !important;
}

#sp-app p {
	margin: 0 0 12px;
	font-family: inherit;
	color: inherit;
}

#sp-app a {
	color: var( --sp-accent );
	text-decoration: none;
}

#sp-app strong {
	font-weight: 600;
}

#sp-app :focus-visible {
	outline: 3px solid var( --sp-accent );
	outline-offset: 2px;
	border-radius: 6px;
}

/* Title bar ------------------------------------------------------------------ */

#sp-app .sp-app-header {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	height: calc( var( --sp-header ) + env( safe-area-inset-top ) );
	padding: env( safe-area-inset-top ) 20px 0;
	background: var( --sp-accent );
	color: var( --sp-accent-ink );
}

/* The logo sits left of the title, sized to the bar. Transparent logos work
   best; "Show logo in white" turns any logo into a white silhouette. */
#sp-app .sp-app-header {
	gap: 12px;
}

#sp-app .sp-app-logo {
	display: block;
	flex: 0 0 auto;
	width: auto;
	height: 32px;
	max-width: 132px;
	margin: 0;
	object-fit: contain;
	object-position: left center;
}

#sp-app .sp-app-logo.is-white {
	filter: brightness( 0 ) invert( 1 );
}

#sp-app .sp-app-logo + .sp-app-title {
	padding-left: 12px;
	border-left: 1px solid rgba( 255, 255, 255, 0.35 );
	font-weight: 600 !important;
}

#sp-app .sp-app-header .sp-app-title {
	min-width: 0;
	margin: 0;
	font-size: 18px !important;
	font-weight: 650 !important;
	color: var( --sp-accent-ink ) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Content -------------------------------------------------------------------- */

#sp-app .sp-app-main {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 16px 24px;
}

#sp-app .sp-app-greeting {
	margin: 4px 0 18px;
	font-size: 26px !important;
	font-weight: 700 !important;
}

#sp-app .sp-app-muted,
#sp-app .sp-app-signout {
	color: var( --sp-ink-2 );
	font-size: 14px;
}

#sp-app .sp-app-signout {
	margin-top: 28px;
	text-align: center;
}

/* Cards on Home ---------------------------------------------------------------- */

#sp-app .sp-app-cards {
	display: grid;
	gap: 12px;
}

#sp-app .sp-app-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px solid var( --sp-line );
	border-radius: var( --sp-radius );
	background: var( --sp-surface );
	box-shadow: var( --sp-shadow );
	color: var( --sp-ink );
	transition: transform 120ms ease, background-color 120ms ease;
}

#sp-app .sp-app-card:active {
	transform: scale( 0.985 );
	background: var( --sp-surface-2 );
}

#sp-app .sp-app-card-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var( --sp-accent-soft );
	color: var( --sp-accent );
}

#sp-app .sp-app-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

#sp-app .sp-app-card-title {
	display: block;
	font-size: 17px;
	font-weight: 650;
	color: var( --sp-ink );
}

#sp-app .sp-app-card-text {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var( --sp-ink-2 );
}

#sp-app .sp-app-chevron {
	flex: 0 0 auto;
	color: var( --sp-ink-3 );
}

/* Panels: install help, gates, sign-in ------------------------------------------ */

#sp-app .sp-app-gate,
#sp-app .sp-app-install,
#sp-app .sp-app-panel {
	margin-top: 20px;
	padding: 18px;
	border: 1px solid var( --sp-line );
	border-radius: var( --sp-radius );
	background: var( --sp-surface );
	box-shadow: var( --sp-shadow );
}

#sp-app .sp-app-install h2 {
	margin: 0 0 6px;
	font-size: 16px !important;
	font-weight: 650 !important;
}

#sp-app .sp-app-install p {
	color: var( --sp-ink-2 );
	font-size: 15px;
}

#sp-app .sp-app-error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: var( --sp-radius-sm );
	background: var( --sp-bad-soft );
	color: var( --sp-bad );
	font-weight: 500;
}

/* Sign in -------------------------------------------------------------------- */

#sp-app.sp-app-signin .sp-app-main {
	max-width: 420px;
	padding-top: 36px;
}

#sp-app .sp-app-brand {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 18px;
	box-shadow: var( --sp-shadow );
}

#sp-app .sp-app-signin-title {
	margin-bottom: 4px;
	font-size: 24px !important;
	font-weight: 700 !important;
	text-align: center;
}

#sp-app .sp-app-signin-lead {
	margin-bottom: 4px;
	color: var( --sp-ink-2 );
	text-align: center;
}

#sp-app #sp-app-login p {
	margin: 0 0 16px;
}

#sp-app #sp-app-login label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var( --sp-ink-2 );
}

/* Form controls: one look for every input in the app ------------------------------- */

#sp-app input[type="text"],
#sp-app input[type="password"],
#sp-app input[type="email"],
#sp-app input[type="search"],
#sp-app input[type="date"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var( --sp-line-strong );
	border-radius: var( --sp-radius-sm );
	background: var( --sp-surface );
	color: var( --sp-ink );
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming in on focus. */
	line-height: 1.3;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

#sp-app input[type="date"] {
	min-width: 0;
	text-align: left;
}

#sp-app input::placeholder {
	color: var( --sp-ink-3 );
}

#sp-app input:focus {
	border-color: var( --sp-accent );
	outline: 3px solid var( --sp-accent-soft );
	outline-offset: 0;
}

#sp-app #sp-app-login .login-remember label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: var( --sp-ink );
}

#sp-app input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var( --sp-accent );
}

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

#sp-app .sp-app-button,
#sp-app #sp-app-login input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 22px;
	border: 0;
	border-radius: var( --sp-radius-sm );
	background: var( --sp-accent );
	color: var( --sp-accent-ink );
	font: inherit;
	font-size: 16px;
	font-weight: 650;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

#sp-app #sp-app-login input[type="submit"] {
	width: 100%;
}

#sp-app .sp-app-button:active,
#sp-app #sp-app-login input[type="submit"]:active {
	filter: brightness( 0.92 );
}

#sp-app .sp-app-button-quiet {
	border: 1px solid var( --sp-line-strong );
	background: transparent;
	color: var( --sp-ink );
}

/* Tab bar ------------------------------------------------------------------- */

#sp-app .sp-app-tabs {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 6px 8px calc( 6px + env( safe-area-inset-bottom ) );
	border-top: 1px solid var( --sp-line );
	background: var( --sp-surface );
}

@supports ( backdrop-filter: blur( 10px ) ) or ( -webkit-backdrop-filter: blur( 10px ) ) {
	#sp-app .sp-app-tabs {
		background: color-mix( in srgb, var( --sp-surface ) 82%, transparent );
		-webkit-backdrop-filter: saturate( 1.6 ) blur( 18px );
		backdrop-filter: saturate( 1.6 ) blur( 18px );
	}
}

#sp-app .sp-app-tab {
	flex: 0 1 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 4px;
	border-radius: 12px;
	color: var( --sp-ink-3 );
	font-size: 12px;
	font-weight: 500;
}

#sp-app .sp-app-tab svg {
	width: 26px;
	height: 26px;
	padding: 2px 10px;
	box-sizing: content-box;
	border-radius: 999px;
	transition: background-color 150ms ease;
}

#sp-app .sp-app-tab.is-current {
	color: var( --sp-accent );
	font-weight: 650;
}

#sp-app .sp-app-tab.is-current svg {
	background: var( --sp-accent-soft );
}

/* Class register, inside the app --------------------------------------------
   The register's own stylesheet is written for a light theme page. Here its
   colours follow the app, its sticky bar sits under the title bar, and its
   controls get the app's sizes. */

#sp-app .spcr-register {
	--spcr-fg: var( --sp-ink );
	--spcr-muted: var( --sp-ink-2 );
	--spcr-line: var( --sp-line-strong );
	--spcr-bg: var( --sp-bg );
	--spcr-ok: var( --sp-ok );
	--spcr-warn: var( --sp-warn );
	--spcr-alert: var( --sp-bad );
	max-width: none;
	color: var( --sp-ink );
}

#sp-app .spcr-title {
	margin: 4px 0 14px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
}

#sp-app .spcr-gate {
	padding: 18px;
	border: 1px solid var( --sp-line );
	border-radius: var( --sp-radius );
	background: var( --sp-surface );
}

/* The bar that stays put while scrolling the class: back, count, date, filter. */
#sp-app .spcr-sticky {
	top: calc( var( --sp-header ) + env( safe-area-inset-top ) );
	z-index: 20;
	margin: -20px -16px 12px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var( --sp-line );
	background: var( --sp-bg );
}

@supports ( backdrop-filter: blur( 10px ) ) or ( -webkit-backdrop-filter: blur( 10px ) ) {
	#sp-app .spcr-sticky {
		background: color-mix( in srgb, var( --sp-bg ) 86%, transparent );
		-webkit-backdrop-filter: saturate( 1.6 ) blur( 18px );
		backdrop-filter: saturate( 1.6 ) blur( 18px );
	}
}

#sp-app .spcr-headrow {
	margin-bottom: 6px;
}

#sp-app .spcr-back {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	font-size: 16px;
	font-weight: 600;
	color: var( --sp-accent );
}

#sp-app .spcr-counter {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var( --sp-ok-soft );
	color: var( --sp-ok );
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

#sp-app .spcr-counter strong {
	font-size: 16px;
}

/* Date and Go side by side; the label is for screen readers only. */
#sp-app .spcr-datebar {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	margin: 0 0 10px;
}

#sp-app .spcr-datebar label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

#sp-app .spcr-btn {
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var( --sp-line-strong );
	border-radius: var( --sp-radius-sm );
	background: var( --sp-surface );
	color: var( --sp-ink );
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 120ms ease, color 120ms ease, transform 80ms ease;
}

#sp-app .spcr-btn:active {
	transform: scale( 0.97 );
}

#sp-app .spcr-btn-secondary {
	min-width: 64px;
	background: var( --sp-accent-soft );
	border-color: transparent;
	color: var( --sp-accent );
}

#sp-app .spcr-filter {
	margin: 0;
	padding-left: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a909c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
}

/* Choosing a class. */
#sp-app .spcr-class-list li {
	margin: 0 0 10px;
}

#sp-app .spcr-class-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 16px 18px;
	border: 1px solid var( --sp-line );
	border-radius: var( --sp-radius );
	background: var( --sp-surface );
	box-shadow: var( --sp-shadow );
	color: var( --sp-ink );
	font-size: 16px;
	font-weight: 600;
}

#sp-app .spcr-class-link::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-top: 2px solid var( --sp-ink-3 );
	border-right: 2px solid var( --sp-ink-3 );
	transform: rotate( 45deg );
}

/* A child. State is shown three ways -- stripe, tint and the filled button --
   so it never rests on colour alone. */
#sp-app .spcr-children {
	margin: 0;
}

#sp-app .spcr-child {
	position: relative;
	display: block;
	margin: 0 0 10px;
	padding: 14px 16px 14px 20px;
	border: 1px solid var( --sp-line );
	border-left: 0;
	border-radius: var( --sp-radius );
	background: var( --sp-surface );
	box-shadow: var( --sp-shadow );
	overflow: hidden;
}

#sp-app .spcr-child::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var( --sp-line-strong );
}

#sp-app .spcr-status-in { background: linear-gradient( var( --sp-ok-soft ), var( --sp-ok-soft ) ), var( --sp-surface ); }
#sp-app .spcr-status-out { background: linear-gradient( var( --sp-out-soft ), var( --sp-out-soft ) ), var( --sp-surface ); }
#sp-app .spcr-status-absent { background: linear-gradient( var( --sp-bad-soft ), var( --sp-bad-soft ) ), var( --sp-surface ); }

#sp-app .spcr-status-in::before { background: var( --sp-ok ); }
#sp-app .spcr-status-out::before { background: var( --sp-out ); }
#sp-app .spcr-status-absent::before { background: var( --sp-bad ); }

#sp-app .spcr-child-main {
	gap: 6px;
}

#sp-app .spcr-name {
	font-size: 17px;
	font-weight: 650;
	color: var( --sp-ink );
}

#sp-app .spcr-chip {
	padding: 3px 9px;
	border: 0;
	border-radius: 999px;
	background: var( --sp-surface-2 );
	color: var( --sp-ink-2 );
	font-size: 13px;
	font-weight: 600;
}

#sp-app .spcr-chip-ok { background: var( --sp-ok-soft ); color: var( --sp-ok ); }
#sp-app .spcr-chip-warn { background: var( --sp-warn-soft ); color: var( --sp-warn ); }
#sp-app .spcr-chip-info { background: var( --sp-surface-2 ); color: var( --sp-ink-2 ); }

/* Needs and allergies: always visible, never behind a tap. */
#sp-app .spcr-needs {
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: var( --sp-bad-soft );
	color: var( --sp-bad );
	font-size: 14px;
	font-weight: 600;
}

#sp-app .spcr-needs-fp {
	background: var( --sp-warn-soft );
	color: var( --sp-warn );
}

#sp-app .spcr-times {
	color: var( --sp-ink-2 );
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

/* In / Out / Absent as one even row, Undo as a quiet link beneath. */
#sp-app .spcr-actions {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 8px;
	margin-top: 12px;
}

#sp-app .spcr-actions .spcr-btn {
	min-width: 0;
	padding: 10px 6px;
}

#sp-app .spcr-btn-in { color: var( --sp-ok ); border-color: color-mix( in srgb, var( --sp-ok ) 45%, transparent ); }
#sp-app .spcr-btn-out { color: var( --sp-out ); border-color: color-mix( in srgb, var( --sp-out ) 45%, transparent ); }
#sp-app .spcr-btn-absent { color: var( --sp-bad ); border-color: color-mix( in srgb, var( --sp-bad ) 45%, transparent ); }

#sp-app .spcr-status-in .spcr-btn-in,
#sp-app .spcr-status-out .spcr-btn-out,
#sp-app .spcr-status-absent .spcr-btn-absent {
	outline: 0;
	border-color: transparent;
	color: #ffffff;
}

#sp-app .spcr-status-in .spcr-btn-in { background: var( --sp-ok ); }
#sp-app .spcr-status-out .spcr-btn-out { background: var( --sp-out ); }
#sp-app .spcr-status-absent .spcr-btn-absent { background: var( --sp-bad ); }

@media ( prefers-color-scheme: dark ) {
	#sp-app .spcr-status-in .spcr-btn-in,
	#sp-app .spcr-status-out .spcr-btn-out,
	#sp-app .spcr-status-absent .spcr-btn-absent {
		color: #0e1014;
	}
}

#sp-app .spcr-btn-undo {
	grid-column: 1 / -1;
	justify-self: center;
	min-height: 36px;
	padding: 4px 12px;
	border: 0;
	background: transparent;
	color: var( --sp-ink-2 );
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#sp-app .spcr-warning,
#sp-app .spcr-note {
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 0;
	border-radius: var( --sp-radius-sm );
	background: var( --sp-out-soft );
	color: var( --sp-ink );
	font-size: 15px;
	font-weight: 500;
}

#sp-app .spcr-warning {
	background: var( --sp-warn-soft );
}

#sp-app .spcr-note[data-spcr-state="error"] {
	background: var( --sp-bad-soft );
	color: var( --sp-bad );
}

#sp-app .spcr-empty,
#sp-app .spcr-footnote {
	color: var( --sp-ink-2 );
	font-size: 14px;
}

/* Metrics, inside the app ----------------------------------------------------
   The dashboard's stylesheet has its own palette; point it at the app's. */

#sp-app .wcse-metrics {
	--wcse-surface: var( --sp-surface );
	--wcse-border: var( --sp-line );
	--wcse-ink: var( --sp-ink );
	--wcse-ink-2: var( --sp-ink-2 );
	--wcse-ink-muted: var( --sp-ink-3 );
	--wcse-grid: var( --sp-line );
	--wcse-axis: var( --sp-line-strong );
	--wcse-good: var( --sp-ok );
	--wcse-bad: var( --sp-bad );
}

#sp-app .sp-staff-metrics .sp-app-muted {
	margin-bottom: 14px;
}

#sp-app .sp-staff-metrics .wcse-tiles {
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0 0 20px;
}

#sp-app .sp-staff-metrics .wcse-tile,
#sp-app .sp-staff-metrics .wcse-panel {
	margin: 0 0 12px;
	border-radius: var( --sp-radius );
	box-shadow: var( --sp-shadow );
}

#sp-app .sp-staff-metrics .wcse-tile__label {
	font-size: 12px !important;
	font-weight: 650 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	color: var( --sp-ink-3 ) !important;
}

#sp-app .sp-staff-metrics .wcse-panel__title {
	font-size: 17px !important;
	font-weight: 650 !important;
}

#sp-app .sp-staff-metrics .wcse-panel__intro,
#sp-app .sp-staff-metrics .wcse-caveat {
	font-size: 14px;
}

#sp-app .sp-staff-metrics .wcse-caveat {
	border-radius: 8px;
}

#sp-app .sp-staff-metrics .wcse-figures > summary {
	min-height: 40px;
	padding-top: 8px;
	color: var( --sp-accent );
	font-weight: 600;
}

#sp-app .sp-staff-metrics .wcse-figures__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

#sp-app .sp-staff-metrics .wcse-figures__table th,
#sp-app .sp-staff-metrics .wcse-figures__table td {
	padding: 8px;
	border-bottom: 1px solid var( --sp-line );
	text-align: left;
}

#sp-app .sp-staff-metrics .wcse-figures__table .wcse-num {
	text-align: right;
}

#sp-app .sp-staff-metrics .wcse-breakdown > summary {
	min-height: 36px;
	padding-top: 6px;
}

/* Motion -------------------------------------------------------------------- */

@media ( prefers-reduced-motion: reduce ) {
	#sp-app *,
	#sp-app *::before,
	#sp-app *::after {
		transition: none !important;
	}
}
