/**
 * Corporate Wellness Challenge Suite — public styles.
 * Calm, corporate, health-forward. Color comes from CSS vars set inline
 * from plugin settings (--wcs-primary / --wcs-accent).
 */

.wcs-wrap {
	--wcs-primary: #1f7a5c;
	--wcs-accent: #2f9c79;
	--wcs-ink: #1c2b27;
	--wcs-muted: #5e6f69;
	--wcs-line: #e3eae7;
	--wcs-bg: #f6f9f8;
	--wcs-card: #ffffff;
	--wcs-radius: 18px;
	--wcs-radius-sm: 14px;
	--wcs-shadow: 0 1px 2px rgba(20, 50, 40, .04), 0 12px 30px rgba(20, 50, 40, .08);
	--wcs-shadow-hover: 0 6px 16px rgba(20, 50, 40, .14);
	/* Appearance defaults (overridden by inline vars from settings). */
	--wcs-heading-font: inherit;
	--wcs-heading-color: var(--wcs-ink);
	--wcs-heading-weight: 700;
	--wcs-body-font: inherit;
	--wcs-body-color: var(--wcs-ink);
	--wcs-body-weight: 400;
	--wcs-btn-bg: var(--wcs-primary);
	--wcs-btn-text: #ffffff;
	--wcs-btn-weight: 600;
	--wcs-btn-radius: 10px;
	color: var(--wcs-body-color);
	font-family: var(--wcs-body-font, inherit);
	font-weight: var(--wcs-body-weight);
	line-height: 1.55;
	max-width: 1080px;
	margin: 0 auto;
}
.wcs-wrap h2, .wcs-wrap h3, .wcs-wrap h4, .wcs-wrap .wcs-h, .wcs-section-title, .wcs-tile h4 {
	font-family: var(--wcs-heading-font, inherit);
	font-weight: var(--wcs-heading-weight);
}

.wcs-wrap *,
.wcs-wrap *::before,
.wcs-wrap *::after { box-sizing: border-box; }

.wcs-card {
	background: var(--wcs-card);
	border: 1px solid var(--wcs-line);
	border-radius: var(--wcs-radius);
	box-shadow: var(--wcs-shadow);
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.wcs-h {
	font-family: var(--wcs-heading-font, inherit);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0 0 1rem;
	color: var(--wcs-heading-color);
}

.wcs-section-title {
	font-family: var(--wcs-heading-font, inherit);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--wcs-heading-color);
	margin: 1.75rem 0 1rem;
}

.wcs-sub { color: var(--wcs-muted); font-size: .9rem; margin: .15rem 0 0; }

/* Greeting / header */
.wcs-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: linear-gradient(135deg, var(--wcs-primary), var(--wcs-accent));
	color: #fff;
	border-radius: var(--wcs-radius);
	padding: 1.75rem 1.9rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--wcs-shadow);
}
.wcs-hero h2 { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.wcs-hero p { margin: .3rem 0 0; opacity: .92; }

/* Stat tiles */
.wcs-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: .85rem;
	margin-bottom: 1.25rem;
}
.wcs-stat {
	background: var(--wcs-card);
	border: 1px solid var(--wcs-line);
	border-radius: var(--wcs-radius-sm);
	box-shadow: var(--wcs-shadow);
	padding: 1.2rem 1.1rem;
	text-align: center;
}
.wcs-stat .num { font-size: 1.85rem; font-weight: 800; color: var(--wcs-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.wcs-stat .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--wcs-muted); margin-top: .4rem; }

/* Challenge grid */
.wcs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.25rem;
}
.wcs-tile {
	background: var(--wcs-card);
	border: 1px solid var(--wcs-line);
	border-radius: var(--wcs-radius);
	box-shadow: var(--wcs-shadow);
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.wcs-tile:hover { transform: translateY(-3px); box-shadow: var(--wcs-shadow-hover); }
.wcs-tile > *:not(.wcs-tile-media) {
	padding-left: 1.35rem;
	padding-right: 1.35rem;
}
/* Top padding when the first element is not media (e.g. challenge list cards). */
.wcs-tile > *:first-child:not(.wcs-tile-media) { padding-top: 1.35rem; }
/* Bottom padding for the last element so content never touches the edge. */
.wcs-tile > *:last-child { padding-bottom: 1.35rem; }
.wcs-tile > .wcs-tile-media:first-child { padding-top: 0; }
/* When the title is the first element (no media), use the standard top padding only. */
.wcs-tile > h4:first-child { margin-top: 0; }
/* Challenge-list cards: push the action row to the bottom for even alignment. */
.wcs-list .wcs-tile { padding: 0; }
.wcs-list .wcs-tile .desc { margin-top: .35rem; }
.wcs-list .wcs-tile .wcs-list-actions { margin-top: auto; padding-top: .9rem; }
.wcs-tile h4 {
	margin: 1.1rem 0 .4rem;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}
.wcs-tile .desc { color: var(--wcs-muted); font-size: .9rem; flex: 1; }
.wcs-tile .meta { font-size: .85rem; color: var(--wcs-muted); margin-top: .65rem; display: flex; align-items: center; gap: .35rem; }
.wcs-tile .meta strong { color: var(--wcs-primary); font-weight: 800; font-variant-numeric: tabular-nums; }
.wcs-tile-actions { padding-bottom: 1.35rem; padding-top: .9rem; }
.wcs-tile-actions .wcs-btn { width: 100%; }

/* Private badge pill */
.wcs-private {
	font-size: .62rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	color: var(--wcs-muted);
	background: var(--wcs-bg);
	border: 1px solid var(--wcs-line);
	padding: .15rem .5rem;
	border-radius: 999px;
}

/* Progress bar */
.wcs-progress-block { margin: .7rem 0 .2rem; }
.wcs-progress-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: .35rem;
}
.wcs-progress-label {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	color: var(--wcs-muted);
}
.wcs-progress-value {
	font-size: .95rem;
	font-weight: 800;
	color: var(--wcs-primary);
	font-variant-numeric: tabular-nums;
}
.wcs-progress {
	position: relative;
	background: var(--wcs-line);
	border-radius: 999px;
	height: 14px;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(20, 50, 40, .12);
}
.wcs-progress > span {
	display: block;
	height: 100%;
	min-width: 0;
	background: linear-gradient(90deg, var(--wcs-primary), var(--wcs-accent));
	border-radius: 999px;
	transition: width .5s cubic-bezier(.22, 1, .36, 1);
	position: relative;
}
/* Sheen only renders when there is some fill. */
.wcs-progress > span::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%);
	pointer-events: none;
}
/* Completed state gets a confident solid fill. */
.wcs-progress.is-complete > span { background: var(--wcs-primary); }

.wcs-wrap .wcs-h, .wcs-section-title, .wcs-tile h4, .wcs-login-title { color: var(--wcs-heading-color); }

/* Buttons */
.wcs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	background: var(--wcs-btn-bg);
	color: var(--wcs-btn-text);
	border: 1px solid transparent;
	border-radius: var(--wcs-btn-radius);
	padding: .6rem 1.1rem;
	font-size: .92rem;
	font-weight: var(--wcs-btn-weight);
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s ease, transform .05s ease;
}
.wcs-btn:hover { filter: brightness(1.05); }
.wcs-btn:active { transform: translateY(1px); }
.wcs-btn[disabled] { opacity: .6; cursor: not-allowed; }
.wcs-btn--ghost { background: transparent; color: var(--wcs-primary); border-color: var(--wcs-line); }
.wcs-btn--block { width: 100%; }

/* Badges */
.wcs-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.wcs-badge {
	display: flex; align-items: center; gap: .5rem;
	background: var(--wcs-bg);
	border: 1px solid var(--wcs-line);
	border-radius: 999px;
	padding: .4rem .85rem;
	font-size: .85rem; font-weight: 600;
}
.wcs-badge .dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--wcs-primary), var(--wcs-accent)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; }

