/**
 * Oficinas do Conhecimento — public + participant app styles.
 * Mobile-first, app-like, light/dark aware, WCAG-conscious.
 */

.odc-public,
.odc-app {
	--odc-brand: #2563eb;
	--odc-accent: #f59e0b;
	--odc-bg: #f4f6fb;
	--odc-surface: #ffffff;
	--odc-surface-2: #f1f5f9;
	--odc-text: #1e293b;
	--odc-muted: #64748b;
	--odc-border: #e2e8f0;
	--odc-success: #15803d;
	--odc-danger: #b91c1c;

	/* Categorical tone palette for stat tiles. */
	--odc-t-brand: #2563eb;
	--odc-t-violet: #7c3aed;
	--odc-t-emerald: #059669;
	--odc-t-amber: #d97706;
	--odc-t-rose: #e11d48;
	--odc-t-cyan: #0891b2;

	--odc-radius: 16px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--odc-text);
	max-width: 760px;
	margin: 0 auto;
	padding: 8px;
	box-sizing: border-box;
}

.odc-public[data-odc-theme="dark"],
.odc-app[data-odc-theme="dark"] {
	--odc-bg: #0f172a;
	--odc-surface: #1e293b;
	--odc-surface-2: #243049;
	--odc-text: #e2e8f0;
	--odc-muted: #94a3b8;
	--odc-border: #334155;

	--odc-t-brand: #60a5fa;
	--odc-t-violet: #a78bfa;
	--odc-t-emerald: #34d399;
	--odc-t-amber: #fbbf24;
	--odc-t-rose: #fb7185;
	--odc-t-cyan: #22d3ee;
}

.odc-public *,
.odc-app * {
	box-sizing: border-box;
}

/* ---- Feedback banners ---- */
.odc-public__success,
.odc-public__error {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 18px;
	border-radius: var(--odc-radius);
	margin-bottom: 18px;
}

.odc-public__success {
	background: #dcfce7;
	color: #14532d;
	border: 1px solid #86efac;
}

.odc-public__error {
	background: #fee2e2;
	color: #7f1d1d;
	border: 1px solid #fca5a5;
}

.odc-public__success h2 {
	margin: 0 0 4px;
	font-size: 18px;
}

/* ---- Steps indicator ---- */
.odc-steps-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	counter-reset: step;
}

.odc-steps-nav li {
	flex: 1;
	min-width: 120px;
	font-size: 12px;
	font-weight: 600;
	color: var(--odc-muted);
	padding: 8px 10px;
	background: var(--odc-surface-2);
	border-radius: 10px;
	text-align: center;
}

.odc-steps-nav li.is-active {
	color: #fff;
	background: var(--odc-brand);
}

/* Com JavaScript o indicador vira navegação de verdade. */
.odc-form--stepped .odc-steps-nav li {
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.odc-form--stepped .odc-steps-nav li:hover {
	background: color-mix(in srgb, var(--odc-brand) 14%, var(--odc-surface-2));
	color: var(--odc-brand);
}

.odc-form--stepped .odc-steps-nav li.is-active:hover {
	background: var(--odc-brand);
	color: #fff;
}

.odc-form--stepped .odc-steps-nav li.is-done {
	background: color-mix(in srgb, var(--odc-success) 12%, var(--odc-surface-2));
	color: var(--odc-success);
}

.odc-form--stepped .odc-steps-nav li.is-done::after {
	content: " ✓";
}

.odc-form--stepped .odc-steps-nav li:focus-visible {
	outline: 2px solid var(--odc-brand);
	outline-offset: 2px;
}

.odc-steps-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 16px;
}

.odc-steps-actions .odc-steps-next {
	margin-left: auto;
}

/* ---- Fieldsets as cards ---- */
.odc-fieldset {
	background: var(--odc-surface);
	border: 1px solid var(--odc-border);
	border-radius: var(--odc-radius);
	padding: 20px;
	margin: 0 0 16px;
}

.odc-fieldset legend {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 700;
	padding: 0 6px;
}

.odc-step-num {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--odc-brand);
	color: #fff;
	font-size: 14px;
}

