:root {
	--sonocan-navy: #0b3d5c;
	--sonocan-teal: #0e7c7b;
	--sonocan-teal-light: #e3f2f1;
	--sonocan-warn: #fff4d6;
	--sonocan-warn-border: #e0a800;
	--sonocan-error: #fde8e8;
	--sonocan-error-border: #c62828;
}

/* Member bar */
.sonocan-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	background: var(--sonocan-navy);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}
.sonocan-bar a { color: #fff; margin-left: 12px; }
.sonocan-bar code { background: rgba(255, 255, 255, 0.15); color: #fff; padding: 1px 6px; border-radius: 3px; }
.sonocan-bar__btn {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #fff;
	border-radius: 4px;
	text-decoration: none;
}

/* Banners */
.sonocan-banner { padding: 10px 16px; font-size: 15px; border-left: 4px solid; }
.sonocan-banner--warn { background: var(--sonocan-warn); border-color: var(--sonocan-warn-border); }
.sonocan-banner--error { background: var(--sonocan-error); border-color: var(--sonocan-error-border); }

/* Buttons */
.sonocan-btn,
.sonocan-btn:visited {
	display: inline-block;
	padding: 10px 18px;
	background: var(--sonocan-teal);
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}
.sonocan-btn:hover { background: var(--sonocan-navy); color: #fff; }

/* Gate */
.sonocan-gate {
	padding: 24px;
	border: 1px solid var(--sonocan-teal);
	background: var(--sonocan-teal-light);
	border-radius: 6px;
}
.sonocan-gate__label { font-weight: 700; font-size: 1.1em; margin-top: 0; }

/* Dashboard */
.sonocan-dash__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.sonocan-card { padding: 16px 20px; border: 1px solid #d6dde3; border-radius: 6px; background: #fff; }
.sonocan-card h3 { margin: 0 0 8px; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6b78; }
.sonocan-card p { margin: 4px 0; }
.sonocan-card__big { font-size: 1.3em; font-weight: 700; color: var(--sonocan-navy); }
.sonocan-status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.85em; font-weight: 600; background: #e5e7eb; }
.sonocan-status--active { background: #d7f2e3; color: #11643a; }
.sonocan-status--grace { background: var(--sonocan-warn); color: #7a5600; }
.sonocan-status--lapsed { background: var(--sonocan-error); color: #8e1c1c; }
.sonocan-progress { height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; margin: 8px 0; }
.sonocan-progress span { display: block; height: 100%; background: var(--sonocan-teal); }
.sonocan-access { list-style: none; margin: 0 0 8px; padding: 0; }
.sonocan-access .is-yes { color: #11643a; }
.sonocan-access .is-no { color: #8a96a0; }
.sonocan-dash__note { margin-top: 16px; font-size: 0.9em; color: #5a6b78; }

.sonocan-price-note { display: inline-block; font-size: 0.85em; color: var(--sonocan-teal); font-weight: 600; }

/* wp-login.php */
.sonocan-login-sso { text-align: center; margin: 0 0 16px; }

/* Admin */
.sonocan-admin .sonocan-map td { vertical-align: top; }
.sonocan-admin .sonocan-fallback td { color: #646970; background: #f6f7f7; }
.sonocan-admin .sonocan-row-warn td { background: var(--sonocan-warn); }

/* CPD write-back */
.sonocan-banner--ok { background: #e3f5ea; border-color: #1e8a4c; }
.sonocan-card--wide { margin-top: 16px; }
.sonocan-courses { width: 100%; border-collapse: collapse; }
.sonocan-courses th, .sonocan-courses td { text-align: left; padding: 8px 4px; border-bottom: 1px solid #e3e7eb; }
.sonocan-sync { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.85em; font-weight: 600; background: #e5e7eb; }
.sonocan-sync--recorded { background: #d7f2e3; color: #11643a; }
.sonocan-sync--retrying, .sonocan-sync--queued { background: var(--sonocan-warn); color: #7a5600; }
.sonocan-sync--failed { background: var(--sonocan-error); color: #8e1c1c; }

/* Course player (LearnDash stand-in) */
.sonocan-course__meta { color: #5a6b78; font-size: 0.9em; margin: 0; }
.sonocan-course__note { font-style: italic; }
.sonocan-lessons { padding-left: 1.2em; }
.sonocan-lessons li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e3e7eb; }
.sonocan-lessons li form { margin: 0; }
.sonocan-lessons__done { color: #11643a; font-weight: 600; }
.sonocan-btn--small { padding: 6px 12px; font-size: 0.9em; border: 0; cursor: pointer; }