/* Leaderboard / tables */
.wcs-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wcs-table th, .wcs-table td { text-align: left; padding: .7rem .65rem; border-bottom: 1px solid var(--wcs-line); }
.wcs-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wcs-muted); }
.wcs-table tbody tr:hover { background: var(--wcs-bg); }
.wcs-rank { font-weight: 800; color: var(--wcs-primary); }

/* Forms */
.wcs-field { margin-bottom: 1rem; }
.wcs-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.wcs-field input[type="text"],
.wcs-field input[type="email"],
.wcs-field input[type="password"],
.wcs-field input[type="number"],
.wcs-field select,
.wcs-field textarea {
	width: 100%;
	padding: .6rem .7rem;
	border: 1px solid var(--wcs-line);
	border-radius: 10px;
	font-size: .95rem;
	background: #fff;
	color: var(--wcs-ink);
}
.wcs-field input:focus, .wcs-field select:focus, .wcs-field textarea:focus {
	outline: none; border-color: var(--wcs-accent); box-shadow: 0 0 0 3px rgba(47, 156, 121, .15);
}
.wcs-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; }
.wcs-check input { margin-top: .2rem; }

/* Notices */
.wcs-notice { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; border: 1px solid; }
.wcs-notice--info { background: #eef5f2; border-color: #cfe3db; color: #1f4f41; }
.wcs-notice--success { background: #e8f6ee; border-color: #bfe6cd; color: #1c6b3c; }
.wcs-notice--error { background: #fdecea; border-color: #f5c9c2; color: #9b271a; }

/* Disclaimer */
.wcs-disclaimer { font-size: .82rem; color: var(--wcs-muted); border-left: 3px solid var(--wcs-accent); padding: .5rem .85rem; background: var(--wcs-bg); border-radius: 0 8px 8px 0; margin-top: 1rem; }

/* Private tag */
.wcs-private { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--wcs-primary); background: var(--wcs-bg); border: 1px solid var(--wcs-line); border-radius: 999px; padding: .1rem .5rem; }

/* Check-in row */
.wcs-checkin { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.wcs-checkin .wcs-field { flex: 1; min-width: 140px; margin-bottom: 0; }
/* Check-in / Mark today done button: full width, below the fields and goal text. */
.wcs-checkin-form .wcs-checkin-submit {
	width: 100%;
	margin-top: .85rem;
}
.wcs-checkin-form .wcs-hint,
.wcs-checkin-form .wcs-sub { display: block; margin-top: .4rem; }

/* Section heading */
.wcs-section-title { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .85rem; }

@media (max-width: 600px) {
	.wcs-hero { flex-direction: column; align-items: flex-start; }
	.wcs-card { padding: 1.15rem; }
}

/* Walking challenge enhancements. */
.wcs-walk-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wcs-walk-stats .wcs-chip {
	display: inline-flex; align-items: center; gap: 4px;
	background: var(--wcs-surface, #f1f6f4);
	color: var(--wcs-primary, #1f7a5c);
	border: 1px solid rgba(0,0,0,.06);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}
.wcs-walk-chart { margin: 10px 0 4px; height: 130px; }
.wcs-walk-chart canvas { width: 100% !important; }
.wcs-field select { width: 100%; padding: 6px 8px; border: 1px solid #cdd8d3; border-radius: 6px; }
.wcs-sub.wcs-adaptive { color: #4a5d57; font-style: italic; }
.wcs-sub.wcs-safety { color: #8a6d3b; font-size: 11px; margin-top: 4px; }

/* Custom login form. */
.wcs-login { max-width: 420px; margin: 0 auto; }
.wcs-login-title { margin: 0 0 1rem; font-size: 1.4rem; color: var(--wcs-primary); }
.wcs-login-form .wcs-field-inline { margin-bottom: 1.1rem; }
.wcs-login-links { margin-top: 1rem; font-size: .9rem; text-align: center; }
.wcs-login-links a { color: var(--wcs-primary); text-decoration: none; }
.wcs-login-links a:hover { text-decoration: underline; }
.wcs-login-links .wcs-sep { margin: 0 .4rem; color: var(--wcs-muted); }

/* Form hint text. */
.wcs-hint { display: block; margin-top: .25rem; font-size: .8rem; color: var(--wcs-muted); }

/* Registration challenge picker. */
.wcs-challenge-picker { border: 1px solid var(--wcs-line); border-radius: 10px; padding: .75rem .9rem; background: #fff; }
.wcs-challenge-picker .wcs-check-all { padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid var(--wcs-line); }
.wcs-challenge-list { display: grid; gap: .4rem; transition: opacity .15s ease; }
.wcs-challenge-list .wcs-check { font-size: .92rem; }

/* Dashboard hero logout + challenge info/media. */
.wcs-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wcs-hero-actions { flex-shrink: 0; }
.wcs-tile-media { margin: 0; overflow: hidden; background: var(--wcs-bg); aspect-ratio: 16 / 9; }
.wcs-tile-media img,
.wcs-tile-media video,
.wcs-tile-media .wcs-tile-media-link { display: block; width: 100%; height: 100%; }
.wcs-tile-media img,
.wcs-tile-media video { object-fit: cover; }
.wcs-tile-media .wcs-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.wcs-tile-media .wcs-embed iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }
.wcs-tile-intro { font-size: .92rem; color: var(--wcs-body-color); margin: .25rem 0 .5rem; }
.wcs-tile-how { font-size: .85rem; color: var(--wcs-muted); margin: 0 0 .75rem; line-height: 1.5; }
.wcs-tile-how .wcs-how-label { font-weight: 700; color: var(--wcs-primary); }
.wcs-amount-label { font-weight: 600; }

/* Keep each challenge's action area pinned to the bottom for visual consistency. */
.wcs-tile { position: relative; }
/* The check-in form (when present) grows to push content down. */
.wcs-tile .wcs-checkin-form { margin-top: auto; padding-top: .5rem; }
/* If there's no form (completed/pending), the track-progress block anchors bottom. */
.wcs-tile .wcs-checkin-form ~ .wcs-tile-actions { margin-top: .6rem; }
.wcs-tile > .wcs-tile-actions { margin-top: auto; }
.wcs-tile .wcs-checkin-form + .wcs-tile-actions,
.wcs-tile .wcs-sub + .wcs-tile-actions { margin-top: .6rem; }
.wcs-track-progress { width: 100%; }

@media ( max-width: 600px ) {
	.wcs-hero { flex-direction: column; }
	.wcs-hero-actions { align-self: flex-start; }
}

/* Progress page. */
.wcs-progress-page .wcs-backlink { color: var(--wcs-primary); text-decoration: none; font-size: .9rem; }
.wcs-progress-page .wcs-backlink:hover { text-decoration: underline; }
.wcs-badge-list, .wcs-cert-list { list-style: none; margin: 0; padding: 0; }
.wcs-badge-item { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--wcs-line); }
.wcs-badge-item:last-child { border-bottom: 0; }
.wcs-badge-item .wcs-badge-dot { color: #d8a200; font-size: 1.2rem; line-height: 1; }
.wcs-badge-text { display: flex; flex-direction: column; gap: .1rem; }
.wcs-cert-list li { display: flex; align-items: center; gap: .8rem; padding: .4rem 0; flex-wrap: wrap; }

/* ============================================================
   Modern leaderboard
   ============================================================ */
.wcs-leaderboard .wcs-lb-card {
	background: var(--wcs-card);
	border: 1px solid var(--wcs-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(20,50,40,.04), 0 12px 30px rgba(20,50,40,.08);
	padding: 1.5rem 1.5rem 1.25rem;
	overflow: hidden;
}
.wcs-lb-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.1rem;
	flex-wrap: wrap;
}
.wcs-lb-head--team { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--wcs-line); }
.wcs-lb-title {
	font-family: var(--wcs-heading-font, inherit);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -.01em;
	color: var(--wcs-heading-color);
	margin: 0;
}
.wcs-lb-sub {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	color: var(--wcs-muted);
	background: var(--wcs-bg);
	padding: .3rem .7rem;
	border-radius: 999px;
}
.wcs-lb-empty { color: var(--wcs-muted); padding: 1.5rem 0; text-align: center; }

.wcs-lb-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.wcs-lb-list--team { margin-top: .25rem; }

.wcs-lb-row {
	display: grid;
	grid-template-columns: 2.2rem 2.4rem 1fr auto auto;
	align-items: center;
	gap: .9rem;
	padding: .7rem .75rem;
	border-radius: 14px;
	transition: background .15s ease, transform .12s ease;
}
.wcs-lb-row + .wcs-lb-row { margin-top: .3rem; }
.wcs-lb-row:hover { background: var(--wcs-bg); transform: translateX(2px); }

/* Top-3 emphasis */
.wcs-lb-row--top { background: linear-gradient(90deg, rgba(31,122,92,.06), transparent 65%); }
.wcs-lb-row--1 { background: linear-gradient(90deg, rgba(214,162,0,.16), transparent 70%); }
.wcs-lb-row--2 { background: linear-gradient(90deg, rgba(140,150,160,.16), transparent 70%); }
.wcs-lb-row--3 { background: linear-gradient(90deg, rgba(176,121,72,.16), transparent 70%); }

.wcs-lb-rank {
	font-family: var(--wcs-heading-font, inherit);
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--wcs-muted);
	text-align: center;
}
.wcs-lb-medal { font-size: 1.4rem; line-height: 1; }

.wcs-lb-avatar {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: linear-gradient(135deg, var(--wcs-primary), var(--wcs-accent));
	text-transform: uppercase;
}

.wcs-lb-name {
	font-weight: 600;
	color: var(--wcs-heading-color);
	font-size: 1rem;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.wcs-lb-meta { font-weight: 500; font-size: .78rem; color: var(--wcs-muted); }

.wcs-lb-points { text-align: right; line-height: 1.1; }
.wcs-lb-points-num { display: block; font-weight: 800; font-size: 1.15rem; color: var(--wcs-primary); font-variant-numeric: tabular-nums; }
.wcs-lb-points-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wcs-muted); }

.wcs-lb-avg { font-size: .82rem; color: var(--wcs-muted); white-space: nowrap; }

/* Donut completion chart */
.wcs-donut { display: inline-flex; align-items: center; justify-content: center; }
.wcs-donut svg circle { transition: stroke-dashoffset .5s ease; }

.wcs-lb-note { color: var(--wcs-muted); font-size: .8rem; margin: 1rem 0 0; }

/* Responsive: collapse avatar + tighten on small screens */
.wcs-lb-list--team .wcs-lb-row { grid-template-columns: 2.2rem 1fr auto auto; }

@media ( max-width: 560px ) {
	.wcs-lb-row { grid-template-columns: 1.8rem 1fr auto 2.6rem; gap: .6rem; }
	.wcs-lb-avatar { display: none; }
	.wcs-lb-points-num { font-size: 1rem; }
	.wcs-lb-list--team .wcs-lb-row { grid-template-columns: 1.8rem 1fr auto auto; }
}

/* Challenge detail "About" section on the progress page. */
.wcs-challenge-about .wcs-about-media { margin: 0 0 1rem; border-radius: 10px; overflow: hidden; background: var(--wcs-bg); }
.wcs-challenge-about .wcs-about-media img,
.wcs-challenge-about .wcs-about-media video { display: block; width: 100%; height: auto; }
.wcs-challenge-about .wcs-about-media .wcs-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.wcs-challenge-about .wcs-about-media .wcs-embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.wcs-about-intro { font-size: 1rem; color: var(--wcs-body-color); margin: 0 0 .6rem; }
.wcs-about-how { font-size: .9rem; color: var(--wcs-muted); margin: 0 0 .6rem; }
.wcs-about-how .wcs-how-label { font-weight: 600; color: var(--wcs-primary); }
.wcs-about-instructions { font-size: .9rem; color: var(--wcs-body-color); margin: 0 0 .8rem; }
.wcs-about-facts { list-style: none; margin: .5rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--wcs-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.wcs-about-facts li { font-size: .9rem; }
.wcs-about-facts .wcs-fact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wcs-muted); font-weight: 700; }

/* Clickable challenge cards. */
.wcs-tile--clickable { cursor: pointer; }
.wcs-tile--clickable:hover { box-shadow: 0 4px 12px rgba(20,50,40,.12); transform: translateY(-2px); }
.wcs-tile--clickable:focus-visible { outline: 2px solid var(--wcs-primary); outline-offset: 2px; }
.wcs-tile-title-link { color: inherit; text-decoration: none; }
.wcs-tile-title-link:hover { color: var(--wcs-primary); text-decoration: underline; }
.wcs-tile-media-link { display: block; }
/* Keep interactive controls visually "non-clickable-card" so users know they act independently. */
.wcs-tile--clickable .wcs-checkin-form,
.wcs-tile--clickable .wcs-btn,
.wcs-tile--clickable a { cursor: auto; }
.wcs-tile--clickable .wcs-btn { cursor: pointer; }

/* Wellness Challenge Tutorial (supporting videos). */
.wcs-tutorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.wcs-tutorial-item { border-radius: var(--wcs-radius-sm); overflow: hidden; background: #000; }
.wcs-tutorial-item video { display: block; width: 100%; height: auto; }
.wcs-tutorial-item .wcs-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.wcs-tutorial-item .wcs-embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.wcs-tutorial-item .wcs-btn--ghost { margin: 1rem; }

/* ============================================================
   Virtual Trail
   ============================================================ */
/* Trail map strip */
.wcs-trail-milestones { display: flex; gap: .75rem; overflow-x: auto; padding: .5rem 0 .25rem; margin-top: 1rem; }
.wcs-trail-ms { flex: 0 0 110px; text-align: center; }
.wcs-trail-ms-img { width: 110px; height: 80px; border-radius: var(--wcs-radius-sm); overflow: hidden; background: var(--wcs-bg); border: 2px solid transparent; }
.wcs-trail-ms-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcs-trail-ms.is-reached .wcs-trail-ms-img { border-color: var(--wcs-primary); }
.wcs-trail-ms.is-locked .wcs-trail-ms-img img { filter: grayscale(1) opacity(.45); }
.wcs-trail-ms-at { font-size: .78rem; font-weight: 800; color: var(--wcs-primary); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.wcs-trail-ms.is-locked .wcs-trail-ms-at { color: var(--wcs-muted); }
.wcs-trail-ms-title { font-size: .75rem; color: var(--wcs-muted); line-height: 1.25; margin-top: .1rem; }

/* Trail check-in history (image left, details right) */
.wcs-trail-history { list-style: none; margin: 0; padding: 0; }
.wcs-trail-entry { display: flex; gap: 1rem; align-items: stretch; padding: .85rem 0; border-bottom: 1px solid var(--wcs-line); }
.wcs-trail-entry:last-child { border-bottom: 0; }
.wcs-trail-entry-img { flex: 0 0 120px; width: 120px; border-radius: var(--wcs-radius-sm); overflow: hidden; background: var(--wcs-bg); }
.wcs-trail-entry-img img { width: 100%; height: 100%; min-height: 80px; object-fit: cover; display: block; }
.wcs-trail-entry-body { flex: 1; min-width: 0; }
.wcs-trail-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.wcs-trail-entry-date { font-weight: 700; color: var(--wcs-heading-color); }
.wcs-trail-entry-points { font-weight: 800; color: var(--wcs-primary); font-variant-numeric: tabular-nums; }
.wcs-trail-entry-dist { font-size: .95rem; margin-top: .15rem; }
.wcs-trail-entry-milestone { font-size: .9rem; color: var(--wcs-primary); font-weight: 600; margin-top: .25rem; }
.wcs-trail-entry-cum { font-size: .82rem; color: var(--wcs-muted); margin-top: .1rem; }
.wcs-trail-entry-time { font-size: .78rem; color: var(--wcs-muted); margin-top: .1rem; }

@media ( max-width: 480px ) {
	.wcs-trail-entry-img { flex-basis: 84px; width: 84px; }
}

/* Activity feed */
.wcs-activity-list { list-style: none; margin: 0; padding: 0; }
.wcs-activity-item { display: flex; align-items: baseline; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--wcs-line); }
.wcs-activity-item:last-child { border-bottom: 0; }
.wcs-activity-dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; background: var(--wcs-primary); color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.wcs-activity-text { flex: 1; min-width: 0; font-size: .95rem; }
.wcs-activity-campaign { color: var(--wcs-muted); }
.wcs-activity-when { flex: 0 0 auto; color: var(--wcs-muted); font-size: .8rem; white-space: nowrap; }

/* ============================================================
   Dated phases (timeline) & scheduled sessions
   ============================================================ */
.wcs-phase-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.wcs-phase { display: flex; gap: .9rem; padding: 0 0 1rem; position: relative; }
.wcs-phase:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--wcs-line); }
.wcs-phase-marker { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--wcs-line); background: #fff; margin-top: 2px; z-index: 1; }
.wcs-phase.is-done .wcs-phase-marker { background: var(--wcs-primary); border-color: var(--wcs-primary); }
.wcs-phase.is-current .wcs-phase-marker { background: var(--wcs-accent); border-color: var(--wcs-accent); box-shadow: 0 0 0 4px rgba(31,122,92,.15); }
.wcs-phase-head { display: flex; align-items: center; gap: .5rem; }
.wcs-phase-title { font-weight: 800; color: var(--wcs-heading-color); }
.wcs-phase.is-upcoming .wcs-phase-title { color: var(--wcs-muted); }
.wcs-phase-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #fff; background: var(--wcs-accent); padding: .12rem .5rem; border-radius: 999px; }
.wcs-phase-date { font-size: .82rem; color: var(--wcs-muted); margin-top: .15rem; }
.wcs-phase-desc { font-size: .92rem; margin-top: .25rem; }

.wcs-session-list { list-style: none; margin: .75rem 0 0; padding: 0; }
.wcs-session { display: flex; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--wcs-line); }
.wcs-session:last-child { border-bottom: 0; }
.wcs-session-when { flex: 0 0 auto; min-width: 170px; font-weight: 700; color: var(--wcs-primary); font-variant-numeric: tabular-nums; }
.wcs-session.is-past .wcs-session-when { color: var(--wcs-muted); }
.wcs-session-body { flex: 1; min-width: 0; }
.wcs-session-title { font-weight: 700; }
.wcs-session-loc { font-size: .85rem; color: var(--wcs-muted); }
.wcs-session-link { font-size: .85rem; font-weight: 600; }
.wcs-session-tag { flex: 0 0 auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wcs-muted); border: 1px solid var(--wcs-line); padding: .1rem .45rem; border-radius: 999px; }
@media ( max-width: 480px ) {
	.wcs-session { flex-wrap: wrap; }
	.wcs-session-when { min-width: 0; flex-basis: 100%; }
}

/* ============================================================
   Per-phase quizzes
   ============================================================ */
.wcs-quiz { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--wcs-line); }
.wcs-quiz-locked { color: var(--wcs-muted); font-style: italic; }
.wcs-quiz-doc { margin: 0 0 .75rem; }
.wcs-quiz-status.is-passed { color: var(--wcs-primary); font-weight: 700; }
.wcs-quiz-feedback { padding: .65rem .85rem; border-radius: var(--wcs-radius-sm); margin-bottom: .85rem; }
.wcs-quiz-feedback.is-passed { background: #e9f6f0; border: 1px solid var(--wcs-primary); }
.wcs-quiz-feedback.is-failed { background: #fcf0f1; border: 1px solid #d9534f; }
.wcs-quiz-feedback strong { display: block; }
.wcs-quiz-feedback span { font-size: .9rem; color: var(--wcs-muted); }
.wcs-quiz-form fieldset.wcs-quiz-q { border: 1px solid var(--wcs-line); border-radius: var(--wcs-radius-sm); padding: .85rem 1rem; margin: 0 0 .85rem; }
.wcs-quiz-q.is-right { border-color: var(--wcs-primary); background: #f3fbf7; }
.wcs-quiz-q.is-wrong { border-color: #e6b0ae; background: #fdf5f5; }
.wcs-quiz-q-text { font-weight: 700; padding: 0 .25rem; }
.wcs-quiz-opt { display: flex; align-items: center; gap: .5rem; padding: .35rem .4rem; border-radius: 8px; cursor: pointer; }
.wcs-quiz-opt input { margin: 0; }
.wcs-quiz-opt.is-correct { background: #e2f4ec; font-weight: 600; }
.wcs-quiz-opt.is-chosen-wrong { background: #fae3e2; text-decoration: line-through; }
.wcs-quiz-explain { font-size: .85rem; color: var(--wcs-muted); margin: .5rem 0 0; padding: .4rem .5rem; background: var(--wcs-bg); border-radius: 8px; }
.wcs-quiz-retake summary { cursor: pointer; color: var(--wcs-primary); font-weight: 600; margin-top: .5rem; }

/* ============================================================
   Activity Timer
   ============================================================ */
.wcs-timer { margin: .5rem 0 1rem; text-align: center; }
.wcs-timer-clock { position: relative; width: 160px; height: 160px; margin: 0 auto .75rem; }
.wcs-timer-ring { width: 160px; height: 160px; transform: rotate(-90deg); }
.wcs-timer-track { fill: none; stroke: var(--wcs-line); stroke-width: 8; }
.wcs-timer-progress { fill: none; stroke: var(--wcs-primary); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.wcs-timer.is-finished .wcs-timer-progress { stroke: var(--wcs-accent); }
.wcs-timer-display { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--wcs-heading-color); }
.wcs-timer.is-running .wcs-timer-display { color: var(--wcs-primary); }
.wcs-timer.is-finished .wcs-timer-display { color: var(--wcs-accent); animation: wcs-timer-flash 0.6s ease-in-out 3; }
@keyframes wcs-timer-flash { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.wcs-timer-adjust { display: flex; gap: .75rem; justify-content: center; margin-bottom: .6rem; font-size: .85rem; color: var(--wcs-muted); }
.wcs-timer-adjust input { width: 64px; }
.wcs-timer-controls { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.wcs-timer-msg { margin: .6rem 0 0; font-weight: 700; color: var(--wcs-accent); min-height: 1.2em; }

/* ============================================================
   Responsive polish (v1.16) — small-screen refinements,
   touch targets, and table reflow. Layered on top of the
   existing fluid grids and breakpoints above.
   ============================================================ */

/* Comfortable tap targets on touch devices (WCAG 2.5.5 ~44px). */
@media (hover: none) and (pointer: coarse) {
	.wcs-wrap .wcs-btn,
	.wcs-wrap button,
	.wcs-wrap input[type="submit"],
	.wcs-wrap .wcs-quiz-opt,
	.wcs-wrap .wcs-timer-controls .wcs-btn {
		min-height: 44px;
	}
	.wcs-wrap input[type="number"],
	.wcs-wrap input[type="text"],
	.wcs-wrap input[type="time"],
	.wcs-wrap input[type="date"],
	.wcs-wrap input[type="email"],
	.wcs-wrap input[type="password"],
	.wcs-wrap select {
		min-height: 44px;
		font-size: 16px; /* prevents iOS zoom-on-focus */
	}
}

/* Wide tables scroll horizontally instead of breaking layout. */
.wcs-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wcs-table-wrap .wcs-table { min-width: 460px; }

/* Tablet: ease the dashboard hero + card padding. */
@media (max-width: 820px) {
	.wcs-wrap { padding-left: 16px; padding-right: 16px; }
	.wcs-card { padding: 1.25rem; }
}

/* Phone: tighten everything and stack multi-column rows. */
@media (max-width: 560px) {
	.wcs-card { padding: 1.1rem; border-radius: 16px; }
	.wcs-h { font-size: 1.15rem; }
	.wcs-checkin { flex-direction: column; align-items: stretch; }
	.wcs-checkin .wcs-field { min-width: 0; width: 100%; }
	.wcs-timer-clock { width: 140px; height: 140px; }
	.wcs-timer-ring { width: 140px; height: 140px; }
	.wcs-timer-display { font-size: 1.8rem; }
	.wcs-timer-adjust { flex-wrap: wrap; }
	.wcs-quiz-form fieldset.wcs-quiz-q { padding: .75rem .8rem; }
	/* Phase timeline: keep the rail but reduce indentation. */
	.wcs-phase { gap: .6rem; }
}

/* Very small phones. */
@media (max-width: 380px) {
	.wcs-wrap { padding-left: 12px; padding-right: 12px; }
	.wcs-stats { grid-template-columns: repeat(2, 1fr); }
	.wcs-timer-controls { flex-direction: column; }
	.wcs-timer-controls .wcs-btn { width: 100%; }
}

/* Respect reduced-motion preferences across all animated bits. */
@media (prefers-reduced-motion: reduce) {
	.wcs-wrap *,
	.wcs-timer-progress,
	.wcs-track-progress,
	.wcs-tile,
	.wcs-card { transition: none !important; animation: none !important; }
}

/* Check-in card on the detail/progress page */
.wcs-checkin-card .wcs-checkin { margin-bottom: .5rem; }
.wcs-checkin-card .wcs-checkin-submit { margin-top: .25rem; }

/* Goal "X of Y" label under the overall progress bar */
.wcs-progress-goal { margin: .5rem 0 0; font-size: .85rem; font-weight: 600; color: var(--wcs-muted); }

/* ============================================================
   Notification center
   ============================================================ */
.wcs-notifications-page .wcs-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.wcs-notif-list { list-style: none; margin: 0; padding: 0; }
.wcs-notif-item { display: flex; gap: .85rem; padding: .9rem 1rem; border: 1px solid var(--wcs-line); border-radius: 14px; margin-bottom: .6rem; background: #fff; align-items: flex-start; }
.wcs-notif-item.is-unread { border-color: var(--wcs-primary); background: var(--wcs-bg, #f4f8f6); }
.wcs-notif-item.is-unread .wcs-notif-title { font-weight: 800; }
.wcs-notif-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--wcs-primary), var(--wcs-accent)); display: inline-block; position: relative; }
.wcs-notif-icon::after { content: "★"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.wcs-notif-icon--trophy::after { content: "🏆"; }
.wcs-notif-icon--flag::after { content: "🚩"; }
.wcs-notif-icon--flame::after { content: "🔥"; }
.wcs-notif-icon--progress::after { content: "📈"; }
.wcs-notif-icon--chart::after { content: "📊"; }
.wcs-notif-icon--wave::after { content: "👋"; }
.wcs-notif-icon--badge::after { content: "🎖"; }
.wcs-notif-title { font-size: .98rem; }
.wcs-notif-title a { text-decoration: none; }
.wcs-notif-body { color: var(--wcs-muted); font-size: .9rem; margin-top: .15rem; }
.wcs-notif-when { color: var(--wcs-faint, #8a9b94); font-size: .8rem; margin-top: .25rem; }
@media (max-width: 480px) { .wcs-notif-item { border-radius: 12px; } }

/* Account notification preferences */
.wcs-acc-notify { border: 1px solid var(--wcs-line); border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0; }
.wcs-acc-notify legend { font-weight: 700; padding: 0 .4rem; }
.wcs-acc-notify-row { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; }

/* Mobile quick-add chips for steps/distance */
.wcs-quick-add { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.wcs-chip { appearance: none; border: 1px solid var(--wcs-line); background: #fff; color: var(--wcs-primary); font-weight: 700; border-radius: 999px; padding: .45rem .85rem; font-size: .9rem; cursor: pointer; min-height: 40px; }
.wcs-chip:hover { background: var(--wcs-bg, #f4f8f6); }
.wcs-chip:active { transform: scale(.97); }
.wcs-chip--clear { color: var(--wcs-muted); font-weight: 600; }
@media (max-width: 480px) { .wcs-chip { flex: 1 1 auto; text-align: center; } }

/* Fitbit connect card on the account page */
.wcs-fitbit-card { margin-top: 1.25rem; padding: 1.1rem 1.2rem; border: 1px solid var(--wcs-line); border-radius: 14px; background: #fff; }
.wcs-fitbit-card h3 { margin: 0 0 .4rem; }
.wcs-fitbit-card .wcs-sub { margin: 0 0 .8rem; }

/* ============================================================
   Logout button (sits on the colored hero) — subtle outline
   ============================================================ */
.wcs-logout-btn {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .5rem .9rem; border-radius: 999px;
	background: rgba(255,255,255,.14);
	border: 1px solid rgba(255,255,255,.55);
	color: #fff; font-weight: 600; font-size: .9rem;
	text-decoration: none; line-height: 1; cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.wcs-logout-btn:hover, .wcs-logout-btn:focus {
	background: rgba(255,255,255,.28);
	border-color: #fff; color: #fff;
}
.wcs-logout-icon { font-size: 1.05rem; transform: translateY(1px); }

/* ============================================================
   Explore more challenges
   ============================================================ */
.wcs-section-head { margin: 1.75rem 0 .75rem; }
.wcs-section-head .wcs-section-title { margin-bottom: .15rem; }
.wcs-section-sub { color: var(--wcs-muted); font-size: .92rem; margin: 0; }
.wcs-explore-grid {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	align-items: stretch;
}
.wcs-explore-card {
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--wcs-line); border-radius: var(--wcs-radius);
	background: #fff; overflow: hidden;
	box-shadow: var(--wcs-shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.wcs-explore-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.wcs-explore-media { aspect-ratio: 16 / 9; flex: 0 0 auto; background-size: cover; background-repeat: no-repeat; background-position: center; background-color: var(--wcs-bg, #f4f8f6); }
.wcs-explore-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.wcs-explore-body h4 { margin: 0 0 .35rem; }
.wcs-explore-desc { color: var(--wcs-muted); font-size: .88rem; margin: 0 0 .5rem; }
.wcs-explore-dates { color: var(--wcs-faint, #8a9b94); font-size: .8rem; margin: 0 0 .75rem; }
/* Reliable spacer that always pushes the button to the bottom, regardless of
   which optional blocks (description, dates) are present. */
.wcs-explore-spacer { flex: 1 1 auto; }
.wcs-explore-join { margin-top: auto; align-self: stretch; text-align: center; }

/* ============================================================
   Certificates — card grid with ribbon
   ============================================================ */
.wcs-cert-grid {
	display: grid; gap: .85rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wcs-cert-card {
	display: flex; align-items: center; gap: .9rem;
	padding: 1rem 1.1rem; border-radius: var(--wcs-radius);
	border: 1px solid var(--wcs-line);
	background: linear-gradient(135deg, #fffdf6, #fff);
	text-decoration: none; color: inherit;
	box-shadow: var(--wcs-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wcs-cert-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: #e6c200; }
.wcs-cert-ribbon {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.5rem;
	background: linear-gradient(135deg, #ffe9a8, #f6c945);
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.wcs-cert-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.wcs-cert-title { font-weight: 700; }
.wcs-cert-date { color: var(--wcs-muted); font-size: .82rem; }
.wcs-cert-action { color: var(--wcs-primary); font-weight: 600; font-size: .85rem; margin-top: .2rem; }

@media (max-width: 480px) {
	.wcs-explore-grid, .wcs-cert-grid { grid-template-columns: 1fr; }
}

/* Participant history page */
.wcs-history-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.wcs-history-table { width: 100%; border-collapse: collapse; }
.wcs-history-table th, .wcs-history-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--wcs-line); font-size: .92rem; }
.wcs-history-table th { color: var(--wcs-muted); font-weight: 700; }
@media print {
	.wcs-logout-btn, .wcs-btn--ghost, .wcs-checkin-form, .wcs-quick-add { display: none !important; }
	.wcs-history-page { color: #000; }
}

/* Speech-to-text mic button on check-in fields */
.wcs-speech { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; flex-wrap: wrap; }
.wcs-speech-btn { display: inline-flex; align-items: center; gap: .4rem; appearance: none; cursor: pointer; border: 1px solid var(--wcs-line); background: #fff; color: var(--wcs-primary); font-weight: 600; font-size: .85rem; border-radius: 999px; padding: .4rem .8rem; min-height: 38px; transition: background .15s ease, border-color .15s ease; }
.wcs-speech-btn:hover { background: var(--wcs-bg, #f4f8f6); }
.wcs-speech-btn .wcs-speech-mic { font-size: 1rem; line-height: 1; }
.wcs-speech-btn.is-listening { background: var(--wcs-primary); color: #fff; border-color: var(--wcs-primary); animation: wcs-pulse 1.2s ease-in-out infinite; }
.wcs-speech-btn.is-unsupported { color: var(--wcs-muted); }
@keyframes wcs-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,122,92,.35); } 50% { box-shadow: 0 0 0 6px rgba(31,122,92,0); } }
.wcs-speech-status { font-size: .82rem; color: var(--wcs-muted); }
.wcs-speech-status.is-active { color: var(--wcs-primary); font-weight: 600; }
.wcs-speech-status.is-ok { color: #1c6b3c; }
.wcs-speech-status.is-warn { color: #9b5a00; }
@media (prefers-reduced-motion: reduce) { .wcs-speech-btn.is-listening { animation: none; } }

/* Rewards store */
.wcs-rewards-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wcs-balance { text-align: right; }
.wcs-balance-num { font-size: 1.8rem; font-weight: 800; color: var(--wcs-primary); display: block; line-height: 1; }
.wcs-balance-label { font-size: .8rem; color: var(--wcs-muted); }
.wcs-rewards-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1rem; }
.wcs-reward-card { display: flex; flex-direction: column; border: 1px solid var(--wcs-line); border-radius: var(--wcs-radius); background: #fff; overflow: hidden; box-shadow: var(--wcs-shadow); }
.wcs-reward-media { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--wcs-bg, #f4f8f6); }
.wcs-reward-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.wcs-reward-body h3 { margin: 0 0 .35rem; }
.wcs-reward-desc { color: var(--wcs-muted); font-size: .88rem; margin: 0 0 .75rem; flex: 1; }
.wcs-reward-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.wcs-reward-cost { font-weight: 800; color: var(--wcs-primary); }
.wcs-reward-state { color: var(--wcs-muted); font-size: .85rem; }

/* Activity wall */
.wcs-feed-notice { font-size: .85rem; color: var(--wcs-muted); background: var(--wcs-bg, #f4f8f6); border-radius: 10px; padding: .6rem .8rem; }
.wcs-feed-composer textarea, .wcs-feed-comment-form input { width: 100%; border: 1px solid var(--wcs-line); border-radius: 10px; padding: .6rem .7rem; font: inherit; }
.wcs-feed-composer-foot { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.wcs-feed-msg { font-size: .85rem; color: var(--wcs-muted); }
.wcs-feed-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.wcs-feed-post { border: 1px solid var(--wcs-line); border-radius: var(--wcs-radius); background: #fff; padding: 1rem 1.1rem; box-shadow: var(--wcs-shadow); }
.wcs-feed-post-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.wcs-feed-author { font-weight: 700; }
.wcs-feed-time { font-size: .78rem; color: var(--wcs-muted); }
.wcs-feed-body { white-space: pre-wrap; }
.wcs-feed-actions { margin-top: .5rem; }
.wcs-feed-link { background: none; border: none; color: var(--wcs-muted); font-size: .8rem; cursor: pointer; padding: 0; text-decoration: underline; }
.wcs-feed-comments { margin-top: .75rem; border-top: 1px solid var(--wcs-line); padding-top: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.wcs-feed-comment { font-size: .9rem; }
.wcs-feed-comment .wcs-feed-author { margin-right: .3rem; }
.wcs-feed-flag-c { margin-left: .4rem; font-size: .72rem; }
.wcs-feed-comment-form { display: flex; gap: .5rem; margin-top: .6rem; }
.wcs-btn--small { padding: .4rem .8rem; font-size: .85rem; }
@media (max-width: 480px) { .wcs-rewards-grid { grid-template-columns: 1fr; } }

/* GPS "Track my walk" button on distance/steps check-ins */
.wcs-gps { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.wcs-gps-btn { display: inline-flex; align-items: center; gap: .4rem; appearance: none; cursor: pointer; border: 1px solid var(--wcs-line); background: #fff; color: var(--wcs-primary); font-weight: 600; font-size: .85rem; border-radius: 999px; padding: .45rem .85rem; min-height: 40px; transition: background .15s ease, border-color .15s ease; }
.wcs-gps-btn:hover { background: var(--wcs-bg, #f4f8f6); }
.wcs-gps-icon { font-size: 1rem; line-height: 1; }
.wcs-gps.is-tracking .wcs-gps-btn { background: var(--wcs-primary); color: #fff; border-color: var(--wcs-primary); animation: wcs-pulse 1.3s ease-in-out infinite; }
.wcs-gps-readout { font-size: .82rem; color: var(--wcs-muted); }
.wcs-gps-readout.is-active { color: var(--wcs-primary); font-weight: 600; }
.wcs-gps-readout.is-ok { color: #1c6b3c; }
.wcs-gps-readout.is-warn { color: #9b5a00; }
@media (prefers-reduced-motion: reduce) { .wcs-gps.is-tracking .wcs-gps-btn { animation: none; } }

/* Distance activity: pace display */
.wcs-pace { margin: .4rem 0 0; font-weight: 700; color: var(--wcs-primary); font-size: .95rem; min-height: 1.2em; }
.wcs-pace:empty { display: none; }

/* Activity wall: like button */
.wcs-feed-like { display: inline-flex; align-items: center; gap: .3rem; background: none; border: none; cursor: pointer; color: var(--wcs-muted); font-size: .85rem; padding: 0; margin-right: .9rem; }
.wcs-feed-like-icon { font-size: 1rem; line-height: 1; transition: transform .12s ease; }
.wcs-feed-like.is-liked { color: #d6336c; font-weight: 600; }
.wcs-feed-like.is-liked .wcs-feed-like-icon { transform: scale(1.15); }

/* Draw attention to the Check in button after GPS tracking stops, so people
   don't forget the final save step. */
.wcs-btn.wcs-attention {
	animation: wcs-attention-pulse 1.1s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(31,122,92,.5);
}
@keyframes wcs-attention-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(31,122,92,.5); }
	70%  { box-shadow: 0 0 0 12px rgba(31,122,92,0); }
	100% { box-shadow: 0 0 0 0 rgba(31,122,92,0); }
}
@media (prefers-reduced-motion: reduce) {
	.wcs-btn.wcs-attention { animation: none; outline: 3px solid var(--wcs-primary); outline-offset: 2px; }
}

/* GPS save-confirmation modal — an unmissable panel after the person stops
   tracking, so the activity actually gets logged. */
.wcs-gps-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 23, 18, .62);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 99999;
	animation: wcs-modal-fade .18s ease-out;
}
@keyframes wcs-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.wcs-gps-modal {
	background: #fff;
	border-radius: 18px;
	max-width: 380px;
	width: 100%;
	padding: 28px 24px 22px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	animation: wcs-modal-pop .2s ease-out;
}
@keyframes wcs-modal-pop { from { transform: scale(.94); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.wcs-gps-modal-amount {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--wcs-primary);
	line-height: 1.1;
	margin-bottom: 6px;
}
.wcs-gps-modal-sub {
	font-size: 1.05rem;
	color: var(--wcs-body-color, #33433d);
	margin-bottom: 20px;
}
.wcs-gps-modal-save {
	display: block;
	width: 100%;
	font-size: 1.15rem;
	font-weight: 700;
	padding: 16px;
	border-radius: 12px;
	min-height: 56px;
	margin-bottom: 12px;
	background: var(--wcs-primary, #1f7a5c);
	border: 2px solid var(--wcs-primary, #1f7a5c);
	color: #fff;
}
.wcs-gps-modal-save:hover { filter: brightness(.93); }
.wcs-gps-modal-edit {
	display: block;
	width: 100%;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 14px;
	border-radius: 12px;
	min-height: 52px;
	background: #fff;
	border: 2px solid var(--wcs-primary, #1f7a5c);
	color: var(--wcs-primary, #1f7a5c);
	text-decoration: none;
	cursor: pointer;
}
.wcs-gps-modal-edit:hover { background: var(--wcs-bg, #f4f8f6); }

/* GPS modal — tracking phase additions (title, live time/pace, Stop button) */
.wcs-gps-modal-title { font-size: 1.05rem; font-weight: 700; color: var(--wcs-heading-color, #13322a); margin-bottom: 10px; }
.wcs-gps-modal-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 1.05rem; color: var(--wcs-body-color, #33433d); margin-bottom: 14px; min-height: 1.3em; }
.wcs-gps-modal-meta span:empty { display: none; }
.wcs-gps-modal-clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.wcs-gps-modal-pace { color: var(--wcs-muted); }
.wcs-gps-modal-amount.is-warn { font-size: 1.05rem; color: #9b5a00; font-weight: 600; }
.wcs-gps-modal-stop { display: block; width: 100%; font-size: 1.15rem; font-weight: 700; padding: 16px; border-radius: 12px; min-height: 56px; background: #b3261e; border-color: #b3261e; color: #fff; }
.wcs-gps-modal-stop:hover { background: #8c1d17; border-color: #8c1d17; }

/* Challenge category filters + grouping */
.wcs-cat-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.wcs-cat-filter {
	appearance: none; cursor: pointer;
	border: 1px solid var(--wcs-line);
	background: #fff; color: var(--wcs-body-color, #33433d);
	font-weight: 600; font-size: .9rem;
	border-radius: 999px; padding: .5rem 1rem; min-height: 40px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.wcs-cat-filter:hover { background: var(--wcs-bg, #f4f8f6); }
.wcs-cat-filter.is-active {
	background: var(--wcs-primary); color: #fff; border-color: var(--wcs-primary);
}
.wcs-cat-group { margin-bottom: 1.75rem; }
.wcs-cat-heading {
	font-size: 1.1rem; font-weight: 700;
	color: var(--wcs-heading-color, #13322a);
	margin: 0 0 .85rem; padding-bottom: .4rem;
	border-bottom: 2px solid var(--wcs-line);
}

/* Activity route maps */
.wcs-route-toggle {
	appearance: none; background: none; border: none; cursor: pointer;
	color: var(--wcs-primary); font-weight: 600; font-size: inherit;
	text-decoration: underline; padding: 0;
}

/* Full-screen overlay so the map is large and usable on a phone (portrait
   especially), instead of being crammed into a history-table cell. */
.wcs-map-overlay {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(8, 23, 18, .68);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	animation: wcs-modal-fade .18s ease-out;
}
.wcs-map-panel {
	position: relative;
	width: 100%; max-width: 720px;
	height: 80vh; max-height: 80vh;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.wcs-map-close {
	position: absolute; top: 10px; right: 10px; z-index: 5;
	width: 40px; height: 40px; line-height: 38px;
	border-radius: 50%; border: none; cursor: pointer;
	background: #fff; color: #222; font-size: 1.6rem;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
	display: flex; align-items: center; justify-content: center;
}
.wcs-map-close:hover { background: #f0f0f0; }
.wcs-route-map {
	width: 100%; height: 100%;
}
.wcs-route-map .leaflet-container { height: 100%; width: 100%; }

/* On portrait phones, use nearly the whole screen so the route is readable. */
@media (max-width: 600px) {
	.wcs-map-overlay { padding: 0; }
	.wcs-map-panel { max-width: none; height: 100vh; max-height: 100vh; border-radius: 0; }
}

/* ---- Accessibility pass (v1.40.0) ---- */
/* Visible keyboard focus for all interactive elements. Uses :focus-visible so
   it appears for keyboard/AT users without showing a ring on mouse clicks.
   A double indicator (outline + shadow) keeps it visible on any background. */
.wcs-wrap a:focus-visible,
.wcs-wrap button:focus-visible,
.wcs-wrap [role="link"]:focus-visible,
.wcs-wrap [tabindex]:focus-visible,
.wcs-wrap input:focus-visible,
.wcs-wrap select:focus-visible,
.wcs-wrap textarea:focus-visible,
.wcs-gps-modal button:focus-visible,
.wcs-map-panel button:focus-visible,
.wcs-map-close:focus-visible {
	outline: 3px solid var(--wcs-primary, #1f7a5c);
	outline-offset: 2px;
	border-radius: 4px;
}
/* Fallback for browsers without :focus-visible support. */
.wcs-wrap a:focus,
.wcs-wrap button:focus {
	outline: 3px solid var(--wcs-primary, #1f7a5c);
	outline-offset: 2px;
}
.wcs-wrap a:focus:not(:focus-visible),
.wcs-wrap button:focus:not(:focus-visible) {
	outline: none; /* don't show ring on mouse click where focus-visible is supported */
}

/* Screen-reader-only utility: hidden visually, available to assistive tech. */
.wcs-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Respect reduced-motion for the attention pulse + modals already handled;
   ensure any remaining transitions are calmed for users who ask for it. */
@media (prefers-reduced-motion: reduce) {
	.wcs-wrap * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Milestone celebration (v1.40.0) ---- */
.wcs-celebrate-overlay {
	position: fixed; inset: 0; z-index: 100001;
	background: rgba(8, 23, 18, .55);
	display: flex; align-items: center; justify-content: center;
	padding: 20px; animation: wcs-modal-fade .2s ease-out;
}
.wcs-celebrate-card {
	position: relative; overflow: hidden;
	background: #fff; border-radius: 18px;
	max-width: 360px; width: 100%;
	padding: 32px 24px 24px; text-align: center;
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	animation: wcs-modal-pop .25s ease-out;
}
.wcs-celebrate-title { font-size: 1.5rem; font-weight: 800; color: var(--wcs-primary, #1f7a5c); margin-bottom: 8px; }
.wcs-celebrate-sub { font-size: 1rem; color: var(--wcs-body-color, #33433d); margin-bottom: 20px; }
.wcs-celebrate-close { min-width: 140px; }
.wcs-celebrate-confetti { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; }
.wcs-celebrate-confetti span {
	position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px;
	opacity: .9; animation: wcs-confetti-fall 2.4s linear forwards;
}
@keyframes wcs-confetti-fall {
	0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
	100% { transform: translateY(320px) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.wcs-celebrate-confetti { display: none; }
	.wcs-celebrate-card, .wcs-celebrate-overlay { animation: none; }
}

/* ---- Team standings (head-to-head) ---- */
.wcs-ts-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--wcs-heading-color, #13322a); }
.wcs-ts-list { list-style: none; margin: 0; padding: 0; }
.wcs-ts-row {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 14px; border: 1px solid var(--wcs-line);
	border-radius: 12px; margin-bottom: 8px; background: #fff;
}
.wcs-ts-row.is-mine { border-color: var(--wcs-primary, #1f7a5c); box-shadow: 0 0 0 2px rgba(31,122,92,.15); }
.wcs-ts-rank {
	flex: 0 0 auto; width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	background: var(--wcs-bg, #f4f8f6); border-radius: 50%;
	font-weight: 800; color: var(--wcs-primary, #1f7a5c);
}
.wcs-ts-row:first-child .wcs-ts-rank { background: #f4b740; color: #5a4500; }
.wcs-ts-name { flex: 1 1 auto; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.wcs-ts-you {
	display: inline-block; font-size: .72rem; font-weight: 700;
	background: var(--wcs-primary, #1f7a5c); color: #fff;
	border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}
.wcs-ts-members { font-weight: 400; color: var(--wcs-muted); font-size: .82rem; }
.wcs-ts-points { flex: 0 0 auto; text-align: right; }
.wcs-ts-points strong { font-size: 1.15rem; color: var(--wcs-primary, #1f7a5c); display: block; }
.wcs-ts-points small, .wcs-ts-note { color: var(--wcs-muted); font-size: .8rem; }
.wcs-ts-note { margin-top: 10px; }

/* ---- Manager hub (front-end program management) ---- */
.wcs-mhub-head { margin-bottom: 1rem; }
.wcs-mhub-title { font-size: 1.5rem; font-weight: 800; color: var(--wcs-heading-color, #13322a); margin: 0 0 4px; }
.wcs-mhub-sub { color: var(--wcs-muted); margin: 0; }
.wcs-mhub-nav { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--wcs-line); margin-bottom: 1.25rem; }
.wcs-mhub-tab {
	padding: 10px 16px; font-weight: 600; text-decoration: none;
	color: var(--wcs-body-color, #33433d); border-radius: 8px 8px 0 0;
	border: 1px solid transparent; border-bottom: none;
}
.wcs-mhub-tab:hover { background: var(--wcs-bg, #f4f8f6); }
.wcs-mhub-tab.is-active { background: var(--wcs-primary, #1f7a5c); color: #fff; }
.wcs-mhub-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.wcs-mhub-table th, .wcs-mhub-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--wcs-line); }
.wcs-mhub-table th { font-weight: 700; color: var(--wcs-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.wcs-mhub-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.wcs-mhub-stats .wcs-stat { flex: 1 1 120px; text-align: center; padding: 16px; background: var(--wcs-bg, #f4f8f6); border-radius: 12px; }
.wcs-mhub-stats .num { font-size: 1.8rem; font-weight: 800; color: var(--wcs-primary, #1f7a5c); }
.wcs-mhub-stats .lbl { color: var(--wcs-muted); font-size: .85rem; }
@media (max-width: 600px) {
	.wcs-mhub-table { display: block; overflow-x: auto; }
}

/* ---- PWA install prompt ---- */
.wcs-install {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 18px; border: 1px solid var(--wcs-line);
	border-radius: 14px; background: var(--wcs-bg, #f4f8f6);
}
.wcs-install-icon img { display: block; border-radius: 12px; }
.wcs-install-title { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; color: var(--wcs-heading-color, #13322a); }
.wcs-install-text { margin: 0 0 12px; color: var(--wcs-body-color, #33433d); }
.wcs-install-ios ol { margin: 8px 0 0; padding-left: 20px; }
.wcs-install-ios li { margin-bottom: 4px; }



/* ---- Leave challenge (subtle, secondary action) ---- */
.wcs-tile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wcs-link-btn {
	background: none; border: none; padding: 0; cursor: pointer;
	color: var(--wcs-muted); font-size: .85rem; text-decoration: underline;
	font-family: inherit;
}
.wcs-link-btn:hover { color: #b32d2e; }
.wcs-leave-challenge:disabled { opacity: .6; cursor: default; }

/* ---- Checklist goal check-in ---- */
.wcs-checklist-field { display: flex; flex-direction: column; gap: 8px; }
.wcs-checklist-intro { font-weight: 600; margin: 0 0 4px; }
.wcs-checklist-item { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; cursor: pointer; }
.wcs-checklist-item input { margin-top: 3px; }
.wcs-checklist-item em { color: var(--wcs-muted); font-style: italic; }

/* ---- Custom badge images ---- */
.wcs-badge-img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 4px; border-radius: 4px; }

/* ---- Daily cadence guidance ---- */
.wcs-cadence-note {
	background: var(--wcs-surface-2, #f4f6f8);
	border: 1px solid var(--wcs-line, #e2e6ea);
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0 0 12px;
	font-size: .92rem;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}
.wcs-cadence-progress { color: var(--wcs-primary, #2271b1); white-space: nowrap; }

/* ============ Modern participant quiz ============ */
.wcs-quiz-modern { display: flex; flex-direction: column; gap: 16px; }
.wcs-quiz-modern .wcs-quiz-q {
	border: 1px solid var(--wcs-line, #e2e6ea);
	border-radius: 14px;
	padding: 18px 18px 14px;
	background: var(--wcs-surface, #fff);
	margin: 0;
	transition: border-color .2s, box-shadow .2s;
}
.wcs-quiz-modern .wcs-quiz-q.is-right { border-color: #1a7f37; background: rgba(26,127,55,.04); }
.wcs-quiz-modern .wcs-quiz-q.is-wrong { border-color: #b32d2e; background: rgba(179,45,46,.04); }
.wcs-quiz-q-text { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.02rem; padding: 0; margin-bottom: 10px; }
.wcs-quiz-qnum {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 26px; height: 26px; border-radius: 50%;
	background: var(--wcs-primary, #2271b1); color: #fff; font-size: .8rem; font-weight: 700;
}
.wcs-quiz-pts {
	margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
	background: var(--wcs-primary-soft, #eaf2fb); color: var(--wcs-primary, #2271b1);
	padding: 3px 8px; border-radius: 999px;
}
.wcs-quiz-hint { font-size: .82rem; color: var(--wcs-muted, #6b7280); margin: 0 0 8px; }
.wcs-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.wcs-quiz-modern .wcs-quiz-opt {
	display: flex; align-items: center; gap: 12px;
	border: 1.5px solid var(--wcs-line, #e2e6ea); border-radius: 10px;
	padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.wcs-quiz-modern .wcs-quiz-opt:hover { border-color: var(--wcs-primary, #2271b1); background: var(--wcs-primary-soft, #f3f8fd); }
.wcs-quiz-modern .wcs-quiz-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.wcs-quiz-opt-mark {
	flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid #b9c0c7;
	border-radius: 50%; display: inline-block; position: relative; transition: all .15s;
}
.wcs-quiz-opt input[type="checkbox"] + .wcs-quiz-opt-mark { border-radius: 5px; }
.wcs-quiz-opt input:checked + .wcs-quiz-opt-mark {
	border-color: var(--wcs-primary, #2271b1); background: var(--wcs-primary, #2271b1);
}
.wcs-quiz-opt input:checked + .wcs-quiz-opt-mark::after {
	content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wcs-quiz-opt.is-correct { border-color: #1a7f37; background: rgba(26,127,55,.08); }
.wcs-quiz-opt.is-correct .wcs-quiz-opt-mark { border-color: #1a7f37; background: #1a7f37; }
.wcs-quiz-opt.is-chosen-wrong { border-color: #b32d2e; background: rgba(179,45,46,.08); }
.wcs-quiz-opt.is-chosen-wrong .wcs-quiz-opt-mark { border-color: #b32d2e; background: #b32d2e; }
.wcs-quiz-opt-text { flex: 1; }
.wcs-quiz-explain {
	margin: 12px 0 0; padding: 10px 12px; font-size: .88rem;
	background: var(--wcs-surface-2, #f4f6f8); border-radius: 8px; color: var(--wcs-muted, #50575e);
}
.wcs-quiz-submit { margin-top: 4px; }