/* ---- Fields ---- */
.odc-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.odc-field label {
	font-weight: 600;
	font-size: 14px;
}

.odc-field input,
.odc-field select,
.odc-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--odc-border);
	border-radius: 12px;
	font-size: 16px; /* >=16px prevents iOS zoom */
	background: var(--odc-surface);
	color: var(--odc-text);
}

.odc-field input[aria-invalid="true"],
.odc-field select[aria-invalid="true"] {
	border-color: var(--odc-danger);
	box-shadow: 0 0 0 1px var(--odc-danger);
}

.odc-field__error {
	color: var(--odc-danger);
	font-size: 13px;
	font-weight: 600;
}

.odc-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.odc-field-row > .odc-field {
	flex: 1;
	min-width: 160px;
}

.odc-field--uf {
	max-width: 130px;
}

.odc-req {
	color: var(--odc-danger);
}

/* ---- Consent ---- */
.odc-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--odc-surface-2);
	padding: 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.odc-consent.has-error {
	outline: 2px solid var(--odc-danger);
}

.odc-consent input {
	margin-top: 3px;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* ---- Buttons ---- */
.odc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 12px;
	padding: 14px 22px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.odc-btn--primary {
	background: var(--odc-brand);
	color: #fff;
}

.odc-btn--primary:hover {
	filter: brightness(1.05);
}

.odc-public__submit {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

/* ---- Honeypot ---- */
.odc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Participant app shell ---- */
.odc-app {
	max-width: 1040px;
}

/* Fullscreen app: ALWAYS fill the device viewport at full width, above the theme
 * — independent of any body class, so the theme header/footer can never overlap.
 * The :has() rules lock the page scroll behind the app. */
html:has( .odc-app ),
body:has( .odc-app ) { overflow: hidden; }
body.odc-app-fullscreen { overflow: hidden; }

.odc-app {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	z-index: 2147483000; /* above sticky theme headers / admin bar */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--odc-bg);
}

/* Use the full screen width; keep a comfortable side gutter for readability. */
.odc-app__layout,
.odc-app__nav-bar { max-width: none; }
.odc-app__main { padding-left: clamp( 10px, 3vw, 28px ); padding-right: clamp( 10px, 3vw, 28px ); }

.odc-app__layout {
	display: block;
	/* Leave room for the fixed bottom navigation. */
	padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

/* ---- Fixed bottom navigation (app-like, with submenus) ---- */
.odc-app__nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	margin: 0;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
	background: color-mix(in srgb, var(--odc-surface) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-top: 1px solid var(--odc-border);
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
}

.odc-app__nav-bar {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1040px;
	display: flex;
	gap: 4px;
}

.odc-app__nav-bar > li {
	flex: 1 1 0;
	min-width: 0;
}

/* A bottom-bar button is either a direct link <a> or a submenu <summary>. */
.odc-navbtn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	padding: 8px 4px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--odc-muted);
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
	transition: color 0.18s ease, background 0.18s ease;
}

.odc-navbtn::-webkit-details-marker {
	display: none;
}

.odc-navbtn .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	transition: transform 0.18s ease;
}

.odc-navbtn__label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.1;
}

.odc-navbtn:hover {
	color: var(--odc-brand);
}

.odc-navbtn:hover .dashicons {
	transform: translateY(-2px) scale(1.08);
}

.odc-navbtn.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--odc-brand), var(--odc-t-violet));
	box-shadow: 0 6px 16px color-mix(in srgb, var(--odc-brand) 32%, transparent);
}

.odc-navbtn.is-active .dashicons {
	color: #fff;
}

/* Caret affordance for groups that open a submenu. */
.odc-navgroup .odc-navbtn::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 50%;
	width: 4px;
	height: 4px;
	border-left: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: translateX(-50%) rotate(45deg);
	opacity: 0.45;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.odc-navgroup[open] .odc-navbtn::after {
	transform: translateX(-50%) rotate(225deg);
	opacity: 0.85;
}

/* Submenu sheet, anchored above the bar across its (capped) width. */
.odc-submenu {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 100%;
	margin: 0 auto 10px;
	max-width: 1040px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 4px;
	padding: 8px;
	background: var(--odc-surface);
	border: 1px solid var(--odc-border);
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
	z-index: 1001;
}

.odc-navgroup[open] > .odc-submenu {
	animation: odc-sheet-up 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.odc-submenu__head {
	grid-column: 1 / -1;
	margin: 0;
	padding: 6px 10px 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--odc-muted);
}

.odc-submenu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--odc-text);
	font-weight: 600;
	font-size: 14px;
}

.odc-submenu a .dashicons {
	color: var(--odc-brand);
}

.odc-submenu a:hover {
	background: color-mix(in srgb, var(--odc-brand) 12%, transparent);
}

.odc-submenu a.is-active {
	background: linear-gradient(135deg, var(--odc-brand), var(--odc-t-violet));
	color: #fff;
}

.odc-submenu a.is-active .dashicons {
	color: #fff;
}

@keyframes odc-sheet-up {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.odc-app__main {
	background: var(--odc-surface);
	border: 1px solid var(--odc-border);
	border-radius: var(--odc-radius);
	padding: 22px;
	min-width: 0;
}

.odc-app__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.odc-app__card {
	--odc-tone: var(--odc-t-brand);
	border: 1px solid var(--odc-border);
	border-top: 3px solid var(--odc-tone);
	border-radius: 14px;
	padding: 16px;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--odc-tone) 12%, var(--odc-surface-2)), var(--odc-surface-2) 75%);
}

.odc-app__card strong {
	color: color-mix(in srgb, var(--odc-tone) 50%, var(--odc-text));
}

.odc-app__card .dashicons {
	color: var(--odc-tone);
}

/* Rotate tile colors so the gamified stats (points, level, badges) pop. */
:where(.odc-app__cards .odc-app__card:nth-child(6n + 1)) { --odc-tone: var(--odc-t-violet); }
:where(.odc-app__cards .odc-app__card:nth-child(6n + 2)) { --odc-tone: var(--odc-t-emerald); }
:where(.odc-app__cards .odc-app__card:nth-child(6n + 3)) { --odc-tone: var(--odc-t-amber); }
:where(.odc-app__cards .odc-app__card:nth-child(6n + 4)) { --odc-tone: var(--odc-t-cyan); }
:where(.odc-app__cards .odc-app__card:nth-child(6n + 5)) { --odc-tone: var(--odc-t-rose); }
:where(.odc-app__cards .odc-app__card:nth-child(6n + 6)) { --odc-tone: var(--odc-t-brand); }

a.odc-app__card {
	text-decoration: none;
	color: var(--odc-text);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.odc-app__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--odc-tone) 25%, rgba(15, 23, 42, 0.12));
}

@media (prefers-reduced-motion: reduce) {
	a.odc-app__card { transition: none; }
	a.odc-app__card:hover { transform: none; }
}

/* ---- Welcome hero (Início) ---- */
.odc-hero {
	position: relative;
	overflow: hidden;
	margin: 4px 0 16px;
	padding: 22px 20px;
	border-radius: var(--odc-radius);
	color: #fff;
	background:
		radial-gradient(420px 180px at 90% -30%, rgba(255, 255, 255, 0.22), transparent 70%),
		linear-gradient(130deg, var(--odc-brand), var(--odc-t-violet) 65%, var(--odc-t-rose));
	box-shadow: 0 10px 26px color-mix(in srgb, var(--odc-brand) 35%, transparent);
}

.odc-hero__hello {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.odc-hero__tagline {
	margin: 6px 0 0;
	font-size: 0.92rem;
	opacity: 0.92;
}

.odc-hero__wave {
	display: inline-block;
	transform-origin: 70% 70%;
	animation: odc-wave 1.8s ease 0.4s 2;
}

@keyframes odc-wave {
	0%, 100% { transform: rotate(0); }
	15% { transform: rotate(18deg); }
	30% { transform: rotate(-10deg); }
	45% { transform: rotate(16deg); }
	60% { transform: rotate(-6deg); }
	75% { transform: rotate(8deg); }
}

/* Floating sparkles inside the banner (pure CSS, no JS cost). */
.odc-hero__spark {
	position: absolute;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
	animation: odc-sparkle 3.2s ease-in-out infinite;
	pointer-events: none;
}

.odc-hero__spark--1 { top: 14%; right: 10%; font-size: 1.1rem; animation-delay: 0s; }
.odc-hero__spark--2 { top: 55%; right: 22%; font-size: 0.8rem; animation-delay: 1.1s; }
.odc-hero__spark--3 { top: 28%; right: 34%; font-size: 0.65rem; animation-delay: 2.2s; }

@keyframes odc-sparkle {
	0%, 100% { opacity: 0.25; transform: translateY(0) scale(0.85); }
	50% { opacity: 1; transform: translateY(-6px) scale(1.15); }
}

/* Confetti canvas overlay (created/removed by app.js). */
.odc-confetti {
	position: fixed;
	inset: 0;
	z-index: 99990;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.odc-hero__wave,
	.odc-hero__spark { animation: none; }
}

/* ---- Certificate ---- */
.odc-cert {
	background: #fff;
	color: #1e293b;
	border: 10px solid var(--odc-brand);
	border-radius: 8px;
	padding: 48px 40px;
	margin: 16px auto;
	max-width: 900px;
	text-align: center;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.odc-cert__inner {
	border: 1px solid #e2e8f0;
	padding: 32px;
	border-radius: 4px;
}

.odc-cert__eyebrow {
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--odc-brand);
	font-weight: 700;
	margin: 0 0 8px;
}

.odc-cert__title {
	font-size: 34px;
	margin: 0 0 24px;
}

.odc-cert__lead {
	color: #64748b;
	margin: 0;
}

.odc-cert__name {
	font-size: 28px;
	font-weight: 700;
	margin: 8px 0 16px;
	border-bottom: 2px solid #e2e8f0;
	display: inline-block;
	padding: 0 24px 8px;
}

.odc-cert__body {
	font-size: 18px;
	line-height: 1.6;
	max-width: 640px;
	margin: 0 auto 24px;
}

.odc-cert__meta {
	color: #64748b;
	font-size: 13px;
}

.odc-cert__actions {
	text-align: center;
	margin: 16px 0;
}

@media print {
	.no-print,
	#wpadminbar,
	header,
	footer,
	.odc-app__nav {
		display: none !important;
	}

	.odc-cert {
		box-shadow: none;
		margin: 0;
	}
}

/* ---- Accessibility: focus visible ---- */
.odc-public :focus-visible,
.odc-app :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--odc-brand) 55%, transparent);
	outline-offset: 2px;
}

/* ---- Responsive (app-like on mobile) ---- */
@media (max-width: 760px) {
	.odc-app__layout {
		grid-template-columns: 1fr;
	}

	.odc-navbtn {
		font-size: 10px;
	}

	.odc-navbtn .dashicons {
		font-size: 21px;
	}

	.odc-public__submit .odc-btn {
		width: 100%;
	}
}

/* ---- Role manuals ---- */
.odc-manual {
	--odc-m-brand: #2563eb;
	--odc-m-accent: #f59e0b;
	max-width: 880px;
	margin: 0 auto;
	color: #1e293b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
}

.odc-manual__cover {
	background: var(--odc-m-brand);
	color: #fff;
	border-radius: 14px;
	padding: 28px 30px;
	margin-bottom: 22px;
	border-bottom: 5px solid var(--odc-m-accent);
}

.odc-manual__eyebrow {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 12px;
	font-weight: 700;
	opacity: 0.92;
}

.odc-manual__title {
	margin: 6px 0 0;
	font-size: 30px;
	color: #fff;
}

.odc-manual__h1 {
	color: var(--odc-m-brand);
	border-left: 4px solid var(--odc-m-accent);
	padding-left: 12px;
	margin: 28px 0 10px;
	font-size: 22px;
}

.odc-manual__h2 {
	color: #334155;
	margin: 18px 0 8px;
	font-size: 17px;
}

.odc-manual__list,
.odc-manual__steps {
	padding-left: 24px;
	line-height: 1.9;
}

.odc-manual__callout {
	background: #f1f5f9;
	border-left: 4px solid var(--odc-m-accent);
	border-radius: 10px;
	padding: 14px 16px;
	margin: 16px 0;
}

.odc-manual__callout strong {
	display: block;
	margin-bottom: 4px;
	color: var(--odc-m-brand);
}

@media print {
	.odc-manual {
		max-width: none;
	}
}

/* ---- Front-end accounts (login / registration / account area) ---- */
.odc-app__auth {
	max-width: 920px;
	margin: 0 auto;
}

.odc-app__auth-head {
	text-align: center;
	margin-bottom: 18px;
}

.odc-app__auth-head .dashicons {
	font-size: 44px;
	width: 44px;
	height: 44px;
	color: var(--odc-brand);
}

.odc-auth,
.odc-account {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: start;
}

.odc-account__logout {
	grid-column: 1 / -1;
	text-align: center;
}

.odc-auth__card {
	border: 1px solid var(--odc-border);
	border-top: 3px solid var(--odc-brand);
	border-radius: var(--odc-radius);
	background: var(--odc-surface);
	padding: 20px;
}

.odc-auth__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 18px;
}

.odc-auth__title .dashicons {
	color: var(--odc-brand);
}

.odc-field > span {
	font-weight: 600;
	font-size: 14px;
}

.odc-field__hint {
	display: block;
	font-weight: 400;
	font-size: 13px;
	color: var(--odc-muted);
	margin-top: 2px;
}

.odc-checkline {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	margin-bottom: 16px;
	cursor: pointer;
}

.odc-checkline input {
	margin-top: 3px;
}

/* ---- Checklist fields (e.g. "sobre a turma" no formulário público) ---- */
.odc-checkgroup {
	border: 0;
	padding: 0;
	min-width: 0;
}

.odc-checkgroup legend {
	font-weight: 600;
	font-size: 14px;
	padding: 0;
	margin-bottom: 8px;
}

.odc-checkgroup .odc-checkline {
	margin-bottom: 8px;
}

.odc-field--detail {
	margin-top: 4px;
}

.odc-auth__forgot {
	margin-top: 14px;
	border-top: 1px solid var(--odc-border);
	padding-top: 12px;
}

.odc-auth__forgot summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--odc-brand);
}

.odc-auth__forgot .odc-auth__form {
	margin-top: 12px;
}

.odc-btn--ghost {
	background: transparent;
	border: 1px solid var(--odc-border);
	color: var(--odc-text);
}

.odc-btn--ghost:hover {
	background: var(--odc-surface-2);
}

/* Notices + one-time password reveal */
.odc-auth__notice {
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
	border-left: 4px solid var(--odc-brand);
	background: var(--odc-surface-2);
}

.odc-auth__notice--success { border-left-color: var(--odc-success); }
.odc-auth__notice--danger { border-left-color: var(--odc-danger); }
.odc-auth__notice--warning { border-left-color: #b45309; }
.odc-auth__notice--info { border-left-color: var(--odc-brand); }

.odc-auth__reveal {
	border: 1px solid var(--odc-success);
	background: color-mix(in srgb, var(--odc-success) 10%, var(--odc-surface));
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 16px;
}

.odc-auth__reveal code {
	display: inline-block;
	font-size: 18px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--odc-surface);
	border: 1px solid var(--odc-border);
	user-select: all;
}

.odc-auth__reveal p {
	margin: 8px 0 0;
	font-size: 14px;
}

/* =====================================================================
   App — movimento e cor (animacoes modernas; reduzido em reduced-motion)
   ===================================================================== */
@property --odc-progress {
	syntax: '<number>';
	inherits: false;
	initial-value: 0;
}

@keyframes odc-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes odc-pop { 0% { opacity: 0; transform: scale(0.82); } 60% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes odc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes odc-shine { 0% { transform: translateX(-150%) skewX(-12deg); } 100% { transform: translateX(260%) skewX(-12deg); } }
@keyframes odc-gradient-pan { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes odc-ripple-out { to { transform: scale(2.6); opacity: 0; } }
@keyframes odc-spin-in { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } to { opacity: 1; transform: none; } }

/* Decorative animated gradient bar atop the app content */
.odc-app__main {
	position: relative;
	overflow: hidden;
}

.odc-app__main::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient( 90deg, var(--odc-t-brand), var(--odc-t-violet), var(--odc-t-emerald), var(--odc-t-amber), var(--odc-t-rose), var(--odc-t-brand) );
	background-size: 300% 100%;
	animation: odc-gradient-pan 9s ease infinite;
}

/* Section titles get a gradient underline */
.odc-app__main h2 {
	position: relative;
	padding-bottom: 8px;
	margin-top: 4px;
}

.odc-app__main h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient( 90deg, var(--odc-brand), var(--odc-t-violet) );
}

/* Welcome heading: animated gradient text */
.odc-app__hello {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 14px;
	background: linear-gradient( 90deg, var(--odc-t-brand), var(--odc-t-violet), var(--odc-t-rose), var(--odc-t-brand) );
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: odc-gradient-pan 7s ease infinite;
}

/* Bottom navigation styling lives in the "Fixed bottom navigation" section above. */

/* ---- Cards: hover lift + sheen ---- */
.odc-app__card {
	position: relative;
	overflow: hidden;
	transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}

.odc-app__card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient( 120deg, transparent, rgba(255, 255, 255, 0.35), transparent );
	transform: translateX(-150%) skewX(-12deg);
	pointer-events: none;
}

.odc-app__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 32px color-mix( in srgb, var(--odc-tone) 24%, rgba(15, 23, 42, 0.12) );
}

.odc-app__card:hover::after {
	animation: odc-shine 0.85s ease;
}

/* ---- Vibrant KPI stat tiles ---- */
.odc-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 6px 0 20px;
}

.odc-stat-tile {
	--odc-tone: var(--odc-t-brand);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	min-height: 132px;
	padding: 18px;
	border-radius: 18px;
	color: #fff;
	background: linear-gradient( 135deg, var(--odc-tone), color-mix( in srgb, var(--odc-tone) 52%, #0f172a ) );
	box-shadow: 0 12px 26px color-mix( in srgb, var(--odc-tone) 32%, transparent );
}

.odc-stat-tile::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient( 150px 150px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 62% );
	pointer-events: none;
}

.odc-stat-tile__icon {
	font-size: 26px;
	width: 26px;
	height: 26px;
	opacity: 0.95;
}

.odc-stat-tile__value {
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
}

.odc-stat-tile__value--text {
	font-size: 24px;
}

.odc-stat-tile__label {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.95;
}

.odc-stat-tile--brand { --odc-tone: var(--odc-t-brand); }
.odc-stat-tile--violet { --odc-tone: var(--odc-t-violet); }
.odc-stat-tile--emerald { --odc-tone: var(--odc-t-emerald); }
.odc-stat-tile--amber { --odc-tone: var(--odc-t-amber); }
.odc-stat-tile--rose { --odc-tone: var(--odc-t-rose); }
.odc-stat-tile--cyan { --odc-tone: var(--odc-t-cyan); }

/* Progress ring inside a tile */
.odc-ring {
	--odc-progress: 0;
	position: relative;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: conic-gradient( #fff calc(var(--odc-progress) * 1%), rgba(255, 255, 255, 0.28) 0 );
	transition: --odc-progress 0.2s linear;
}

.odc-ring::before {
	content: '';
	position: absolute;
	inset: 9px;
	border-radius: 50%;
	background: var(--odc-tone);
}

.odc-ring__num {
	position: relative;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
}

/* ---- Medals: pop in + gentle float ---- */
.odc-medal {
	position: relative;
	overflow: hidden;
	text-align: center;
}

.odc-medal .dashicons {
	color: var(--odc-tone, var(--odc-t-amber));
	font-size: 30px;
	width: 30px;
	height: 30px;
}

.odc-anim-ready .odc-medal.is-visible .dashicons {
	animation: odc-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both, odc-float 3.4s ease-in-out 0.6s infinite;
}

/* ---- Buttons: gradient + ripple host ---- */
.odc-btn--primary {
	background: linear-gradient( 135deg, var(--odc-brand), var(--odc-t-violet) );
	border: none;
	position: relative;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.odc-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px color-mix( in srgb, var(--odc-brand) 38%, transparent );
	filter: saturate(1.05);
}

.odc-btn--primary:active {
	transform: translateY(0);
}

.odc-ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transform: scale(0);
	animation: odc-ripple-out 0.6s ease-out;
	pointer-events: none;
}

/* ---- Reveal on scroll (only when JS marks the root ready) ---- */
.odc-anim-ready .odc-reveal {
	opacity: 0;
	transform: translateY(20px);
	will-change: opacity, transform;
}

.odc-anim-ready .odc-reveal.is-visible {
	animation: odc-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(var(--odc-delay, 0) * 70ms);
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.odc-app *,
	.odc-app *::before,
	.odc-app *::after {
		animation: none !important;
		transition: none !important;
	}
	.odc-app .odc-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---- Smooth section transitions + certificate celebration ---- */
/* Native cross-document cross-fade between app sections (same page, ?odc_section). */
@view-transition {
	navigation: auto;
}

/* JS fallback: fade the content out before navigating. */
.odc-app__main.odc-leaving {
	opacity: 0;
	transform: translateY(-10px) scale(0.992);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.odc-cert-ok {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--odc-success);
}

.odc-cert-ok .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
	.odc-app__main.odc-leaving {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* =====================================================================
   Notice modals — animated, auto-closing, manually closable
   ===================================================================== */
.odc-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	place-items: center;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.odc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	animation: odc-fade-in 0.2s ease both;
}

.odc-modal__dialog {
	position: relative;
	width: min(440px, 100%);
	background: var(--odc-surface, #fff);
	color: var(--odc-text, #1e293b);
	border: 1px solid var(--odc-border, #e2e8f0);
	border-top: 5px solid var(--odc-brand, #2563eb);
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.34);
	padding: 26px 22px 18px;
	text-align: center;
	animation: odc-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.odc-modal.is-closing .odc-modal__dialog {
	animation: odc-modal-out 0.2s ease forwards;
}

.odc-modal.is-closing .odc-modal__backdrop {
	animation: odc-fade-out 0.2s ease forwards;
}

.odc-modal__dialog--success { border-top-color: var(--odc-success, #15803d); }
.odc-modal__dialog--danger { border-top-color: var(--odc-danger, #b91c1c); }
.odc-modal__dialog--warning { border-top-color: #b45309; }
.odc-modal__dialog--info { border-top-color: var(--odc-brand, #2563eb); }

.odc-modal__icon {
	font-size: 42px;
	width: 42px;
	height: 42px;
	margin: 0 auto 10px;
	color: var(--odc-brand, #2563eb);
}

.odc-modal__dialog--success .odc-modal__icon { color: var(--odc-success, #15803d); }
.odc-modal__dialog--danger .odc-modal__icon { color: var(--odc-danger, #b91c1c); }
.odc-modal__dialog--warning .odc-modal__icon { color: #b45309; }

.odc-modal__body {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.odc-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--odc-surface-2, #f1f5f9);
	color: var(--odc-text, #1e293b);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.odc-modal__close:hover {
	background: var(--odc-border, #e2e8f0);
}

.odc-modal__timer {
	height: 3px;
	margin: 18px -22px -18px;
	border-radius: 0 0 18px 18px;
	background: color-mix(in srgb, var(--odc-brand, #2563eb) 70%, transparent);
	transform-origin: left center;
	animation: odc-timer-shrink var(--odc-timer, 5000ms) linear forwards;
}

.odc-modal.is-paused .odc-modal__timer {
	animation-play-state: paused;
}

.odc-modal__dialog--success .odc-modal__timer { background: color-mix(in srgb, var(--odc-success, #15803d) 70%, transparent); }
.odc-modal__dialog--danger .odc-modal__timer { background: color-mix(in srgb, var(--odc-danger, #b91c1c) 70%, transparent); }

@keyframes odc-modal-in { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes odc-modal-out { to { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes odc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes odc-fade-out { to { opacity: 0; } }
@keyframes odc-timer-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* The modal can be injected outside .odc-app (e.g. [odc_login]), so it needs its
   own reduced-motion guard in addition to the app-scoped one above. */
@media (prefers-reduced-motion: reduce) {
	.odc-modal,
	.odc-modal *,
	.odc-modal *::before,
	.odc-modal *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ------------------------------------------------------------------------
   Seção "Atividades" do app do aluno: enquete, quiz, vídeo, puzzle, matemática.
   ------------------------------------------------------------------------ */

.odc-atividades-vazio {
	color: var(--odc-muted);
}

.odc-atividades-caderno-link {
	margin-top: 18px;
}

.odc-ativ-card {
	background: var(--odc-surface);
	border: 1px solid var(--odc-border);
	border-radius: var(--odc-radius);
	padding: 16px;
	margin-bottom: 14px;
}

.odc-ativ-card__head {
	margin-bottom: 6px;
}

.odc-ativ-card__selo {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--odc-t-violet) 14%, var(--odc-surface-2));
	color: var(--odc-t-violet);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.odc-ativ-card__titulo {
	margin: 6px 0 2px;
	font-size: 16px;
}

.odc-ativ-card__desc {
	margin: 0 0 10px;
	color: var(--odc-muted);
	font-size: 13px;
}

.odc-ativ-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.odc-ativ-opcao {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--odc-border);
	border-radius: 10px;
	cursor: pointer;
}

.odc-ativ-opcao:has(input:checked) {
	border-color: var(--odc-brand);
	background: color-mix(in srgb, var(--odc-brand) 8%, var(--odc-surface));
}

.odc-ativ-enviar {
	align-self: flex-start;
	margin-top: 4px;
}

.odc-ativ-resultado:empty {
	display: none;
}

.odc-ativ-ok {
	color: var(--odc-success);
	font-weight: 600;
}

.odc-ativ-erro {
	color: var(--odc-danger);
	font-weight: 600;
}

.odc-ativ-explicacao {
	color: var(--odc-muted);
	font-size: 13px;
}

.odc-ativ-agregado {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.odc-ativ-barra-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.odc-ativ-barra-label {
	font-size: 12px;
	color: var(--odc-muted);
}

.odc-ativ-barra-wrap {
	background: var(--odc-surface-2);
	border-radius: 999px;
	overflow: hidden;
	height: 8px;
}

.odc-ativ-barra {
	height: 100%;
	background: var(--odc-brand);
	border-radius: 999px;
}

.odc-ativ-total {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--odc-muted);
}

.odc-ativ-video-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}

.odc-ativ-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.odc-ativ-nota {
	font-size: 13px;
	color: var(--odc-muted);
}

.odc-ativ-instrucao {
	margin: 0 0 4px;
	font-size: 14px;
}

.odc-ativ-puzzle-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.odc-ativ-puzzle-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: var(--odc-surface-2);
	border-radius: 10px;
	font-size: 14px;
}

.odc-ativ-puzzle-controles {
	display: flex;
	gap: 4px;
	flex: none;
}

.odc-ativ-puzzle-mover {
	width: 30px;
	height: 30px;
	border: 1px solid var(--odc-border);
	border-radius: 8px;
	background: var(--odc-surface);
	color: var(--odc-text);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.odc-ativ-puzzle-mover:disabled {
	opacity: 0.35;
	cursor: default;
}

.odc-ativ-mat-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.odc-ativ-mat-input {
	width: 120px;
	padding: 8px 10px;
	border: 1px solid var(--odc-border);
	border-radius: 8px;
	font-size: 15px;
	background: var(--odc-surface);
	color: var(--odc-text);
}

.odc-ativ-mat-unidade {
	color: var(--odc-muted);
	font-size: 13px;
}

.odc-ativ-dica-btn {
	align-self: flex-start;
	border: 0;
	background: transparent;
	color: var(--odc-brand);
	font-size: 13px;
	cursor: pointer;
	padding: 0;
}

.odc-ativ-dica {
	margin: 0;
	font-size: 13px;
	color: var(--odc-muted);
	font-style: italic;
}

.odc-fieldset__help {
	margin: -4px 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--odc-muted);
}
