{"packageName":"@cedros-academy/academy","packageRoot":"workspace/react","entryPath":"workspace/react/dist/web/register.js","surfaceEntryPaths":{"web":"workspace/react/dist/web/register.js"},"surfaceFilePaths":{"web":["workspace/react/dist/bootstrap.js","workspace/react/dist/generated-manifest.js","workspace/react/dist/generated-templates.js","workspace/react/dist/manifest.js","workspace/react/dist/shared/adminAuthority.js","workspace/react/dist/shared/adminChrome.js","workspace/react/dist/shared/adminStyles.js","workspace/react/dist/shared/aiOriginal.js","workspace/react/dist/shared/api.js","workspace/react/dist/shared/authority.js","workspace/react/dist/shared/courseAccess.js","workspace/react/dist/shared/courseArtwork.js","workspace/react/dist/shared/formValidation.js","workspace/react/dist/shared/lessonContent.js","workspace/react/dist/shared/lessonText.js","workspace/react/dist/shared/links.js","workspace/react/dist/shared/response.js","workspace/react/dist/shared/retainedWrite.js","workspace/react/dist/shared/rowActions.js","workspace/react/dist/shared/styles.js","workspace/react/dist/shared/ui.js","workspace/react/dist/shared/writeAttempt.js","workspace/react/dist/styles.css","workspace/react/dist/web/api.js","workspace/react/dist/web/authority.js","workspace/react/dist/web/blocks.js","workspace/react/dist/web/certificateCredential.js","workspace/react/dist/web/certificateState.js","workspace/react/dist/web/courseSubmission.js","workspace/react/dist/web/learnerAnnouncements.js","workspace/react/dist/web/learnerPlayer.js","workspace/react/dist/web/learningTools.js","workspace/react/dist/web/openCourse.js","workspace/react/dist/web/publicData.js","workspace/react/dist/web/publicSession.js","workspace/react/dist/web/publicState.js","workspace/react/dist/web/publicUi.js","workspace/react/dist/web/register.js"]},"files":[{"path":"workspace/react/dist/bootstrap.js","kind":"module","text":"import { extensionManifest } from \"./manifest.js\";\nexport const extensionBootstrap = {\n    manifest: extensionManifest\n};\n","imports":[{"dynamic":false,"end":48,"specifier":"./manifest.js","start":35}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/generated-manifest.js","kind":"module","text":"export const generatedManifest = { \"schemaVersion\": 1, \"extensionId\": \"cedros-academy\", \"displayName\": \"Cedros Academy\", \"version\": \"6.0.8\", \"description\": \"Text-course authoring, enrollment, learner completion, certification, and learning operations for Cedros sites.\", \"platformApiVersion\": \"1\", \"compatibility\": { \"platformApiVersion\": \"1\", \"minCedrosDataVersion\": \"0.1.233\", \"witChecksum\": \"022be4dd52282a035ad51a7832bee834492d042931fcece9a26bb2e042a72083\" }, \"packageFamily\": { \"server\": { \"packageName\": \"cedros-academy-server\", \"version\": \"6.0.8\", \"required\": true }, \"react\": { \"packageName\": \"@cedros-academy/academy\", \"version\": \"6.0.8\", \"required\": true }, \"reactNative\": { \"packageName\": \"@cedros-academy/academy-native\", \"version\": \"6.0.8\", \"required\": true } }, \"dependencies\": { \"extensions\": [{ \"extensionId\": \"cedros-login\", \"minVersion\": \"2.0.26\", \"required\": true, \"reason\": \"Login owns account sessions and account-agent keys; Core verifies each request before Academy receives its existing Login subject.\" }, { \"extensionId\": \"cedros-pay\", \"minVersion\": \"2.0.0\", \"required\": false, \"reason\": \"Optional durable entitlement state for paid enrollments; free learning does not require Pay, and paid checkout remains host-coordinated until Cedros Pay publishes its current checkout binding.\" }, { \"extensionId\": \"cedros-notifications\", \"minVersion\": \"0.1.9\", \"required\": false, \"reason\": \"Optional delivery for the published-course notification seed.\" }], \"services\": [], \"capabilities\": [{ \"capabilityId\": \"cedros-login:user-context\", \"required\": true, \"reason\": \"Academy relies on Login user identity.\" }, { \"capabilityId\": \"cedros-login:auth-response\", \"required\": true, \"reason\": \"Browser sign-in uses the published Login session response.\" }, { \"capabilityId\": \"cedros-data:extension-visitor-v1\", \"required\": true, \"reason\": \"Host-verified customer routes enforce Login sessions, cookie Origin and private response handling.\" }, { \"capabilityId\": \"cedros-data:login-subject-read-v1\", \"required\": true, \"reason\": \"Request-bound Core identity preserves existing Login-owned learner records without forwarding credentials.\" }, { \"capabilityId\": \"cedros-data:extension-storage-cas-v1\", \"required\": true, \"reason\": \"Academy uses the host's typed compare-and-set seam to prevent lost updates to shared JSONB records.\" }, { \"capabilityId\": \"cedros-pay:checkout\", \"required\": false, \"reason\": \"Reserved for the host-coordinated current Cedros Pay checkout binding; Academy fails closed until that contract is published and bound.\" }, { \"capabilityId\": \"cedros-pay:entitlement-read\", \"required\": false, \"reason\": \"Pay-owned course access is reconciled against durable entitlements and fails closed when Pay is unavailable; free enrollments do not use this capability.\" }, { \"capabilityId\": \"cedros-data:notification-event-publish-v1\", \"required\": false, \"reason\": \"Optional host-owned durable course-announcement publication and status; course learning works without notification delivery.\" }, { \"capabilityId\": \"cedros-data:notification-event-status-read-v1\", \"required\": false, \"reason\": \"Optional host-owned durable course-announcement publication and status; course learning works without notification delivery.\" }, { \"capabilityId\": \"cedros-data:extension-public-document-v1\", \"required\": true, \"reason\": \"Anonymous course documents require current source availability, Core-owned metadata and sanitized lesson HTML.\" }, { \"capabilityId\": \"cedros-data:extension-public-document-live-v1\", \"required\": true, \"reason\": \"Anonymous course documents require current source availability, Core-owned metadata and sanitized lesson HTML.\" }] }, \"requiredCapabilities\": [\"cedros-login:user-context\", \"cedros-login:auth-response\", \"cedros-data:extension-visitor-v1\", \"cedros-data:login-subject-read-v1\", \"cedros-data:extension-storage-cas-v1\", \"cedros-data:extension-public-document-v1\", \"cedros-data:extension-public-document-live-v1\"], \"routePolicies\": [{ \"routeId\": \"cedros-academy:checkout-create\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:free-enroll\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:student-dashboard\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:player-read\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:progress-update\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:note-upsert\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:bookmark-upsert\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:review-submit\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:question-submit\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:quiz-submit\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:assignment-submit\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:announcement-list\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-academy:course-submission-create\", \"endUserAuth\": \"required\", \"allowApiKeys\": true }, { \"routeId\": \"cedros-academy:course-submission-list\", \"endUserAuth\": \"required\", \"allowApiKeys\": true }], \"surfaces\": { \"ai\": { \"packageRef\": \"server\", \"skills\": [], \"capabilities\": [{ \"id\": \"cedros-academy:update-course-presentation\", \"name\": \"Update course presentation\", \"description\": \"Update a course learning access mode or featured image using its current storage version. Requires Academy management permission. Paid and private lessons remain protected.\", \"kind\": \"action\", \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-academy/admin/v1/course-presentation\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"required\": [\"courseId\", \"expectedCourseVersion\"], \"properties\": { \"courseId\": { \"type\": \"string\", \"minLength\": 1 }, \"expectedCourseVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"learningAccess\": { \"type\": \"string\", \"enum\": [\"enrollment\", \"open\"] }, \"thumbnailRef\": { \"type\": \"string\" } }, \"additionalProperties\": false } }] }, \"server\": { \"packageRef\": \"server\", \"required\": true, \"contentModels\": [\"cedros-academy:courses\", \"cedros-academy:course-versions\", \"cedros-academy:curriculum\", \"cedros-academy:instructors\", \"cedros-academy:enrollments\", \"cedros-academy:lesson-progress\", \"cedros-academy:quizzes\", \"cedros-academy:quiz-attempts\", \"cedros-academy:assignments\", \"cedros-academy:submissions\", \"cedros-academy:course-submissions\", \"cedros-academy:certificates\", \"cedros-academy:reviews\", \"cedros-academy:questions\", \"cedros-academy:notes-bookmarks\", \"cedros-academy:cohorts\", \"cedros-academy:announcements\", \"cedros-academy:offers\", \"cedros-academy:learning-paths\", \"cedros-academy:report-configs\", \"cedros-academy:audit-events\"], \"migrations\": [\"cedros-academy:v1-jsonb\"], \"settingsSchemas\": [\"cedros-academy:academy-settings\", \"cedros-academy:learning-settings\", \"cedros-academy:privacy-retention-settings\", \"cedros-academy:ai-settings\"], \"routes\": [\"cedros-academy:admin-summary\", \"cedros-academy:announcement-admin-list\", \"cedros-academy:announcement-publish\", \"cedros-academy:announcement-retract\", \"cedros-academy:certificate-list\", \"cedros-academy:certificate-revoke\", \"cedros-academy:settings-read\", \"cedros-academy:settings-update\", \"cedros-academy:course-list\", \"cedros-academy:course-create\", \"cedros-academy:course-import\", \"cedros-academy:course-read\", \"cedros-academy:course-versions\", \"cedros-academy:course-feedback\", \"cedros-academy:question-reply\", \"cedros-academy:review-moderate\", \"cedros-academy:course-update\", \"cedros-academy:course-presentation-update\", \"cedros-academy:course-delete\", \"cedros-academy:course-submit-review\", \"cedros-academy:course-approve\", \"cedros-academy:course-publish\", \"cedros-academy:course-archive\", \"cedros-academy:course-restore\", \"cedros-academy:curriculum-update\", \"cedros-academy:instructor-list\", \"cedros-academy:instructor-upsert\", \"cedros-academy:enrollment-list\", \"cedros-academy:enrollment-grant\", \"cedros-academy:enrollment-revoke\", \"cedros-academy:reports-summary\", \"cedros-academy:audit-list\", \"cedros-academy:ai-authoring\", \"cedros-academy:course-submission-admin-list\", \"cedros-academy:course-submission-accept\", \"cedros-academy:course-submission-reject\", \"cedros-academy:catalog-read\", \"cedros-academy:course-detail-read\", \"cedros-academy:checkout-create\", \"cedros-academy:free-enroll\", \"cedros-academy:student-dashboard\", \"cedros-academy:player-read\", \"cedros-academy:progress-update\", \"cedros-academy:note-upsert\", \"cedros-academy:bookmark-upsert\", \"cedros-academy:certificate-verify\", \"cedros-academy:review-submit\", \"cedros-academy:question-submit\", \"cedros-academy:quiz-submit\", \"cedros-academy:assignment-submit\", \"cedros-academy:announcement-list\", \"cedros-academy:course-submission-create\", \"cedros-academy:course-submission-list\", \"cedros-academy:course-notification-read\", \"cedros-academy:course-notification-retry\"], \"jobs\": [\"cedros-academy:nightly-entitlement-reconcile\", \"cedros-academy:drip-release\", \"cedros-academy:access-expiration\", \"cedros-academy:certificate-generation\", \"cedros-academy:analytics-rollup\", \"cedros-academy:retention-sweep\"], \"events\": [\"cedros-academy:course-viewed\", \"cedros-academy:course-published\", \"cedros-academy:enrollment-created\", \"cedros-academy:enrollment-revoked\", \"cedros-academy:lesson-completed\", \"cedros-academy:course-completed\", \"cedros-academy:certificate-issued\", \"cedros-academy:certificate-revoked\", \"cedros-academy:review-submitted\", \"cedros-academy:audit-recorded\", \"cedros-academy:ai-draft-created\"] }, \"admin\": { \"packageRef\": \"react\", \"required\": true, \"moduleIds\": [\"cedros-academy:admin\"] }, \"web\": { \"packageRef\": \"react\", \"required\": true, \"routeIds\": [\"cedros-academy:catalog-page\", \"cedros-academy:student-dashboard-page\", \"cedros-academy:certificate-verify-page\", \"cedros-academy:course-submission-page\", \"cedros-academy:course-page\"], \"blockTypes\": [\"cedros-academy:course-catalog\", \"cedros-academy:featured-courses\", \"cedros-academy:course-landing\", \"cedros-academy:instructor-profile\", \"cedros-academy:student-dashboard\", \"cedros-academy:course-player\", \"cedros-academy:certificate-verification\", \"cedros-academy:course-submission\"], \"templateIds\": [\"cedros-academy:catalog-template\", \"cedros-academy:student-dashboard-template\", \"cedros-academy:certificate-template\", \"cedros-academy:course-submission-template\"], \"authoredSurfaceIds\": [\"cedros-academy:learning-surface\"], \"templateUtilityIds\": [\"cedros-academy:learning-preset\"] }, \"native\": { \"packageRef\": \"reactNative\", \"required\": true } }, \"registration\": { \"server\": { \"entrypoint\": \"cedros_academy_server::register_extension_family\" }, \"admin\": { \"entrypoint\": \"@cedros-academy/academy/admin/register\" }, \"web\": { \"entrypoint\": \"@cedros-academy/academy/web/register\" }, \"native\": { \"entrypoint\": \"@cedros-academy/academy-native/register\" } }, \"adminModules\": [{ \"moduleId\": \"cedros-academy:admin\", \"extensionId\": \"cedros-academy\", \"displayName\": \"Academy\", \"version\": \"5.3.18\", \"packageName\": \"@cedros-academy/academy\", \"sectionIds\": [\"cedros-academy:dashboard\", \"cedros-academy:courses\", \"cedros-academy:students\", \"cedros-academy:instructors\", \"cedros-academy:learning-ops\", \"cedros-academy:reports\", \"cedros-academy:settings\"], \"sectionIcons\": { \"cedros-academy:dashboard\": \"dashboard\", \"cedros-academy:courses\": \"book-open\", \"cedros-academy:students\": \"users\", \"cedros-academy:instructors\": \"graduation-cap\", \"cedros-academy:learning-ops\": \"clipboard-check\", \"cedros-academy:reports\": \"bar-chart\", \"cedros-academy:settings\": \"settings\" }, \"navigation\": { \"sections\": [{ \"id\": \"cedros-academy:dashboard\", \"label\": \"Academy\", \"group\": \"Build\", \"order\": 10 }, { \"id\": \"cedros-academy:courses\", \"label\": \"Courses\", \"group\": \"Build\", \"order\": 11, \"requiredPermission\": \"cedros-academy:manage-learning\" }, { \"id\": \"cedros-academy:students\", \"label\": \"Students\", \"group\": \"Users\", \"order\": 20, \"requiredPermission\": \"cedros-academy:manage-learning\" }, { \"id\": \"cedros-academy:instructors\", \"label\": \"Instructors\", \"group\": \"Users\", \"order\": 21, \"requiredPermission\": \"cedros-academy:manage-learning\" }, { \"id\": \"cedros-academy:learning-ops\", \"label\": \"Drafting tools\", \"group\": \"Tools\", \"order\": 41, \"requiredPermission\": \"cedros-academy:manage-learning\" }, { \"id\": \"cedros-academy:reports\", \"label\": \"Reports\", \"group\": \"Tools\", \"order\": 40, \"requiredPermission\": \"cedros-academy:manage-learning\" }, { \"id\": \"cedros-academy:settings\", \"label\": \"Academy settings\", \"group\": \"Extension Settings\", \"order\": 50, \"requiredPermission\": \"cedros-academy:manage-learning\" }] }, \"contributions\": { \"dashboardCards\": [{ \"id\": \"cedros-academy:learning-health-card\", \"displayName\": \"Learning health\", \"description\": \"Shows course readiness, learner access, completion, and review queues.\", \"order\": 40, \"requiredPermission\": \"cedros-academy:manage-learning\" }] } }], \"capabilities\": [{ \"id\": \"cedros-academy:manage-learning\", \"displayName\": \"Manage courses and students\", \"description\": \"Create, approve, publish, and operate Academy learning content and enrollment records.\", \"category\": \"content\", \"requestedScopes\": [{ \"verb\": \"read\", \"resource\": \"course and enrollment records\", \"summary\": \"Reads Academy courses, enrollments, progress, and reports.\" }, { \"verb\": \"write\", \"resource\": \"course and enrollment records\", \"summary\": \"Writes Academy-owned course, curriculum, enrollment, progress, and certificate data.\" }] }, { \"id\": \"cedros-academy:publish-site-brain-records\", \"displayName\": \"Publish Academy operational records\", \"description\": \"Writes redacted learning operations records for site intelligence and audits.\", \"category\": \"runtime\", \"requestedScopes\": [{ \"verb\": \"write\", \"resource\": \"site-brain-record:learning\", \"summary\": \"Publishes redacted Academy operational records.\" }] }], \"contentBlocks\": [{ \"type\": \"cedros-academy:course-catalog\", \"displayName\": \"Course catalog\", \"description\": \"Searchable public course catalog.\", \"category\": \"learning\", \"order\": 10 }, { \"type\": \"cedros-academy:featured-courses\", \"displayName\": \"Course highlights\", \"description\": \"Three current course offerings.\", \"category\": \"learning\", \"order\": 20 }, { \"type\": \"cedros-academy:course-landing\", \"displayName\": \"Course landing\", \"description\": \"Course sales and enrollment page.\", \"category\": \"learning\", \"order\": 30 }, { \"type\": \"cedros-academy:instructor-profile\", \"displayName\": \"Instructor profile\", \"description\": \"Public instructor biography.\", \"category\": \"learning\", \"order\": 40 }, { \"type\": \"cedros-academy:student-dashboard\", \"displayName\": \"Student dashboard\", \"description\": \"Authenticated learner dashboard.\", \"category\": \"learning\", \"order\": 50 }, { \"type\": \"cedros-academy:course-player\", \"displayName\": \"Course player\", \"description\": \"Authenticated lesson player.\", \"category\": \"learning\", \"order\": 60 }, { \"type\": \"cedros-academy:certificate-verification\", \"displayName\": \"Certificate verification\", \"description\": \"Public certificate verification.\", \"category\": \"learning\", \"order\": 70 }, { \"type\": \"cedros-academy:course-submission\", \"displayName\": \"Submit a course\", \"description\": \"Account-authenticated course submission form and status list.\", \"category\": \"learning\", \"order\": 80 }], \"contentTemplates\": [{ \"id\": \"cedros-academy:catalog-template\", \"displayName\": \"Academy catalog\", \"description\": \"Starter course catalog page.\", \"order\": 10, \"contentTypes\": [\"page\"], \"surfaceId\": \"cedros-academy:learning-surface\" }, { \"id\": \"cedros-academy:student-dashboard-template\", \"displayName\": \"Academy dashboard\", \"description\": \"Starter student dashboard page.\", \"order\": 20, \"contentTypes\": [\"page\"], \"surfaceId\": \"cedros-academy:learning-surface\" }, { \"id\": \"cedros-academy:certificate-template\", \"displayName\": \"Certificate verification\", \"description\": \"Starter certificate verification page.\", \"order\": 30, \"contentTypes\": [\"page\"], \"surfaceId\": \"cedros-academy:learning-surface\" }, { \"id\": \"cedros-academy:course-submission-template\", \"displayName\": \"Course submission\", \"description\": \"Starter third-party course submission page.\", \"order\": 40, \"contentTypes\": [\"page\"], \"surfaceId\": \"cedros-academy:learning-surface\" }], \"authoredSurfaces\": [{ \"id\": \"cedros-academy:learning-surface\", \"displayName\": \"Academy\", \"description\": \"Owner-editable learning pages.\", \"eyebrow\": \"Learning\", \"templateIds\": [\"cedros-academy:catalog-template\", \"cedros-academy:student-dashboard-template\", \"cedros-academy:certificate-template\", \"cedros-academy:course-submission-template\"] }], \"authoredTemplateUtilities\": [{ \"id\": \"cedros-academy:learning-preset\", \"displayName\": \"Academy preset\", \"description\": \"Suggested Academy public blocks.\", \"order\": 10, \"templateIds\": [\"cedros-academy:catalog-template\"], \"contentTypes\": [\"page\"], \"surfaceIds\": [\"cedros-academy:learning-surface\"], \"suggestedBlockTypes\": [\"cedros-academy:course-catalog\"] }], \"pageSeeds\": [{ \"id\": \"cedros-academy:catalog-page\", \"displayName\": \"Courses\", \"title\": \"Courses\", \"routePath\": \"/courses\", \"description\": \"Public Academy course catalog.\", \"slug\": \"courses\", \"templateId\": \"cedros-academy:catalog-template\", \"seo\": { \"title\": \"Courses\", \"description\": \"Browse available courses.\", \"canonicalPath\": \"/courses\", \"ogTitle\": \"Courses\", \"ogDescription\": \"Browse available courses.\" }, \"autoCreateOnEnable\": true, \"publishOnEnable\": true }, { \"id\": \"cedros-academy:student-dashboard-page\", \"displayName\": \"My Learning\", \"title\": \"My Learning\", \"routePath\": \"/academy/dashboard\", \"description\": \"Student learning dashboard.\", \"slug\": \"academy-dashboard\", \"templateId\": \"cedros-academy:student-dashboard-template\", \"seo\": { \"title\": \"My Learning\", \"description\": \"Your enrolled courses.\", \"noindex\": true }, \"autoCreateOnEnable\": true, \"publishOnEnable\": true }, { \"id\": \"cedros-academy:certificate-verify-page\", \"displayName\": \"Verify Certificate\", \"title\": \"Verify Certificate\", \"routePath\": \"/academy/certificates/verify\", \"description\": \"Verify an Academy certificate.\", \"slug\": \"academy-certificate-verify\", \"templateId\": \"cedros-academy:certificate-template\", \"seo\": { \"title\": \"Verify Certificate\", \"description\": \"Verify an Academy completion certificate.\", \"noindex\": true }, \"autoCreateOnEnable\": true, \"publishOnEnable\": true }, { \"id\": \"cedros-academy:course-submission-page\", \"displayName\": \"Submit a Course\", \"title\": \"Submit a Course\", \"routePath\": \"/academy/submit-course\", \"description\": \"Account-authenticated third-party course submission page.\", \"slug\": \"academy-submit-course\", \"templateId\": \"cedros-academy:course-submission-template\", \"seo\": { \"title\": \"Submit a Course\", \"description\": \"Submit a course for Academy review.\", \"noindex\": true }, \"autoCreateOnEnable\": true, \"publishOnEnable\": false }], \"formTemplates\": [{ \"id\": \"cedros-academy:course-interest\", \"displayName\": \"Academy course interest\", \"title\": \"Course interest\", \"description\": \"Owner-editable inquiry form for learners who need help choosing an Academy course.\", \"scope\": \"contact\", \"defaultKey\": \"academy-course-interest\", \"status\": \"active\", \"submitLabel\": \"Send inquiry\", \"successTitle\": \"Inquiry received\", \"successMessage\": \"The site team will review your Academy course question.\", \"autoCreateOnEnable\": false, \"fields\": [{ \"key\": \"email\", \"label\": \"Email\", \"type\": \"email\", \"required\": true }, { \"key\": \"course_title\", \"label\": \"Course or topic\", \"type\": \"text\", \"required\": false, \"helpText\": \"Use the public course title or learning topic.\" }, { \"key\": \"learning_goal\", \"label\": \"Learning goal\", \"type\": \"textarea\", \"required\": true, \"helpText\": \"Do not include payment details, passwords, or private account notes.\" }, { \"key\": \"contact_consent\", \"label\": \"I agree to be contacted about this Academy inquiry.\", \"type\": \"checkbox\", \"required\": true, \"helpText\": \"The owner should review this consent copy before using the form.\" }] }], \"docsArticles\": [{ \"id\": \"cedros-academy:learner-help\", \"displayName\": \"Academy learner help\", \"title\": \"Using Academy courses\", \"slug\": \"using-academy-courses\", \"routePath\": \"/docs/using-academy-courses\", \"excerpt\": \"How learners browse courses, enroll, continue lessons, and verify certificates.\", \"bodyMarkdown\": \"# Using Academy courses\\n\\nBrowse the course catalog to find published Academy courses. Sign in with Cedros Login before enrolling or opening your learner dashboard.\\n\\n## Course access\\n\\nFree published courses can offer self-enrollment. Private courses require an explicit grant from the site team. Paid enrollment is not currently self-service; follow the site's instructions rather than sending payment details, card data, wallet secrets, or other credentials to Academy.\\n\\n## Your learning dashboard\\n\\nAfter sign-in, open My Learning to continue active courses. If access is pending, refunded, disputed, expired, or revoked, Academy keeps the course locked until the site team or Cedros Pay resolves the state.\\n\\n## Certificates\\n\\nAfter completing a course, open its certificate from My Learning to print it, save it as a PDF, or copy its verification link. The protected credential uses the Cedros Login display name recorded when the certificate was issued, with current account identity as a fallback for older records. The public verification page confirms the certificate reference, course, issue date, and current status without exposing private learner account details.\", \"category\": \"learning\", \"tags\": [\"academy\", \"courses\", \"certificates\"], \"productSlug\": \"academy\", \"productLabel\": \"Academy\", \"sectionKey\": \"learning\", \"sectionLabel\": \"Learning\", \"readingMinutes\": 3, \"order\": 10, \"internal\": false, \"seo\": { \"title\": \"Using Academy courses\", \"description\": \"How learners use Academy course pages, enrollment, dashboards, and certificates.\", \"canonicalPath\": \"/docs/using-academy-courses\" } }], \"seoRoutes\": [{ \"routeId\": \"cedros-academy:course-page\", \"pathPattern\": \"/courses/:slug\", \"indexable\": true, \"includeInSitemap\": true, \"canonicalStrategy\": \"self\", \"schemaType\": \"WebPage\", \"schemaContractVersion\": 2 }], \"analytics\": { \"events\": [{ \"id\": \"cedros-academy:course-viewed\", \"displayName\": \"Course viewed\", \"description\": \"A learner viewed a public course page.\", \"category\": \"learning\", \"kind\": \"content_view\", \"visibility\": \"public\" }, { \"id\": \"cedros-academy:checkout-started\", \"displayName\": \"Checkout started\", \"description\": \"A learner started course checkout.\", \"category\": \"learning\", \"kind\": \"purchase_intent_view\", \"visibility\": \"public\" }, { \"id\": \"cedros-academy:lesson-completed\", \"displayName\": \"Lesson completed\", \"description\": \"A learner completed a lesson.\", \"category\": \"learning\", \"kind\": \"learning_progress\", \"visibility\": \"admin\" }] }, \"jobSchedules\": [{ \"id\": \"cedros-academy:nightly-entitlement-reconcile-schedule\", \"jobId\": \"cedros-academy:nightly-entitlement-reconcile\", \"label\": \"Nightly entitlement reconciliation\", \"cron\": \"0 2 * * *\", \"timezone\": \"America/Los_Angeles\", \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 3, \"autoCreateOnEnable\": true }, { \"id\": \"cedros-academy:drip-release-schedule\", \"jobId\": \"cedros-academy:drip-release\", \"label\": \"Legacy drip configuration audit\", \"cron\": \"*/30 * * * *\", \"timezone\": \"America/Los_Angeles\", \"enabled\": true, \"timeoutSeconds\": 180, \"maxRetries\": 2, \"autoCreateOnEnable\": true }, { \"id\": \"cedros-academy:retention-sweep-schedule\", \"jobId\": \"cedros-academy:retention-sweep\", \"label\": \"Academy retention sweep\", \"cron\": \"0 3 * * 0\", \"timezone\": \"America/Los_Angeles\", \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 3, \"autoCreateOnEnable\": true }, { \"id\": \"cedros-academy:access-expiration-schedule\", \"jobId\": \"cedros-academy:access-expiration\", \"label\": \"Academy access expiration\", \"cron\": \"*/15 * * * *\", \"timezone\": \"America/Los_Angeles\", \"enabled\": true, \"timeoutSeconds\": 180, \"maxRetries\": 3, \"autoCreateOnEnable\": true }, { \"id\": \"cedros-academy:certificate-generation-schedule\", \"jobId\": \"cedros-academy:certificate-generation\", \"label\": \"Academy certificate recovery\", \"cron\": \"*/15 * * * *\", \"timezone\": \"America/Los_Angeles\", \"enabled\": true, \"timeoutSeconds\": 180, \"maxRetries\": 3, \"autoCreateOnEnable\": true }, { \"id\": \"cedros-academy:analytics-rollup-schedule\", \"jobId\": \"cedros-academy:analytics-rollup\", \"label\": \"Academy analytics rollup\", \"cron\": \"10 * * * *\", \"timezone\": \"America/Los_Angeles\", \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 3, \"autoCreateOnEnable\": true }], \"providerAccess\": [{ \"id\": \"cedros-academy:intelligence-authoring\", \"provider\": \"intelligence\", \"displayName\": \"Academy AI authoring\", \"description\": \"Drafts course outlines, lesson copy, quiz questions, rubrics, summaries, and SEO copy through the site's intelligence provider.\", \"scopes\": [\"chat.generate\"], \"tags\": [\"learning\", \"ai\"] }, { \"id\": \"cedros-academy:artifact-storage\", \"provider\": \"storage\", \"displayName\": \"Academy generated artifacts\", \"description\": \"Stores generated certificate artifacts under Academy-owned keys.\", \"scopes\": [\"storage.write\"], \"tags\": [\"learning\", \"certificates\"] }], \"databaseAccess\": [{ \"id\": \"cedros-academy:academy-db\", \"displayName\": \"Academy database\", \"description\": \"Reads and writes Academy-owned courses, curriculum, enrollments, progress, certificates, discussions, reports, and audit records.\", \"contentModels\": [\"cedros-academy:courses\", \"cedros-academy:course-versions\", \"cedros-academy:curriculum\", \"cedros-academy:instructors\", \"cedros-academy:enrollments\", \"cedros-academy:lesson-progress\", \"cedros-academy:quizzes\", \"cedros-academy:quiz-attempts\", \"cedros-academy:assignments\", \"cedros-academy:submissions\", \"cedros-academy:course-submissions\", \"cedros-academy:certificates\", \"cedros-academy:reviews\", \"cedros-academy:questions\", \"cedros-academy:notes-bookmarks\", \"cedros-academy:cohorts\", \"cedros-academy:announcements\", \"cedros-academy:offers\", \"cedros-academy:learning-paths\", \"cedros-academy:report-configs\", \"cedros-academy:audit-events\"], \"migrations\": [\"cedros-academy:v1-jsonb\"], \"scopes\": [{ \"verb\": \"read\", \"resource\": \"Academy records\", \"summary\": \"Reads Academy-owned JSONB content models.\" }, { \"verb\": \"write\", \"resource\": \"Academy records\", \"summary\": \"Writes Academy-owned JSONB content models.\" }, { \"verb\": \"delete\", \"resource\": \"Academy records\", \"summary\": \"Deletes Academy-owned records only when lifecycle and retention rules allow it.\" }], \"tags\": [\"learning\", \"academy\"] }], \"customerTagAccess\": [{ \"id\": \"cedros-academy:student-tags\", \"displayName\": \"Academy student tags\", \"description\": \"Labels CRM customer profiles based on Academy enrollment and completion activity.\", \"scopes\": [\"assign\"], \"managedTagSlugs\": [\"cedros-academy:enrolled\", \"cedros-academy:certificate-earned\"], \"tags\": [\"learning\", \"crm\"] }], \"setupSeeds\": { \"notifications\": [{ \"id\": \"cedros-academy:course-announcement-notification\", \"displayName\": \"Course announcement\", \"title\": \"Course announcement\", \"description\": \"Starter team notification route for course announcements.\", \"eventId\": \"cedros-academy:course-published\", \"audience\": \"team\", \"severity\": \"info\", \"defaultChannels\": [\"email\"], \"subjectTemplate\": \"{{courseTitle}} update\", \"bodyTemplate\": \"{{announcementSummary}}\", \"tags\": [\"learning\", \"course\"] }] }, \"onboardingPages\": [{ \"id\": \"cedros-academy:configure-academy\", \"displayName\": \"Create your first course\", \"moduleId\": \"cedros-academy:admin\", \"sectionId\": \"cedros-academy:courses\", \"description\": \"Create a learner-ready course; Academy's launch defaults and core learner pages are already prepared.\" }] };\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/generated-templates.js","kind":"module","text":"export const generatedContentTemplates = [{ \"id\": \"cedros-academy:catalog-template\", \"label\": \"Academy catalog\", \"contentTypes\": [\"page\"], \"zones\": [{ \"id\": \"main\", \"label\": \"Main\", \"order\": 0 }], \"blocks\": [{ \"type\": \"cedros-academy:course-catalog\", \"zoneId\": \"main\" }] }, { \"id\": \"cedros-academy:student-dashboard-template\", \"label\": \"Academy dashboard\", \"contentTypes\": [\"page\"], \"zones\": [{ \"id\": \"main\", \"label\": \"Main\", \"order\": 0 }], \"blocks\": [{ \"type\": \"cedros-academy:student-dashboard\", \"zoneId\": \"main\" }] }, { \"id\": \"cedros-academy:certificate-template\", \"label\": \"Certificate verification\", \"contentTypes\": [\"page\"], \"zones\": [{ \"id\": \"main\", \"label\": \"Main\", \"order\": 0 }], \"blocks\": [{ \"type\": \"cedros-academy:certificate-verification\", \"zoneId\": \"main\" }] }, { \"id\": \"cedros-academy:course-submission-template\", \"label\": \"Course submission\", \"contentTypes\": [\"page\"], \"zones\": [{ \"id\": \"main\", \"label\": \"Main\", \"order\": 0 }], \"blocks\": [{ \"type\": \"cedros-academy:course-submission\", \"zoneId\": \"main\" }] }];\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/manifest.js","kind":"module","text":"import { generatedManifest } from \"./generated-manifest.js\";\nexport const extensionManifest = generatedManifest;\n","imports":[{"dynamic":false,"end":58,"specifier":"./generated-manifest.js","start":35}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/adminAuthority.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { createContext, useContext, useEffect, useMemo, useRef, useState } from \"react\";\nimport { AcademyError, normalizedSite, RetiredOperation } from \"./authority.js\";\nimport { adminRootAttrs, LoadingState, Notice } from \"./adminChrome.js\";\nimport { ensureAcademyAdminStyles } from \"./adminStyles.js\";\n// One current host administrator owns this private, memory-only drafting session.\n// Keep the last scope for opaque credential comparison across section unmounts.\nlet draftingOwner;\nlet draftingMemory;\nlet privateGeneration = 0;\nconst activeScopes = new Set();\nconst permission = \"cedros-academy:manage-learning\";\n/** Host identity and opaque credentials are observed independently. Nothing is decoded. */\nexport class AdminAuthority {\n    epoch = 0;\n    lineage = 0;\n    authorizedEpoch = -1;\n    active = true;\n    allowed = false;\n    site = \"\";\n    actor = \"\";\n    org = \"\";\n    cacheIdentity = \"\";\n    hostAllowed = false;\n    denied = false;\n    token;\n    binding;\n    getter;\n    listeners = new Set();\n    operations = new Map();\n    pending() { return this.operations.size > 0; }\n    subscribe = (listener) => { this.listeners.add(listener); return () => { this.listeners.delete(listener); }; };\n    notify() { queueMicrotask(() => { for (const listener of this.listeners)\n        listener(); }); }\n    retire(definitive = false, preserveDrafting = false) {\n        if (definitive && !preserveDrafting) {\n            draftingMemory = undefined;\n            privateGeneration++;\n        }\n        this.epoch++;\n        this.authorizedEpoch = -1;\n        this.operations.clear();\n        if (definitive)\n            this.lineage++;\n        this.notify();\n    }\n    configure(context) {\n        const replacement = this.binding !== undefined && this.binding !== context;\n        this.binding = context;\n        this.observe(replacement);\n    }\n    observe(replacement = false) {\n        const context = this.binding;\n        if (!context)\n            return;\n        let site = \"\", actor = \"\", org = \"\", cacheIdentity = \"\", allowed = false, token = null;\n        try {\n            site = normalizedSite(context.serverUrl);\n            actor = context.userId ?? \"\";\n            org = context.orgId ?? \"\";\n            cacheIdentity = context.cacheIdentity ?? \"\";\n            if (typeof org !== \"string\" || typeof cacheIdentity !== \"string\")\n                throw new Error(\"Invalid administrator context.\");\n            allowed = context.authenticated === true && Boolean(actor.trim()) && context.hasPermission(permission);\n            token = context.getAccessToken();\n        }\n        catch {\n            if (this.allowed || this.authorizedEpoch !== -1) {\n                this.allowed = false;\n                this.retire();\n            }\n            return;\n        }\n        const initialized = this.token !== undefined;\n        const previousSite = this.site, previousActor = this.actor, previousOrg = this.org;\n        const ownerChanged = previousSite !== site || previousActor !== actor || previousOrg !== org;\n        const contextChanged = this.cacheIdentity !== cacheIdentity;\n        const loss = this.hostAllowed && !allowed;\n        const tokenLost = this.token !== undefined && this.token !== null && token === null;\n        const changed = ownerChanged || contextChanged || this.hostAllowed !== allowed || this.token !== token || this.getter !== context.getAccessToken || replacement;\n        if (!this.denied || changed) {\n            const previous = draftingOwner;\n            const observedLoss = previous && (previous.site !== site || previous.actor !== actor || previous.org !== org\n                || previous.hostAllowed && !allowed || previous.token !== undefined && previous.token !== null && token === null);\n            if (previous && observedLoss && previous !== this) {\n                previous.denied = true;\n                previous.allowed = false;\n                previous.retire(true);\n                previous.invalidatePeers(true);\n            }\n            else if (previous && previous !== this && previous.cacheIdentity !== cacheIdentity) {\n                previous.denied = true;\n                previous.allowed = false;\n                previous.retire();\n                previous.invalidatePeers(false, previous.site, previous.actor, previous.org, cacheIdentity);\n            }\n            draftingOwner = this;\n        }\n        if (changed)\n            this.denied = false;\n        this.site = site;\n        this.actor = actor;\n        this.org = org;\n        this.cacheIdentity = cacheIdentity;\n        this.hostAllowed = allowed;\n        this.allowed = allowed && !this.denied;\n        this.getter = context.getAccessToken;\n        this.token = token;\n        if (changed) {\n            const definitive = ownerChanged || loss || tokenLost;\n            this.retire(definitive, !initialized);\n            if (initialized)\n                this.invalidatePeers(definitive, previousSite, previousActor, previousOrg, contextChanged && !definitive ? cacheIdentity : undefined);\n        }\n    }\n    monitor() {\n        activeScopes.add(this);\n        return () => { activeScopes.delete(this); this.suspend(); };\n    }\n    invalidatePeers(definitive, site = this.site, actor = this.actor, org = this.org, nextIdentity) {\n        for (const peer of activeScopes) {\n            if (peer === this || peer.site !== site || peer.actor !== actor || peer.org !== org\n                || nextIdentity !== undefined && peer.cacheIdentity === nextIdentity)\n                continue;\n            if (definitive || nextIdentity !== undefined) {\n                peer.denied = true;\n                peer.allowed = false;\n            }\n            peer.retire(definitive);\n        }\n    }\n    get privateGeneration() { return privateGeneration; }\n    draftingSnapshot() {\n        this.observe();\n        if (draftingMemory?.value.receipt && draftingMemory.value.receipt.expiresAtUnix * 1000 <= Date.now()) {\n            draftingMemory = { ...draftingMemory, value: { ...draftingMemory.value, receipt: null, result: \"\" } };\n        }\n        return this.allowed && draftingMemory?.owner === JSON.stringify([this.site, this.actor, this.org]) ? draftingMemory.value : undefined;\n    }\n    rememberDrafting(ticket, value) {\n        if (this.current(ticket, true))\n            draftingMemory = { owner: JSON.stringify([this.site, this.actor, this.org]), value };\n    }\n    revalidate() { this.denied = false; this.allowed = this.hostAllowed; this.observe(); this.retire(); }\n    suspend() { if (this.active) {\n        this.active = false;\n        this.retire();\n    } }\n    resume() { if (!this.active) {\n        this.active = true;\n        this.observe();\n        this.retire();\n    }\n    else\n        this.observe(); }\n    capture() { this.observe(); return { scope: this, epoch: this.epoch, lineage: this.lineage }; }\n    current(ticket, write = false) {\n        this.observe();\n        return ticket.scope === this && ticket.epoch === this.epoch && ticket.lineage === this.lineage\n            && this.active && this.allowed && (!write || this.authorizedEpoch === this.epoch);\n    }\n    requireCurrent(ticket, write = false) { if (!this.current(ticket, write))\n        throw new RetiredOperation(); }\n    credential(ticket) { this.requireCurrent(ticket); return this.token ?? null; }\n    readConfirmed(ticket) {\n        this.requireCurrent(ticket);\n        if (this.authorizedEpoch !== this.epoch) {\n            this.authorizedEpoch = this.epoch;\n            this.notify();\n        }\n    }\n    denial(error, ticket) {\n        if (this.current(ticket) && error instanceof AcademyError && (error.status === 401 || error.status === 403)) {\n            if (error.code === \"cedros.academy.ai_disabled\")\n                this.retire();\n            else {\n                this.denied = true;\n                this.allowed = false;\n                this.retire(true);\n                this.invalidatePeers(true);\n            }\n        }\n    }\n    acquire(ticket, resource, operation) {\n        if (!this.current(ticket, true) || this.operations.has(resource))\n            return false;\n        this.operations.set(resource, operation);\n        return true;\n    }\n    owns(ticket, resource, operation) {\n        return this.current(ticket, true) && this.operations.get(resource) === operation;\n    }\n    releaseOwner(owner) { for (const [resource, operation] of this.operations)\n        if (\"owner\" in operation && operation.owner === owner)\n            this.operations.delete(resource); }\n    release(resource, operation) { if (this.operations.get(resource) === operation)\n        this.operations.delete(resource); }\n}\nconst AdminContext = createContext(null);\nexport function useAdminAuthority() {\n    const scope = useContext(AdminContext);\n    if (!scope)\n        throw new Error(\"Academy admin boundary is required.\");\n    return scope;\n}\nexport function withAdminBoundary(Component, surface = \"page\") {\n    return function ProtectedAdmin(props) {\n        ensureAcademyAdminStyles();\n        const scope = useRef(new AdminAuthority()).current;\n        const [, render] = useState(0);\n        scope.configure(props.pluginContext);\n        useEffect(() => {\n            const stopMonitor = scope.monitor();\n            const unsubscribe = scope.subscribe(() => render(value => value + 1));\n            const hidden = () => { if (document.visibilityState === \"hidden\")\n                scope.suspend();\n            else\n                scope.resume(); };\n            const hide = () => scope.suspend();\n            const focus = () => { if (document.visibilityState !== \"hidden\")\n                scope.resume(); };\n            const timer = window.setInterval(() => scope.observe(), 250);\n            document.addEventListener(\"visibilitychange\", hidden);\n            window.addEventListener(\"pagehide\", hide);\n            window.addEventListener(\"pageshow\", focus);\n            window.addEventListener(\"focus\", focus);\n            hidden();\n            return () => {\n                unsubscribe();\n                clearInterval(timer);\n                document.removeEventListener(\"visibilitychange\", hidden);\n                window.removeEventListener(\"pagehide\", hide);\n                window.removeEventListener(\"pageshow\", focus);\n                window.removeEventListener(\"focus\", focus);\n                stopMonitor();\n            };\n        }, [scope]);\n        const renderTicket = scope.capture();\n        const ready = scope.active && scope.allowed && scope.authorizedEpoch === scope.epoch;\n        const block = (event) => {\n            if (!scope.current(renderTicket, true)) {\n                event.preventDefault();\n                event.stopPropagation();\n            }\n        };\n        return _jsxs(AdminContext.Provider, { value: scope, children: [!ready ? _jsx(AdminBoundaryState, { allowed: scope.allowed, surface: surface, onRetry: () => scope.revalidate() }) : null, _jsx(\"div\", { hidden: !ready, inert: !ready, onClickCapture: block, onChangeCapture: block, onSubmitCapture: block, onKeyDownCapture: block, children: _jsx(Component, { ...props }, scope.lineage) })] });\n    };\n}\n/** Unconfirmed authority keeps children inert. A pending read paints the\n * Workbench skeleton at once; the retry notice appears only past 1s so ordinary\n * loads never flash it. Cards hide when the operator cannot act (§6.1). */\nfunction AdminBoundaryState(props) {\n    const retry = _jsx(\"button\", { type: \"button\", className: \"cedros-data-btn cedros-data-btn--secondary cedros-data-btn--sm ca-button\", onClick: props.onRetry, children: \"Check again\" });\n    if (!props.allowed) {\n        if (props.surface === \"card\")\n            return null;\n        return _jsx(\"div\", { ...adminRootAttrs(), children: _jsxs(\"div\", { className: \"cedros-data-setup-notice ca-card\", role: \"status\", children: [_jsxs(\"div\", { className: \"cedros-data-setup-notice__body\", children: [_jsx(\"strong\", { children: \"Academy permission required\" }), _jsx(\"p\", { children: \"Academy administrator authentication and permission are required.\" }), _jsx(\"p\", { className: \"ca-muted\", children: \"Sign in as an Academy administrator, or ask a site owner for access.\" })] }), _jsx(\"div\", { className: \"cedros-data-actions\", children: retry })] }) });\n    }\n    return _jsxs(\"div\", { ...adminRootAttrs(props.surface === \"card\" ? \"cedros-data-card ca-card ca-dashboard-card\" : \"\"), \"aria-busy\": \"true\", children: [_jsx(LoadingState, { title: \"Confirming Academy access\", compact: props.surface === \"card\" }), _jsx(\"div\", { className: \"ca-delayed-reveal\", children: _jsx(Notice, { tone: \"info\", title: \"Confirming Academy access\", message: \"Academy shows current records after Cedros confirms your access. Unsaved work stays on this page.\", action: retry }) })] });\n}\n/** Synchronous resource latch, with mount/resource and authority fences. */\nexport function useAdminOperation(resource, ready = true) {\n    const scope = useAdminAuthority();\n    const lifetime = useRef({ resource, alive: true, generation: 0 });\n    if (lifetime.current.resource !== resource) {\n        lifetime.current.alive = false;\n        lifetime.current = { resource, alive: true, generation: lifetime.current.generation + 1 };\n    }\n    const owner = lifetime.current;\n    const latestReady = useRef(ready);\n    latestReady.current = ready;\n    const ticket = scope.capture();\n    useEffect(() => { owner.alive = true; return () => { owner.alive = false; scope.releaseOwner(owner); }; }, [owner, scope]);\n    return useMemo(() => ({\n        current: (operation) => latestReady.current && owner.alive && (operation ? operation.owner === owner && scope.owns(operation.ticket, operation.resource, operation) : scope.current(ticket, true)),\n        owns: (operation) => owner.alive && operation.owner === owner && scope.owns(operation.ticket, operation.resource, operation),\n        begin: () => {\n            if (!latestReady.current || !owner.alive || !scope.current(ticket, true))\n                return null;\n            const operation = { ticket, resource, owner };\n            return scope.acquire(ticket, resource, operation) ? operation : null;\n        },\n        end: (operation) => scope.release(operation.resource, operation),\n        guard: (callback) => (...args) => {\n            if (latestReady.current && owner.alive && scope.current(ticket, true))\n                callback(...args);\n        }\n    }), [scope, ticket.epoch, ticket.lineage, owner, resource, ready]);\n}\n/** Shared widgets also serve learners; only admin mounts acquire this fence. */\nexport function useAdminCallbackFence() {\n    const scope = useContext(AdminContext);\n    const owner = useRef({ alive: true }).current;\n    const ticket = scope?.capture();\n    useEffect(() => { owner.alive = true; return () => { owner.alive = false; }; }, [owner]);\n    return () => owner.alive && (!scope || Boolean(ticket && scope.current(ticket, true)));\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":150,"specifier":"react","start":145},{"dynamic":false,"end":231,"specifier":"./authority.js","start":217},{"dynamic":false,"end":304,"specifier":"./adminChrome.js","start":288},{"dynamic":false,"end":365,"specifier":"./adminStyles.js","start":349}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/adminChrome.js","kind":"module","text":"import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\n/* Authority-independent Workbench furniture shared by admin sections and the\n   admin authority boundary, which cannot import ui.tsx without a cycle. */\nexport const academyExtensionId = \"cedros-academy\";\nexport function adminRootAttrs(extraClass = \"\") {\n    const className = [\"cedros-academy-admin\", \"cedros-data\", extraClass].filter(Boolean).join(\" \");\n    return { className, \"data-extension-id\": academyExtensionId };\n}\nexport function Notice(props) {\n    const tone = props.tone ?? \"neutral\";\n    return (_jsxs(\"div\", { className: `cedros-data-status cedros-data-status--${tone} ca-notice ca-notice--${tone}`, role: tone === \"error\" ? \"alert\" : \"status\", children: [_jsx(\"svg\", { className: \"ca-notice__icon\", \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: tone === \"success\" ? _jsxs(_Fragment, { children: [_jsx(\"circle\", { cx: \"12\", cy: \"12\", r: \"10\" }), _jsx(\"path\", { d: \"m8 12 3 3 5-6\" })] }) : tone === \"warning\" ? _jsxs(_Fragment, { children: [_jsx(\"path\", { d: \"m10.3 3.9-8.2 14.2A2 2 0 0 0 3.8 21h16.4a2 2 0 0 0 1.7-2.9L13.7 3.9a2 2 0 0 0-3.4 0Z\" }), _jsx(\"path\", { d: \"M12 9v4m0 4h.01\" })] }) : _jsxs(_Fragment, { children: [_jsx(\"circle\", { cx: \"12\", cy: \"12\", r: \"10\" }), _jsx(\"path\", { d: tone === \"error\" ? \"M12 8v4m0 4h.01\" : \"M12 16v-4m0-4h.01\" })] }) }), _jsxs(\"div\", { className: \"ca-notice__copy\", children: [_jsx(\"strong\", { children: props.title }), _jsx(\"p\", { children: props.message })] }), props.action ? _jsx(\"div\", { className: \"cedros-data-status__actions\", children: props.action }) : null] }));\n}\nexport function LoadingState(props) {\n    return (_jsxs(\"div\", { className: props.compact ? \"ca-skeleton-block\" : \"cedros-data-card ca-card ca-skeleton-block\", role: \"status\", \"aria-label\": props.title, children: [_jsx(\"span\", { className: \"ca-skeleton ca-skeleton--title\", \"aria-hidden\": \"true\" }), _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--line\", \"aria-hidden\": \"true\" }), props.compact ? null : _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--line ca-skeleton--short\", \"aria-hidden\": \"true\" })] }));\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/adminStyles.js","kind":"module","text":"const inlinedStyles = \".cedros-academy-course-document {\\n  max-width: 64rem;\\n  margin-inline: auto;\\n  padding: 1.5rem;\\n  overflow-wrap: anywhere;\\n  line-height: 1.65;\\n  color: var(--ca5ss4b-runtime-text, inherit);\\n}\\n.cedros-academy-course-document nav { margin-block: 1.25rem; }\\n.cedros-academy-course-document section { max-width: 48rem; }\\n.cedros-academy-course-document a { text-underline-offset: 0.2em; }\\n\\n.cedros-academy {\\n    /* Public blocks inherit the site font and documented runtime color roles.\\n       Shape is extension-owned; the runtime does not export radius tokens. */\\n    --ca-radius-sm: 7px;\\n    --ca-radius-md: 8px;\\n    --ca-radius-lg: 12px;\\n    --ca-radius-pill: 999px;\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n    font: inherit;\\n    width: 100%;\\n    max-width: 100%;\\n    min-width: 0;\\n    contain: inline-size;\\n    container: cedros-academy / inline-size;\\n    overflow-wrap: break-word;\\n  }\\n  .cedros-academy * { box-sizing: border-box; }\\n  .cedros-academy > *,\\n  .cedros-academy .ca-card-grid,\\n  .cedros-academy .ca-card,\\n  .cedros-academy .ca-notice {\\n    max-width: 100%;\\n    min-width: 0;\\n  }\\n  .cedros-academy a { color: inherit; }\\n  .cedros-academy p,\\n  .cedros-academy h2,\\n  .cedros-academy h3,\\n  .cedros-academy h4 { margin-top: 0; letter-spacing: 0; }\\n  .cedros-academy p { line-height: 1.55; }\\n  .cedros-academy .ca-muted {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 13px;\\n  }\\n\\n  .cedros-academy .ca-card {\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-md);\\n    padding: 14px;\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    box-shadow: none;\\n  }\\n  .cedros-academy .ca-card + .ca-card,\\n  .cedros-academy .ca-notice + .ca-card,\\n  .cedros-academy .ca-card + .ca-notice { margin-top: 12px; }\\n  .cedros-academy .ca-card-header {\\n    display: flex;\\n    gap: 10px;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    margin-bottom: 10px;\\n  }\\n  .cedros-academy .ca-card h3,\\n  .cedros-academy .ca-card h4 {\\n    margin-bottom: 6px;\\n    font-size: 16px;\\n    line-height: 1.3;\\n    font-weight: 650;\\n  }\\n  .cedros-academy .ca-button {\\n    display: inline-flex;\\n    min-height: 34px;\\n    align-items: center;\\n    justify-content: center;\\n    gap: 6px;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #cbd5e1);\\n    border-radius: var(--ca-radius-sm);\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    color: inherit;\\n    padding: 7px 11px;\\n    cursor: pointer;\\n    font: inherit;\\n    font-weight: 550;\\n    text-decoration: none;\\n    white-space: nowrap;\\n  }\\n  .cedros-academy .ca-button-primary {\\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    color: var(--ca5ss4b-runtime-action-fg, #ffffff);\\n    border-color: var(--ca5ss4b-runtime-action-bg, #18181b);\\n  }\\n\\n  .cedros-academy .ca-button:focus-visible,\\n  .cedros-academy a.ca-button:focus-visible,\\n  .cedros-academy .ca-field input:focus-visible,\\n  .cedros-academy .ca-field textarea:focus-visible,\\n  .cedros-academy .ca-field select:focus-visible {\\n    outline: 2px solid var(--ca5ss4b-runtime-text, #171717);\\n    outline-offset: 2px;\\n  }\\n  .cedros-academy .ca-button[disabled] {\\n    cursor: not-allowed;\\n    opacity: .55;\\n  }\\n  .cedros-academy .ca-field {\\n    display: grid;\\n    gap: 5px;\\n    margin-bottom: 11px;\\n  }\\n  .cedros-academy .ca-field label,\\n  .cedros-academy .ca-field > span:first-child {\\n    font-size: 12px;\\n    font-weight: 650;\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n  }\\n  .cedros-academy .ca-field input,\\n  .cedros-academy .ca-field textarea,\\n  .cedros-academy .ca-field select {\\n    width: 100%;\\n    min-height: 36px;\\n    border: 1px solid var(--ca5ss4b-runtime-muted, #667085);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 8px 10px;\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    color: inherit;\\n    font: inherit;\\n  }\\n  .cedros-academy .ca-field textarea { min-height: 92px; resize: vertical; }\\n  .cedros-academy .ca-learning-tools { display: grid; gap: 12px; align-items: stretch; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }\\n  .cedros-academy .ca-learner-reviews { display: grid; gap: 12px; }\\n  .cedros-academy .ca-disclosure { border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: var(--ca-radius-md); background: var(--ca5ss4b-runtime-panel, #ffffff); overflow: hidden; }\\n  .cedros-academy .ca-disclosure > summary { padding: 18px 20px; cursor: pointer; font-weight: 650; }\\n  .cedros-academy .ca-disclosure > summary:focus-visible { outline: 3px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: -3px; }\\n  .cedros-academy .ca-disclosure__body { display: grid; gap: 16px; padding: 0 20px 20px; }\\n  .cedros-academy .ca-feedback-item { padding: 16px 0; border-top: 1px solid var(--ca5ss4b-runtime-border, var(--ca-admin-border, #d0d5dd)); overflow-wrap: anywhere; }\\n  .cedros-academy .ca-feedback-item p,\\n  .cedros-academy-admin .ca-feedback-item p { white-space: pre-wrap; }\\n  .cedros-academy .ca-field-error {\\n    color: var(--ca5ss4b-runtime-error, #b42318);\\n    font-size: 12px;\\n  }\\n\\n  .cedros-academy .ca-status {\\n    display: inline-flex;\\n    min-height: 22px;\\n    align-items: center;\\n    border-radius: var(--ca-radius-pill);\\n    padding: 2px 8px;\\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n    line-height: 1.2;\\n    white-space: nowrap;\\n  }\\n  .cedros-academy .ca-status--success { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #027a48) 12%, transparent); color: var(--ca5ss4b-runtime-text, #05603a); }\\n  .cedros-academy .ca-status--warning { background: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 14%, transparent); color: var(--ca5ss4b-runtime-text, #93370d); }\\n  .cedros-academy .ca-status--error { background: color-mix(in srgb, var(--ca5ss4b-runtime-error, #b42318) 12%, transparent); color: var(--ca5ss4b-runtime-text, #7a271a); }\\n  .cedros-academy .ca-status--info { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #175cd3) 10%, transparent); color: var(--ca5ss4b-runtime-text, #1849a9); }\\n  .cedros-academy .ca-notice {\\n    display: grid;\\n    gap: 4px;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-md);\\n    padding: 12px;\\n    margin-bottom: 12px;\\n    background: var(--ca5ss4b-runtime-accent-soft, #f8fafc);\\n  }\\n  .cedros-academy .ca-notice p { margin: 0; }\\n  .cedros-academy .ca-notice--success { border-color: color-mix(in srgb, var(--ca5ss4b-runtime-text, #027a48) 35%, var(--ca5ss4b-runtime-border, #d0d5dd)); }\\n  .cedros-academy .ca-notice--warning { border-color: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 40%, var(--ca5ss4b-runtime-border, #d0d5dd)); }\\n  .cedros-academy .ca-notice--error { border-color: var(--ca5ss4b-runtime-error, #b42318); }\\n  .cedros-academy.ca-public {\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-muted,\\n  .cedros-academy.ca-public .ca-kicker {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n  }\\n  .cedros-academy.ca-public .ca-status--success {\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #171717) 6%, transparent);\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-status--warning {\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 16%, transparent);\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-status--error {\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-error, #b42318) 14%, transparent);\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-notice--success {\\n    border-color: color-mix(in srgb, var(--ca5ss4b-runtime-border, #d0d5dd) 100%, var(--ca5ss4b-runtime-border, #d0d5dd));\\n  }\\n  .cedros-academy.ca-public .ca-notice--warning {\\n    border-color: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 45%, var(--ca5ss4b-runtime-border, #d0d5dd));\\n  }\\n  .cedros-academy.ca-public .ca-notice--error {\\n    border-color: var(--ca5ss4b-runtime-error, #b42318);\\n  }\\n  .cedros-academy.ca-public .ca-public-shell,\\n  .cedros-academy.ca-public.ca-public-shell {\\n    display: grid;\\n    gap: 16px;\\n    width: min(100%, 1120px);\\n    margin: 0 auto;\\n    padding: clamp(20px, 4vw, 44px) 0;\\n  }\\n  .cedros-academy.ca-public .ca-public-head {\\n    display: grid;\\n    gap: 8px;\\n    max-width: 760px;\\n  }\\n  .cedros-academy.ca-public .ca-public-head h2 {\\n    margin: 0;\\n    font-size: clamp(28px, 4vw, 44px);\\n    line-height: 1.08;\\n    font-weight: 700;\\n  }\\n  .cedros-academy .ca-kicker {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n    font-weight: 700;\\n    letter-spacing: 0;\\n    text-transform: uppercase;\\n  }\\n  .cedros-academy .ca-card-grid {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));\\n    gap: 14px;\\n  }\\n  .cedros-academy .ca-card-grid--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }\\n  .cedros-academy .ca-skeleton-card {\\n    min-height: 156px;\\n    align-content: start;\\n  }\\n  .cedros-academy .ca-skeleton {\\n    display: block;\\n    height: 12px;\\n    border-radius: var(--ca-radius-pill);\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-muted, #667085) 22%, transparent);\\n    background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ca5ss4b-runtime-panel, #ffffff) 55%, transparent), transparent);\\n    background-size: 220% 100%;\\n    background-repeat: no-repeat;\\n    animation: ca-shimmer var(--motion-duration-skeleton, 1400ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)) infinite;\\n  }\\n  .cedros-academy .ca-skeleton--title {\\n    width: 54%;\\n    height: 18px;\\n    margin-bottom: 10px;\\n  }\\n  .cedros-academy .ca-skeleton--line { width: 88%; margin-bottom: 8px; }\\n  .cedros-academy .ca-skeleton--short { width: 62%; }\\n  .cedros-academy .ca-course-layout {\\n    display: grid;\\n    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);\\n    gap: 14px;\\n    align-items: start;\\n  }\\n  .cedros-academy .ca-course-card,\\n  .cedros-academy .ca-course-primary,\\n  .cedros-academy .ca-course-secondary,\\n  .cedros-academy .ca-player {\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    border-color: var(--ca5ss4b-runtime-border, #d0d5dd);\\n  }\\n  .cedros-academy .ca-player { border-radius: var(--ca-radius-lg); }\\n  .cedros-academy .ca-meta-list {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));\\n    gap: 8px;\\n    margin: 12px 0;\\n  }\\n  .cedros-academy .ca-meta-list div {\\n    display: grid;\\n    gap: 2px;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 8px;\\n  }\\n  .cedros-academy .ca-meta-list dt {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n  }\\n  .cedros-academy .ca-meta-list dd { margin: 0; font-weight: 650; }\\n  .cedros-academy .ca-public-actions {\\n    display: flex;\\n    gap: 8px;\\n    align-items: center;\\n    flex-wrap: wrap;\\n  }\\n  .cedros-academy .ca-progress {\\n    position: relative;\\n    display: grid;\\n    gap: 6px;\\n    margin: 10px 0;\\n  }\\n  .cedros-academy .ca-progress::before,\\n  .cedros-academy .ca-progress > span {\\n    display: block;\\n    height: 8px;\\n    border-radius: var(--ca-radius-pill);\\n  }\\n  .cedros-academy .ca-progress::before {\\n    content: \\\"\\\";\\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\\n  }\\n  .cedros-academy .ca-progress > span {\\n    position: absolute;\\n    top: 0;\\n    left: 0;\\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    /* Width is a layout property, so it keeps the standard curve. A spring\\n       here would relayout every frame and overshoot the end of the track. */\\n    transition: width var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy .ca-progress strong { font-size: 12px; color: var(--ca5ss4b-runtime-muted, #667085); }\\n  .cedros-academy .ca-curriculum {\\n    display: grid;\\n    gap: 10px;\\n  }\\n  .cedros-academy .ca-curriculum ul {\\n    display: grid;\\n    gap: 6px;\\n    margin: 0;\\n    padding-left: 18px;\\n  }\\n  .cedros-academy .ca-curriculum li span {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n  }\\n  .cedros-academy .ca-instructor-list,\\n  .cedros-academy .ca-instructor-summary {\\n    display: grid;\\n    gap: 6px;\\n  }\\n  .cedros-academy .ca-instructor-list {\\n    border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    padding-top: 12px;\\n  }\\n  .cedros-academy .ca-instructor-summary p { margin-bottom: 8px; }\\n  .cedros-academy .ca-player-layout {\\n    display: grid;\\n    grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr);\\n    gap: 16px;\\n    align-items: start;\\n    margin-top: 16px;\\n  }\\n  .cedros-academy .ca-player-nav {\\n    display: grid;\\n    gap: 12px;\\n  }\\n  .cedros-academy .ca-player-nav ol {\\n    display: grid;\\n    gap: 6px;\\n    margin: 0;\\n    padding: 0;\\n    list-style: none;\\n  }\\n  .cedros-academy .ca-player-lesson {\\n    position: relative;\\n    display: grid;\\n    gap: 3px;\\n    width: 100%;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 9px 10px;\\n    background: transparent;\\n    color: inherit;\\n    cursor: pointer;\\n    font: inherit;\\n    text-align: left;\\n    transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\\n      border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy .ca-player-lesson::before {\\n    content: \\\"\\\";\\n    position: absolute;\\n    top: 8px;\\n    bottom: 8px;\\n    left: -1px;\\n    width: 3px;\\n    border-radius: var(--ca-radius-pill);\\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    transform: scaleY(0);\\n    transition: transform var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy .ca-player-lesson[aria-current=\\\"step\\\"] {\\n    border-color: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\\n  }\\n  .cedros-academy .ca-player-lesson[aria-current=\\\"step\\\"]::before { transform: scaleY(1); }\\n  .cedros-academy .ca-player-lesson span:last-child {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n  }\\n  .cedros-academy .ca-player-lesson:focus-visible {\\n    outline: 2px solid var(--ca5ss4b-runtime-action-bg, var(--ca5ss4b-runtime-accent, #2f6c7d));\\n    outline-offset: 2px;\\n  }\\n  .cedros-academy .ca-lesson {\\n    min-width: 0;\\n    border-left: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    padding-left: 16px;\\n  }\\n  .cedros-academy .ca-lesson-body {\\n    display: grid;\\n    gap: 10px;\\n    margin: 14px 0 18px;\\n  }\\n  .cedros-academy .ca-lesson-body > * { margin: 0; }\\n  .cedros-academy .ca-lesson-body p { white-space: pre-wrap; }\\n  .cedros-academy .ca-lesson-body :is(h4, h5, h6) { font-weight: 600; line-height: 1.4; }\\n  .cedros-academy .ca-lesson-body h4 { font-size: 20px; }\\n  .cedros-academy .ca-lesson-body h5 { font-size: 18px; }\\n  .cedros-academy .ca-lesson-body h6 { font-size: 16px; }\\n  .cedros-academy .ca-certificate {\\n    display: grid;\\n    gap: 16px;\\n    border-radius: var(--ca-radius-lg);\\n    width: min(100%, 760px);\\n    margin: 0 auto;\\n    padding: clamp(24px, 5vw, 56px);\\n    border-width: 2px;\\n    text-align: center;\\n  }\\n  .cedros-academy .ca-certificate-heading {\\n    display: flex;\\n    gap: 16px;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    text-align: left;\\n  }\\n  .cedros-academy .ca-certificate-heading h3 {\\n    margin: 5px 0 0;\\n    font-size: clamp(24px, 4vw, 38px);\\n  }\\n  .cedros-academy .ca-certificate-statement { margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); }\\n  .cedros-academy .ca-certificate-holder { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; }\\n  .cedros-academy .ca-certificate-details {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\\n    gap: 10px;\\n    margin: 8px 0 0;\\n    text-align: left;\\n  }\\n  .cedros-academy .ca-certificate-details div {\\n    display: grid;\\n    gap: 4px;\\n    min-width: 0;\\n    padding-top: 10px;\\n    border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n  }\\n  .cedros-academy .ca-certificate-details dt { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; }\\n  .cedros-academy .ca-certificate-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }\\n  .cedros-academy .ca-certificate-actions { justify-content: center; }\\n  /* Outermost wrapper a public stack navigator returns once it has pushed a\\n     detail view. It carries the scope root so the shared-axis rules reach it,\\n     which lets the back control and the pushed view travel as one view. */\\n  .cedros-academy.ca-public-stack {\\n    display: grid;\\n    gap: 12px;\\n  }\\n  .cedros-academy.ca-public-stack > .ca-button { justify-self: start; }\\n  .cedros-academy .ca-lookup-form {\\n    display: grid;\\n    grid-template-columns: minmax(0, 1fr) auto;\\n    gap: 10px;\\n    align-items: end;\\n  }\\n  @media (max-width: 760px) {\\n    .cedros-academy .ca-card-grid,\\n    .cedros-academy .ca-card-grid--compact {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy .ca-course-layout,\\n    .cedros-academy .ca-player-layout,\\n    .cedros-academy .ca-lookup-form { grid-template-columns: 1fr; }\\n    .cedros-academy .ca-lesson { border-left: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding: 16px 0 0; }\\n    .cedros-academy .ca-button { width: fit-content; max-width: 100%; white-space: normal; text-align: center; }\\n  }\\n  @media print {\\n    /* Printed output must never capture a half-finished reveal. */\\n    .cedros-academy *,\\n    .cedros-academy *::before,\\n    .cedros-academy *::after {\\n      animation: none !important;\\n      transition: none !important;\\n    }\\n    .cedros-academy .ca-check path { stroke-dashoffset: 0; }\\n    body[data-ca5ss4b-academy-print-certificate] * { visibility: hidden !important; }\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate,\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate * { visibility: visible !important; }\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate {\\n      position: absolute;\\n      inset: 0;\\n      width: 100%;\\n      max-width: none;\\n      border-color: currentColor;\\n      box-shadow: none;\\n    }\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate-actions,\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate > .ca-muted { display: none !important; }\\n  }\\n.cedros-academy-admin {\\n    --ca-admin-bg: var(--cd-bg, oklch(1 0 0));\\n    --ca-admin-fg: var(--cd-fg, oklch(0.145 0 0));\\n    --ca-admin-card-bg: var(--cd-card-bg, oklch(1 0 0));\\n    --ca-admin-muted: var(--cd-muted, oklch(0.556 0 0));\\n    --ca-admin-muted-bg: var(--cd-muted-bg, oklch(0.97 0 0));\\n    --ca-admin-accent: var(--cd-accent, oklch(0.97 0 0));\\n    --ca-admin-border: var(--cd-border, oklch(0.922 0 0));\\n    --ca-admin-primary: var(--cd-primary, oklch(0.205 0 0));\\n    --ca-admin-primary-fg: var(--cd-primary-fg, oklch(0.985 0 0));\\n    --ca-admin-ring: var(--cd-ring, oklch(0.556 0 0));\\n    --ca-admin-success: var(--cd-success, oklch(0.627 0.194 149.214));\\n    --ca-admin-warning: var(--cd-warning, oklch(0.769 0.188 70.08));\\n    --ca-admin-warning-fg: var(--cd-warning-fg, oklch(0.52 0.12 75));\\n    --ca-admin-error: var(--cd-error, oklch(0.577 0.245 27.325));\\n    --ca-admin-danger-bg: var(--cd-danger-bg, oklch(0.5 0.22 27.325));\\n    --ca-admin-danger-fg: var(--cd-danger-fg, oklch(0.985 0 0));\\n    --ca-admin-info: var(--cd-info, oklch(0.546 0.215 262.881));\\n    --ca-admin-input-bg: var(--cd-input-bg, transparent);\\n    --ca-radius-sm: var(--cd-radius-control, calc(var(--cd-radius, 8px) - 1px));\\n    --ca-radius-md: var(--cd-radius, 8px);\\n    --ca-radius-lg: var(--admin-radius, 12px);\\n    --ca-radius-pill: 999px;\\n    --ca-admin-radius: var(--ca-radius-md);\\n    --ca-admin-dialog-radius: var(--admin-radius, 12px);\\n    --ca-admin-shadow: var(--cd-shadow, 0 1px 2px color-mix(in srgb, var(--ca-admin-fg) 8%, transparent));\\n    color: var(--ca-admin-fg); display: grid; gap: 1rem; width: 100%; max-width: var(--cd-container-page, min(100%, 1360px));\\n    min-width: 0; container: cedros-academy-admin / inline-size; overflow-wrap: anywhere; font: inherit; font-size: 0.875rem;\\n  }\\n  .cedros-academy-admin, .cedros-academy-admin * { box-sizing: border-box; }\\n  .cedros-academy-admin > *, .cedros-academy-admin .ca-grid,\\n  .cedros-academy-admin .ca-card-grid, .cedros-academy-admin .cedros-data-table-wrap { max-width: 100%; min-width: 0; }\\n  .cedros-academy-admin p, .cedros-academy-admin h2,\\n  .cedros-academy-admin h3, .cedros-academy-admin h4 { margin: 0; letter-spacing: 0; }\\n  .cedros-academy-admin p { line-height: 1.5; }\\n  .cedros-academy-admin .ca-muted,\\n  .cedros-academy-admin .cedros-data-card__subtitle { color: var(--ca-admin-muted); font-size: 0.8125rem; }\\n  .cedros-academy-admin .ca-page-header { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }\\n  .cedros-academy-admin .cedros-data__header-text { display: grid; gap: 0.25rem; max-width: 60ch; min-width: min(100%, 18rem); }\\n  .cedros-academy-admin .cedros-data__title { font-size: 1.15rem; line-height: 1.25; font-weight: 600; }\\n  .cedros-academy-admin .cedros-data-actions,\\n  .cedros-academy-admin .ca-row-actions { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }\\n  .cedros-academy-admin .ca-grid,\\n  .cedros-academy-admin .cedros-data-grid,\\n  .cedros-academy-admin .cedros-data-summary-grid {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));\\n    gap: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-grid--two {\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));\\n  }\\n  .cedros-academy-admin .ca-grid--metrics {\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));\\n  }\\n  .cedros-academy-admin .ca-settings-column {\\n    display: grid;\\n    gap: 1rem;\\n    width: min(100%, var(--cd-container-settings, 45rem));\\n  }\\n  .cedros-academy-admin .ca-access-operations > .cedros-data-card__header { flex-wrap: wrap; }\\n  .cedros-academy-admin .ca-access-operations,\\n  .cedros-academy-admin .ca-access-filters { min-width: 0; }\\n  .cedros-academy-admin .ca-card,\\n  .cedros-academy-admin .cedros-data-card,\\n  .cedros-academy-admin.cedros-data-card {\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    background: var(--ca-admin-card-bg);\\n    box-shadow: var(--ca-admin-shadow);\\n  }\\n  .cedros-academy-admin .ca-card,\\n  .cedros-academy-admin.ca-card,\\n  .cedros-academy-admin .cedros-data-card__body {\\n    padding: 0.9rem 1rem;\\n  }\\n  .cedros-academy-admin .ca-card + .ca-card, .cedros-academy-admin .ca-notice + .ca-card,\\n  .cedros-academy-admin .ca-card + .ca-notice { margin-top: 0; }\\n  .cedros-academy-admin .ca-card-header,\\n  .cedros-academy-admin .cedros-data-card__header {\\n    display: flex;\\n    gap: 0.75rem;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    margin-bottom: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-card h3,\\n  .cedros-academy-admin .ca-card h4,\\n  .cedros-academy-admin .cedros-data-card__title {\\n    font-size: 0.875rem;\\n    line-height: 1.25;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .ca-button,\\n  .cedros-academy-admin .cedros-data-btn {\\n    display: inline-flex;\\n    min-height: 2rem;\\n    align-items: center;\\n    justify-content: center;\\n    gap: 0.5rem;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-sm);\\n    background: transparent;\\n    color: var(--ca-admin-fg);\\n    padding: 0 0.75rem;\\n    cursor: pointer;\\n    font: inherit;\\n    font-size: 0.8125rem;\\n    font-weight: 500;\\n    line-height: 1;\\n    text-decoration: none;\\n    white-space: nowrap;\\n    transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\\n      border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\\n      box-shadow var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), transform var(--motion-duration-micro, 100ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin .cedros-data-btn--sm,\\n  .cedros-academy-admin .ca-button--sm,\\n  .cedros-academy-admin .cedros-data-row-actions .cedros-data-btn {\\n    min-height: 2rem;\\n    padding-inline: 0.5rem;\\n  }\\n  .cedros-academy-admin .ca-button:not(:disabled):hover,\\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):hover {\\n    background: var(--ca-admin-accent);\\n    transform: translateY(-1px);\\n  }\\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):hover:not(:focus-visible) {\\n    box-shadow: var(--ca-admin-shadow);\\n  }\\n  /* The press itself stays on the micro duration so the control answers the\\n     finger immediately; only the release is allowed to spring back. */\\n  .cedros-academy-admin .ca-button:not(:disabled):active,\\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):active {\\n    transform: scale(0.98);\\n    transition: transform var(--motion-duration-micro, 100ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin .ca-button-primary,\\n  .cedros-academy-admin .cedros-data-btn--primary {\\n    border-color: var(--ca-admin-primary);\\n    background: var(--ca-admin-primary);\\n    color: var(--ca-admin-primary-fg);\\n  }\\n  .cedros-academy-admin .ca-button-primary:not(:disabled):hover,\\n  .cedros-academy-admin .cedros-data-btn--primary:not(:disabled):hover {\\n    background: color-mix(in srgb, var(--ca-admin-primary) 90%, var(--ca-admin-primary-fg));\\n    color: var(--ca-admin-primary-fg);\\n  }\\n  .cedros-academy-admin .ca-button-danger,\\n  .cedros-academy-admin .cedros-data-btn--danger {\\n    border-color: var(--ca-admin-danger-bg);\\n    background: var(--ca-admin-danger-bg);\\n    color: var(--ca-admin-danger-fg);\\n  }\\n  .cedros-academy-admin .ca-button-danger:not(:disabled):hover,\\n  .cedros-academy-admin .cedros-data-btn--danger:not(:disabled):hover {\\n    background: color-mix(in srgb, var(--ca-admin-danger-bg) 90%, var(--ca-admin-fg));\\n    color: var(--ca-admin-danger-fg);\\n  }\\n  .cedros-academy-admin .cedros-data-btn--ghost {\\n    border-color: transparent;\\n    background: transparent;\\n  }\\n  .cedros-academy-admin .ca-button:focus-visible,\\n  .cedros-academy-admin a.ca-button:focus-visible,\\n  .cedros-academy-admin .cedros-data-btn:focus-visible,\\n  .cedros-academy-admin .cedros-data-input:focus-visible,\\n  .cedros-academy-admin .cedros-data-select:focus-visible,\\n  .cedros-academy-admin .cedros-data-textarea:focus-visible {\\n    outline: none;\\n    border-color: var(--ca-admin-ring);\\n    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca-admin-ring) 14%, transparent);\\n  }\\n  .cedros-academy-admin .ca-button[disabled],\\n  .cedros-academy-admin .cedros-data-btn[disabled] {\\n    cursor: not-allowed;\\n    opacity: 0.5;\\n    transform: none;\\n  }\\n  .cedros-academy-admin .ca-field,\\n  .cedros-academy-admin .cedros-data-field {\\n    display: grid;\\n    gap: 0.25rem;\\n    align-content: start;\\n    margin: 0 0 0.75rem;\\n  }\\n  .cedros-academy-admin .cedros-data-label {\\n    color: var(--ca-admin-fg);\\n    font-size: 0.8125rem;\\n    font-weight: 500;\\n  }\\n  .cedros-academy-admin .cedros-data-input,\\n  .cedros-academy-admin .cedros-data-select,\\n  .cedros-academy-admin .cedros-data-textarea {\\n    width: 100%;\\n    min-height: 2.25rem;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 0 0.75rem;\\n    background: var(--ca-admin-input-bg);\\n    color: var(--ca-admin-fg);\\n    font: inherit;\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-data-textarea {\\n    min-height: 5.5rem;\\n    padding-block: 0.5rem;\\n    resize: vertical;\\n  }\\n  .cedros-academy-admin .cedros-data-field__description,\\n  .cedros-academy-admin .ca-field-error {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-field-error { color: var(--ca-admin-error); }\\n  /* A horizontal table scroller keeps its fling to its own axis, so reaching\\n     the last column never chains into the host page or the browser's\\n     back-navigation gesture. Workbench tables scroll inside a plain hairline\\n     frame; no gradient edge shadows. */\\n  .cedros-academy-admin .cedros-data-table-wrap {\\n    /* Positioned so visually hidden cell labels clip with the scroller. */\\n    position: relative;\\n    container: cedros-academy-table / inline-size;\\n    overflow-x: auto;\\n    overscroll-behavior-x: contain;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-sm);\\n    background-color: var(--ca-admin-card-bg);\\n  }\\n  .cedros-academy-admin .ca-table {\\n    width: 100%;\\n    min-width: 45rem;\\n    border-collapse: collapse;\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .ca-table th,\\n  .cedros-academy-admin .ca-table td {\\n    border-bottom: 1px solid var(--ca-admin-border);\\n    padding: 0.55rem 0.75rem;\\n    text-align: left;\\n    vertical-align: top;\\n  }\\n  .cedros-academy-admin .ca-table th {\\n    background: color-mix(in srgb, var(--ca-admin-bg) 90%, var(--ca-admin-accent) 10%);\\n    color: var(--ca-admin-muted);\\n    font-size: 0.6875rem;\\n    font-weight: 600;\\n    letter-spacing: 0.04em;\\n    text-transform: uppercase;\\n  }\\n  .cedros-academy-admin .ca-table tr:last-child td { border-bottom: 0; }\\n  .cedros-academy-admin .ca-table td:nth-child(n + 3) {\\n    font-variant-numeric: tabular-nums;\\n  }\\n  .cedros-academy-admin .ca-status,\\n  .cedros-academy-admin .cedros-data-pill {\\n    display: inline-flex;\\n    min-height: 1.375rem;\\n    align-items: center;\\n    border-radius: var(--ca-radius-pill);\\n    padding: 0.125rem 0.5rem;\\n    border: 1px solid color-mix(in srgb, var(--ca-admin-muted) 24%, transparent);\\n    background: var(--ca-admin-muted-bg);\\n    color: var(--ca-admin-fg);\\n    font-size: 0.6875rem;\\n    font-weight: 600;\\n    line-height: 1.2;\\n    white-space: nowrap;\\n  }\\n  .cedros-academy-admin .ca-status--success { background: color-mix(in srgb, var(--ca-admin-success) 14%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\\n  .cedros-academy-admin .ca-status--warning { background: color-mix(in srgb, var(--ca-admin-warning) 18%, var(--ca-admin-bg)); color: var(--ca-admin-warning-fg); }\\n  .cedros-academy-admin .ca-status--error { background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\\n  .cedros-academy-admin .ca-status--info { background: color-mix(in srgb, var(--ca-admin-info) 12%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\\n  .cedros-academy-admin .ca-notice,\\n  .cedros-academy-admin .cedros-data-status {\\n    display: grid;\\n    grid-template-columns: 1rem minmax(0, 1fr) auto;\\n    gap: 0.75rem;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem;\\n    background: var(--ca-admin-muted-bg);\\n  }\\n  .cedros-academy-admin .ca-notice strong { font-size: 0.875rem; font-weight: 600; }\\n  .cedros-academy-admin .ca-notice p { color: var(--ca-admin-fg); font-size: 0.8125rem; }\\n  .cedros-academy-admin .ca-notice__icon { margin-top: 0.125rem; }\\n  .cedros-academy-admin .ca-notice__copy { min-width: 0; }\\n  .cedros-academy-admin .ca-notice--success { background: color-mix(in srgb, var(--ca-admin-success) 14%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-success) 34%, transparent); }\\n  .cedros-academy-admin .ca-notice--warning { background: color-mix(in srgb, var(--ca-admin-warning) 18%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-warning) 34%, transparent); }\\n  .cedros-academy-admin .ca-notice--error { background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-error) 34%, transparent); }\\n  .cedros-academy-admin .ca-notice--info { background: color-mix(in srgb, var(--ca-admin-info) 12%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-info) 34%, transparent); }\\n  .cedros-academy-admin .ca-empty,\\n  .cedros-academy-admin .cedros-data-empty {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-data-empty-state {\\n    display: grid;\\n    place-items: center;\\n    align-content: center;\\n    gap: 0.5rem;\\n    min-height: 9rem;\\n    border: 1px dashed color-mix(in srgb, var(--ca-admin-border) 72%, var(--ca-admin-muted));\\n    border-radius: var(--ca-admin-radius);\\n    padding: 1.5rem 1rem;\\n    text-align: center;\\n  }\\n  .cedros-academy-admin .cedros-data-empty-state strong {\\n    font-size: 0.875rem;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .cedros-data-empty-state p {\\n    max-width: 32rem;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .ca-skeleton-block {\\n    display: grid;\\n    gap: 0.5rem;\\n    min-height: 6rem;\\n    padding: 0.9rem 1rem;\\n  }\\n  .cedros-academy-admin .ca-skeleton {\\n    display: block;\\n    height: 0.75rem;\\n    border-radius: var(--ca-radius-pill);\\n    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ca-admin-muted) 18%, transparent), transparent);\\n    background-size: 220% 100%;\\n    animation: ca-admin-shimmer var(--motion-duration-skeleton, 1400ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)) infinite;\\n  }\\n  .cedros-academy-admin .ca-skeleton--title { width: 54%; height: 1rem; }\\n  .cedros-academy-admin .ca-skeleton--line { width: 88%; }\\n  .cedros-academy-admin .ca-skeleton--short { width: 62%; }\\n  .cedros-academy-admin .ca-lesson-body :is(h4, h5, h6) {\\n    margin: 0;\\n    font-size: 0.875rem;\\n    line-height: 1.5;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .ca-metric,\\n  .cedros-academy-admin .cedros-data-metric {\\n    display: grid;\\n    align-content: start;\\n    gap: 0.25rem;\\n    min-height: 6rem;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem;\\n    background: var(--ca-admin-card-bg);\\n  }\\n  .cedros-academy-admin .cedros-data-metric__label {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.6875rem;\\n    font-weight: 600;\\n    letter-spacing: 0.04em;\\n    text-transform: uppercase;\\n  }\\n  .cedros-academy-admin .cedros-data-metric__value {\\n    font-size: 1.5rem;\\n    line-height: 1;\\n    font-weight: 700;\\n    font-variant-numeric: tabular-nums;\\n  }\\n  .cedros-academy-admin .ca-checklist {\\n    display: grid;\\n    gap: 0.5rem;\\n    margin: 0;\\n    padding: 0;\\n    list-style: none;\\n  }\\n  /* Workbench step list: state icon + label + muted detail; the icon shape,\\n     not only its tone, distinguishes done from blocked. */\\n  .cedros-academy-admin .ca-checklist li {\\n    display: grid;\\n    grid-template-columns: 1rem minmax(0, 1fr);\\n    column-gap: 0.5rem;\\n    row-gap: 0.125rem;\\n  }\\n  .cedros-academy-admin .ca-checklist li::before {\\n    content: \\\"\\\";\\n    grid-row: 1 / span 2;\\n    width: 1rem;\\n    height: 1rem;\\n    margin-top: 0.125rem;\\n    background-color: var(--ca-admin-success);\\n    /* Lucide circle-check. */\\n    mask: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E\\\") center / 1rem no-repeat;\\n  }\\n  .cedros-academy-admin .ca-checklist li[data-state=\\\"blocked\\\"]::before {\\n    background-color: var(--ca-admin-warning-fg);\\n    /* Lucide circle-alert. */\\n    mask-image: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4m0 4h.01'/%3E%3C/svg%3E\\\");\\n  }\\n  .cedros-academy-admin .ca-checklist strong {\\n    font-size: 0.8125rem;\\n    font-weight: 500;\\n  }\\n  .cedros-academy-admin .ca-checklist span {\\n    grid-column: 2;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-autosave-status {\\n    display: inline-flex;\\n    min-height: 1.5rem;\\n    align-items: center;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-pill);\\n    padding: 0.125rem 0.625rem;\\n    background: var(--ca-admin-muted-bg);\\n    color: var(--ca-admin-fg);\\n    font-size: 0.75rem;\\n  }\\n  .cedros-academy-admin .cedros-autosave-status--failed,\\n  .cedros-academy-admin .cedros-autosave-status--conflict,\\n  .cedros-academy-admin .cedros-autosave-status--offline {\\n    background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg));\\n    color: var(--ca-admin-fg);\\n  }\\n  .cedros-academy-admin .cedros-autosave-banner {\\n    display: flex;\\n    gap: 0.5rem;\\n    align-items: center;\\n    justify-content: space-between;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem;\\n    margin-bottom: 0.75rem;\\n    background: var(--ca-admin-muted-bg);\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__overlay {\\n    width: 100%;\\n    height: 100%;\\n    max-width: none;\\n    max-height: none;\\n    margin: 0;\\n    border: 0;\\n    color: inherit;\\n    position: fixed;\\n    inset: 0;\\n    display: grid;\\n    place-items: center;\\n    padding: 1rem;\\n    background: rgb(0 0 0 / 0.45);\\n    z-index: var(--z-modal, 1000);\\n  }\\n  .cedros-academy-admin .cedros-data-dialog {\\n    max-height: min(85dvh, 44rem);\\n    overflow: hidden;\\n    display: grid;\\n    grid-template-rows: auto minmax(0, 1fr) auto;\\n    gap: 1rem;\\n    width: min(100%, 420px);\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-dialog-radius);\\n    padding: 1.25rem;\\n    background: var(--ca-admin-card-bg);\\n    box-shadow: 0 10px 25px -4px color-mix(in srgb, var(--ca-admin-fg) 12%, transparent), 0 4px 6px -1px color-mix(in srgb, var(--ca-admin-fg) 10%, transparent);\\n    animation: ca-admin-dialog-in var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__heading {\\n    position: relative;\\n    display: grid;\\n    gap: 0.25rem;\\n    padding-right: 2rem;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__close {\\n    position: absolute; top: 0; right: 0; width: 2rem; min-height: 2rem; padding: 0;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__title {\\n    font-size: 1.15rem;\\n    line-height: 1.25;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__description {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__body {\\n    min-height: 0;\\n    overflow: auto;\\n    display: grid;\\n    gap: 1rem;\\n    padding: 2px;\\n  }\\n  .cedros-academy-admin .ca-filtered-empty {\\n    /* Recovery belongs to the visible frame, even when its data columns scroll. */\\n    position: sticky;\\n    inset-inline-start: 0.75rem;\\n    inline-size: calc(100cqw - 1.5rem);\\n    display: grid;\\n    justify-items: center;\\n    gap: 0.5rem;\\n    padding: 1rem;\\n    color: var(--ca-admin-muted);\\n  }\\n  .cedros-academy-admin .ca-sr-only {\\n    position: absolute;\\n    width: 1px;\\n    height: 1px;\\n    padding: 0;\\n    margin: -1px;\\n    overflow: hidden;\\n    clip-path: inset(50%);\\n    white-space: nowrap;\\n    border: 0;\\n  }\\n  .cedros-academy-admin .cedros-data-table-wrap:focus-visible {\\n    outline: 2px solid var(--ca-admin-ring);\\n    outline-offset: 2px;\\n  }\\n  .cedros-academy-admin .ca-dialog-impact {\\n    display: grid;\\n    gap: 0.25rem;\\n    margin: 0;\\n    padding-left: 1rem;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .ca-dialog-actions {\\n    display: flex;\\n    gap: 0.5rem;\\n    justify-content: flex-end;\\n    flex-wrap: wrap;\\n  }\\n  .cedros-academy-admin.ca-dashboard-card {\\n    display: grid;\\n    gap: 0.75rem;\\n  }\\n  .cedros-academy-admin .cedros-back-breadcrumb {\\n    width: fit-content;\\n    border: 0;\\n    padding: 0;\\n    background: transparent;\\n    color: var(--ca-admin-primary);\\n    cursor: pointer;\\n    font: inherit;\\n    font-size: 0.8125rem;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .ca-course-workspace,\\n  .cedros-academy-admin .ca-curriculum-sections,\\n  .cedros-academy-admin .ca-disclosure__body {\\n    display: grid;\\n    gap: 1rem;\\n  }\\n  .cedros-academy-admin .ca-course-editor-grid {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));\\n    gap: 1rem;\\n    align-items: start;\\n  }\\n  .cedros-academy-admin .ca-curriculum-section {\\n    display: grid;\\n    gap: 0.75rem;\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 1rem;\\n  }\\n  .cedros-academy-admin .ca-curriculum-section:first-child {\\n    border-top: 0;\\n    padding-top: 0;\\n  }\\n  .cedros-academy-admin .ca-lesson-editor {\\n    display: grid;\\n    gap: 0.75rem;\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-learner-preview {\\n    margin-top: 1rem;\\n  }\\n  .cedros-academy-admin .ca-submission-preview {\\n    min-width: 18rem;\\n    max-width: 36rem;\\n  }\\n  .cedros-academy-admin .ca-submission-section,\\n  .cedros-academy-admin .ca-submission-lesson {\\n    display: grid;\\n    gap: 0.5rem;\\n  }\\n  .cedros-academy-admin .ca-submission-lesson {\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-submission-lesson h5 {\\n    margin: 0;\\n  }\\n  .cedros-academy-admin .ca-submission-lesson .ca-lesson-body {\\n    line-height: 1.6;\\n    overflow-wrap: anywhere;\\n  }\\n  .cedros-academy-admin .ca-preview-layout {\\n    display: grid;\\n    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);\\n    gap: 1rem;\\n  }\\n  .cedros-academy-admin .ca-preview-nav {\\n    display: grid;\\n    align-content: start;\\n    gap: 0.25rem;\\n  }\\n  /* Workbench nav-item recipe: muted at rest; accent fill, foreground and 500\\n     weight when current. No bar, border, inset ring or shadow. */\\n  .cedros-academy-admin .ca-preview-nav .ca-button {\\n    justify-content: flex-start;\\n    border-color: transparent;\\n    padding-left: 0.75rem;\\n    color: var(--ca-admin-muted);\\n    text-align: left;\\n  }\\n  .cedros-academy-admin .ca-preview-nav .ca-button:not(:disabled):hover { color: var(--ca-admin-fg); transform: none; box-shadow: none; }\\n  .cedros-academy-admin .ca-preview-nav [aria-current=\\\"page\\\"] {\\n    background: var(--ca-admin-accent);\\n    color: var(--ca-admin-fg);\\n  }\\n  .cedros-academy-admin .ca-preview-lesson {\\n    min-width: 0;\\n    border-left: 1px solid var(--ca-admin-border);\\n    padding-left: 1rem;\\n  }\\n  .cedros-academy-admin .ca-preview-lesson h4 {\\n    margin: 0.25rem 0 1rem;\\n  }\\n  .cedros-academy-admin .ca-preview-lesson .ca-lesson-body {\\n    line-height: 1.65;\\n    overflow-wrap: anywhere;\\n  }\\n  .cedros-academy-admin .ca-course-workspace-actions,\\n  .cedros-academy-admin .ca-lifecycle-actions,\\n  .cedros-academy-admin .ca-create-course__row {\\n    display: flex;\\n    gap: 0.75rem;\\n    align-items: end;\\n    flex-wrap: wrap;\\n  }\\n  .cedros-academy-admin .ca-lifecycle-actions {\\n    align-items: flex-start;\\n  }\\n  .cedros-academy-admin .ca-create-course__row > .ca-field {\\n    flex: 1 1 18rem;\\n  }\\n  /* Workbench disclosure: details/summary, no frame of its own. Inside a card it\\n     is separated by a hairline; page-level secondary work keeps the card frame. */\\n  .cedros-academy-admin .ca-disclosure {\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-disclosure.ca-secondary-work {\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem 1rem;\\n    background: var(--ca-admin-card-bg);\\n    box-shadow: var(--ca-admin-shadow);\\n  }\\n  .cedros-academy-admin .ca-disclosure[open] > summary { margin-bottom: 0.75rem; }\\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary {\\n    display: flex;\\n    flex-wrap: wrap;\\n    align-items: center;\\n    gap: 0.25rem 0.5rem;\\n    min-height: 2rem;\\n    list-style: none;\\n    cursor: pointer;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n    font-weight: 600;\\n    transition: color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin details > summary::-webkit-details-marker { display: none; }\\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary::before {\\n    content: \\\"\\\";\\n    flex: none;\\n    width: 1rem;\\n    height: 1rem;\\n    background-color: currentColor;\\n    /* Lucide chevron-right, painted with the summary color. */\\n    mask: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\\\") center / 1rem no-repeat;\\n    transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin details[open]:not(.ca-policy-edit) > summary::before { transform: rotate(90deg); }\\n  .cedros-academy-admin details > summary:hover,\\n  .cedros-academy-admin details[open] > summary { color: var(--ca-admin-fg); }\\n  @keyframes ca-admin-dialog-in {\\n    from { opacity: 0; transform: scale(0.98) translateY(8px); }\\n    to { opacity: 1; transform: scale(1) translateY(0); }\\n  }\\n  @keyframes ca-admin-shimmer {\\n    from { background-position: 120% 0; }\\n    to { background-position: -120% 0; }\\n  }\\n\\n  @keyframes ca-shimmer {\\n    from { background-position: 120% 0; }\\n    to { background-position: -120% 0; }\\n  }\\n  @keyframes ca-spin { to { transform: rotate(360deg); } }\\n  /* Recovery copy beside a skeleton waits 1s (Workbench \\u00A77 Loading) so an\\n     ordinary load never flashes it. Reduced motion removes the animation and\\n     therefore shows it immediately. */\\n  .cedros-academy .ca-delayed-reveal,\\n  .cedros-academy-admin .ca-delayed-reveal { animation: ca-delayed-reveal 1ms linear 1s both; }\\n  @keyframes ca-delayed-reveal { from { visibility: hidden; } to { visibility: visible; } }\\n  .cedros-academy .ca-progress-mark { display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: none; }\\n  .cedros-academy .ca-progress-mark > * { grid-area: 1 / 1; }\\n  .cedros-academy .ca-spinner {\\n    width: 1rem; height: 1rem;\\n    border: 2px solid color-mix(in srgb, currentColor 30%, transparent);\\n    border-top-color: currentColor;\\n    border-radius: var(--ca-radius-pill);\\n    animation: ca-spin calc(var(--motion-duration-modal, 240ms) * 3) linear infinite;\\n  }\\n  .cedros-academy .ca-check { width: 1rem; height: 1rem; }\\n  .cedros-academy-admin .ca-view-stack { display: grid; gap: 1rem; min-width: 0; }\\n  .cedros-academy-admin .ca-view-stack > * { max-width: 100%; min-width: 0; }\\n  @media (prefers-reduced-motion: reduce) {\\n    .cedros-academy *,\\n    .cedros-academy *::before,\\n    .cedros-academy *::after,\\n    .cedros-academy-admin *,\\n    .cedros-academy-admin *::before,\\n    .cedros-academy-admin *::after,\\n    .cedros-academy-admin .ca-skeleton,\\n    .cedros-academy-admin .cedros-data-dialog {\\n      animation: none !important;\\n      transition: none !important;\\n    }\\n    /* ::details-content is a pseudo-element, so the * rules above cannot\\n       reach it and it needs its own cancellation. */\\n    .cedros-academy-admin .ca-disclosure::details-content {\\n      transition: none !important;\\n    }\\n    .cedros-academy .ca-player-lesson[aria-current=\\\"step\\\"]::before {\\n      transform: scaleY(1);\\n    }\\n    .cedros-academy .ca-check path {\\n      stroke-dashoffset: 0;\\n    }\\n    .cedros-academy-admin .ca-button:not(:disabled):hover,\\n    .cedros-academy-admin .cedros-data-btn:not(:disabled):hover,\\n    .cedros-academy .ca-course-card:hover {\\n      transform: none;\\n    }\\n  }\\n  @media (max-width: 767px) {\\n    .cedros-academy .ca-public-head,\\n    .cedros-academy .ca-card-header,\\n    .cedros-academy-admin .ca-card-header,\\n    .cedros-academy-admin .cedros-data-card__header,\\n    .cedros-academy-admin .ca-dialog-actions {\\n      flex-wrap: wrap;\\n    }\\n    .cedros-academy .ca-public-actions,\\n    .cedros-academy .ca-certificate-actions,\\n    .cedros-academy-admin .ca-row-actions,\\n    .cedros-academy-admin .ca-course-workspace-actions,\\n    .cedros-academy-admin .ca-lifecycle-actions {\\n      width: 100%;\\n      justify-content: flex-start;\\n    }\\n    .cedros-academy .ca-public-actions > .ca-button,\\n    .cedros-academy-admin .ca-course-workspace-actions > .ca-button,\\n    .cedros-academy-admin .ca-lifecycle-actions > .ca-button {\\n      flex: 1 1 auto;\\n    }\\n    .cedros-academy .ca-field input,\\n    .cedros-academy .ca-field textarea {\\n      font-size: 16px;\\n    }\\n    .cedros-academy-admin .ca-submission-preview {\\n      min-width: 0;\\n      width: 100%;\\n    }\\n    .cedros-academy-admin .ca-grid,\\n    .cedros-academy-admin .ca-grid--two,\\n    .cedros-academy-admin .ca-grid--metrics,\\n    .cedros-academy-admin .cedros-data-summary-grid {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy-admin .ca-course-editor-grid {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy-admin .ca-preview-layout {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy-admin .ca-preview-lesson {\\n      border-top: 1px solid var(--ca-admin-border);\\n      border-left: 0;\\n      padding-top: 1rem;\\n      padding-left: 0;\\n    }\\n    .cedros-academy-admin .ca-page-header,\\n    .cedros-academy-admin .cedros-data-actions {\\n      align-items: stretch;\\n      justify-content: flex-start;\\n    }\\n    .cedros-academy-admin .ca-button,\\n    .cedros-academy-admin .cedros-data-btn {\\n      min-height: 2.75rem;\\n      max-width: 100%;\\n      white-space: normal;\\n      text-align: center;\\n    }\\n    .cedros-academy-admin .ca-table {\\n      min-width: 42.5rem;\\n      font-size: 0.8125rem;\\n    }\\n  }\\n\\n.cedros-academy-admin fieldset.ca-edit-fields {\\n  min-width: 0;\\n  margin: 0;\\n}\\n.cedros-academy-admin fieldset.ca-ai-draft-fields,\\n.cedros-academy-admin fieldset.ca-feedback-controls,\\n.cedros-academy-admin fieldset.ca-course-editor-grid,\\n.cedros-academy-admin fieldset.ca-settings-column,\\n.cedros-academy-admin fieldset.ca-create-course__row,\\n.cedros-academy-admin fieldset.ca-grant-fields {\\n  padding: 0;\\n  border: 0;\\n}\\n.cedros-academy-admin .ca-grant-fields {\\n  display: grid;\\n  gap: 1rem;\\n  width: min(100%, var(--cd-container-settings, 45rem));\\n}\\n.cedros-academy-admin .ca-curriculum-editor .cedros-data-field,\\n.cedros-academy-admin .ca-announcements .cedros-data-field {\\n  max-width: var(--cd-container-settings, 45rem);\\n}\\n\\n/* Public learning surfaces share the site's theme, with space for course summaries. */\\n.cedros-academy.ca-public { font-family: inherit; }\\n.cedros-academy.ca-public.ca-public-shell { gap: 28px; padding-block: 28px 48px; }\\n.cedros-academy.ca-public .ca-public-head { gap: 14px; padding-block: 12px; }\\n.cedros-academy.ca-public .ca-public-head h2 { font-size: clamp(32px, 4cqi, 48px); line-height: 1.12; }\\n.cedros-academy.ca-public .ca-public-head p { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 17px; margin: 0; max-width: 640px; }\\n.cedros-academy.ca-public .ca-card-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }\\n.cedros-academy.ca-public .ca-course-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--ca-radius-lg); gap: 16px; margin: 0; }\\n.cedros-academy.ca-public .ca-course-card h3 { font-size: 24px; line-height: 1.25; }\\n.cedros-academy.ca-public .ca-course-card > p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-course-card .ca-card-header { margin: 0; align-items: center; }\\n.cedros-academy.ca-public .ca-course-card .ca-public-actions { margin-top: auto; padding-top: 8px; }\\n.cedros-academy.ca-public .ca-meta-list { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0; }\\n.cedros-academy.ca-public .ca-meta-list div { border: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: var(--ca-radius-sm); padding: 12px 0 0; gap: 5px; }\\n.cedros-academy.ca-public .ca-meta-list dd { font-size: 14px; text-transform: capitalize; }\\n.cedros-academy.ca-public .ca-lookup-form { padding: 20px; gap: 16px; border-radius: var(--ca-radius-lg); }\\n.cedros-academy.ca-public .ca-lookup-form .ca-field { margin-bottom: 0; }\\n.cedros-academy.ca-public .ca-field input, .cedros-academy.ca-public .ca-field select { min-height: 46px; border-radius: var(--ca-radius-md); color: var(--ca5ss4b-runtime-text, #171717); background: var(--ca5ss4b-runtime-panel, #fff); border-color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-button { min-height: 44px; padding: 10px 18px; border-radius: var(--ca-radius-md); }\\n.cedros-academy.ca-public .ca-course-primary, .cedros-academy.ca-public .ca-course-secondary { padding: 24px; border-radius: var(--ca-radius-lg); }\\n.cedros-academy.ca-public .ca-course-layout { gap: 24px; }\\n.cedros-academy.ca-public .ca-lesson-body { font-size: 17px; line-height: 1.75; max-width: 70ch; }\\n@media (max-width: 680px) {\\n .cedros-academy.ca-public .ca-card-grid { grid-template-columns: 1fr; }\\n .cedros-academy.ca-public .ca-course-card { padding: 20px; }\\n .cedros-academy.ca-public.ca-public-shell { gap: 20px; padding-block: 20px 32px; }\\n}\\n\\n.cedros-academy.ca-public .ca-course-artwork { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--ca-radius-sm); }\\n.cedros-academy.ca-public .ca-course-card { grid-template-columns: minmax(0, 1fr); }\\n.cedros-academy.ca-public .ca-course-card .ca-course-artwork { max-height: 260px; background: var(--ca5ss4b-runtime-bg, #fff); }\\n.cedros-academy.ca-public .ca-open-course { align-items: start; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }\\n.cedros-academy.ca-public .ca-open-outline { display: grid; min-width: 0; padding: 16px; gap: 24px; border-radius: var(--ca-radius-lg); }\\n.cedros-academy.ca-public .ca-open-outline .ca-course-artwork { width: 100%; max-width: 220px; margin-inline: auto; }\\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav { display: grid; gap: 20px; border: 0; padding: 0; }\\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav section { display: grid; gap: 8px; min-width: 0; }\\n.cedros-academy.ca-public .ca-open-outline h3 { margin: 0; padding: 0 12px; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; line-height: 1.5; font-weight: 500; }\\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 8px 12px; border: 0; background: transparent; border-radius: var(--ca-radius-sm); color: inherit; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson:hover { background: color-mix(in srgb, currentColor 5%, transparent); }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson[aria-current=\\\"step\\\"] { background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 600; }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson::before { left: 0; width: 2px; background: currentColor; }\\n.cedros-academy.ca-public .ca-open-course .ca-open-lesson-number { flex: 0 0 20px; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }\\n.cedros-academy.ca-public .ca-open-course .ca-open-lesson-name { color: inherit; font-size: inherit; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-open-course > .ca-card { margin: 0; }\\n.cedros-academy.ca-public .ca-open-course .ca-lesson { min-width: 0; padding: 24px; }\\n.cedros-academy.ca-public .ca-open-course .ca-lesson > h3 { font-size: 24px; line-height: 1.3; }\\n.cedros-academy.ca-public .ca-open-course .ca-lesson-body { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }\\n@media (max-width: 760px) {\\n  .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-open-outline .ca-course-artwork { max-height: 180px; }\\n  .cedros-academy.ca-public .ca-open-course .ca-lesson { padding: 16px; }\\n}\\n\\n/* Content stacks are not toolbars: forms, grids and feedback use the full frame. */\\n.cedros-academy .ca-inline-stack,\\n.cedros-academy-admin .ca-inline-stack { display: grid; gap: 1rem; min-width: 0; width: 100%; }\\n.cedros-academy-admin span.ca-inline-stack { display: inline-flex; gap: 0.5rem; width: auto; align-items: center; }\\n.cedros-academy .ca-inline-stack > *,\\n.cedros-academy-admin .ca-inline-stack > * { min-width: 0; max-width: 100%; }\\n.cedros-academy .ca-inline-stack > .ca-button,\\n.cedros-academy-admin .ca-inline-stack > .ca-button { justify-self: start; }\\n.cedros-academy .ca-button:hover { background: var(--ca5ss4b-runtime-accent-soft, #f4f4f5); }\\n.cedros-academy .ca-button-primary:hover { background: color-mix(in srgb, var(--ca5ss4b-runtime-action-bg, #18181b) 90%, var(--ca5ss4b-runtime-action-fg, #fff)); }\\n.cedros-academy .ca-button { transition: background-color var(--motion-duration-fast, 160ms) ease; }\\n.cedros-academy .ca-field > span:first-child { color: var(--ca5ss4b-runtime-text, #171717); font-size: 0.875rem; font-weight: 500; }\\n.cedros-academy .ca-field :is(input, select, textarea):disabled { opacity: 0.5; cursor: not-allowed; }\\n.cedros-academy .ca-field [aria-invalid=\\\"true\\\"] { border-color: var(--ca5ss4b-runtime-error, #b42318); }\\n.cedros-academy .ca-player-lesson { min-height: 44px; }\\n.cedros-academy .ca-player-lesson:disabled { opacity: 0.5; cursor: not-allowed; }\\n.cedros-academy .ca-lesson-body a { color: var(--ca5ss4b-runtime-accent, #2f6c7d); text-decoration: underline; }\\n.cedros-academy a:focus-visible,\\n.cedros-academy summary:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\\n.cedros-academy .ca-certificate-heading { flex-wrap: wrap; }\\n.cedros-academy .ca-card-header > *,\\n.cedros-academy-admin .ca-card-header > * { min-width: 0; overflow-wrap: anywhere; }\\n.cedros-academy .ca-card-header > .ca-status,\\n.cedros-academy-admin .ca-card-header > .ca-status { flex: none; }\\n.cedros-academy .ca-meta-list div { border-radius: 0; }\\n.cedros-academy-admin a:not(.ca-button) { color: var(--cd-link, #2f6c7d); text-decoration: none; }\\n.cedros-academy-admin a:not(.ca-button):is(:hover, :focus-visible) { text-decoration: underline; }\\n.cedros-academy-admin .cedros-back-breadcrumb { color: var(--ca-admin-muted); font-weight: 500; }\\n.cedros-academy-admin :is(a, summary, .cedros-back-breadcrumb):focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 3px; }\\n.cedros-academy-admin .cedros-data-input[aria-invalid=\\\"true\\\"],\\n.cedros-academy-admin .cedros-data-select[aria-invalid=\\\"true\\\"],\\n.cedros-academy-admin .cedros-data-textarea[aria-invalid=\\\"true\\\"] { border-color: color-mix(in srgb, var(--ca-admin-error) 55%, var(--ca-admin-border)); }\\n.cedros-academy-admin :is(.cedros-data-input, .cedros-data-select, .cedros-data-textarea):disabled { opacity: 0.5; cursor: not-allowed; }\\n.cedros-academy-admin .cedros-data-dialog__overlay::backdrop { background: transparent; }\\n.cedros-academy-admin .ca-table :is(th, td).ca-numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }\\n.cedros-academy-admin .ca-table .ca-numeric .ca-skeleton { margin-left: auto; }\\n.cedros-academy-admin .ca-table td:first-child { overflow-wrap: anywhere; }\\n.cedros-academy-admin .ca-table th { white-space: nowrap; }\\n.cedros-academy-admin .ca-table .ca-button { white-space: nowrap; }\\n.cedros-academy-admin.ca-dashboard-card .ca-metric { border: 0; padding: 0; min-height: 0; background: transparent; box-shadow: none; }\\n.cedros-academy-admin .ca-card .ca-metric { box-shadow: none; }\\n.cedros-academy-admin .ca-course-workspace-actions { align-items: center; }\\n.cedros-academy-admin .ca-create-course__row { align-items: center; }\\n.cedros-academy-admin .ca-create-course__row > .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-preview-nav .ca-button { white-space: normal; height: auto; line-height: 1.45; padding-block: 0.5rem; }\\n.cedros-academy-admin .ca-row-menu { display: flex; justify-content: flex-end; }\\n.cedros-academy-admin .cedros-row-actions__trigger { width: 2rem; padding: 0; }\\n.cedros-academy-admin .cedros-dropdown-menu__content {\\n  position: fixed; inset: auto; margin: 0;\\n  width: max-content; min-width: 11rem; max-width: min(20rem, calc(100vw - 1rem));\\n  max-height: min(20rem, calc(100dvh - 1rem)); overflow: auto; padding: 0.25rem;\\n  border: 1px solid var(--ca-admin-border); border-radius: var(--ca-admin-radius);\\n  background: var(--ca-admin-card-bg); color: var(--ca-admin-fg);\\n  box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--ca-admin-fg) 10%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--ca-admin-fg) 8%, transparent);\\n  z-index: var(--z-dropdown, 50);\\n}\\n/* Shared host menu styles set display:flex, overriding the UA's closed state. */\\n.cedros-academy-admin .cedros-dropdown-menu__content[popover]:not(:popover-open) { display: none; }\\n.cedros-academy-admin .cedros-dropdown-menu__item {\\n  display: block; width: 100%; min-height: 2rem;\\n  border: 0; border-radius: calc(var(--cd-radius, 8px) - 4px);\\n  padding: 0 0.5rem; background: transparent; color: inherit;\\n  font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer;\\n  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\\n}\\n.cedros-academy-admin .cedros-dropdown-menu__item:hover,\\n.cedros-academy-admin .cedros-dropdown-menu__item:focus-visible { outline: none; background: var(--ca-admin-accent); }\\n.cedros-academy-admin .cedros-dropdown-menu__item--danger { color: var(--ca-admin-error); }\\n.cedros-academy-admin .cedros-dropdown-menu__item--danger:hover,\\n.cedros-academy-admin .cedros-dropdown-menu__item--danger:focus-visible { background: var(--ca-admin-danger-bg); color: var(--ca-admin-danger-fg); }\\n.cedros-academy-admin .cedros-dropdown-menu__item[aria-disabled=\\\"true\\\"] { opacity: 0.5; cursor: not-allowed; }\\n\\n.cedros-academy-admin .ca-feedback-item { padding: 1rem 0; border-top: 1px solid var(--ca-admin-border); overflow-wrap: anywhere; }\\n.cedros-academy-admin form { width: 100%; max-width: var(--cd-container-settings, 45rem); }\\n\\n.cedros-academy-admin .cedros-dropdown-menu__separator { height: 1px; margin: 0.25rem -0.25rem; background: var(--ca-admin-border); }\\n.cedros-academy .ca-card-grid > .ca-card { margin-top: 0; }\\n.cedros-academy.ca-public-stack > .ca-button { min-height: 44px; }\\n\\n/* Page Builder columns can be narrow even when the viewport is wide. */\\n@container cedros-academy (max-width: 760px) {\\n  .cedros-academy.ca-public .ca-card-grid,\\n  .cedros-academy.ca-public .ca-card-grid--compact,\\n  .cedros-academy.ca-public .ca-course-layout,\\n  .cedros-academy.ca-public .ca-player-layout,\\n  .cedros-academy.ca-public .ca-lookup-form,\\n  .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-lesson { border-left: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding: 16px 0 0; }\\n  .cedros-academy.ca-public .ca-card-header { flex-wrap: wrap; }\\n  .cedros-academy.ca-public .ca-public-actions { width: 100%; justify-content: flex-start; }\\n  .cedros-academy.ca-public .ca-public-actions > .ca-button { flex: 1 1 auto; }\\n  .cedros-academy.ca-public .ca-button { max-width: 100%; white-space: normal; text-align: center; }\\n  .cedros-academy.ca-public .ca-course-card { padding: 20px; }\\n  .cedros-academy.ca-public .ca-open-outline .ca-course-artwork { max-height: 180px; }\\n  .cedros-academy.ca-public .ca-open-course .ca-lesson { padding: 16px; }\\n}\\n\\n/* Loading reserves the composition of the job that follows it. */\\n.cedros-academy.ca-public .ca-skeleton--media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--ca-radius-sm); }\\n.cedros-academy.ca-public .ca-skeleton--field { width: 100%; height: 44px; }\\n.cedros-academy.ca-public .ca-loading-reader .ca-player-layout { min-height: 20rem; }\\n.cedros-academy.ca-public .ca-loading-outline { display: grid; gap: 16px; align-content: start; }\\n.cedros-academy.ca-public .ca-loading-form { width: min(100%, 720px); }\\n.cedros-academy.ca-public .ca-loading-reader .ca-inline-stack { align-content: start; }\\n@container cedros-academy (max-width: 680px) {\\n  .cedros-academy.ca-public .ca-loading-outline { display: none; }\\n}\\n\\n/* Discovery: consistent media and outcome-led comparison, scoped to course results. */\\n.cedros-academy.ca-public .ca-catalog-search { border: 0; padding: 0; max-width: 720px; align-items: end; }\\n.cedros-academy.ca-public .ca-catalog-search .ca-field { margin: 0; }\\n.cedros-academy.ca-public .ca-search-context { margin: 0; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-course-detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ca5ss4b-runtime-accent, #2f6c7d); font-weight: 600; text-decoration: none; }\\n.cedros-academy.ca-public .ca-course-detail-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\\n.cedros-academy.ca-public .ca-course-detail-link:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; border-radius: var(--ca-radius-sm); }\\n.cedros-academy.ca-public .ca-discovery-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto auto; gap: 16px; padding: 20px; align-content: start; }\\n.cedros-academy.ca-public .ca-course-card-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }\\n.cedros-academy.ca-public .ca-course-card-copy > .ca-card-header { flex-direction: column; align-items: start; gap: 8px; }\\n.cedros-academy.ca-public .ca-course-card-copy > p { margin: 0; font-size: 15px; line-height: 1.6; }\\n.cedros-academy.ca-public .ca-discovery-card > :is(.ca-course-summary, .ca-public-actions) { grid-column: 1 / -1; }\\n.cedros-academy.ca-public .ca-discovery-card > .ca-public-actions { padding-top: 0; }\\n.cedros-academy.ca-public .ca-discovery-card > .ca-course-summary { padding-top: 16px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { width: 112px; height: 112px; aspect-ratio: 1; max-height: none; }\\n.cedros-academy.ca-public .ca-skeleton-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-content: start; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton--media { width: 112px; height: 112px; }\\n.cedros-academy.ca-public .ca-skeleton-course-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }\\n.cedros-academy.ca-public .ca-skeleton-course-copy > .ca-skeleton { margin: 0; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton-course-facts { grid-column: 1 / -1; width: 65%; height: 16px; margin-top: 16px; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton-course-action { grid-column: 1 / -1; width: 104px; height: 20px; margin-block: 12px; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton { margin: 0; }\\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head { gap: 8px; padding-block: 0; }\\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head > .ca-kicker { display: none; }\\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); }\\n.cedros-academy.ca-public .ca-discovery-card h3 { font-size: 21px; }\\n.cedros-academy.ca-public .ca-course-title-link { text-decoration: none; }\\n.cedros-academy.ca-public .ca-course-title-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\\n.cedros-academy.ca-public .ca-course-title-link:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\\n.cedros-academy.ca-public .ca-course-card-copy > p.ca-muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy.ca-public .ca-course-artwork { aspect-ratio: 16 / 10; object-fit: cover; height: auto; max-height: none; }\\n.cedros-academy.ca-public .ca-course-artwork--missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ca5ss4b-runtime-muted, #667085); background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); font-size: 14px; padding: 20px; }\\n.cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing { gap: 8px; padding: 12px; font-size: 12px; text-align: center; background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); }\\n.cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing svg { width: 28px; height: 28px; flex: none; }\\n.cedros-academy.ca-public .ca-public-head--with-action { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }\\n.cedros-academy.ca-public .ca-public-head--with-action h2 { grid-column: 1; grid-row: 1; }\\n.cedros-academy.ca-public .ca-public-head--with-action > p { grid-column: 1; grid-row: 2; }\\n.cedros-academy.ca-public .ca-catalog-learning-link { grid-column: 2; grid-row: 1 / span 2; }\\n.cedros-academy.ca-public .ca-course-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }\\n.cedros-academy.ca-public .ca-course-navigation .ca-button--quiet { padding-inline: 0; color: var(--ca5ss4b-runtime-accent, #2f6c7d); }\\n.cedros-academy.ca-public .ca-course-navigation [aria-disabled=\\\"true\\\"] { color: var(--ca5ss4b-runtime-muted, #667085); cursor: not-allowed; text-decoration: none; }\\n.cedros-academy.ca-public .ca-course-category { font-size: 13px; }\\n.cedros-academy.ca-public .ca-course-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; line-height: 1.5; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-course-summary > span:first-child { font-weight: 600; color: var(--ca5ss4b-runtime-text, #171717); }\\n@container cedros-academy (min-width: 1000px) {\\n  .cedros-academy.ca-public .ca-card-grid:has(.ca-discovery-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }\\n}\\n\\n/* Detail: curriculum carries the story; enrollment is one contextual action. */\\n.cedros-academy.ca-public.ca-detail-surface .ca-public-head { padding-block: 0; gap: 12px; }\\n.cedros-academy.ca-public.ca-detail-surface .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); line-height: 1.25; }\\n.cedros-academy.ca-public.ca-detail-surface .ca-description-preview > p, .cedros-academy.ca-public .ca-outline-long-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy.ca-public .ca-course-extent { margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 14px; }\\n.cedros-academy.ca-public .ca-course-overview { margin: 0; }\\n.cedros-academy.ca-public .ca-course-primary { display: grid; grid-column: 1; grid-row: 1; gap: 24px; padding: 0; background: transparent; }\\n.cedros-academy.ca-public .ca-course-support { display: grid; grid-column: 1; gap: 24px; min-width: 0; }\\n.cedros-academy.ca-public .ca-course-support:empty { display: none; }\\n.cedros-academy.ca-public .ca-course-primary > .ca-course-artwork { max-height: 280px; object-fit: cover; background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); }\\n.cedros-academy.ca-public .ca-course-outline h3 { font-size: 22px; }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum { gap: 24px; }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum ol { margin: 0; padding-left: 24px; }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum li { padding: 12px 0 12px 8px; border-bottom: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum li::marker { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 13px; font-variant-numeric: tabular-nums; }\\n.cedros-academy.ca-public .ca-course-secondary { display: grid; grid-column: 2; grid-row: 1 / span 2; gap: 16px; margin: 0; align-self: start; }\\n.cedros-academy.ca-public .ca-course-secondary h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-notice { margin: 0; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-button { width: 100%; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-enrollment-explanation { margin: 0; line-height: 1.6; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }\\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list dd { text-transform: none; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list div { border: 0; border-radius: 0; padding: 0; }\\n\\n/* Returning learners: course rows grouped by the next job. */\\n.cedros-academy.ca-public .ca-learning-list, .cedros-academy.ca-public .ca-learning-group { display: grid; gap: 16px; }\\n.cedros-academy.ca-public .ca-learning-list { gap: 32px; max-width: 56rem; }\\n.cedros-academy.ca-public.ca-learning-surface > .ca-notice { max-width: 45rem; }\\n.cedros-academy.ca-public.ca-learning-surface > .ca-notice > .ca-button { justify-self: start; }\\n.cedros-academy.ca-public .ca-learning-group > h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 20px 0; margin: 0; align-items: center; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-enrollment-row:has(.ca-course-artwork) { grid-template-columns: 96px minmax(0, 1fr) auto; }\\n.cedros-academy.ca-public .ca-enrollment-actions { margin: 0; }\\n.cedros-academy.ca-public .ca-learning-browse { justify-self: start; }\\n.cedros-academy.ca-public .ca-learning-complete { margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork { aspect-ratio: 1; }\\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing { padding: 12px; }\\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing span { display: none; }\\n.cedros-academy.ca-public .ca-enrollment-content { display: grid; gap: 12px; min-width: 0; }\\n.cedros-academy.ca-public .ca-enrollment-content .ca-card-header { margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-content h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-content .ca-progress { max-width: 440px; margin: 0; }\\n\\n/* Reading: outline is a contextual disclosure; prose owns the main column. */\\n.cedros-academy.ca-public.ca-reading-surface { gap: 16px; padding-top: 16px; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head { gap: 8px; padding-block: 0; max-width: 100%; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head h2 { font-size: clamp(20px, 2cqi, 24px); line-height: 1.35; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head p { font-size: 15px; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-course-overview { margin: 0; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-open-course { margin-top: 0; }\\n.cedros-academy.ca-public .ca-lesson-outline { min-width: 0; }\\n.cedros-academy.ca-public .ca-lesson-outline > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }\\n.cedros-academy.ca-public .ca-lesson-outline[open] > summary { margin-bottom: 12px; }\\n.cedros-academy.ca-public .ca-lesson-outline > summary:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 4px; }\\n.cedros-academy.ca-public .ca-player-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 24px; }\\n.cedros-academy.ca-public .ca-player > .ca-card-header h3 { font-size: 16px; }\\n.cedros-academy.ca-public .ca-player { padding: 24px; }\\n.cedros-academy.ca-public .ca-lesson > h4 { font-size: 28px; line-height: 1.3; }\\n.cedros-academy.ca-public .ca-player-lesson { border: 0; border-radius: var(--ca-radius-sm); display: flex; align-items: start; gap: 12px; }\\n.cedros-academy.ca-public .ca-lesson-number { flex: none; font-size: 12px; line-height: 1.75; font-variant-numeric: tabular-nums; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-lesson-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-lesson-completion { flex: none; min-width: 16px; }\\n.cedros-academy.ca-public .ca-button--quiet { border-color: transparent; background: transparent; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-tool-summary { display: block; margin-top: 4px; font-weight: 400; }\\n.cedros-academy.ca-public .ca-verification-reference p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }\\n.cedros-academy.ca-public.ca-submission-surface { max-width: 45rem; }\\n.cedros-academy.ca-public.ca-submission-surface .ca-public-head { padding-block: 0; gap: 12px; }\\n.cedros-academy.ca-public.ca-submission-surface .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); }\\n.cedros-academy.ca-public.ca-submission-surface .ca-card-grid { grid-template-columns: minmax(0, 1fr); }\\n.cedros-academy.ca-public .ca-player-nav { padding: 0; border: 0; }\\n.cedros-academy.ca-public .ca-outline-context { min-width: 0; }\\n.cedros-academy.ca-public .ca-outline-context > .ca-progress { margin: 0; }\\n.cedros-academy.ca-public .ca-lesson { min-width: 0; }\\n.cedros-academy.ca-public .ca-lesson > .ca-lesson-body { max-width: 60ch; }\\n.cedros-academy.ca-public .ca-player-nav h4 { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 13px; }\\n.cedros-academy.ca-public .ca-open-outline { background: transparent; padding: 0; }\\n.cedros-academy.ca-public .ca-lesson-body { overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-reading-end { border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding-top: 20px; margin: 24px 0 16px; }\\n.cedros-academy .ca-learning-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; padding: 0; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ca5ss4b-runtime-accent, #2f6c7d); cursor: pointer; }\\n.cedros-academy .ca-learning-back:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\\n.cedros-academy .ca-learning-back:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\\n.cedros-academy .ca-learning-back:disabled { color: var(--ca5ss4b-runtime-muted, #667085); cursor: not-allowed; text-decoration: none; }\\n\\n/* Focused public workflows inherit the site typography within a readable frame. */\\n.cedros-academy.ca-public.ca-verification-surface { width: min(100%, 720px); }\\n.cedros-academy.ca-public .ca-verification-result { padding: 24px; }\\n.cedros-academy.ca-public .ca-verification-heading { display: flex; align-items: center; gap: 12px; }\\n.cedros-academy.ca-public .ca-verification-heading > svg { flex: none; }\\n.cedros-academy.ca-public .ca-verification-result .ca-verified-course { font-size: 22px; font-weight: 600; line-height: 1.4; }\\n.cedros-academy.ca-public .ca-verification-result p { overflow-wrap: anywhere; }\\n.cedros-academy.ca-public.ca-profile-surface { width: min(100%, 760px); }\\n.cedros-academy.ca-public.ca-profile-surface .ca-public-head p { white-space: pre-wrap; }\\n.cedros-academy.ca-public .ca-submission-form { width: min(100%, 720px); padding: 24px; }\\n.cedros-academy.ca-public .ca-submission-form h3 { margin: 0; font-size: 20px; }\\n.cedros-academy.ca-public .ca-submission-form h3:not(:first-child) { padding-top: 16px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-submission-form p { margin: 0; }\\n.cedros-academy.ca-public .ca-submission-form .ca-button { justify-self: start; }\\n.cedros-academy.ca-public .ca-submission-history { display: grid; gap: 16px; }\\n.cedros-academy.ca-public .ca-submission-history > h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-submission-list { display: grid; }\\n.cedros-academy.ca-public .ca-submission-row { padding-block: 20px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); min-width: 0; }\\n.cedros-academy.ca-public .ca-submission-row h4 { font-size: 20px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-submission-row .ca-card-header { flex-wrap: wrap; gap: 8px 16px; }\\n.cedros-academy.ca-public .ca-submission-row p { margin: 8px 0 0; }\\n.cedros-academy.ca-public .ca-submission-row .ca-status { flex: none; }\\n.cedros-academy.ca-public .ca-new-submission { width: min(100%, 720px); }\\n.cedros-academy.ca-public .ca-new-submission > .ca-submission-form { border: 0; margin: 0; }\\n\\n/* Admin composition changes consume the existing Workbench bridge and primitives. */\\n.cedros-academy-admin .ca-overview-inventory { max-width: 45rem; margin-top: 1rem; }\\n.cedros-academy-admin .ca-overview-inventory .ca-metric { border: 0; border-radius: 0; padding: 0.75rem 0; background: transparent; box-shadow: none; }\\n.cedros-academy-admin .ca-courses-table { table-layout: fixed; }\\n.cedros-academy-admin .ca-courses-table :is(th, td):first-child { width: 40%; }\\n.cedros-academy-admin .ca-courses-table :is(th, td):nth-child(2) { width: 16%; }\\n.cedros-academy-admin .ca-courses-table :is(th, td):nth-child(3) { width: 16%; }\\n.cedros-academy-admin .ca-course-description { max-width: 40ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy-admin .ca-create-course, .cedros-academy-admin .ca-profile-editor, .cedros-academy-admin .ca-drafting-surface { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-course-editor-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }\\n@container cedros-academy-admin (min-width: 761px) {\\n  .cedros-academy-admin .ca-course-editor-grid > .ca-curriculum-editor { grid-column: 2; grid-row: 1; }\\n  .cedros-academy-admin .ca-course-editor-grid > .ca-course-details { grid-column: 1; grid-row: 1; }\\n}\\n.cedros-academy-admin .ca-readiness-summary { border-bottom: 1px solid var(--ca-admin-border); padding-bottom: 1rem; }\\n.cedros-academy-admin .ca-readiness-summary .ca-card-header { margin-bottom: 0.5rem; }\\n.cedros-academy-admin details.ca-readiness-evidence > summary { font-weight: 400; }\\n.cedros-academy-admin .ca-readiness-evidence .ca-checklist { margin-top: 0.75rem; }\\n.cedros-academy-admin .ca-course-workspace-actions { position: sticky; top: 0; z-index: var(--z-dropdown, 50); margin: 0; padding: 0.5rem 0; align-items: center; background: var(--ca-admin-bg); border-bottom: 1px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-course-open { display: flex; align-items: center; gap: 0.5rem; min-height: 2rem; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ca-admin-fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }\\n.cedros-academy-admin .ca-course-open > span { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy-admin .ca-course-open > svg { flex: none; color: var(--ca-admin-muted); }\\n.cedros-academy-admin .ca-course-open:is(:hover, :focus-visible) > span { text-decoration: underline; }\\n.cedros-academy-admin .ca-course-open:focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 2px; border-radius: var(--ca-radius-sm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca-admin-ring) 14%, transparent); }\\n.cedros-academy-admin .ca-cover-preview { display: flex; align-items: center; gap: 0.75rem; margin: 0; }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork { flex: none; display: block; width: 6rem; height: 4rem; object-fit: cover; border: 1px solid var(--ca-admin-border); border-radius: var(--ca-radius-sm); background: var(--ca-admin-muted-bg); }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing { display: flex; align-items: center; justify-content: center; color: var(--ca-admin-muted); }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing svg { width: 20px; height: 20px; }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing span { display: none; }\\n.cedros-academy-admin .ca-cover-preview figcaption { min-width: 0; line-height: 1.5; }\\n.cedros-academy-admin .ca-announcement-receipt, .cedros-academy-admin .ca-feedback--empty { border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; }\\n.cedros-academy-admin .ca-announcement-receipt .ca-card-header, .cedros-academy-admin .ca-feedback--empty .ca-card-header { align-items: center; margin-bottom: 0.25rem; }\\n.cedros-academy-admin .ca-announcement-receipt h3, .cedros-academy-admin .ca-feedback--empty h3 { margin: 0; font-size: 0.875rem; font-weight: 600; }\\n.cedros-academy-admin .ca-announcement-receipt p { margin: 0; }\\n.cedros-academy-admin .ca-course-workspace-actions > [role=\\\"status\\\"] { margin-right: auto; }\\n.cedros-academy-admin .ca-workspace-commands { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; min-width: 0; }\\n.cedros-academy-admin .ca-curriculum-command-row { flex-wrap: nowrap; align-items: center; }\\n.cedros-academy-admin .ca-curriculum-command-row > .ca-intent-actions { width: auto; flex: none; gap: 0.25rem; }\\n.cedros-academy-admin .ca-workspace-commands > .ca-lifecycle-actions { width: auto; }\\n.cedros-academy-admin .ca-access-filters { grid-template-columns: minmax(10rem, 16rem) minmax(0, 18rem); margin-bottom: 0.75rem; }\\n.cedros-academy-admin .ca-draft-result { border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; max-width: 60ch; }\\n.cedros-academy-admin .ca-course-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem; align-items: center; }\\n.cedros-academy-admin .ca-course-filters > .ca-field { width: min(100%, 18rem); margin: 0; }\\n.cedros-academy-admin .ca-course-filters > .ca-field:last-child { width: min(100%, 14rem); }\\n.cedros-academy-admin .ca-toolbar-field { position: relative; }\\n.cedros-academy-admin .ca-toolbar-field > svg { position: absolute; top: 0.625rem; left: 0.75rem; width: 1rem; height: 1rem; color: var(--ca-admin-muted); pointer-events: none; }\\n.cedros-academy-admin .ca-toolbar-field > input { padding-left: 2.25rem; }\\n.cedros-academy-admin .ca-toolbar-field > input[type=\\\"search\\\"] { padding-right: 2.5rem; }\\n.cedros-academy-admin .ca-toolbar-field > input[type=\\\"search\\\"]::-webkit-search-cancel-button { appearance: none; }\\n.cedros-academy-admin .ca-search-clear { position: absolute; top: 0.125rem; right: 0.125rem; width: 2rem; padding: 0; border-radius: max(0px, calc(var(--ca-radius-sm) - 0.125rem)); }\\n.cedros-academy-admin .ca-access-filters > .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-access-summary > summary .ca-muted { flex-basis: 100%; padding-left: 1.5rem; line-height: 1.5; font-weight: 400; }\\n.cedros-academy-admin details.ca-lesson-edit-disclosure > summary { flex-wrap: nowrap; padding-block: 0.25rem; }\\n.cedros-academy-admin .ca-lesson-edit-disclosure > summary > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }\\n.cedros-academy-admin .ca-lesson-edit-disclosure > summary > .ca-muted { flex: none; font-weight: 400; font-size: 0.75rem; }\\n.cedros-academy-admin .ca-lesson-edit-fields { padding-top: 0.75rem; }\\n.cedros-academy-admin .ca-lesson-editor { gap: 0.25rem; }\\n.cedros-academy-admin .ca-lesson-editor > .ca-card-header { margin-bottom: 0; align-items: center; }\\n.cedros-academy-admin .ca-lesson-edit-fields textarea { min-height: 12rem; }\\n.cedros-academy-admin .ca-instructor-bio-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }\\n.cedros-academy-admin .ca-outcome-summary { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-outcome-summary .ca-metric { border: 0; box-shadow: none; padding: 0.75rem 0; background: transparent; }\\n@container cedros-academy (max-width: 680px) {\\n  .cedros-academy.ca-public .ca-discovery-card { grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto; padding: 16px; }\\n  .cedros-academy.ca-public .ca-course-card-copy { display: contents; }\\n  .cedros-academy.ca-public .ca-course-card-copy > .ca-course-category { grid-column: 2; grid-row: 1; }\\n  .cedros-academy.ca-public .ca-course-card-copy > .ca-card-header { grid-column: 2; grid-row: 2; align-self: center; }\\n  .cedros-academy.ca-public .ca-course-card-copy:not(:has(.ca-course-category)) > .ca-card-header { grid-row: 1 / span 2; }\\n  .cedros-academy.ca-public .ca-course-card-copy > p { grid-column: 1 / -1; }\\n  .cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { grid-column: 1; grid-row: 1 / span 2; }\\n  .cedros-academy.ca-public .ca-catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; }\\n  .cedros-academy.ca-public .ca-catalog-search > .ca-public-actions { display: contents; }\\n  .cedros-academy.ca-public .ca-catalog-search .ca-button { align-self: end; }\\n  .cedros-academy.ca-public .ca-catalog-search .ca-button--quiet { grid-column: 1 / -1; justify-self: start; }\\n  .cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { width: 80px; height: 80px; }\\n  .cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing span { display: none; }\\n  .cedros-academy.ca-public .ca-skeleton-card { grid-template-columns: 80px minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton--media { width: 80px; height: 80px; }\\n  .cedros-academy.ca-public .ca-course-layout, .cedros-academy.ca-public .ca-player-layout, .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-course-secondary { grid-column: 1; grid-row: 1; padding: 20px; }\\n  .cedros-academy.ca-public .ca-course-primary { grid-column: 1; grid-row: 2; }\\n  .cedros-academy.ca-public .ca-course-support { grid-row: 3; }\\n  .cedros-academy.ca-public .ca-course-secondary .ca-meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\\n  .cedros-academy.ca-public .ca-enrollment-row { grid-template-columns: minmax(0, 1fr); padding: 16px 0; gap: 16px; align-items: start; }\\n  .cedros-academy.ca-public .ca-enrollment-row:has(.ca-course-artwork) { grid-template-columns: 64px minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-enrollment-actions { grid-column: 1 / -1; width: 100%; }\\n  .cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing span { display: none; }\\n  .cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing { padding: 12px; }\\n  .cedros-academy.ca-public .ca-enrollment-content .ca-public-actions { width: auto; }\\n  .cedros-academy.ca-public .ca-player { padding: 16px; }\\n  .cedros-academy.ca-public .ca-submission-form { padding: 20px; }\\n  .cedros-academy.ca-public .ca-submission-form .ca-button { justify-self: stretch; }\\n}\\n@container cedros-academy-admin (max-width: 760px) {\\n  .cedros-academy-admin .ca-course-workspace-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }\\n  .cedros-academy-admin .ca-workspace-commands { flex-wrap: nowrap; }\\n  .cedros-academy-admin .ca-curriculum-command-row { flex-wrap: nowrap; }\\n  .cedros-academy-admin .ca-notice { grid-template-columns: 1rem minmax(0, 1fr); }\\n  .cedros-academy-admin .ca-notice .cedros-data-status__actions { grid-column: 2; justify-self: start; }\\n  .cedros-academy-admin .ca-course-open { min-height: 2.75rem; }\\n}\\n@media (max-width: 760px) {\\n  .cedros-academy-admin .ca-course-editor-grid, .cedros-academy-admin .ca-access-filters { grid-template-columns: minmax(0, 1fr); }\\n}\\n\\n/* Bound comparison copy without hiding the full detail identity. */\\n.cedros-academy.ca-public .ca-discovery-card h3, .cedros-academy.ca-public .ca-enrollment-content h3, .cedros-academy.ca-public .ca-long-identity { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }\\n.cedros-academy.ca-public .ca-long-identity { -webkit-line-clamp: 4; }\\n.cedros-academy.ca-public .ca-full-copy { margin-block: 8px; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-full-copy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; }\\n.cedros-academy.ca-public .ca-full-copy p { overflow-wrap: anywhere; max-width: 72ch; }\\n\\n/* Workbench controls remain usable inside host-assigned columns. */\\n.cedros-academy-admin :is(.cedros-data-input, .cedros-data-select) { height: 2.25rem; }\\n.cedros-academy-admin .ca-table tbody tr:hover { background: color-mix(in srgb, var(--ca-admin-accent) 52%, transparent); }\\n.cedros-academy-admin .ca-table a:not(.ca-button) { color: var(--ca-admin-fg); text-decoration: none; }\\n.cedros-academy-admin .ca-table a:not(.ca-button):is(:hover, :focus-visible) { text-decoration: underline; }\\n.cedros-academy-admin .cedros-data-pagination { justify-content: space-between; font-variant-numeric: tabular-nums; }\\n.cedros-academy-admin .cedros-data-pagination .cedros-data-actions { margin-left: auto; }\\n.cedros-academy-admin .cedros-data-empty-state p { max-width: 38ch; }\\n.cedros-academy-admin .ca-profile-editor .ca-edit-fields { display: grid; gap: 0.75rem; }\\n.cedros-academy-admin .ca-profile-editor .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-ai-draft-fields { display: grid; gap: 0.75rem; }\\n.cedros-academy-admin .ca-ai-draft-fields .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-ai-draft-fields > .ca-button { justify-self: start; }\\n.cedros-academy-admin .ca-drafting-surface { display: grid; gap: 1rem; }\\n.cedros-academy-admin .ca-prompt-example > summary { min-height: 2rem; font-size: 0.8125rem; }\\n.cedros-academy-admin .ca-prompt-example > p { margin: 0.5rem 0 0; padding-left: 1.5rem; max-width: 60ch; }\\n.cedros-academy-admin .ca-draft-result .ca-card-header { flex-wrap: wrap; }\\n.cedros-academy-admin .ca-learning-policies .ca-form-switch + .ca-form-switch { border-top: 1px solid var(--ca-admin-border); margin-top: 0.75rem; padding-top: 1rem; }\\n.cedros-academy-admin .ca-access-details { margin-top: 0.25rem; }\\n.cedros-academy-admin .ca-access-details > summary { min-height: 2rem; font-size: 0.75rem; color: var(--ca-admin-muted); }\\n.cedros-academy-admin .ca-access-details dl { display: grid; gap: 0.75rem; margin: 0.5rem 0; }\\n.cedros-academy-admin .ca-access-details dt { color: var(--ca-admin-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }\\n.cedros-academy-admin .ca-access-details dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; }\\n.cedros-academy-admin .ca-access-course-inline, .cedros-academy-admin .ca-access-details .ca-access-progress-inline, .cedros-academy-admin .ca-access-guidance-inline { display: none; }\\n.cedros-academy-admin .ca-enrollment-table { min-width: 0; table-layout: fixed; }\\n.cedros-academy-admin .ca-enrollment-table th:first-child { width: 27%; }\\n.cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(2) { width: 28%; }\\n.cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(4) { width: 12%; }\\n.cedros-academy-admin .ca-enrollment-table th:last-child { width: 3.5rem; }\\n.cedros-academy-admin .ca-access-guidance { margin-top: 0.5rem; }\\n.cedros-academy-admin .ca-enrollment-table .ca-status { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }\\n@container cedros-academy-admin (max-width: 680px) {\\n  .cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(2),\\n  .cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(4) { display: none; }\\n  .cedros-academy-admin .ca-enrollment-table th:first-child { width: auto; }\\n  .cedros-academy-admin .ca-enrollment-table th:nth-child(3) { width: 8rem; }\\n  .cedros-academy-admin .ca-access-course-inline { display: block; margin-top: 0.25rem; }\\n  .cedros-academy-admin .ca-access-details .ca-access-progress-inline { display: block; }\\n  .cedros-academy-admin .ca-access-guidance { display: none; }\\n  .cedros-academy-admin .ca-access-guidance-inline { display: block; }\\n}\\n@container cedros-academy (max-width: 480px) {\\n  .cedros-academy.ca-public .ca-public-head--with-action { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-catalog-learning-link { grid-column: 1; grid-row: 3; justify-self: start; }\\n}\\n.cedros-academy-admin.ca-settings-surface,\\n.cedros-academy-admin.ca-instructors-surface,\\n.cedros-academy-admin.ca-overview-surface { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-contribution-list { display: grid; gap: 1rem; }\\n.cedros-academy-admin .ca-contribution { padding-top: 1rem; border-top: 1px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-contribution > h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }\\n.cedros-academy-admin .ca-contribution > p { margin-bottom: 0.75rem; }\\n.cedros-academy-admin .ca-submission-preview { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-contribution-decision { display: grid; gap: 0.75rem; border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; }\\n.cedros-academy-admin .ca-contribution-decision .ca-field { margin: 0; }\\n.cedros-academy-admin .ca-reply-editor { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-confirmed-reply { margin-block: 0.75rem; padding-left: 1rem; border-left: 2px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-policy-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; cursor: pointer; font-weight: 600; }\\n.cedros-academy-admin .ca-policy-edit > summary .ca-muted { font-weight: 400; }\\n.cedros-academy-admin .ca-policy-edit__body { padding-top: 0.75rem; max-width: 18rem; }\\n.cedros-academy-admin .ca-form-switch { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; padding-block: 0.55rem; }\\n.cedros-academy-admin .ca-form-switch__copy { display: grid; gap: 0.25rem; min-width: 0; max-width: 60ch; }\\n.cedros-academy-admin .ca-form-switch__copy .cedros-data-field__description { line-height: 1.5; }\\n.cedros-academy-admin .ca-form-switch input {\\n  appearance: none; position: relative; flex: none; margin: 0;\\n  width: 2.35rem; height: 1.3rem; border: 1px solid var(--ca-admin-border);\\n  border-radius: var(--ca-radius-pill); background: var(--ca-admin-muted-bg); cursor: pointer;\\n  transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n.cedros-academy-admin .ca-form-switch input::before {\\n  content: \\\"\\\"; position: absolute; top: 1px; left: 1px;\\n  width: 1.1rem; height: 1.1rem; box-sizing: border-box; border: 1px solid var(--ca-admin-border);\\n  border-radius: var(--ca-radius-pill); background: var(--ca-admin-card-bg);\\n  box-shadow: var(--ca-admin-shadow);\\n  transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n.cedros-academy-admin .ca-form-switch input:checked { background: var(--ca-admin-primary); border-color: var(--ca-admin-primary); }\\n.cedros-academy-admin .ca-form-switch input:checked::before { border-color: transparent; transform: translateX(1.02rem); }\\n.cedros-academy-admin .ca-form-switch input:focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 3px; }\\n.cedros-academy-admin .ca-form-switch input:disabled { opacity: 0.5; cursor: not-allowed; }\\n@media (forced-colors: active) {\\n  .cedros-academy-admin .ca-form-switch input { appearance: auto; width: 1.3rem; }\\n  .cedros-academy-admin .ca-form-switch input::before { content: none; }\\n}\\n.cedros-academy-admin .cedros-dropdown-menu__content:popover-open {\\n  animation: ca-menu-in calc(var(--motion-duration-fast, 160ms) * 1.125) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n@keyframes ca-menu-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }\\n@container cedros-academy-admin (max-width: 760px) {\\n  .cedros-academy-admin .ca-course-editor-grid,\\n  .cedros-academy-admin .ca-access-filters,\\n  .cedros-academy-admin .ca-preview-layout { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy-admin .ca-card-header { flex-wrap: wrap; }\\n  .cedros-academy-admin .ca-preview-lesson { border-left: 0; border-top: 1px solid var(--ca-admin-border); padding: 1rem 0 0; }\\n}\\n/* Site accents style links; a readable neutral role defines field boundaries. */\\n.cedros-academy .ca-button:not(:disabled):active { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #171717) 12%, var(--ca5ss4b-runtime-panel, #fff)); }\\n.cedros-academy .ca-button-primary:not(:disabled):active { background: color-mix(in srgb, var(--ca5ss4b-runtime-action-bg, #18181b) 80%, var(--ca5ss4b-runtime-action-fg, #fff)); }\\n.cedros-academy .ca-button:disabled:hover { background: var(--ca5ss4b-runtime-panel, #fff); }\\n.cedros-academy .ca-button-primary:disabled:hover { background: var(--ca5ss4b-runtime-action-bg, #18181b); }\\n.cedros-academy .ca-button[aria-pressed=\\\"true\\\"] { border-color: var(--ca5ss4b-runtime-action-bg, #18181b); background: var(--ca5ss4b-runtime-accent-soft, #f4f4f5); }\\n\\n/* Workbench's mobile shell retains its density while touch actions grow. */\\n@media (max-width: 767px) {\\n  .cedros-academy-admin .cedros-data-row-actions .cedros-data-btn { min-height: 2.75rem; }\\n  .cedros-academy-admin :is(.cedros-data-input, .cedros-data-select) { height: 2.75rem; min-height: 2.75rem; }\\n  .cedros-academy-admin .ca-toolbar-field > svg { top: 0.875rem; }\\n  .cedros-academy-admin .ca-search-clear { top: 0; right: 0; width: 2.75rem; border-radius: var(--ca-radius-sm); }\\n  .cedros-academy-admin .cedros-row-actions__trigger,\\n  .cedros-academy-admin .cedros-data-dialog__close { width: 2.75rem; min-height: 2.75rem; }\\n  .cedros-academy-admin .cedros-data-dialog__heading { padding-right: 3.25rem; }\\n  .cedros-academy-admin .cedros-dropdown-menu__item,\\n  .cedros-academy-admin .cedros-back-breadcrumb,\\n  .cedros-academy-admin details > summary,\\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary,\\n  .cedros-academy-admin .ca-form-switch { min-height: 2.75rem; }\\n}\\n\\n/* Workbench primitives mirrored for Academy admin content. */\\n.cedros-academy-admin .ca-icon-button { width: 2rem; padding: 0; }\\n.cedros-academy-admin .ca-icon-button > svg,\\n.cedros-academy-admin .cedros-row-actions__trigger > svg { flex: none; }\\n.cedros-academy-admin .ca-add-lesson { justify-self: start; }\\n.cedros-academy-admin .cedros-data-setup-notice {\\n  display: grid; gap: 0.75rem;\\n  border: 1px solid var(--ca-admin-border); border-radius: var(--ca-admin-radius);\\n  padding: 1rem; background: var(--ca-admin-card-bg); box-shadow: var(--ca-admin-shadow);\\n}\\n.cedros-academy-admin .cedros-data-setup-notice__body { display: grid; gap: 0.25rem; max-width: 60ch; }\\n.cedros-academy-admin .cedros-data-setup-notice__body :is(h3, strong) { font-size: 0.875rem; font-weight: 600; }\\n.cedros-academy-admin .cedros-data-setup-notice .cedros-data-actions { justify-content: flex-start; }\\n.cedros-academy-admin code {\\n  border: 1px solid var(--ca-admin-border); border-radius: 4px; padding: 0 0.3em;\\n  background: var(--ca-admin-muted-bg); color: var(--ca-admin-fg);\\n  font-family: var(--cd-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.75rem;\\n  overflow-wrap: anywhere; justify-self: start;\\n}\\n.cedros-academy-admin .cedros-data-table-summary { display: grid; gap: 0.125rem; min-width: 0; }\\n.cedros-academy-admin .ca-table .ca-row-end { width: 1%; text-align: right; white-space: nowrap; }\\n.cedros-academy-admin .ca-instructors-table { min-width: 30rem; }\\n@media (max-width: 767px) {\\n  .cedros-academy-admin .ca-icon-button { width: 2.75rem; }\\n  .cedros-academy-admin .ca-enrollment-table th:last-child { width: 4.5rem; }\\n}\\n\\n/* Public disclosures share one site-colored chevron instead of mixed native,\\n   \\\"+\\\" and triangle markers. Learner tools inside the player read as hairline\\n   rows, not cards nested inside the player card. */\\n.cedros-academy details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; cursor: pointer; }\\n.cedros-academy details > summary::-webkit-details-marker { display: none; }\\n.cedros-academy details > summary::before {\\n  content: \\\"\\\"; flex: none; width: 16px; height: 16px; background-color: currentColor;\\n  mask: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\\\") center / 16px no-repeat;\\n  transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n.cedros-academy details[open] > summary::before { transform: rotate(90deg); }\\n.cedros-academy .ca-disclosure > summary .ca-tool-summary { flex-basis: 100%; margin: 0; padding-left: 24px; }\\n.cedros-academy.ca-public .ca-learning-tools { gap: 0; }\\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) { border: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: 0; background: transparent; overflow: visible; }\\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) > summary { padding: 16px 0; min-height: 44px; }\\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) > .ca-disclosure__body { padding: 0 0 20px; }\\n\\n/* Dashboard contribution (Workbench \\u00A76.1): one card frame whose header and\\n   footer are its only chrome; the metric band folds 3\\u21922\\u21921 by the host-assigned\\n   card width, not the viewport. */\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__header {\\n  max-width: none; margin: 0 -1rem; padding: 0 1rem 0.75rem; border-bottom: 1px solid var(--ca-admin-border);\\n}\\n.cedros-academy-admin.ca-dashboard-card .cedros-data-summary-grid {\\n  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));\\n}\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer {\\n  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem;\\n  max-width: none; margin: 0 -1rem; padding: 0.75rem 1rem 0; border-top: 1px solid var(--ca-admin-border);\\n}\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer p { font-size: 0.75rem; }\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer a { font-size: 0.8125rem; }\\n\\n/* Exception rows: up to a few next actions, hairline separated, action trailing. */\\n.cedros-academy-admin .ca-exception-rows { display: grid; margin: 0; padding: 0; list-style: none; }\\n.cedros-academy-admin .ca-exception-rows li {\\n  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem;\\n  min-height: 2.5rem; padding: 0.5rem 0; border-top: 1px solid var(--ca-admin-border); font-size: 0.8125rem;\\n}\\n.cedros-academy-admin .ca-exception-rows li:first-child { border-top: 0; padding-top: 0; }\\n.cedros-academy-admin .ca-exception-rows li > span { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; }\\n\\n/* A routine receipt reads as a titled region, not a spaced-out stack. */\\n.cedros-academy-admin.ca-announcement-receipt { gap: 0.25rem; }\\n\\n/* Workbench identifiers use mono one step below ordinary field text. */\\n.cedros-academy-admin .ca-field--identifier :is(input, textarea) { font-family: var(--cd-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.75rem; }\\n\\n/* Record streams (saved versions, announcements) read as hairline rows inside\\n   their disclosure, not as a stack of separate cards. */\\n.cedros-academy-admin .ca-record-list { display: grid; margin: 0; padding: 0; list-style: none; }\\n.cedros-academy-admin .ca-record-row { display: grid; gap: 0.5rem; min-width: 0; padding-block: 0.75rem; border-top: 1px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-record-row:first-child { border-top: 0; padding-top: 0; }\\n.cedros-academy-admin .ca-record-row .ca-card-header { margin-bottom: 0; }\\n.cedros-academy-admin .ca-record-row h4 { font-size: 0.875rem; font-weight: 600; }\\n.cedros-academy-admin .ca-preserve-lines { white-space: pre-wrap; }\\n\\n/* A disclosure in a narrow table cell keeps its chevron beside the label. */\\n.cedros-academy-admin details.ca-access-details > summary { flex-wrap: nowrap; }\\n.cedros-academy-admin .ca-record-row .ca-disclosure { border-top: 0; padding-top: 0; }\\n/* The promoted row action and its \\u22EF menu stay on one line; start-aligned so the\\n   promoted action keeps its column when a row has no overflow menu. */\\n.cedros-academy-admin .ca-table .ca-row-end .ca-row-actions { flex-wrap: nowrap; gap: 0.25rem; justify-content: flex-start; }\\n/* Secondary forms keep the settings column even inside a page-width frame. */\\n.cedros-academy-admin .ca-secondary-work > .ca-disclosure__body { max-width: var(--cd-container-settings, 45rem); }\\n\";\nconst adminStyleId = \"cedros-academy-admin-styles\";\nconst adminArchiveStyleKey = \"@cedros-academy/academy::workspace/react/dist/styles.css\";\nexport const academyAdminStyles = inlinedStyles;\nexport function ensureAcademyAdminStyles() {\n    if (typeof document === \"undefined\" || document.getElementById(adminStyleId))\n        return;\n    const style = document.createElement(\"style\");\n    style.id = adminStyleId;\n    style.setAttribute(\"data-ca5ss4b-extension-style\", adminArchiveStyleKey);\n    style.textContent = academyAdminStyles;\n    document.head.appendChild(style);\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/aiOriginal.js","kind":"module","text":"import { readAcademyDraft } from \"./response.js\";\nimport { AcademyError, isRecord } from \"./authority.js\";\nexport function isAiKind(value) { return [\"outline\", \"lesson\", \"quiz\", \"rubric\", \"seo\"].includes(value); }\nexport async function sha256(value) {\n    const hash = await crypto.subtle.digest(\"SHA-256\", new TextEncoder().encode(value));\n    return Array.from(new Uint8Array(hash), byte => byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\nexport async function validateAiReceipt(response, original) {\n    const [keyDigest, fingerprint] = await Promise.all([sha256(original.key), sha256(JSON.stringify({ kind: original.kind, input: original.input }))]);\n    const operation = isRecord(response) && isRecord(response.operation) ? response.operation : null;\n    if (!isRecord(response) || response.requiresInstructorReview !== true || response.provenance !== \"site-intelligence-provider\"\n        || !operation || operation.kind !== original.kind || operation.keyDigest !== keyDigest || operation.requestFingerprint !== fingerprint\n        || operation.id !== `ai-authoring:${keyDigest}` || operation.status !== \"completed\" || typeof operation.replayed !== \"boolean\"\n        || typeof operation.expiresAtUnix !== \"number\" || !Number.isSafeInteger(operation.expiresAtUnix)\n        || operation.expiresAtUnix * 1000 <= Date.now())\n        throw new AcademyError(\"The original result receipt is invalid or expired. Recover the original before using any output.\");\n    const text = readAcademyDraft(response.draft);\n    if (new TextEncoder().encode(text).length > 64 * 1024 || /[\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]/u.test(text))\n        throw new AcademyError(\"The original result content is invalid.\");\n    return { draft: response.draft, requiresInstructorReview: true, provenance: \"site-intelligence-provider\",\n        operation: { id: `ai-authoring:${keyDigest}`, keyDigest, requestFingerprint: fingerprint, kind: original.kind,\n            status: \"completed\", expiresAtUnix: operation.expiresAtUnix, replayed: operation.replayed } };\n}\n","imports":[{"dynamic":false,"end":47,"specifier":"./response.js","start":34},{"dynamic":false,"end":104,"specifier":"./authority.js","start":90}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/api.js","kind":"module","text":"import { isAiKind, validateAiReceipt } from \"./aiOriginal.js\";\nimport { readAcademyResponse } from \"./response.js\";\nexport class AcademyClient {\n    baseUrl;\n    authority;\n    ticket;\n    constructor(options) {\n        this.authority = options.authority;\n        this.ticket = this.authority.capture();\n        this.baseUrl = `${this.authority.site}/extensions/cedros-academy`;\n    }\n    summary() {\n        return this.get(\"/admin/v1/summary\");\n    }\n    courses(page) {\n        return this.get(`/admin/v1/courses${pageQuery(page)}`);\n    }\n    course(courseId) {\n        return this.get(`/admin/v1/courses/${encodeURIComponent(courseId)}`);\n    }\n    courseAnnouncements(courseId, page) {\n        return this.get(`/admin/v1/courses/${encodeURIComponent(courseId)}/announcements${pageQuery(page)}`);\n    }\n    publishAnnouncement(courseId, title, body, key) {\n        return this.request(\"POST\", `/admin/v1/courses/${encodeURIComponent(courseId)}/announcements`, { title, body }, { \"idempotency-key\": key });\n    }\n    retractAnnouncement(announcement) {\n        return this.post(`/admin/v1/announcements/${encodeURIComponent(announcement.announcementId)}/retract`, { storageVersion: announcement.storageVersion });\n    }\n    courseVersions(courseId, page) {\n        return this.get(`/admin/v1/courses/${encodeURIComponent(courseId)}/versions${pageQuery(page)}`);\n    }\n    deleteCourse(courseId, expectedCourseVersion) {\n        return this.request(\"DELETE\", `/admin/v1/courses/${encodeURIComponent(courseId)}`, { expectedCourseVersion });\n    }\n    courseNotification(courseId, occurrenceId) {\n        return this.get(`/admin/v1/courses/${encodeURIComponent(courseId)}/notification${occurrenceId ? `?occurrenceId=${encodeURIComponent(occurrenceId)}` : \"\"}`);\n    }\n    retryCourseNotification(courseId, reviewed) {\n        return this.post(`/admin/v1/courses/${encodeURIComponent(courseId)}/notification`, { expectedOccurrenceId: reviewed.occurrenceId, expectedCourseVersion: reviewed.courseVersion });\n    }\n    courseFeedback(courseId, page) {\n        return this.get(`/admin/v1/courses/${encodeURIComponent(courseId)}/feedback${pageQuery(page)}`);\n    }\n    replyQuestion(question, reply) {\n        return this.put(`/admin/v1/questions/${encodeURIComponent(question.questionId)}/reply`, { reply, storageVersion: question.storageVersion });\n    }\n    moderateReview(review, status) {\n        return this.put(`/admin/v1/reviews/${encodeURIComponent(review.reviewId)}/moderation`, { status, storageVersion: review.storageVersion });\n    }\n    createCourse(input, idempotencyKey) {\n        return this.request(\"POST\", \"/admin/v1/courses\", input, idempotencyKey ? { \"idempotency-key\": idempotencyKey } : undefined);\n    }\n    importCourses(input) {\n        return this.post(\"/admin/v1/courses/import\", input);\n    }\n    courseSubmissions(status = \"submitted\", page) {\n        return this.get(`/admin/v1/course-submissions?status=${encodeURIComponent(status)}${pageQuery(page, \"&\")}`);\n    }\n    acceptCourseSubmission(submissionId, note = \"\") {\n        return this.post(`/admin/v1/course-submissions/${encodeURIComponent(submissionId)}/accept`, { note });\n    }\n    rejectCourseSubmission(submissionId, reason) {\n        return this.post(`/admin/v1/course-submissions/${encodeURIComponent(submissionId)}/reject`, { reason });\n    }\n    saveCourseWorkspace(courseId, input, curriculum) {\n        return this.patch(`/admin/v1/courses/${encodeURIComponent(courseId)}`, { ...input, curriculum });\n    }\n    publishCourse(courseId, visibility = \"published\", expectedCourseVersion) {\n        return this.post(`/admin/v1/courses/${encodeURIComponent(courseId)}/publish`, { visibility, expectedCourseVersion });\n    }\n    archiveCourse(courseId, expectedCourseVersion) {\n        return this.post(`/admin/v1/courses/${encodeURIComponent(courseId)}/archive`, { expectedCourseVersion });\n    }\n    restoreCourse(courseId, expectedCourseVersion) {\n        return this.post(`/admin/v1/courses/${encodeURIComponent(courseId)}/restore`, { expectedCourseVersion });\n    }\n    approveCourse(courseId, expectedCourseVersion) {\n        return this.post(`/admin/v1/courses/${encodeURIComponent(courseId)}/approve`, { expectedCourseVersion });\n    }\n    submitReviewCourse(courseId, expectedCourseVersion) {\n        return this.post(`/admin/v1/courses/${encodeURIComponent(courseId)}/submit-review`, { expectedCourseVersion });\n    }\n    instructors(page) {\n        return this.get(`/admin/v1/instructors${pageQuery(page)}`);\n    }\n    saveInstructor(instructor) {\n        return this.put(`/admin/v1/instructors/${encodeURIComponent(instructor.instructorId)}`, instructor);\n    }\n    enrollments(page) {\n        return this.get(`/admin/v1/enrollments${pageQuery(page)}`);\n    }\n    grantEnrollment(input, idempotencyKey) {\n        return this.request(\"POST\", \"/admin/v1/enrollments/grant\", input, idempotencyKey ? { \"idempotency-key\": idempotencyKey } : undefined);\n    }\n    revokeEnrollment(enrollmentId, reason, expectedEnrollmentVersion) {\n        return this.post(`/admin/v1/enrollments/${encodeURIComponent(enrollmentId)}/revoke`, { reason, expectedEnrollmentVersion });\n    }\n    settings() {\n        return this.get(\"/admin/v1/settings\");\n    }\n    async autosaveSettings(patch, metadata, onConfirmed) {\n        if (metadata.baseRevision != null || metadata.etag != null) {\n            throw new Error(\"Revision-guarded settings require the Cedros atomic configuration contract. No settings were changed.\");\n        }\n        const keyOrder = [\"academy-settings\", \"learning-settings\", \"privacy-retention-settings\", \"ai-settings\"];\n        if (!Object.keys(patch).length || Object.keys(patch).some((key) => !keyOrder.includes(key))) {\n            throw new Error(\"Academy autosave requires supported settings keys.\");\n        }\n        let result = {};\n        for (const settingKey of keyOrder.filter((key) => key in patch)) {\n            const oneKeyPatch = { [settingKey]: patch[settingKey] };\n            const idempotencyKey = `${metadata.idempotencyKey}:${settingKey}`;\n            result = await this.patch(\"/admin/v1/settings\", {\n                autosave: true,\n                resourceType: metadata.resourceType,\n                resourceId: metadata.resourceId,\n                clientMutationId: `${metadata.clientMutationId}:${settingKey}`,\n                idempotencyKey,\n                updateMask: [settingKey],\n                patch: oneKeyPatch\n            }, { \"idempotency-key\": idempotencyKey });\n            if (!result.canonicalResource)\n                throw new Error(\"Academy did not return confirmed settings.\");\n            this.authority.requireCurrent(this.ticket, true);\n            onConfirmed?.(oneKeyPatch, result.canonicalResource);\n        }\n        return result;\n    }\n    reports() {\n        return this.get(\"/admin/v1/reports/summary\");\n    }\n    certificates(page) {\n        return this.get(`/admin/v1/certificates${pageQuery(page)}`);\n    }\n    revokeCertificate(certificate, reason) {\n        return this.post(`/admin/v1/certificates/${encodeURIComponent(certificate.certificateId)}/revoke`, { reason, storageVersion: certificate.storageVersion });\n    }\n    async aiDraft(kind, input, key, recoveryOnly = false) {\n        this.authority.requireCurrent(this.ticket, true);\n        if (!isAiKind(kind) || !input.trim() || new TextEncoder().encode(input).length > 8000)\n            throw new Error(\"Provide a supported draft kind and nonblank instructor input of at most 8000 bytes.\");\n        if (recoveryOnly && !key)\n            throw new Error(\"Recovery requires the original key.\");\n        const response = await this.request(\"POST\", \"/admin/v1/ai/authoring\", { kind, input, ...(recoveryOnly ? { recoveryOnly: true } : {}) }, key ? { \"idempotency-key\": key } : undefined);\n        const result = key ? await validateAiReceipt(response, { kind, input, key }) : response;\n        this.authority.requireCurrent(this.ticket, true);\n        return result;\n    }\n    async get(path) {\n        return this.request(\"GET\", path);\n    }\n    async post(path, body) {\n        return this.request(\"POST\", path, body);\n    }\n    async put(path, body) {\n        return this.request(\"PUT\", path, body);\n    }\n    async patch(path, body, headers) {\n        return this.request(\"PATCH\", path, body, headers);\n    }\n    async request(method, path, body, headers) {\n        this.authority.requireCurrent(this.ticket, method !== \"GET\");\n        const token = this.authority.credential(this.ticket);\n        try {\n            const response = await fetch(`${this.baseUrl}${path}`, {\n                method,\n                headers: {\n                    \"content-type\": \"application/json\",\n                    ...headers,\n                    ...(token ? { authorization: `Bearer ${token}` } : {})\n                },\n                body: body === undefined ? undefined : JSON.stringify(body)\n            });\n            this.authority.requireCurrent(this.ticket);\n            const result = await readAcademyResponse(response);\n            this.authority.requireCurrent(this.ticket);\n            if (method === \"GET\")\n                this.authority.readConfirmed(this.ticket);\n            return result;\n        }\n        catch (error) {\n            this.authority.denial(error, this.ticket);\n            throw error;\n        }\n    }\n}\nfunction pageQuery(page, prefix = \"?\") {\n    if (!page)\n        return \"\";\n    const limit = Math.max(1, Math.min(1000, Math.trunc(page.limit ?? 100)));\n    const offset = Math.max(0, Math.trunc(page.offset ?? 0));\n    return `${prefix}limit=${limit}&offset=${offset}`;\n}\n","imports":[{"dynamic":false,"end":60,"specifier":"./aiOriginal.js","start":45},{"dynamic":false,"end":113,"specifier":"./response.js","start":100}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/authority.js","kind":"module","text":"/** In-memory authority for this runtime. Opaque credentials never leave this object. */\nexport class AcademyError extends Error {\n    status;\n    code;\n    disposition;\n    constructor(message, status = 0, code = \"\", disposition) {\n        super(message);\n        this.status = status;\n        this.code = code;\n        this.disposition = disposition;\n    }\n}\nexport class RetiredOperation extends Error {\n    constructor() { super(\"Academy context changed. Reauthorize before continuing.\"); }\n}\n// Match server timestamp.rs, including its separator and leap-second semantics.\nexport function expiryNanos(value) {\n    if (value === undefined || value === null)\n        return null;\n    if (typeof value !== \"string\")\n        return -1n;\n    if (/^[+-]?\\d+$/.test(value)) {\n        const nanos = BigInt(value) * 1000000000n;\n        return nanos >= -(2n ** 127n) && nanos < 2n ** 127n ? nanos : -1n;\n    }\n    const match = /^(\\d{4})-(\\d{2})-(\\d{2})[\\x00-\\x7f](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?([Zz]|[+-]\\d{2}:\\d{2})$/.exec(value);\n    if (!match)\n        return -1n;\n    const [, y, m, d, h, min, sec, fraction = \"\", zone] = match;\n    const year = Number(y), month = Number(m), day = Number(d), hour = Number(h), minute = Number(min), second = Number(sec);\n    const date = new Date(0);\n    date.setUTCFullYear(year, month - 1, day);\n    date.setUTCHours(hour, minute, Math.min(second, 59), 0);\n    if (month < 1 || month > 12 || day < 1 || date.getUTCFullYear() !== year || date.getUTCMonth() !== month - 1 || date.getUTCDate() !== day || hour > 23 || minute > 59 || second > 60)\n        return -1n;\n    let offset = 0;\n    if (zone !== \"Z\" && zone !== \"z\") {\n        const hours = Number(zone.slice(1, 3)), minutes = Number(zone.slice(4));\n        if (hours > 23 || minutes > 59)\n            return -1n;\n        offset = (hours * 60 + minutes) * 60 * (zone[0] === \"-\" ? -1 : 1);\n    }\n    const seconds = BigInt(date.getTime() / 1000 - offset);\n    let nanos = BigInt((fraction + \"000000000\").slice(0, 9));\n    if (second === 60) {\n        const utc = new Date(Number(seconds) * 1000);\n        const tomorrow = new Date(utc.getTime() + 1000);\n        if (utc.getUTCHours() !== 23 || utc.getUTCMinutes() !== 59 || utc.getUTCSeconds() !== 59 || tomorrow.getUTCDate() !== 1)\n            return -1n;\n        nanos = 999999999n;\n    }\n    return seconds * 1000000000n + nanos;\n}\nexport function enrollmentHasAccess(enrollment) {\n    const expiry = expiryNanos(enrollment.expiresAt);\n    return [\"active\", \"completed\"].includes(enrollment.status) && (expiry === null || expiry > BigInt(Date.now()) * 1000000n);\n}\nexport function normalizedSite(value) {\n    const url = new URL(value);\n    if (![\"https:\", \"http:\"].includes(url.protocol) || url.username || url.password || url.search || url.hash)\n        throw new Error(\"Academy server URL is required.\");\n    return `${url.origin}${url.pathname.replace(/\\/+$/, \"\")}`;\n}\nexport function isRecord(value) {\n    return value !== null && typeof value === \"object\" && !Array.isArray(value);\n}\nexport async function readResponse(response) {\n    let payload;\n    try {\n        payload = await response.json();\n    }\n    catch {\n        throw new AcademyError(response.ok ? \"Academy returned an invalid response.\" : `Academy request failed with ${response.status}`, response.status);\n    }\n    if (!response.ok) {\n        const error = isRecord(payload) && isRecord(payload.error) ? payload.error : null;\n        throw new AcademyError(typeof error?.message === \"string\" ? error.message : `Academy request failed with ${response.status}`, response.status, typeof error?.code === \"string\" ? error.code : \"\", error?.disposition === \"pre-commit-rejected\" ? error.disposition : undefined);\n    }\n    if (!isRecord(payload) || !Object.keys(payload).length)\n        throw new AcademyError(\"Academy returned an invalid response.\", response.status);\n    return payload;\n}\nexport class LearnerAuthority {\n    epoch = 0;\n    lineage = 0;\n    version = 0;\n    owner = null;\n    authorizedEpoch = -1;\n    denied = false;\n    get accountDenied() { return this.denied; }\n    active = true;\n    site = \"\";\n    getter;\n    binding;\n    token;\n    readObservation = 0;\n    acceptedRead = 0;\n    nextRead() { return ++this.readObservation; }\n    observation = 0;\n    acceptedObservation = 0;\n    drafts = new Map();\n    setDirty(key, course, dirty) { this.drafts.set(key, { course, dirty }); }\n    forgetDraft(key) { this.drafts.delete(key); }\n    hasDirty(course) { return [...this.drafts.values()].some(draft => draft.course === course && draft.dirty); }\n    operations = new Map();\n    wakeListeners = new Set();\n    subscribeWake(listener) { this.wakeListeners.add(listener); return () => { this.wakeListeners.delete(listener); }; }\n    wakeChanged() { for (const listener of this.wakeListeners)\n        listener(); }\n    listeners = new Set();\n    courses = new Map();\n    enrollments = new Map();\n    monitors = 0;\n    stopMonitor;\n    monitor(start) {\n        if (this.monitors++ === 0)\n            this.stopMonitor = start();\n        return () => {\n            if (--this.monitors === 0) {\n                this.stopMonitor?.();\n                this.stopMonitor = undefined;\n                this.suspend();\n                this.token = undefined;\n                this.retire();\n            }\n        };\n    }\n    configure(site, getter, binding) {\n        if (site === this.site && getter === this.getter && binding === this.binding)\n            return;\n        const initialized = Boolean(this.site);\n        this.site = site;\n        this.getter = getter;\n        this.binding = binding;\n        this.token = undefined;\n        this.observation++;\n        if (initialized) {\n            this.denied = false;\n            this.retire(true);\n        }\n    }\n    subscribe = (listener) => { this.listeners.add(listener); return () => { this.listeners.delete(listener); }; };\n    changed(deferred = false) {\n        this.version++;\n        const notify = () => { for (const listener of this.listeners)\n            listener(); };\n        if (deferred)\n            void Promise.resolve().then(notify);\n        else\n            notify();\n    }\n    retire(deferred = false) {\n        this.epoch++;\n        this.lineage++;\n        this.owner = null;\n        this.courses.clear();\n        this.enrollments.clear();\n        this.drafts.clear();\n        this.changed(deferred);\n    }\n    suspend() { if (this.active) {\n        this.active = false;\n        this.epoch++;\n        this.observation++;\n        this.changed();\n    } }\n    expectOwner(owner, previous) {\n        if (this.denied)\n            return false;\n        if (this.owner === null)\n            this.owner = owner;\n        if (this.owner !== owner)\n            return false;\n        // Carry resource/draft identity only in quarantine. It grants no lesson readiness.\n        for (const [id, course] of previous.courses) {\n            if (course.enrollment.studentId === owner && !this.courses.has(id)) {\n                this.courses.set(id, { ...course, authorizedEpoch: -1, readObservation: -1 });\n                this.enrollments.set(course.enrollment.enrollmentId, id);\n            }\n        }\n        return true;\n    }\n    credentialChanged() {\n        this.denied = false;\n        this.authorizedEpoch = -1;\n        this.epoch++;\n        this.changed();\n    }\n    invalidateAccount() { this.authorizedEpoch = -1; this.epoch++; this.changed(); }\n    quarantineAccount() {\n        if (this.authorizedEpoch === this.epoch) {\n            this.authorizedEpoch = -1;\n            this.epoch++;\n            this.changed();\n        }\n    }\n    quarantineCourse(id) {\n        const course = this.courses.get(id);\n        if (course && !course.locked && course.authorizedEpoch !== -1) {\n            course.authorizedEpoch = -1;\n            course.version++;\n            this.changed();\n        }\n    }\n    resume() { if (!this.active) {\n        this.active = true;\n        this.epoch++;\n        this.changed();\n    } }\n    capture(course) {\n        return { authority: this, epoch: this.epoch, lineage: this.lineage, course, courseVersion: course ? this.courses.get(course)?.version ?? 0 : 0 };\n    }\n    current(ticket) {\n        if (ticket.authority !== this || !this.active || ticket.epoch !== this.epoch || ticket.lineage !== this.lineage)\n            return false;\n        const course = ticket.course ? this.courses.get(ticket.course) : undefined;\n        if (ticket.course && !course)\n            return false;\n        return !course || (!course.locked && course.authorizedEpoch === this.epoch && course.version === ticket.courseVersion && enrollmentHasAccess(course.enrollment));\n    }\n    acquire(ticket, kind) {\n        const key = ticket.course ? `course:${ticket.course}` : \"account\";\n        const existing = this.operations.get(key);\n        if (!this.current(ticket) || (existing && this.current(existing.ticket)))\n            return null;\n        const operation = { ticket, kind, key };\n        this.operations.set(key, operation);\n        return operation;\n    }\n    pending(course) {\n        const operation = this.operations.get(course ? `course:${course}` : \"account\");\n        return Boolean(operation && this.current(operation.ticket));\n    }\n    owns(operation) { return this.operations.get(operation.key) === operation && this.current(operation.ticket); }\n    release(operation) { if (this.operations.get(operation.key) === operation)\n        this.operations.delete(operation.key); }\n    requireCurrent(ticket) { if (!this.current(ticket))\n        throw new RetiredOperation(); }\n    async credential(ticket) {\n        this.requireCurrent(ticket);\n        const sequence = ++this.observation;\n        let token;\n        try {\n            token = await this.getter?.call(this.binding) ?? null;\n        }\n        catch (error) {\n            if (sequence === this.observation && this.current(ticket))\n                this.quarantineAccount();\n            throw error;\n        }\n        // A newer observation owns authority, even if this older getter settles last.\n        if (sequence < this.acceptedObservation)\n            throw new RetiredOperation();\n        this.acceptedObservation = sequence;\n        this.requireCurrent(ticket);\n        if (this.token !== undefined && token !== this.token) {\n            this.token = token;\n            this.credentialChanged();\n            throw new RetiredOperation();\n        }\n        this.token = token;\n        return token;\n    }\n    observing = false;\n    async observe() {\n        if (!this.active || this.observing)\n            return;\n        this.observing = true;\n        try {\n            await this.credential(this.capture());\n        }\n        catch { /* Observation retires authority; reads report actionable failures. */ }\n        finally {\n            this.observing = false;\n        }\n    }\n    checkExpiry() {\n        for (const [id, course] of this.courses)\n            if (!course.locked && !enrollmentHasAccess(course.enrollment))\n                this.lockCourse(id);\n    }\n    wakeDelay() { return Math.min(500, this.expiryDelay()); }\n    expiryDelay() {\n        let delay = Infinity;\n        const now = BigInt(Date.now()) * 1000000n;\n        for (const course of this.courses.values()) {\n            if (course.locked)\n                continue;\n            const expiry = expiryNanos(course.enrollment.expiresAt);\n            if (expiry !== null)\n                delay = Math.min(delay, Math.max(1, Number((expiry - now + 999999n) / 1000000n)));\n        }\n        return delay;\n    }\n    bindOwner(owner, ticket, observation) {\n        this.requireCurrent(ticket);\n        if (observation < this.acceptedRead)\n            throw new RetiredOperation();\n        this.acceptedRead = observation;\n        if (typeof owner !== \"string\" || !owner.trim())\n            throw new AcademyError(\"Academy returned an invalid account response.\");\n        if (this.owner !== null && this.owner !== owner) {\n            this.retire();\n            throw new RetiredOperation();\n        }\n        const recovered = this.denied || (this.owner !== null && this.authorizedEpoch !== this.epoch);\n        this.owner = owner;\n        this.authorizedEpoch = this.epoch;\n        this.denied = false;\n        if (recovered)\n            this.changed();\n        return owner;\n    }\n    acceptEnrollment(enrollment, ticket, observation) {\n        this.bindOwner(enrollment.studentId, { ...ticket, course: undefined }, observation);\n        const old = this.courses.get(enrollment.courseId);\n        this.courses.set(enrollment.courseId, { enrollment, locked: false, version: old?.version ?? 0, draftVersion: old?.draftVersion ?? 0, readObservation: observation, authorizedEpoch: this.epoch });\n        this.enrollments.set(enrollment.enrollmentId, enrollment.courseId);\n        this.wakeChanged();\n        if (!enrollmentHasAccess(enrollment)) {\n            this.lockCourse(enrollment.courseId);\n            throw new AcademyError(\"Course access has expired or is locked.\", 403, \"cedros.academy.enrollment_locked\");\n        }\n    }\n    rememberDashboard(enrollments) {\n        for (const enrollment of enrollments) {\n            if (enrollment.studentId !== this.owner)\n                throw new AcademyError(\"Academy returned an invalid enrollment owner.\");\n            const old = this.courses.get(enrollment.courseId);\n            this.courses.set(enrollment.courseId, { enrollment, locked: old?.locked ?? !enrollmentHasAccess(enrollment), version: old?.version ?? 0, draftVersion: old?.draftVersion ?? 0, readObservation: old?.readObservation ?? -1, authorizedEpoch: old?.authorizedEpoch ?? -1 });\n            this.enrollments.set(enrollment.enrollmentId, enrollment.courseId);\n            if (!enrollmentHasAccess(enrollment))\n                this.lockCourse(enrollment.courseId);\n        }\n        this.wakeChanged();\n    }\n    knownLocked(courseId) { return this.courses.get(courseId)?.locked ?? false; }\n    courseFor(enrollmentId) { return this.enrollments.get(enrollmentId); }\n    lockCourse(id) {\n        const course = this.courses.get(id);\n        if (course && !course.locked) {\n            course.locked = true;\n            course.version++;\n            course.draftVersion++;\n            this.changed();\n        }\n    }\n    enrollmentFor(courseId) { return this.courses.get(courseId)?.enrollment.enrollmentId; }\n    courseDraftVersion(id) { return this.courses.get(id)?.draftVersion ?? 0; }\n    courseVersion(id) { return this.courses.get(id)?.version ?? 0; }\n    responseCurrent(ticket, observation) {\n        return this.current({ ...ticket, course: undefined }) && observation >= (ticket.course ? this.courses.get(ticket.course)?.readObservation ?? -1 : this.acceptedRead);\n    }\n    denial(error, ticket, observation, resourceRequest = false) {\n        if (!this.responseCurrent(ticket, observation) || !(error instanceof AcademyError))\n            return;\n        if (ticket.course && ticket.courseVersion !== this.courseVersion(ticket.course))\n            return;\n        const resourceDenial = [\"cedros.academy.enrollment_forbidden\", \"cedros.academy.enrollment_locked\", \"cedros.academy.entitlement_denied\", \"cedros.academy.entitlement_context_invalid\"].includes(error.code);\n        if (error.code === \"cedros.academy.account_auth_required\" || error.code === \"cedros.academy.account_context_changed\" || error.code === \"cedros.academy.account_context_invalid\" || error.status === 401 || (error.status === 403 && !ticket.course && !resourceDenial && !resourceRequest)) {\n            if (observation >= this.acceptedRead && !this.denied) {\n                this.denied = true;\n                this.retire();\n            }\n        }\n        else if (ticket.course && (resourceDenial || error.status === 403))\n            this.lockCourse(ticket.course);\n        else if (ticket.course && [\"cedros.academy.drip_contract_unsupported\", \"cedros.academy.lesson_runtime_unsupported\"].includes(error.code))\n            this.quarantineCourse(ticket.course);\n    }\n}\n// Separate roots using the same live host binding share account invalidation.\n// Weak binding keys avoid retaining a discarded host services/getter object.\nconst cookieBinding = {};\nconst authorities = new WeakMap();\nexport function authorityFor(site, getter, binding) {\n    const key = binding ?? getter ?? cookieBinding;\n    let sites = authorities.get(key);\n    if (!sites) {\n        sites = new Map();\n        authorities.set(key, sites);\n    }\n    let entries = sites.get(site);\n    if (!entries) {\n        entries = [];\n        sites.set(site, entries);\n    }\n    let entry = entries.find(entry => entry.getter === getter);\n    if (!entry) {\n        entry = { getter, scope: new LearnerAuthority() };\n        entry.scope.configure(site, getter, binding);\n        entries.push(entry);\n    }\n    return entry.scope;\n}\n/** Retain only quarantined same-site/same-owner intent across host binding replacement. */\nexport class LearnerBinding {\n    scope = new LearnerAuthority();\n    generation = 0;\n    lineage = 0;\n    courseViews = new Map();\n    configure(site, getter, binding) {\n        this.configureScope(authorityFor(site, getter, binding));\n    }\n    configureScope(scope, preserveOwner = true) {\n        if (scope === this.scope)\n            return;\n        const previous = this.scope;\n        // This owner is an expectation from the previous verified read, never readiness.\n        const continuation = preserveOwner && previous.site === scope.site && previous.owner !== null && scope.expectOwner(previous.owner, previous);\n        if (previous.site && !continuation) {\n            this.generation++;\n            this.courseViews.clear();\n        }\n        this.scope = scope;\n        this.lineage = scope.lineage;\n    }\n    get viewGeneration() {\n        if (this.lineage !== this.scope.lineage) {\n            this.lineage = this.scope.lineage;\n            this.generation++;\n            this.courseViews.clear();\n        }\n        return this.generation;\n    }\n    courseViewVersion(courseId) {\n        const draft = this.scope.courseDraftVersion(courseId), locked = this.scope.knownLocked(courseId);\n        const previous = this.courseViews.get(courseId);\n        let version = previous?.version ?? 0;\n        if (previous && ((previous.scope === this.scope && previous.draft !== draft) || (!previous.locked && locked)))\n            version++;\n        this.courseViews.set(courseId, { scope: this.scope, draft, locked, version });\n        return version;\n    }\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/courseAccess.js","kind":"module","text":"export function hasOpenLessons(course) {\n    return course.learningAccess === \"open\" && course.status === \"published\" && course.audience !== \"invited\"\n        && course.pricing?.type === \"free\" && course.pricing.amountCents === 0;\n}\nexport function inferCourseAudience(course) {\n    if (course.status === \"private\")\n        return \"invited\";\n    if (course.status === \"published\")\n        return \"public\";\n    if (course.audience === \"public\" || course.audience === \"invited\")\n        return course.audience;\n    if (course.status === \"archived\")\n        return course.archivedFromStatus === \"published\" ? \"public\" : \"invited\";\n    return \"public\";\n}\nexport function liveCourseStatus(audience) {\n    return audience === \"invited\" ? \"private\" : \"published\";\n}\nexport function courseUrlIsLocked(course) {\n    return [\"published\", \"private\", \"archived\", \"retired\", \"suspended\"].includes(course.status);\n}\nexport function courseAccessSummary(course) {\n    if (course.status === \"private\") {\n        return { title: \"Invitation only\", detail: \"Existing learners or admin grants\" };\n    }\n    if (course.status === \"published\") {\n        const detail = hasOpenLessons(course) ? \"Read without an account\" : course.enrollmentStatus === \"closed\" ? \"New enrollment closed\" : \"Open enrollment\";\n        if (course.listed ?? true) {\n            return {\n                title: \"Public catalog\",\n                detail\n            };\n        }\n        return {\n            title: \"Direct link\",\n            detail\n        };\n    }\n    if (course.status === \"archived\") {\n        return {\n            title: \"Archived\",\n            detail: course.archivedFromStatus === \"published\"\n                ? \"Previously public\"\n                : course.archivedFromStatus === \"private\"\n                    ? \"Previously invitation only\"\n                    : \"Prior audience unavailable\"\n        };\n    }\n    if (course.audience === \"invited\") {\n        return { title: \"Invitation only planned\", detail: \"Launch before granting access\" };\n    }\n    return {\n        title: (course.listed ?? true) ? \"Public catalog planned\" : \"Direct link planned\",\n        detail: course.learningAccess === \"open\" && course.pricing?.type === \"free\" && course.pricing.amountCents === 0\n            ? \"Launch with open lessons\"\n            : course.enrollmentStatus === \"closed\" ? \"Launch with enrollment closed\" : \"Launch with open enrollment\"\n    };\n}\nexport function courseLaunchImpact(course, curriculum) {\n    const lessonCount = curriculum.sections.reduce((total, section) => total + section.lessons.length, 0);\n    if (course.audience === \"invited\") {\n        return [\n            \"The course will not appear in public catalog or detail routes.\",\n            \"Only learners granted access in Students can open it.\",\n            `${lessonCount} complete lesson${lessonCount === 1 ? \"\" : \"s\"} will be available to invited learners.`\n        ];\n    }\n    return [\n        course.listed ? \"The course will appear in the public catalog.\" : \"The course will be live only through its direct link.\",\n        course.learningAccess === \"open\" && course.pricingType === \"free\" ? \"Anyone can read the lessons without signing in or enrolling.\" : course.enrollmentStatus === \"open\" ? \"Signed-in learners can enroll immediately.\" : \"New enrollment remains closed.\",\n        `${lessonCount} complete lesson${lessonCount === 1 ? \"\" : \"s\"} will be available to learners.`\n    ];\n}\nexport function liveCourseChangeTitle(course, draft) {\n    const targetStatus = liveCourseStatus(draft.audience);\n    if (course.status === targetStatus)\n        return `Publish changes to ${course.title}?`;\n    return targetStatus === \"private\" ? `Make ${course.title} invitation only?` : `Make ${course.title} public?`;\n}\nexport function liveCourseChangeDescription(course, draft) {\n    if (course.status === liveCourseStatus(draft.audience))\n        return \"Saved changes become available immediately to learners who can open this course.\";\n    return draft.audience === \"invited\"\n        ? \"Public discovery and self-enrollment stop when these changes are published.\"\n        : \"The course becomes publicly discoverable according to the choices below.\";\n}\nexport function liveCourseChangeImpact(course, draft, curriculum) {\n    if (course.status !== liveCourseStatus(draft.audience)) {\n        const impact = courseLaunchImpact(draft, curriculum);\n        if (course.status === \"published\" && draft.audience === \"invited\") {\n            impact.splice(1, 1, \"Existing enrolled learners keep access. Revoke individual access in Students if needed; new learners need an admin grant.\");\n        }\n        return impact;\n    }\n    return [\n        \"Course details and lesson content are replaced together.\",\n        \"Current learner progress and certificates remain intact.\",\n        \"Academy records the update in course history and the audit trail.\"\n    ];\n}\nexport function liveCourseChangeLabel(course, draft) {\n    if (!draft || course.status === liveCourseStatus(draft.audience))\n        return \"Publish changes\";\n    return draft.audience === \"invited\" ? \"Make invitation only\" : \"Make public\";\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/courseArtwork.js","kind":"module","text":"import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nexport function CourseArtwork({ course, hideWhenUnavailable = false }) {\n    const url = course.thumbnailRef?.trim();\n    const [failedUrl, setFailedUrl] = useState(\"\");\n    // Media URLs and HTTPS images only; opaque asset references are not browser URLs.\n    if (!url || failedUrl === url || !(url.startsWith(\"/media/\") || /^https:\\/\\//i.test(url)))\n        return hideWhenUnavailable ? _jsx(_Fragment, {}) : (_jsxs(\"div\", { className: \"ca-course-artwork ca-course-artwork--missing\", \"aria-label\": \"Course image unavailable\", children: [_jsx(\"svg\", { viewBox: \"0 0 24 24\", width: \"32\", height: \"32\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"1.5\", strokeLinecap: \"round\", strokeLinejoin: \"round\", \"aria-hidden\": \"true\", children: _jsx(\"path\", { d: \"M12 7v14M3 3h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5v17h-5a4 4 0 0 0-4 1 4 4 0 0 0-4-1H3Z\" }) }), _jsx(\"span\", { children: \"Text lessons\" })] }));\n    return _jsx(\"img\", { className: \"ca-course-artwork\", src: url, alt: \"\", loading: \"lazy\", width: \"700\", height: \"700\", onError: () => setFailedUrl(url) });\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":118,"specifier":"react","start":113}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/formValidation.js","kind":"module","text":"import { useAdminCallbackFence } from \"./adminAuthority.js\";\nimport { useEffect, useRef, useState } from \"react\";\n/** Keep validation beside fields and focus it only after an attempted submit. */\nexport function useFormValidation() {\n    const current = useAdminCallbackFence();\n    const ref = useRef(null);\n    const [errors, setErrors] = useState({});\n    useEffect(() => {\n        if (!current() || !Object.values(errors).some(Boolean))\n            return;\n        const field = ref.current?.querySelector('[aria-invalid=\"true\"]');\n        if (!field)\n            return;\n        for (let parent = field.parentElement; parent && parent !== ref.current; parent = parent.parentElement) {\n            if (parent instanceof HTMLDetailsElement)\n                parent.open = true;\n        }\n        field.focus();\n        field.scrollIntoView({ block: \"nearest\" });\n    }, [errors]);\n    function validate(next) {\n        setErrors(next);\n        return !Object.values(next).some(Boolean);\n    }\n    return { ref, errors, validate };\n}\n","imports":[{"dynamic":false,"end":58,"specifier":"./adminAuthority.js","start":39},{"dynamic":false,"end":111,"specifier":"react","start":106}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/lessonContent.js","kind":"module","text":"import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { lessonHeading, lessonTextParts, normalizeLessonHeadings } from \"./lessonText.js\";\nexport function LearnerLessonBody({ body, headingLevel = 4, title, onNavigate }) {\n    const normalized = normalizeLessonHeadings(body);\n    const blocks = normalized.split(/\\n\\s*\\n/);\n    return _jsx(\"div\", { className: \"ca-lesson-body\", children: blocks.map((block, index) => {\n            const lines = block.split(\"\\n\");\n            const heading = lessonHeading(lines[0]);\n            if (heading && lines.length === 1) {\n                // The reader already displays lesson identity. Keep distinct headings and\n                // heading-only lessons, while avoiding the common imported H1 repetition.\n                if (index === 0 && blocks.length > 1 && heading.depth === 1 && heading.text.trim() === title?.trim())\n                    return null;\n                const level = Math.min(6, headingLevel + heading.depth - 1);\n                const Heading = level === 4 ? \"h4\" : level === 5 ? \"h5\" : \"h6\";\n                return _jsx(Heading, { children: _jsx(InlineMarkdown, { onNavigate: onNavigate, text: heading.text }) }, index);\n            }\n            if (lines.every((line) => /^[-*]\\s+/.test(line))) {\n                return _jsx(\"ul\", { children: lines.map((line, lineIndex) => _jsx(\"li\", { children: _jsx(InlineMarkdown, { onNavigate: onNavigate, text: line.replace(/^[-*]\\s+/, \"\") }) }, lineIndex)) }, index);\n            }\n            if (lines.every((line) => /^\\d+[.)]\\s+/.test(line))) {\n                return _jsx(\"ol\", { children: lines.map((line, lineIndex) => _jsx(\"li\", { children: _jsx(InlineMarkdown, { onNavigate: onNavigate, text: line.replace(/^\\d+[.)]\\s+/, \"\") }) }, lineIndex)) }, index);\n            }\n            return _jsx(\"p\", { children: _jsx(InlineMarkdown, { onNavigate: onNavigate, text: block }) }, index);\n        }) });\n}\nfunction InlineMarkdown({ text, onNavigate }) {\n    return _jsx(_Fragment, { children: lessonTextParts(text).map((part, index) => part.href\n            ? _jsx(\"a\", { href: part.href, onClick: onNavigate ? (event) => { event.preventDefault(); if (part.href)\n                    onNavigate(part.href); } : undefined, rel: \"noopener noreferrer\", children: part.text }, index)\n            : _jsx(\"span\", { children: part.text }, index)) });\n}\n","imports":[{"dynamic":false,"end":69,"specifier":"react/jsx-runtime","start":52},{"dynamic":false,"end":160,"specifier":"./lessonText.js","start":145}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/lessonText.js","kind":"module","text":"export function lessonHeading(line) {\n    const prefix = /^(#{1,3})\\s+/.exec(line);\n    if (!prefix)\n        return null;\n    const text = line.slice(prefix[0].length);\n    return text && !/[\\r\\n\\u2028\\u2029]/.test(text) ? { depth: prefix[1].length, text } : null;\n}\nexport function normalizeLessonHeadings(body) {\n    const lines = body.trim().split(\"\\n\");\n    return lines.map((line, index) => (lessonHeading(line) && /^\\S/.test(lines[index + 1] ?? \"\") ? `${line}\\n` : line)).join(\"\\n\");\n}\n// The cursor only advances. Malformed links must not cause overlapping\n// searches across contributor-controlled lesson bodies or course-team questions.\nexport function lessonTextParts(text) {\n    const parts = [];\n    let cursor = 0;\n    let labelStart = -1;\n    for (let index = 0; index < text.length; index += 1) {\n        if (text[index] === \"[\") {\n            if (labelStart < 0)\n                labelStart = index;\n            continue;\n        }\n        if (text[index] !== \"]\")\n            continue;\n        const start = labelStart;\n        labelStart = -1;\n        if (start < 0 || index === start + 1 || !text.startsWith(\"(https://\", index + 1))\n            continue;\n        const urlStart = index + 2;\n        let end = urlStart + \"https://\".length;\n        while (end < text.length && text[end] !== \")\" && !/\\s/.test(text[end]))\n            end += 1;\n        if (end > urlStart + \"https://\".length && text[end] === \")\") {\n            if (start > cursor)\n                parts.push({ text: text.slice(cursor, start) });\n            parts.push({ text: text.slice(start + 1, index), href: text.slice(urlStart, end) });\n            cursor = end + 1;\n        }\n        // Even an invalid URL consumes its scanned span. Retain it as literal text\n        // rather than revisiting every opening bracket inside it.\n        index = end;\n    }\n    if (cursor < text.length)\n        parts.push({ text: text.slice(cursor) });\n    return parts;\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/links.js","kind":"module","text":"export function courseCatalogUrl(slug) {\n    const course = slug?.trim() ?? \"\";\n    return course ? `/courses?course=${encodeURIComponent(course)}` : \"/courses\";\n}\nexport function certificateVerificationUrl(certificateId) {\n    return `/academy/certificates/verify?certificateId=${encodeURIComponent(certificateId)}`;\n}\nexport function courseSlugFromSearch(search) {\n    return new URLSearchParams(search).get(\"course\")?.trim() ?? \"\";\n}\nexport function currentCourseSlug() {\n    return typeof window === \"undefined\" ? \"\" : courseSlugFromSearch(window.location.search);\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/response.js","kind":"module","text":"import { isRecord } from \"./authority.js\";\nexport { AcademyError } from \"./authority.js\";\nexport { readResponse as readAcademyResponse } from \"./authority.js\";\nexport function readAcademyDraft(payload) {\n    const output = isRecord(payload) && isRecord(payload.output) ? payload.output : null;\n    const messages = output?.kind === \"messages\" && Array.isArray(output.messages) ? output.messages : [];\n    const paragraphs = messages.filter((message) => isRecord(message) && message.role === \"assistant\")\n        .flatMap((message) => isRecord(message) && Array.isArray(message.parts) ? message.parts : [])\n        .filter((part) => isRecord(part) && part.kind === \"text\" && typeof part.text === \"string\")\n        .map((part) => isRecord(part) && typeof part.text === \"string\" ? part.text.trim() : \"\")\n        .filter(Boolean);\n    if (paragraphs.length === 0)\n        throw new Error(\"The site provider did not return draft content.\");\n    return paragraphs.join(\"\\n\\n\");\n}\n","imports":[{"dynamic":false,"end":40,"specifier":"./authority.js","start":26},{"dynamic":false,"end":87,"specifier":"./authority.js","start":73},{"dynamic":false,"end":157,"specifier":"./authority.js","start":143}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/retainedWrite.js","kind":"module","text":"import { useEffect, useRef, useState } from \"react\";\nimport { isRecord } from \"./authority.js\";\nimport { WriteAttempt } from \"./writeAttempt.js\";\nfunction retained(intent) {\n    return intent.attempts.some(attempt => [\"dispatched\", \"uncertain\", \"confirmed\"].includes(attempt.disposition));\n}\n/** Private intent survives temporary quarantine. The owning boundary retires it on turnover. */\nexport function useRetainedWrite(scope, onConfirmed, course) {\n    const holder = useRef(null);\n    const mounted = useRef(true);\n    const [, redraw] = useState(0);\n    const latestConfirmation = useRef(onConfirmed);\n    latestConfirmation.current = onConfirmed;\n    useEffect(() => { mounted.current = true; return () => { mounted.current = false; }; }, []);\n    const intent = holder.current;\n    const confirmed = intent?.attempts.find(attempt => attempt.disposition === \"confirmed\" && attempt.receiptReady);\n    useEffect(() => {\n        if (!intent || holder.current !== intent || !confirmed || scope.owner !== intent.body.expectedAccountId || scope.site !== intent.site\n            || scope.authorizedEpoch !== scope.epoch || !scope.current(scope.capture(course)))\n            return;\n        // Retire every queued retry before clearing fields. Its preflight can no longer dispatch.\n        holder.current = null;\n        latestConfirmation.current(confirmed.receipt, confirmed);\n        redraw(value => value + 1);\n    }, [intent, confirmed, scope, scope.version, course]);\n    return {\n        original: intent && retained(intent) ? intent : null,\n        locked() { return Boolean(holder.current && retained(holder.current)); },\n        begin(body, key, operation, current) {\n            const previous = holder.current;\n            // Capture privately during preflight; this is not yet a transport original.\n            const captured = JSON.parse(JSON.stringify(body));\n            if (!isRecord(captured) || captured.expectedAccountId !== body.expectedAccountId)\n                throw new Error(\"Academy could not capture the draft account.\");\n            const intent = previous && retained(previous) ? previous : {\n                body: Object.freeze({ ...captured, expectedAccountId: body.expectedAccountId }), key, site: scope.site, attempts: []\n            };\n            holder.current = intent;\n            const attempt = new WriteAttempt(operation, intent.body.expectedAccountId, () => mounted.current && holder.current === intent && !intent.attempts.some(item => item.disposition === \"confirmed\") && current(), () => {\n                if (attempt.original && !intent.transport)\n                    intent.transport = attempt.original;\n                if (mounted.current && holder.current === intent)\n                    redraw(value => value + 1);\n            }, intent.transport);\n            intent.attempts.push(attempt);\n            return { intent, attempt };\n        },\n        failureMessage(error) {\n            const message = error instanceof Error ? error.message : \"Academy could not save this draft.\";\n            return holder.current && retained(holder.current)\n                ? `${message} The original result is unconfirmed. Retry the original explicitly; its account, key and content are retained.`\n                : `${message} No write was committed by this attempt. Your draft is kept and can be edited after authorization.`;\n        }\n    };\n}\n","imports":[{"dynamic":false,"end":50,"specifier":"react","start":45},{"dynamic":false,"end":93,"specifier":"./authority.js","start":79},{"dynamic":false,"end":143,"specifier":"./writeAttempt.js","start":126}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/rowActions.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useAdminCallbackFence, useAdminAuthority } from \"./adminAuthority.js\";\nimport { useEffect, useId, useRef, useState } from \"react\";\n/** Native top-layer popover keeps row commands outside table scroll clipping. */\nexport function RowActions(props) {\n    const currentScope = useAdminCallbackFence();\n    const scope = useAdminAuthority();\n    const id = useId();\n    const trigger = useRef(null);\n    const menu = useRef(null);\n    const [expanded, setExpanded] = useState(false);\n    useEffect(() => scope.subscribe(() => { if (!currentScope())\n        menu.current?.hidePopover(); }), [scope, currentScope]);\n    useEffect(() => {\n        if (!expanded)\n            return;\n        // A fixed top-layer menu must not linger over unrelated content after its\n        // anchor moves. Internal menu scrolling keeps the commands available.\n        function dismissMovedMenu(event) {\n            const element = menu.current;\n            if (!element || event.target instanceof Node && element.contains(event.target))\n                return;\n            const restoreFocus = element.contains(document.activeElement);\n            element.hidePopover();\n            if (restoreFocus && currentScope())\n                trigger.current?.focus({ preventScroll: true });\n        }\n        window.addEventListener(\"scroll\", dismissMovedMenu, true);\n        window.addEventListener(\"resize\", dismissMovedMenu);\n        return () => {\n            window.removeEventListener(\"scroll\", dismissMovedMenu, true);\n            window.removeEventListener(\"resize\", dismissMovedMenu);\n        };\n    }, [expanded]);\n    function open(last = false) {\n        if (!currentScope() || props.disabled)\n            return;\n        const element = menu.current;\n        const bounds = trigger.current?.getBoundingClientRect();\n        if (!element || !bounds)\n            return;\n        element.showPopover();\n        const width = element.offsetWidth;\n        const height = element.offsetHeight;\n        element.style.left = `${Math.max(8, Math.min(bounds.right - width, window.innerWidth - width - 8))}px`;\n        element.style.top = `${Math.max(8, bounds.bottom + height + 8 > window.innerHeight ? bounds.top - height - 4 : bounds.bottom + 4)}px`;\n        const items = element.querySelectorAll('[role=\"menuitem\"]');\n        items[last ? items.length - 1 : 0]?.focus();\n    }\n    function close() {\n        menu.current?.hidePopover();\n        if (currentScope())\n            trigger.current?.focus();\n    }\n    return _jsxs(\"div\", { className: \"cedros-dropdown-menu ca-row-menu\", children: [_jsx(\"button\", { ref: trigger, type: \"button\", className: \"cedros-data-btn cedros-data-btn--ghost cedros-row-actions__trigger ca-button\", \"aria-label\": props.label, title: props.label, disabled: props.disabled, \"aria-haspopup\": \"menu\", \"aria-expanded\": expanded, \"aria-controls\": id, onClick: () => expanded ? close() : open(), onKeyDown: (event) => {\n                    if (event.key === \"ArrowDown\" || event.key === \"ArrowUp\") {\n                        event.preventDefault();\n                        open(event.key === \"ArrowUp\");\n                    }\n                }, children: _jsxs(\"svg\", { \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: [_jsx(\"circle\", { cx: \"12\", cy: \"12\", r: \"1\" }), _jsx(\"circle\", { cx: \"19\", cy: \"12\", r: \"1\" }), _jsx(\"circle\", { cx: \"5\", cy: \"12\", r: \"1\" })] }) }), _jsx(\"div\", { ref: menu, id: id, popover: \"auto\", role: \"menu\", \"aria-label\": props.label, className: \"cedros-dropdown-menu__content\", onToggle: (event) => setExpanded(event.newState === \"open\"), onKeyDown: (event) => {\n                    const items = Array.from(menu.current?.querySelectorAll('[role=\"menuitem\"]') ?? []);\n                    const current = items.findIndex(item => item === document.activeElement);\n                    let next = current;\n                    if (event.key === \"ArrowDown\")\n                        next = (current + 1) % items.length;\n                    else if (event.key === \"ArrowUp\")\n                        next = (current - 1 + items.length) % items.length;\n                    else if (event.key === \"Home\")\n                        next = 0;\n                    else if (event.key === \"End\")\n                        next = items.length - 1;\n                    else if (event.key === \"Escape\" || event.key === \"Tab\") {\n                        if (event.key === \"Escape\")\n                            event.preventDefault();\n                        close();\n                        return;\n                    }\n                    else if (event.key.length === 1) {\n                        next = items.findIndex((item, index) => index > current && item.textContent?.toLowerCase().startsWith(event.key.toLowerCase()));\n                        if (next < 0)\n                            next = items.findIndex(item => item.textContent?.toLowerCase().startsWith(event.key.toLowerCase()));\n                    }\n                    else\n                        return;\n                    event.preventDefault();\n                    items[next]?.focus();\n                }, children: props.actions.map((action, index) => _jsxs(\"div\", { role: \"none\", children: [action.destructive && index > 0 && !props.actions[index - 1].destructive ? _jsx(\"div\", { role: \"separator\", className: \"cedros-dropdown-menu__separator\" }) : null, _jsx(\"button\", { type: \"button\", role: \"menuitem\", tabIndex: -1, title: action.label, \"aria-disabled\": action.disabled || undefined, className: `cedros-dropdown-menu__item${action.destructive ? \" cedros-dropdown-menu__item--danger\" : \"\"}`, onClick: () => {\n                                if (!currentScope() || props.disabled || action.disabled)\n                                    return;\n                                close();\n                                action.onSelect();\n                            }, children: action.label })] }, action.label)) })] });\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":141,"specifier":"./adminAuthority.js","start":122},{"dynamic":false,"end":201,"specifier":"react","start":196}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/styles.js","kind":"module","text":"const inlinedStyles = \".cedros-academy-course-document {\\n  max-width: 64rem;\\n  margin-inline: auto;\\n  padding: 1.5rem;\\n  overflow-wrap: anywhere;\\n  line-height: 1.65;\\n  color: var(--ca5ss4b-runtime-text, inherit);\\n}\\n.cedros-academy-course-document nav { margin-block: 1.25rem; }\\n.cedros-academy-course-document section { max-width: 48rem; }\\n.cedros-academy-course-document a { text-underline-offset: 0.2em; }\\n\\n.cedros-academy {\\n    /* Public blocks inherit the site font and documented runtime color roles.\\n       Shape is extension-owned; the runtime does not export radius tokens. */\\n    --ca-radius-sm: 7px;\\n    --ca-radius-md: 8px;\\n    --ca-radius-lg: 12px;\\n    --ca-radius-pill: 999px;\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n    font: inherit;\\n    width: 100%;\\n    max-width: 100%;\\n    min-width: 0;\\n    contain: inline-size;\\n    container: cedros-academy / inline-size;\\n    overflow-wrap: break-word;\\n  }\\n  .cedros-academy * { box-sizing: border-box; }\\n  .cedros-academy > *,\\n  .cedros-academy .ca-card-grid,\\n  .cedros-academy .ca-card,\\n  .cedros-academy .ca-notice {\\n    max-width: 100%;\\n    min-width: 0;\\n  }\\n  .cedros-academy a { color: inherit; }\\n  .cedros-academy p,\\n  .cedros-academy h2,\\n  .cedros-academy h3,\\n  .cedros-academy h4 { margin-top: 0; letter-spacing: 0; }\\n  .cedros-academy p { line-height: 1.55; }\\n  .cedros-academy .ca-muted {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 13px;\\n  }\\n\\n  .cedros-academy .ca-card {\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-md);\\n    padding: 14px;\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    box-shadow: none;\\n  }\\n  .cedros-academy .ca-card + .ca-card,\\n  .cedros-academy .ca-notice + .ca-card,\\n  .cedros-academy .ca-card + .ca-notice { margin-top: 12px; }\\n  .cedros-academy .ca-card-header {\\n    display: flex;\\n    gap: 10px;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    margin-bottom: 10px;\\n  }\\n  .cedros-academy .ca-card h3,\\n  .cedros-academy .ca-card h4 {\\n    margin-bottom: 6px;\\n    font-size: 16px;\\n    line-height: 1.3;\\n    font-weight: 650;\\n  }\\n  .cedros-academy .ca-button {\\n    display: inline-flex;\\n    min-height: 34px;\\n    align-items: center;\\n    justify-content: center;\\n    gap: 6px;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #cbd5e1);\\n    border-radius: var(--ca-radius-sm);\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    color: inherit;\\n    padding: 7px 11px;\\n    cursor: pointer;\\n    font: inherit;\\n    font-weight: 550;\\n    text-decoration: none;\\n    white-space: nowrap;\\n  }\\n  .cedros-academy .ca-button-primary {\\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    color: var(--ca5ss4b-runtime-action-fg, #ffffff);\\n    border-color: var(--ca5ss4b-runtime-action-bg, #18181b);\\n  }\\n\\n  .cedros-academy .ca-button:focus-visible,\\n  .cedros-academy a.ca-button:focus-visible,\\n  .cedros-academy .ca-field input:focus-visible,\\n  .cedros-academy .ca-field textarea:focus-visible,\\n  .cedros-academy .ca-field select:focus-visible {\\n    outline: 2px solid var(--ca5ss4b-runtime-text, #171717);\\n    outline-offset: 2px;\\n  }\\n  .cedros-academy .ca-button[disabled] {\\n    cursor: not-allowed;\\n    opacity: .55;\\n  }\\n  .cedros-academy .ca-field {\\n    display: grid;\\n    gap: 5px;\\n    margin-bottom: 11px;\\n  }\\n  .cedros-academy .ca-field label,\\n  .cedros-academy .ca-field > span:first-child {\\n    font-size: 12px;\\n    font-weight: 650;\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n  }\\n  .cedros-academy .ca-field input,\\n  .cedros-academy .ca-field textarea,\\n  .cedros-academy .ca-field select {\\n    width: 100%;\\n    min-height: 36px;\\n    border: 1px solid var(--ca5ss4b-runtime-muted, #667085);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 8px 10px;\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    color: inherit;\\n    font: inherit;\\n  }\\n  .cedros-academy .ca-field textarea { min-height: 92px; resize: vertical; }\\n  .cedros-academy .ca-learning-tools { display: grid; gap: 12px; align-items: stretch; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }\\n  .cedros-academy .ca-learner-reviews { display: grid; gap: 12px; }\\n  .cedros-academy .ca-disclosure { border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: var(--ca-radius-md); background: var(--ca5ss4b-runtime-panel, #ffffff); overflow: hidden; }\\n  .cedros-academy .ca-disclosure > summary { padding: 18px 20px; cursor: pointer; font-weight: 650; }\\n  .cedros-academy .ca-disclosure > summary:focus-visible { outline: 3px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: -3px; }\\n  .cedros-academy .ca-disclosure__body { display: grid; gap: 16px; padding: 0 20px 20px; }\\n  .cedros-academy .ca-feedback-item { padding: 16px 0; border-top: 1px solid var(--ca5ss4b-runtime-border, var(--ca-admin-border, #d0d5dd)); overflow-wrap: anywhere; }\\n  .cedros-academy .ca-feedback-item p,\\n  .cedros-academy-admin .ca-feedback-item p { white-space: pre-wrap; }\\n  .cedros-academy .ca-field-error {\\n    color: var(--ca5ss4b-runtime-error, #b42318);\\n    font-size: 12px;\\n  }\\n\\n  .cedros-academy .ca-status {\\n    display: inline-flex;\\n    min-height: 22px;\\n    align-items: center;\\n    border-radius: var(--ca-radius-pill);\\n    padding: 2px 8px;\\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n    line-height: 1.2;\\n    white-space: nowrap;\\n  }\\n  .cedros-academy .ca-status--success { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #027a48) 12%, transparent); color: var(--ca5ss4b-runtime-text, #05603a); }\\n  .cedros-academy .ca-status--warning { background: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 14%, transparent); color: var(--ca5ss4b-runtime-text, #93370d); }\\n  .cedros-academy .ca-status--error { background: color-mix(in srgb, var(--ca5ss4b-runtime-error, #b42318) 12%, transparent); color: var(--ca5ss4b-runtime-text, #7a271a); }\\n  .cedros-academy .ca-status--info { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #175cd3) 10%, transparent); color: var(--ca5ss4b-runtime-text, #1849a9); }\\n  .cedros-academy .ca-notice {\\n    display: grid;\\n    gap: 4px;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-md);\\n    padding: 12px;\\n    margin-bottom: 12px;\\n    background: var(--ca5ss4b-runtime-accent-soft, #f8fafc);\\n  }\\n  .cedros-academy .ca-notice p { margin: 0; }\\n  .cedros-academy .ca-notice--success { border-color: color-mix(in srgb, var(--ca5ss4b-runtime-text, #027a48) 35%, var(--ca5ss4b-runtime-border, #d0d5dd)); }\\n  .cedros-academy .ca-notice--warning { border-color: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 40%, var(--ca5ss4b-runtime-border, #d0d5dd)); }\\n  .cedros-academy .ca-notice--error { border-color: var(--ca5ss4b-runtime-error, #b42318); }\\n  .cedros-academy.ca-public {\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-muted,\\n  .cedros-academy.ca-public .ca-kicker {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n  }\\n  .cedros-academy.ca-public .ca-status--success {\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #171717) 6%, transparent);\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-status--warning {\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 16%, transparent);\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-status--error {\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-error, #b42318) 14%, transparent);\\n    color: var(--ca5ss4b-runtime-text, #171717);\\n  }\\n  .cedros-academy.ca-public .ca-notice--success {\\n    border-color: color-mix(in srgb, var(--ca5ss4b-runtime-border, #d0d5dd) 100%, var(--ca5ss4b-runtime-border, #d0d5dd));\\n  }\\n  .cedros-academy.ca-public .ca-notice--warning {\\n    border-color: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 45%, var(--ca5ss4b-runtime-border, #d0d5dd));\\n  }\\n  .cedros-academy.ca-public .ca-notice--error {\\n    border-color: var(--ca5ss4b-runtime-error, #b42318);\\n  }\\n  .cedros-academy.ca-public .ca-public-shell,\\n  .cedros-academy.ca-public.ca-public-shell {\\n    display: grid;\\n    gap: 16px;\\n    width: min(100%, 1120px);\\n    margin: 0 auto;\\n    padding: clamp(20px, 4vw, 44px) 0;\\n  }\\n  .cedros-academy.ca-public .ca-public-head {\\n    display: grid;\\n    gap: 8px;\\n    max-width: 760px;\\n  }\\n  .cedros-academy.ca-public .ca-public-head h2 {\\n    margin: 0;\\n    font-size: clamp(28px, 4vw, 44px);\\n    line-height: 1.08;\\n    font-weight: 700;\\n  }\\n  .cedros-academy .ca-kicker {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n    font-weight: 700;\\n    letter-spacing: 0;\\n    text-transform: uppercase;\\n  }\\n  .cedros-academy .ca-card-grid {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));\\n    gap: 14px;\\n  }\\n  .cedros-academy .ca-card-grid--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }\\n  .cedros-academy .ca-skeleton-card {\\n    min-height: 156px;\\n    align-content: start;\\n  }\\n  .cedros-academy .ca-skeleton {\\n    display: block;\\n    height: 12px;\\n    border-radius: var(--ca-radius-pill);\\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-muted, #667085) 22%, transparent);\\n    background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ca5ss4b-runtime-panel, #ffffff) 55%, transparent), transparent);\\n    background-size: 220% 100%;\\n    background-repeat: no-repeat;\\n    animation: ca-shimmer var(--motion-duration-skeleton, 1400ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)) infinite;\\n  }\\n  .cedros-academy .ca-skeleton--title {\\n    width: 54%;\\n    height: 18px;\\n    margin-bottom: 10px;\\n  }\\n  .cedros-academy .ca-skeleton--line { width: 88%; margin-bottom: 8px; }\\n  .cedros-academy .ca-skeleton--short { width: 62%; }\\n  .cedros-academy .ca-course-layout {\\n    display: grid;\\n    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);\\n    gap: 14px;\\n    align-items: start;\\n  }\\n  .cedros-academy .ca-course-card,\\n  .cedros-academy .ca-course-primary,\\n  .cedros-academy .ca-course-secondary,\\n  .cedros-academy .ca-player {\\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\\n    border-color: var(--ca5ss4b-runtime-border, #d0d5dd);\\n  }\\n  .cedros-academy .ca-player { border-radius: var(--ca-radius-lg); }\\n  .cedros-academy .ca-meta-list {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));\\n    gap: 8px;\\n    margin: 12px 0;\\n  }\\n  .cedros-academy .ca-meta-list div {\\n    display: grid;\\n    gap: 2px;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 8px;\\n  }\\n  .cedros-academy .ca-meta-list dt {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n  }\\n  .cedros-academy .ca-meta-list dd { margin: 0; font-weight: 650; }\\n  .cedros-academy .ca-public-actions {\\n    display: flex;\\n    gap: 8px;\\n    align-items: center;\\n    flex-wrap: wrap;\\n  }\\n  .cedros-academy .ca-progress {\\n    position: relative;\\n    display: grid;\\n    gap: 6px;\\n    margin: 10px 0;\\n  }\\n  .cedros-academy .ca-progress::before,\\n  .cedros-academy .ca-progress > span {\\n    display: block;\\n    height: 8px;\\n    border-radius: var(--ca-radius-pill);\\n  }\\n  .cedros-academy .ca-progress::before {\\n    content: \\\"\\\";\\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\\n  }\\n  .cedros-academy .ca-progress > span {\\n    position: absolute;\\n    top: 0;\\n    left: 0;\\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    /* Width is a layout property, so it keeps the standard curve. A spring\\n       here would relayout every frame and overshoot the end of the track. */\\n    transition: width var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy .ca-progress strong { font-size: 12px; color: var(--ca5ss4b-runtime-muted, #667085); }\\n  .cedros-academy .ca-curriculum {\\n    display: grid;\\n    gap: 10px;\\n  }\\n  .cedros-academy .ca-curriculum ul {\\n    display: grid;\\n    gap: 6px;\\n    margin: 0;\\n    padding-left: 18px;\\n  }\\n  .cedros-academy .ca-curriculum li span {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n  }\\n  .cedros-academy .ca-instructor-list,\\n  .cedros-academy .ca-instructor-summary {\\n    display: grid;\\n    gap: 6px;\\n  }\\n  .cedros-academy .ca-instructor-list {\\n    border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    padding-top: 12px;\\n  }\\n  .cedros-academy .ca-instructor-summary p { margin-bottom: 8px; }\\n  .cedros-academy .ca-player-layout {\\n    display: grid;\\n    grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr);\\n    gap: 16px;\\n    align-items: start;\\n    margin-top: 16px;\\n  }\\n  .cedros-academy .ca-player-nav {\\n    display: grid;\\n    gap: 12px;\\n  }\\n  .cedros-academy .ca-player-nav ol {\\n    display: grid;\\n    gap: 6px;\\n    margin: 0;\\n    padding: 0;\\n    list-style: none;\\n  }\\n  .cedros-academy .ca-player-lesson {\\n    position: relative;\\n    display: grid;\\n    gap: 3px;\\n    width: 100%;\\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 9px 10px;\\n    background: transparent;\\n    color: inherit;\\n    cursor: pointer;\\n    font: inherit;\\n    text-align: left;\\n    transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\\n      border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy .ca-player-lesson::before {\\n    content: \\\"\\\";\\n    position: absolute;\\n    top: 8px;\\n    bottom: 8px;\\n    left: -1px;\\n    width: 3px;\\n    border-radius: var(--ca-radius-pill);\\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    transform: scaleY(0);\\n    transition: transform var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy .ca-player-lesson[aria-current=\\\"step\\\"] {\\n    border-color: var(--ca5ss4b-runtime-action-bg, #18181b);\\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\\n  }\\n  .cedros-academy .ca-player-lesson[aria-current=\\\"step\\\"]::before { transform: scaleY(1); }\\n  .cedros-academy .ca-player-lesson span:last-child {\\n    color: var(--ca5ss4b-runtime-muted, #667085);\\n    font-size: 12px;\\n  }\\n  .cedros-academy .ca-player-lesson:focus-visible {\\n    outline: 2px solid var(--ca5ss4b-runtime-action-bg, var(--ca5ss4b-runtime-accent, #2f6c7d));\\n    outline-offset: 2px;\\n  }\\n  .cedros-academy .ca-lesson {\\n    min-width: 0;\\n    border-left: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n    padding-left: 16px;\\n  }\\n  .cedros-academy .ca-lesson-body {\\n    display: grid;\\n    gap: 10px;\\n    margin: 14px 0 18px;\\n  }\\n  .cedros-academy .ca-lesson-body > * { margin: 0; }\\n  .cedros-academy .ca-lesson-body p { white-space: pre-wrap; }\\n  .cedros-academy .ca-lesson-body :is(h4, h5, h6) { font-weight: 600; line-height: 1.4; }\\n  .cedros-academy .ca-lesson-body h4 { font-size: 20px; }\\n  .cedros-academy .ca-lesson-body h5 { font-size: 18px; }\\n  .cedros-academy .ca-lesson-body h6 { font-size: 16px; }\\n  .cedros-academy .ca-certificate {\\n    display: grid;\\n    gap: 16px;\\n    border-radius: var(--ca-radius-lg);\\n    width: min(100%, 760px);\\n    margin: 0 auto;\\n    padding: clamp(24px, 5vw, 56px);\\n    border-width: 2px;\\n    text-align: center;\\n  }\\n  .cedros-academy .ca-certificate-heading {\\n    display: flex;\\n    gap: 16px;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    text-align: left;\\n  }\\n  .cedros-academy .ca-certificate-heading h3 {\\n    margin: 5px 0 0;\\n    font-size: clamp(24px, 4vw, 38px);\\n  }\\n  .cedros-academy .ca-certificate-statement { margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); }\\n  .cedros-academy .ca-certificate-holder { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; }\\n  .cedros-academy .ca-certificate-details {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\\n    gap: 10px;\\n    margin: 8px 0 0;\\n    text-align: left;\\n  }\\n  .cedros-academy .ca-certificate-details div {\\n    display: grid;\\n    gap: 4px;\\n    min-width: 0;\\n    padding-top: 10px;\\n    border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\\n  }\\n  .cedros-academy .ca-certificate-details dt { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; }\\n  .cedros-academy .ca-certificate-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }\\n  .cedros-academy .ca-certificate-actions { justify-content: center; }\\n  /* Outermost wrapper a public stack navigator returns once it has pushed a\\n     detail view. It carries the scope root so the shared-axis rules reach it,\\n     which lets the back control and the pushed view travel as one view. */\\n  .cedros-academy.ca-public-stack {\\n    display: grid;\\n    gap: 12px;\\n  }\\n  .cedros-academy.ca-public-stack > .ca-button { justify-self: start; }\\n  .cedros-academy .ca-lookup-form {\\n    display: grid;\\n    grid-template-columns: minmax(0, 1fr) auto;\\n    gap: 10px;\\n    align-items: end;\\n  }\\n  @media (max-width: 760px) {\\n    .cedros-academy .ca-card-grid,\\n    .cedros-academy .ca-card-grid--compact {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy .ca-course-layout,\\n    .cedros-academy .ca-player-layout,\\n    .cedros-academy .ca-lookup-form { grid-template-columns: 1fr; }\\n    .cedros-academy .ca-lesson { border-left: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding: 16px 0 0; }\\n    .cedros-academy .ca-button { width: fit-content; max-width: 100%; white-space: normal; text-align: center; }\\n  }\\n  @media print {\\n    /* Printed output must never capture a half-finished reveal. */\\n    .cedros-academy *,\\n    .cedros-academy *::before,\\n    .cedros-academy *::after {\\n      animation: none !important;\\n      transition: none !important;\\n    }\\n    .cedros-academy .ca-check path { stroke-dashoffset: 0; }\\n    body[data-ca5ss4b-academy-print-certificate] * { visibility: hidden !important; }\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate,\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate * { visibility: visible !important; }\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate {\\n      position: absolute;\\n      inset: 0;\\n      width: 100%;\\n      max-width: none;\\n      border-color: currentColor;\\n      box-shadow: none;\\n    }\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate-actions,\\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate > .ca-muted { display: none !important; }\\n  }\\n.cedros-academy-admin {\\n    --ca-admin-bg: var(--cd-bg, oklch(1 0 0));\\n    --ca-admin-fg: var(--cd-fg, oklch(0.145 0 0));\\n    --ca-admin-card-bg: var(--cd-card-bg, oklch(1 0 0));\\n    --ca-admin-muted: var(--cd-muted, oklch(0.556 0 0));\\n    --ca-admin-muted-bg: var(--cd-muted-bg, oklch(0.97 0 0));\\n    --ca-admin-accent: var(--cd-accent, oklch(0.97 0 0));\\n    --ca-admin-border: var(--cd-border, oklch(0.922 0 0));\\n    --ca-admin-primary: var(--cd-primary, oklch(0.205 0 0));\\n    --ca-admin-primary-fg: var(--cd-primary-fg, oklch(0.985 0 0));\\n    --ca-admin-ring: var(--cd-ring, oklch(0.556 0 0));\\n    --ca-admin-success: var(--cd-success, oklch(0.627 0.194 149.214));\\n    --ca-admin-warning: var(--cd-warning, oklch(0.769 0.188 70.08));\\n    --ca-admin-warning-fg: var(--cd-warning-fg, oklch(0.52 0.12 75));\\n    --ca-admin-error: var(--cd-error, oklch(0.577 0.245 27.325));\\n    --ca-admin-danger-bg: var(--cd-danger-bg, oklch(0.5 0.22 27.325));\\n    --ca-admin-danger-fg: var(--cd-danger-fg, oklch(0.985 0 0));\\n    --ca-admin-info: var(--cd-info, oklch(0.546 0.215 262.881));\\n    --ca-admin-input-bg: var(--cd-input-bg, transparent);\\n    --ca-radius-sm: var(--cd-radius-control, calc(var(--cd-radius, 8px) - 1px));\\n    --ca-radius-md: var(--cd-radius, 8px);\\n    --ca-radius-lg: var(--admin-radius, 12px);\\n    --ca-radius-pill: 999px;\\n    --ca-admin-radius: var(--ca-radius-md);\\n    --ca-admin-dialog-radius: var(--admin-radius, 12px);\\n    --ca-admin-shadow: var(--cd-shadow, 0 1px 2px color-mix(in srgb, var(--ca-admin-fg) 8%, transparent));\\n    color: var(--ca-admin-fg); display: grid; gap: 1rem; width: 100%; max-width: var(--cd-container-page, min(100%, 1360px));\\n    min-width: 0; container: cedros-academy-admin / inline-size; overflow-wrap: anywhere; font: inherit; font-size: 0.875rem;\\n  }\\n  .cedros-academy-admin, .cedros-academy-admin * { box-sizing: border-box; }\\n  .cedros-academy-admin > *, .cedros-academy-admin .ca-grid,\\n  .cedros-academy-admin .ca-card-grid, .cedros-academy-admin .cedros-data-table-wrap { max-width: 100%; min-width: 0; }\\n  .cedros-academy-admin p, .cedros-academy-admin h2,\\n  .cedros-academy-admin h3, .cedros-academy-admin h4 { margin: 0; letter-spacing: 0; }\\n  .cedros-academy-admin p { line-height: 1.5; }\\n  .cedros-academy-admin .ca-muted,\\n  .cedros-academy-admin .cedros-data-card__subtitle { color: var(--ca-admin-muted); font-size: 0.8125rem; }\\n  .cedros-academy-admin .ca-page-header { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }\\n  .cedros-academy-admin .cedros-data__header-text { display: grid; gap: 0.25rem; max-width: 60ch; min-width: min(100%, 18rem); }\\n  .cedros-academy-admin .cedros-data__title { font-size: 1.15rem; line-height: 1.25; font-weight: 600; }\\n  .cedros-academy-admin .cedros-data-actions,\\n  .cedros-academy-admin .ca-row-actions { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }\\n  .cedros-academy-admin .ca-grid,\\n  .cedros-academy-admin .cedros-data-grid,\\n  .cedros-academy-admin .cedros-data-summary-grid {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));\\n    gap: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-grid--two {\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));\\n  }\\n  .cedros-academy-admin .ca-grid--metrics {\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));\\n  }\\n  .cedros-academy-admin .ca-settings-column {\\n    display: grid;\\n    gap: 1rem;\\n    width: min(100%, var(--cd-container-settings, 45rem));\\n  }\\n  .cedros-academy-admin .ca-access-operations > .cedros-data-card__header { flex-wrap: wrap; }\\n  .cedros-academy-admin .ca-access-operations,\\n  .cedros-academy-admin .ca-access-filters { min-width: 0; }\\n  .cedros-academy-admin .ca-card,\\n  .cedros-academy-admin .cedros-data-card,\\n  .cedros-academy-admin.cedros-data-card {\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    background: var(--ca-admin-card-bg);\\n    box-shadow: var(--ca-admin-shadow);\\n  }\\n  .cedros-academy-admin .ca-card,\\n  .cedros-academy-admin.ca-card,\\n  .cedros-academy-admin .cedros-data-card__body {\\n    padding: 0.9rem 1rem;\\n  }\\n  .cedros-academy-admin .ca-card + .ca-card, .cedros-academy-admin .ca-notice + .ca-card,\\n  .cedros-academy-admin .ca-card + .ca-notice { margin-top: 0; }\\n  .cedros-academy-admin .ca-card-header,\\n  .cedros-academy-admin .cedros-data-card__header {\\n    display: flex;\\n    gap: 0.75rem;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    margin-bottom: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-card h3,\\n  .cedros-academy-admin .ca-card h4,\\n  .cedros-academy-admin .cedros-data-card__title {\\n    font-size: 0.875rem;\\n    line-height: 1.25;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .ca-button,\\n  .cedros-academy-admin .cedros-data-btn {\\n    display: inline-flex;\\n    min-height: 2rem;\\n    align-items: center;\\n    justify-content: center;\\n    gap: 0.5rem;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-sm);\\n    background: transparent;\\n    color: var(--ca-admin-fg);\\n    padding: 0 0.75rem;\\n    cursor: pointer;\\n    font: inherit;\\n    font-size: 0.8125rem;\\n    font-weight: 500;\\n    line-height: 1;\\n    text-decoration: none;\\n    white-space: nowrap;\\n    transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\\n      border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\\n      box-shadow var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), transform var(--motion-duration-micro, 100ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin .cedros-data-btn--sm,\\n  .cedros-academy-admin .ca-button--sm,\\n  .cedros-academy-admin .cedros-data-row-actions .cedros-data-btn {\\n    min-height: 2rem;\\n    padding-inline: 0.5rem;\\n  }\\n  .cedros-academy-admin .ca-button:not(:disabled):hover,\\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):hover {\\n    background: var(--ca-admin-accent);\\n    transform: translateY(-1px);\\n  }\\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):hover:not(:focus-visible) {\\n    box-shadow: var(--ca-admin-shadow);\\n  }\\n  /* The press itself stays on the micro duration so the control answers the\\n     finger immediately; only the release is allowed to spring back. */\\n  .cedros-academy-admin .ca-button:not(:disabled):active,\\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):active {\\n    transform: scale(0.98);\\n    transition: transform var(--motion-duration-micro, 100ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin .ca-button-primary,\\n  .cedros-academy-admin .cedros-data-btn--primary {\\n    border-color: var(--ca-admin-primary);\\n    background: var(--ca-admin-primary);\\n    color: var(--ca-admin-primary-fg);\\n  }\\n  .cedros-academy-admin .ca-button-primary:not(:disabled):hover,\\n  .cedros-academy-admin .cedros-data-btn--primary:not(:disabled):hover {\\n    background: color-mix(in srgb, var(--ca-admin-primary) 90%, var(--ca-admin-primary-fg));\\n    color: var(--ca-admin-primary-fg);\\n  }\\n  .cedros-academy-admin .ca-button-danger,\\n  .cedros-academy-admin .cedros-data-btn--danger {\\n    border-color: var(--ca-admin-danger-bg);\\n    background: var(--ca-admin-danger-bg);\\n    color: var(--ca-admin-danger-fg);\\n  }\\n  .cedros-academy-admin .ca-button-danger:not(:disabled):hover,\\n  .cedros-academy-admin .cedros-data-btn--danger:not(:disabled):hover {\\n    background: color-mix(in srgb, var(--ca-admin-danger-bg) 90%, var(--ca-admin-fg));\\n    color: var(--ca-admin-danger-fg);\\n  }\\n  .cedros-academy-admin .cedros-data-btn--ghost {\\n    border-color: transparent;\\n    background: transparent;\\n  }\\n  .cedros-academy-admin .ca-button:focus-visible,\\n  .cedros-academy-admin a.ca-button:focus-visible,\\n  .cedros-academy-admin .cedros-data-btn:focus-visible,\\n  .cedros-academy-admin .cedros-data-input:focus-visible,\\n  .cedros-academy-admin .cedros-data-select:focus-visible,\\n  .cedros-academy-admin .cedros-data-textarea:focus-visible {\\n    outline: none;\\n    border-color: var(--ca-admin-ring);\\n    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca-admin-ring) 14%, transparent);\\n  }\\n  .cedros-academy-admin .ca-button[disabled],\\n  .cedros-academy-admin .cedros-data-btn[disabled] {\\n    cursor: not-allowed;\\n    opacity: 0.5;\\n    transform: none;\\n  }\\n  .cedros-academy-admin .ca-field,\\n  .cedros-academy-admin .cedros-data-field {\\n    display: grid;\\n    gap: 0.25rem;\\n    align-content: start;\\n    margin: 0 0 0.75rem;\\n  }\\n  .cedros-academy-admin .cedros-data-label {\\n    color: var(--ca-admin-fg);\\n    font-size: 0.8125rem;\\n    font-weight: 500;\\n  }\\n  .cedros-academy-admin .cedros-data-input,\\n  .cedros-academy-admin .cedros-data-select,\\n  .cedros-academy-admin .cedros-data-textarea {\\n    width: 100%;\\n    min-height: 2.25rem;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-sm);\\n    padding: 0 0.75rem;\\n    background: var(--ca-admin-input-bg);\\n    color: var(--ca-admin-fg);\\n    font: inherit;\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-data-textarea {\\n    min-height: 5.5rem;\\n    padding-block: 0.5rem;\\n    resize: vertical;\\n  }\\n  .cedros-academy-admin .cedros-data-field__description,\\n  .cedros-academy-admin .ca-field-error {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-field-error { color: var(--ca-admin-error); }\\n  /* A horizontal table scroller keeps its fling to its own axis, so reaching\\n     the last column never chains into the host page or the browser's\\n     back-navigation gesture. Workbench tables scroll inside a plain hairline\\n     frame; no gradient edge shadows. */\\n  .cedros-academy-admin .cedros-data-table-wrap {\\n    /* Positioned so visually hidden cell labels clip with the scroller. */\\n    position: relative;\\n    container: cedros-academy-table / inline-size;\\n    overflow-x: auto;\\n    overscroll-behavior-x: contain;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-sm);\\n    background-color: var(--ca-admin-card-bg);\\n  }\\n  .cedros-academy-admin .ca-table {\\n    width: 100%;\\n    min-width: 45rem;\\n    border-collapse: collapse;\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .ca-table th,\\n  .cedros-academy-admin .ca-table td {\\n    border-bottom: 1px solid var(--ca-admin-border);\\n    padding: 0.55rem 0.75rem;\\n    text-align: left;\\n    vertical-align: top;\\n  }\\n  .cedros-academy-admin .ca-table th {\\n    background: color-mix(in srgb, var(--ca-admin-bg) 90%, var(--ca-admin-accent) 10%);\\n    color: var(--ca-admin-muted);\\n    font-size: 0.6875rem;\\n    font-weight: 600;\\n    letter-spacing: 0.04em;\\n    text-transform: uppercase;\\n  }\\n  .cedros-academy-admin .ca-table tr:last-child td { border-bottom: 0; }\\n  .cedros-academy-admin .ca-table td:nth-child(n + 3) {\\n    font-variant-numeric: tabular-nums;\\n  }\\n  .cedros-academy-admin .ca-status,\\n  .cedros-academy-admin .cedros-data-pill {\\n    display: inline-flex;\\n    min-height: 1.375rem;\\n    align-items: center;\\n    border-radius: var(--ca-radius-pill);\\n    padding: 0.125rem 0.5rem;\\n    border: 1px solid color-mix(in srgb, var(--ca-admin-muted) 24%, transparent);\\n    background: var(--ca-admin-muted-bg);\\n    color: var(--ca-admin-fg);\\n    font-size: 0.6875rem;\\n    font-weight: 600;\\n    line-height: 1.2;\\n    white-space: nowrap;\\n  }\\n  .cedros-academy-admin .ca-status--success { background: color-mix(in srgb, var(--ca-admin-success) 14%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\\n  .cedros-academy-admin .ca-status--warning { background: color-mix(in srgb, var(--ca-admin-warning) 18%, var(--ca-admin-bg)); color: var(--ca-admin-warning-fg); }\\n  .cedros-academy-admin .ca-status--error { background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\\n  .cedros-academy-admin .ca-status--info { background: color-mix(in srgb, var(--ca-admin-info) 12%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\\n  .cedros-academy-admin .ca-notice,\\n  .cedros-academy-admin .cedros-data-status {\\n    display: grid;\\n    grid-template-columns: 1rem minmax(0, 1fr) auto;\\n    gap: 0.75rem;\\n    align-items: flex-start;\\n    justify-content: space-between;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem;\\n    background: var(--ca-admin-muted-bg);\\n  }\\n  .cedros-academy-admin .ca-notice strong { font-size: 0.875rem; font-weight: 600; }\\n  .cedros-academy-admin .ca-notice p { color: var(--ca-admin-fg); font-size: 0.8125rem; }\\n  .cedros-academy-admin .ca-notice__icon { margin-top: 0.125rem; }\\n  .cedros-academy-admin .ca-notice__copy { min-width: 0; }\\n  .cedros-academy-admin .ca-notice--success { background: color-mix(in srgb, var(--ca-admin-success) 14%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-success) 34%, transparent); }\\n  .cedros-academy-admin .ca-notice--warning { background: color-mix(in srgb, var(--ca-admin-warning) 18%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-warning) 34%, transparent); }\\n  .cedros-academy-admin .ca-notice--error { background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-error) 34%, transparent); }\\n  .cedros-academy-admin .ca-notice--info { background: color-mix(in srgb, var(--ca-admin-info) 12%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-info) 34%, transparent); }\\n  .cedros-academy-admin .ca-empty,\\n  .cedros-academy-admin .cedros-data-empty {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-data-empty-state {\\n    display: grid;\\n    place-items: center;\\n    align-content: center;\\n    gap: 0.5rem;\\n    min-height: 9rem;\\n    border: 1px dashed color-mix(in srgb, var(--ca-admin-border) 72%, var(--ca-admin-muted));\\n    border-radius: var(--ca-admin-radius);\\n    padding: 1.5rem 1rem;\\n    text-align: center;\\n  }\\n  .cedros-academy-admin .cedros-data-empty-state strong {\\n    font-size: 0.875rem;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .cedros-data-empty-state p {\\n    max-width: 32rem;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .ca-skeleton-block {\\n    display: grid;\\n    gap: 0.5rem;\\n    min-height: 6rem;\\n    padding: 0.9rem 1rem;\\n  }\\n  .cedros-academy-admin .ca-skeleton {\\n    display: block;\\n    height: 0.75rem;\\n    border-radius: var(--ca-radius-pill);\\n    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ca-admin-muted) 18%, transparent), transparent);\\n    background-size: 220% 100%;\\n    animation: ca-admin-shimmer var(--motion-duration-skeleton, 1400ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)) infinite;\\n  }\\n  .cedros-academy-admin .ca-skeleton--title { width: 54%; height: 1rem; }\\n  .cedros-academy-admin .ca-skeleton--line { width: 88%; }\\n  .cedros-academy-admin .ca-skeleton--short { width: 62%; }\\n  .cedros-academy-admin .ca-lesson-body :is(h4, h5, h6) {\\n    margin: 0;\\n    font-size: 0.875rem;\\n    line-height: 1.5;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .ca-metric,\\n  .cedros-academy-admin .cedros-data-metric {\\n    display: grid;\\n    align-content: start;\\n    gap: 0.25rem;\\n    min-height: 6rem;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem;\\n    background: var(--ca-admin-card-bg);\\n  }\\n  .cedros-academy-admin .cedros-data-metric__label {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.6875rem;\\n    font-weight: 600;\\n    letter-spacing: 0.04em;\\n    text-transform: uppercase;\\n  }\\n  .cedros-academy-admin .cedros-data-metric__value {\\n    font-size: 1.5rem;\\n    line-height: 1;\\n    font-weight: 700;\\n    font-variant-numeric: tabular-nums;\\n  }\\n  .cedros-academy-admin .ca-checklist {\\n    display: grid;\\n    gap: 0.5rem;\\n    margin: 0;\\n    padding: 0;\\n    list-style: none;\\n  }\\n  /* Workbench step list: state icon + label + muted detail; the icon shape,\\n     not only its tone, distinguishes done from blocked. */\\n  .cedros-academy-admin .ca-checklist li {\\n    display: grid;\\n    grid-template-columns: 1rem minmax(0, 1fr);\\n    column-gap: 0.5rem;\\n    row-gap: 0.125rem;\\n  }\\n  .cedros-academy-admin .ca-checklist li::before {\\n    content: \\\"\\\";\\n    grid-row: 1 / span 2;\\n    width: 1rem;\\n    height: 1rem;\\n    margin-top: 0.125rem;\\n    background-color: var(--ca-admin-success);\\n    /* Lucide circle-check. */\\n    mask: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E\\\") center / 1rem no-repeat;\\n  }\\n  .cedros-academy-admin .ca-checklist li[data-state=\\\"blocked\\\"]::before {\\n    background-color: var(--ca-admin-warning-fg);\\n    /* Lucide circle-alert. */\\n    mask-image: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4m0 4h.01'/%3E%3C/svg%3E\\\");\\n  }\\n  .cedros-academy-admin .ca-checklist strong {\\n    font-size: 0.8125rem;\\n    font-weight: 500;\\n  }\\n  .cedros-academy-admin .ca-checklist span {\\n    grid-column: 2;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-autosave-status {\\n    display: inline-flex;\\n    min-height: 1.5rem;\\n    align-items: center;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-radius-pill);\\n    padding: 0.125rem 0.625rem;\\n    background: var(--ca-admin-muted-bg);\\n    color: var(--ca-admin-fg);\\n    font-size: 0.75rem;\\n  }\\n  .cedros-academy-admin .cedros-autosave-status--failed,\\n  .cedros-academy-admin .cedros-autosave-status--conflict,\\n  .cedros-academy-admin .cedros-autosave-status--offline {\\n    background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg));\\n    color: var(--ca-admin-fg);\\n  }\\n  .cedros-academy-admin .cedros-autosave-banner {\\n    display: flex;\\n    gap: 0.5rem;\\n    align-items: center;\\n    justify-content: space-between;\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem;\\n    margin-bottom: 0.75rem;\\n    background: var(--ca-admin-muted-bg);\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__overlay {\\n    width: 100%;\\n    height: 100%;\\n    max-width: none;\\n    max-height: none;\\n    margin: 0;\\n    border: 0;\\n    color: inherit;\\n    position: fixed;\\n    inset: 0;\\n    display: grid;\\n    place-items: center;\\n    padding: 1rem;\\n    background: rgb(0 0 0 / 0.45);\\n    z-index: var(--z-modal, 1000);\\n  }\\n  .cedros-academy-admin .cedros-data-dialog {\\n    max-height: min(85dvh, 44rem);\\n    overflow: hidden;\\n    display: grid;\\n    grid-template-rows: auto minmax(0, 1fr) auto;\\n    gap: 1rem;\\n    width: min(100%, 420px);\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-dialog-radius);\\n    padding: 1.25rem;\\n    background: var(--ca-admin-card-bg);\\n    box-shadow: 0 10px 25px -4px color-mix(in srgb, var(--ca-admin-fg) 12%, transparent), 0 4px 6px -1px color-mix(in srgb, var(--ca-admin-fg) 10%, transparent);\\n    animation: ca-admin-dialog-in var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__heading {\\n    position: relative;\\n    display: grid;\\n    gap: 0.25rem;\\n    padding-right: 2rem;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__close {\\n    position: absolute; top: 0; right: 0; width: 2rem; min-height: 2rem; padding: 0;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__title {\\n    font-size: 1.15rem;\\n    line-height: 1.25;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__description {\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .cedros-data-dialog__body {\\n    min-height: 0;\\n    overflow: auto;\\n    display: grid;\\n    gap: 1rem;\\n    padding: 2px;\\n  }\\n  .cedros-academy-admin .ca-filtered-empty {\\n    /* Recovery belongs to the visible frame, even when its data columns scroll. */\\n    position: sticky;\\n    inset-inline-start: 0.75rem;\\n    inline-size: calc(100cqw - 1.5rem);\\n    display: grid;\\n    justify-items: center;\\n    gap: 0.5rem;\\n    padding: 1rem;\\n    color: var(--ca-admin-muted);\\n  }\\n  .cedros-academy-admin .ca-sr-only {\\n    position: absolute;\\n    width: 1px;\\n    height: 1px;\\n    padding: 0;\\n    margin: -1px;\\n    overflow: hidden;\\n    clip-path: inset(50%);\\n    white-space: nowrap;\\n    border: 0;\\n  }\\n  .cedros-academy-admin .cedros-data-table-wrap:focus-visible {\\n    outline: 2px solid var(--ca-admin-ring);\\n    outline-offset: 2px;\\n  }\\n  .cedros-academy-admin .ca-dialog-impact {\\n    display: grid;\\n    gap: 0.25rem;\\n    margin: 0;\\n    padding-left: 1rem;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n  }\\n  .cedros-academy-admin .ca-dialog-actions {\\n    display: flex;\\n    gap: 0.5rem;\\n    justify-content: flex-end;\\n    flex-wrap: wrap;\\n  }\\n  .cedros-academy-admin.ca-dashboard-card {\\n    display: grid;\\n    gap: 0.75rem;\\n  }\\n  .cedros-academy-admin .cedros-back-breadcrumb {\\n    width: fit-content;\\n    border: 0;\\n    padding: 0;\\n    background: transparent;\\n    color: var(--ca-admin-primary);\\n    cursor: pointer;\\n    font: inherit;\\n    font-size: 0.8125rem;\\n    font-weight: 600;\\n  }\\n  .cedros-academy-admin .ca-course-workspace,\\n  .cedros-academy-admin .ca-curriculum-sections,\\n  .cedros-academy-admin .ca-disclosure__body {\\n    display: grid;\\n    gap: 1rem;\\n  }\\n  .cedros-academy-admin .ca-course-editor-grid {\\n    display: grid;\\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));\\n    gap: 1rem;\\n    align-items: start;\\n  }\\n  .cedros-academy-admin .ca-curriculum-section {\\n    display: grid;\\n    gap: 0.75rem;\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 1rem;\\n  }\\n  .cedros-academy-admin .ca-curriculum-section:first-child {\\n    border-top: 0;\\n    padding-top: 0;\\n  }\\n  .cedros-academy-admin .ca-lesson-editor {\\n    display: grid;\\n    gap: 0.75rem;\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-learner-preview {\\n    margin-top: 1rem;\\n  }\\n  .cedros-academy-admin .ca-submission-preview {\\n    min-width: 18rem;\\n    max-width: 36rem;\\n  }\\n  .cedros-academy-admin .ca-submission-section,\\n  .cedros-academy-admin .ca-submission-lesson {\\n    display: grid;\\n    gap: 0.5rem;\\n  }\\n  .cedros-academy-admin .ca-submission-lesson {\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-submission-lesson h5 {\\n    margin: 0;\\n  }\\n  .cedros-academy-admin .ca-submission-lesson .ca-lesson-body {\\n    line-height: 1.6;\\n    overflow-wrap: anywhere;\\n  }\\n  .cedros-academy-admin .ca-preview-layout {\\n    display: grid;\\n    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);\\n    gap: 1rem;\\n  }\\n  .cedros-academy-admin .ca-preview-nav {\\n    display: grid;\\n    align-content: start;\\n    gap: 0.25rem;\\n  }\\n  /* Workbench nav-item recipe: muted at rest; accent fill, foreground and 500\\n     weight when current. No bar, border, inset ring or shadow. */\\n  .cedros-academy-admin .ca-preview-nav .ca-button {\\n    justify-content: flex-start;\\n    border-color: transparent;\\n    padding-left: 0.75rem;\\n    color: var(--ca-admin-muted);\\n    text-align: left;\\n  }\\n  .cedros-academy-admin .ca-preview-nav .ca-button:not(:disabled):hover { color: var(--ca-admin-fg); transform: none; box-shadow: none; }\\n  .cedros-academy-admin .ca-preview-nav [aria-current=\\\"page\\\"] {\\n    background: var(--ca-admin-accent);\\n    color: var(--ca-admin-fg);\\n  }\\n  .cedros-academy-admin .ca-preview-lesson {\\n    min-width: 0;\\n    border-left: 1px solid var(--ca-admin-border);\\n    padding-left: 1rem;\\n  }\\n  .cedros-academy-admin .ca-preview-lesson h4 {\\n    margin: 0.25rem 0 1rem;\\n  }\\n  .cedros-academy-admin .ca-preview-lesson .ca-lesson-body {\\n    line-height: 1.65;\\n    overflow-wrap: anywhere;\\n  }\\n  .cedros-academy-admin .ca-course-workspace-actions,\\n  .cedros-academy-admin .ca-lifecycle-actions,\\n  .cedros-academy-admin .ca-create-course__row {\\n    display: flex;\\n    gap: 0.75rem;\\n    align-items: end;\\n    flex-wrap: wrap;\\n  }\\n  .cedros-academy-admin .ca-lifecycle-actions {\\n    align-items: flex-start;\\n  }\\n  .cedros-academy-admin .ca-create-course__row > .ca-field {\\n    flex: 1 1 18rem;\\n  }\\n  /* Workbench disclosure: details/summary, no frame of its own. Inside a card it\\n     is separated by a hairline; page-level secondary work keeps the card frame. */\\n  .cedros-academy-admin .ca-disclosure {\\n    border-top: 1px solid var(--ca-admin-border);\\n    padding-top: 0.75rem;\\n  }\\n  .cedros-academy-admin .ca-disclosure.ca-secondary-work {\\n    border: 1px solid var(--ca-admin-border);\\n    border-radius: var(--ca-admin-radius);\\n    padding: 0.75rem 1rem;\\n    background: var(--ca-admin-card-bg);\\n    box-shadow: var(--ca-admin-shadow);\\n  }\\n  .cedros-academy-admin .ca-disclosure[open] > summary { margin-bottom: 0.75rem; }\\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary {\\n    display: flex;\\n    flex-wrap: wrap;\\n    align-items: center;\\n    gap: 0.25rem 0.5rem;\\n    min-height: 2rem;\\n    list-style: none;\\n    cursor: pointer;\\n    color: var(--ca-admin-muted);\\n    font-size: 0.8125rem;\\n    font-weight: 600;\\n    transition: color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin details > summary::-webkit-details-marker { display: none; }\\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary::before {\\n    content: \\\"\\\";\\n    flex: none;\\n    width: 1rem;\\n    height: 1rem;\\n    background-color: currentColor;\\n    /* Lucide chevron-right, painted with the summary color. */\\n    mask: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\\\") center / 1rem no-repeat;\\n    transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n  }\\n  .cedros-academy-admin details[open]:not(.ca-policy-edit) > summary::before { transform: rotate(90deg); }\\n  .cedros-academy-admin details > summary:hover,\\n  .cedros-academy-admin details[open] > summary { color: var(--ca-admin-fg); }\\n  @keyframes ca-admin-dialog-in {\\n    from { opacity: 0; transform: scale(0.98) translateY(8px); }\\n    to { opacity: 1; transform: scale(1) translateY(0); }\\n  }\\n  @keyframes ca-admin-shimmer {\\n    from { background-position: 120% 0; }\\n    to { background-position: -120% 0; }\\n  }\\n\\n  @keyframes ca-shimmer {\\n    from { background-position: 120% 0; }\\n    to { background-position: -120% 0; }\\n  }\\n  @keyframes ca-spin { to { transform: rotate(360deg); } }\\n  /* Recovery copy beside a skeleton waits 1s (Workbench \\u00A77 Loading) so an\\n     ordinary load never flashes it. Reduced motion removes the animation and\\n     therefore shows it immediately. */\\n  .cedros-academy .ca-delayed-reveal,\\n  .cedros-academy-admin .ca-delayed-reveal { animation: ca-delayed-reveal 1ms linear 1s both; }\\n  @keyframes ca-delayed-reveal { from { visibility: hidden; } to { visibility: visible; } }\\n  .cedros-academy .ca-progress-mark { display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: none; }\\n  .cedros-academy .ca-progress-mark > * { grid-area: 1 / 1; }\\n  .cedros-academy .ca-spinner {\\n    width: 1rem; height: 1rem;\\n    border: 2px solid color-mix(in srgb, currentColor 30%, transparent);\\n    border-top-color: currentColor;\\n    border-radius: var(--ca-radius-pill);\\n    animation: ca-spin calc(var(--motion-duration-modal, 240ms) * 3) linear infinite;\\n  }\\n  .cedros-academy .ca-check { width: 1rem; height: 1rem; }\\n  .cedros-academy-admin .ca-view-stack { display: grid; gap: 1rem; min-width: 0; }\\n  .cedros-academy-admin .ca-view-stack > * { max-width: 100%; min-width: 0; }\\n  @media (prefers-reduced-motion: reduce) {\\n    .cedros-academy *,\\n    .cedros-academy *::before,\\n    .cedros-academy *::after,\\n    .cedros-academy-admin *,\\n    .cedros-academy-admin *::before,\\n    .cedros-academy-admin *::after,\\n    .cedros-academy-admin .ca-skeleton,\\n    .cedros-academy-admin .cedros-data-dialog {\\n      animation: none !important;\\n      transition: none !important;\\n    }\\n    /* ::details-content is a pseudo-element, so the * rules above cannot\\n       reach it and it needs its own cancellation. */\\n    .cedros-academy-admin .ca-disclosure::details-content {\\n      transition: none !important;\\n    }\\n    .cedros-academy .ca-player-lesson[aria-current=\\\"step\\\"]::before {\\n      transform: scaleY(1);\\n    }\\n    .cedros-academy .ca-check path {\\n      stroke-dashoffset: 0;\\n    }\\n    .cedros-academy-admin .ca-button:not(:disabled):hover,\\n    .cedros-academy-admin .cedros-data-btn:not(:disabled):hover,\\n    .cedros-academy .ca-course-card:hover {\\n      transform: none;\\n    }\\n  }\\n  @media (max-width: 767px) {\\n    .cedros-academy .ca-public-head,\\n    .cedros-academy .ca-card-header,\\n    .cedros-academy-admin .ca-card-header,\\n    .cedros-academy-admin .cedros-data-card__header,\\n    .cedros-academy-admin .ca-dialog-actions {\\n      flex-wrap: wrap;\\n    }\\n    .cedros-academy .ca-public-actions,\\n    .cedros-academy .ca-certificate-actions,\\n    .cedros-academy-admin .ca-row-actions,\\n    .cedros-academy-admin .ca-course-workspace-actions,\\n    .cedros-academy-admin .ca-lifecycle-actions {\\n      width: 100%;\\n      justify-content: flex-start;\\n    }\\n    .cedros-academy .ca-public-actions > .ca-button,\\n    .cedros-academy-admin .ca-course-workspace-actions > .ca-button,\\n    .cedros-academy-admin .ca-lifecycle-actions > .ca-button {\\n      flex: 1 1 auto;\\n    }\\n    .cedros-academy .ca-field input,\\n    .cedros-academy .ca-field textarea {\\n      font-size: 16px;\\n    }\\n    .cedros-academy-admin .ca-submission-preview {\\n      min-width: 0;\\n      width: 100%;\\n    }\\n    .cedros-academy-admin .ca-grid,\\n    .cedros-academy-admin .ca-grid--two,\\n    .cedros-academy-admin .ca-grid--metrics,\\n    .cedros-academy-admin .cedros-data-summary-grid {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy-admin .ca-course-editor-grid {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy-admin .ca-preview-layout {\\n      grid-template-columns: 1fr;\\n    }\\n    .cedros-academy-admin .ca-preview-lesson {\\n      border-top: 1px solid var(--ca-admin-border);\\n      border-left: 0;\\n      padding-top: 1rem;\\n      padding-left: 0;\\n    }\\n    .cedros-academy-admin .ca-page-header,\\n    .cedros-academy-admin .cedros-data-actions {\\n      align-items: stretch;\\n      justify-content: flex-start;\\n    }\\n    .cedros-academy-admin .ca-button,\\n    .cedros-academy-admin .cedros-data-btn {\\n      min-height: 2.75rem;\\n      max-width: 100%;\\n      white-space: normal;\\n      text-align: center;\\n    }\\n    .cedros-academy-admin .ca-table {\\n      min-width: 42.5rem;\\n      font-size: 0.8125rem;\\n    }\\n  }\\n\\n.cedros-academy-admin fieldset.ca-edit-fields {\\n  min-width: 0;\\n  margin: 0;\\n}\\n.cedros-academy-admin fieldset.ca-ai-draft-fields,\\n.cedros-academy-admin fieldset.ca-feedback-controls,\\n.cedros-academy-admin fieldset.ca-course-editor-grid,\\n.cedros-academy-admin fieldset.ca-settings-column,\\n.cedros-academy-admin fieldset.ca-create-course__row,\\n.cedros-academy-admin fieldset.ca-grant-fields {\\n  padding: 0;\\n  border: 0;\\n}\\n.cedros-academy-admin .ca-grant-fields {\\n  display: grid;\\n  gap: 1rem;\\n  width: min(100%, var(--cd-container-settings, 45rem));\\n}\\n.cedros-academy-admin .ca-curriculum-editor .cedros-data-field,\\n.cedros-academy-admin .ca-announcements .cedros-data-field {\\n  max-width: var(--cd-container-settings, 45rem);\\n}\\n\\n/* Public learning surfaces share the site's theme, with space for course summaries. */\\n.cedros-academy.ca-public { font-family: inherit; }\\n.cedros-academy.ca-public.ca-public-shell { gap: 28px; padding-block: 28px 48px; }\\n.cedros-academy.ca-public .ca-public-head { gap: 14px; padding-block: 12px; }\\n.cedros-academy.ca-public .ca-public-head h2 { font-size: clamp(32px, 4cqi, 48px); line-height: 1.12; }\\n.cedros-academy.ca-public .ca-public-head p { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 17px; margin: 0; max-width: 640px; }\\n.cedros-academy.ca-public .ca-card-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }\\n.cedros-academy.ca-public .ca-course-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--ca-radius-lg); gap: 16px; margin: 0; }\\n.cedros-academy.ca-public .ca-course-card h3 { font-size: 24px; line-height: 1.25; }\\n.cedros-academy.ca-public .ca-course-card > p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-course-card .ca-card-header { margin: 0; align-items: center; }\\n.cedros-academy.ca-public .ca-course-card .ca-public-actions { margin-top: auto; padding-top: 8px; }\\n.cedros-academy.ca-public .ca-meta-list { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0; }\\n.cedros-academy.ca-public .ca-meta-list div { border: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: var(--ca-radius-sm); padding: 12px 0 0; gap: 5px; }\\n.cedros-academy.ca-public .ca-meta-list dd { font-size: 14px; text-transform: capitalize; }\\n.cedros-academy.ca-public .ca-lookup-form { padding: 20px; gap: 16px; border-radius: var(--ca-radius-lg); }\\n.cedros-academy.ca-public .ca-lookup-form .ca-field { margin-bottom: 0; }\\n.cedros-academy.ca-public .ca-field input, .cedros-academy.ca-public .ca-field select { min-height: 46px; border-radius: var(--ca-radius-md); color: var(--ca5ss4b-runtime-text, #171717); background: var(--ca5ss4b-runtime-panel, #fff); border-color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-button { min-height: 44px; padding: 10px 18px; border-radius: var(--ca-radius-md); }\\n.cedros-academy.ca-public .ca-course-primary, .cedros-academy.ca-public .ca-course-secondary { padding: 24px; border-radius: var(--ca-radius-lg); }\\n.cedros-academy.ca-public .ca-course-layout { gap: 24px; }\\n.cedros-academy.ca-public .ca-lesson-body { font-size: 17px; line-height: 1.75; max-width: 70ch; }\\n@media (max-width: 680px) {\\n .cedros-academy.ca-public .ca-card-grid { grid-template-columns: 1fr; }\\n .cedros-academy.ca-public .ca-course-card { padding: 20px; }\\n .cedros-academy.ca-public.ca-public-shell { gap: 20px; padding-block: 20px 32px; }\\n}\\n\\n.cedros-academy.ca-public .ca-course-artwork { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--ca-radius-sm); }\\n.cedros-academy.ca-public .ca-course-card { grid-template-columns: minmax(0, 1fr); }\\n.cedros-academy.ca-public .ca-course-card .ca-course-artwork { max-height: 260px; background: var(--ca5ss4b-runtime-bg, #fff); }\\n.cedros-academy.ca-public .ca-open-course { align-items: start; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }\\n.cedros-academy.ca-public .ca-open-outline { display: grid; min-width: 0; padding: 16px; gap: 24px; border-radius: var(--ca-radius-lg); }\\n.cedros-academy.ca-public .ca-open-outline .ca-course-artwork { width: 100%; max-width: 220px; margin-inline: auto; }\\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav { display: grid; gap: 20px; border: 0; padding: 0; }\\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav section { display: grid; gap: 8px; min-width: 0; }\\n.cedros-academy.ca-public .ca-open-outline h3 { margin: 0; padding: 0 12px; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; line-height: 1.5; font-weight: 500; }\\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 8px 12px; border: 0; background: transparent; border-radius: var(--ca-radius-sm); color: inherit; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson:hover { background: color-mix(in srgb, currentColor 5%, transparent); }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson[aria-current=\\\"step\\\"] { background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 600; }\\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson::before { left: 0; width: 2px; background: currentColor; }\\n.cedros-academy.ca-public .ca-open-course .ca-open-lesson-number { flex: 0 0 20px; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }\\n.cedros-academy.ca-public .ca-open-course .ca-open-lesson-name { color: inherit; font-size: inherit; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-open-course > .ca-card { margin: 0; }\\n.cedros-academy.ca-public .ca-open-course .ca-lesson { min-width: 0; padding: 24px; }\\n.cedros-academy.ca-public .ca-open-course .ca-lesson > h3 { font-size: 24px; line-height: 1.3; }\\n.cedros-academy.ca-public .ca-open-course .ca-lesson-body { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }\\n@media (max-width: 760px) {\\n  .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-open-outline .ca-course-artwork { max-height: 180px; }\\n  .cedros-academy.ca-public .ca-open-course .ca-lesson { padding: 16px; }\\n}\\n\\n/* Content stacks are not toolbars: forms, grids and feedback use the full frame. */\\n.cedros-academy .ca-inline-stack,\\n.cedros-academy-admin .ca-inline-stack { display: grid; gap: 1rem; min-width: 0; width: 100%; }\\n.cedros-academy-admin span.ca-inline-stack { display: inline-flex; gap: 0.5rem; width: auto; align-items: center; }\\n.cedros-academy .ca-inline-stack > *,\\n.cedros-academy-admin .ca-inline-stack > * { min-width: 0; max-width: 100%; }\\n.cedros-academy .ca-inline-stack > .ca-button,\\n.cedros-academy-admin .ca-inline-stack > .ca-button { justify-self: start; }\\n.cedros-academy .ca-button:hover { background: var(--ca5ss4b-runtime-accent-soft, #f4f4f5); }\\n.cedros-academy .ca-button-primary:hover { background: color-mix(in srgb, var(--ca5ss4b-runtime-action-bg, #18181b) 90%, var(--ca5ss4b-runtime-action-fg, #fff)); }\\n.cedros-academy .ca-button { transition: background-color var(--motion-duration-fast, 160ms) ease; }\\n.cedros-academy .ca-field > span:first-child { color: var(--ca5ss4b-runtime-text, #171717); font-size: 0.875rem; font-weight: 500; }\\n.cedros-academy .ca-field :is(input, select, textarea):disabled { opacity: 0.5; cursor: not-allowed; }\\n.cedros-academy .ca-field [aria-invalid=\\\"true\\\"] { border-color: var(--ca5ss4b-runtime-error, #b42318); }\\n.cedros-academy .ca-player-lesson { min-height: 44px; }\\n.cedros-academy .ca-player-lesson:disabled { opacity: 0.5; cursor: not-allowed; }\\n.cedros-academy .ca-lesson-body a { color: var(--ca5ss4b-runtime-accent, #2f6c7d); text-decoration: underline; }\\n.cedros-academy a:focus-visible,\\n.cedros-academy summary:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\\n.cedros-academy .ca-certificate-heading { flex-wrap: wrap; }\\n.cedros-academy .ca-card-header > *,\\n.cedros-academy-admin .ca-card-header > * { min-width: 0; overflow-wrap: anywhere; }\\n.cedros-academy .ca-card-header > .ca-status,\\n.cedros-academy-admin .ca-card-header > .ca-status { flex: none; }\\n.cedros-academy .ca-meta-list div { border-radius: 0; }\\n.cedros-academy-admin a:not(.ca-button) { color: var(--cd-link, #2f6c7d); text-decoration: none; }\\n.cedros-academy-admin a:not(.ca-button):is(:hover, :focus-visible) { text-decoration: underline; }\\n.cedros-academy-admin .cedros-back-breadcrumb { color: var(--ca-admin-muted); font-weight: 500; }\\n.cedros-academy-admin :is(a, summary, .cedros-back-breadcrumb):focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 3px; }\\n.cedros-academy-admin .cedros-data-input[aria-invalid=\\\"true\\\"],\\n.cedros-academy-admin .cedros-data-select[aria-invalid=\\\"true\\\"],\\n.cedros-academy-admin .cedros-data-textarea[aria-invalid=\\\"true\\\"] { border-color: color-mix(in srgb, var(--ca-admin-error) 55%, var(--ca-admin-border)); }\\n.cedros-academy-admin :is(.cedros-data-input, .cedros-data-select, .cedros-data-textarea):disabled { opacity: 0.5; cursor: not-allowed; }\\n.cedros-academy-admin .cedros-data-dialog__overlay::backdrop { background: transparent; }\\n.cedros-academy-admin .ca-table :is(th, td).ca-numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }\\n.cedros-academy-admin .ca-table .ca-numeric .ca-skeleton { margin-left: auto; }\\n.cedros-academy-admin .ca-table td:first-child { overflow-wrap: anywhere; }\\n.cedros-academy-admin .ca-table th { white-space: nowrap; }\\n.cedros-academy-admin .ca-table .ca-button { white-space: nowrap; }\\n.cedros-academy-admin.ca-dashboard-card .ca-metric { border: 0; padding: 0; min-height: 0; background: transparent; box-shadow: none; }\\n.cedros-academy-admin .ca-card .ca-metric { box-shadow: none; }\\n.cedros-academy-admin .ca-course-workspace-actions { align-items: center; }\\n.cedros-academy-admin .ca-create-course__row { align-items: center; }\\n.cedros-academy-admin .ca-create-course__row > .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-preview-nav .ca-button { white-space: normal; height: auto; line-height: 1.45; padding-block: 0.5rem; }\\n.cedros-academy-admin .ca-row-menu { display: flex; justify-content: flex-end; }\\n.cedros-academy-admin .cedros-row-actions__trigger { width: 2rem; padding: 0; }\\n.cedros-academy-admin .cedros-dropdown-menu__content {\\n  position: fixed; inset: auto; margin: 0;\\n  width: max-content; min-width: 11rem; max-width: min(20rem, calc(100vw - 1rem));\\n  max-height: min(20rem, calc(100dvh - 1rem)); overflow: auto; padding: 0.25rem;\\n  border: 1px solid var(--ca-admin-border); border-radius: var(--ca-admin-radius);\\n  background: var(--ca-admin-card-bg); color: var(--ca-admin-fg);\\n  box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--ca-admin-fg) 10%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--ca-admin-fg) 8%, transparent);\\n  z-index: var(--z-dropdown, 50);\\n}\\n/* Shared host menu styles set display:flex, overriding the UA's closed state. */\\n.cedros-academy-admin .cedros-dropdown-menu__content[popover]:not(:popover-open) { display: none; }\\n.cedros-academy-admin .cedros-dropdown-menu__item {\\n  display: block; width: 100%; min-height: 2rem;\\n  border: 0; border-radius: calc(var(--cd-radius, 8px) - 4px);\\n  padding: 0 0.5rem; background: transparent; color: inherit;\\n  font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer;\\n  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\\n}\\n.cedros-academy-admin .cedros-dropdown-menu__item:hover,\\n.cedros-academy-admin .cedros-dropdown-menu__item:focus-visible { outline: none; background: var(--ca-admin-accent); }\\n.cedros-academy-admin .cedros-dropdown-menu__item--danger { color: var(--ca-admin-error); }\\n.cedros-academy-admin .cedros-dropdown-menu__item--danger:hover,\\n.cedros-academy-admin .cedros-dropdown-menu__item--danger:focus-visible { background: var(--ca-admin-danger-bg); color: var(--ca-admin-danger-fg); }\\n.cedros-academy-admin .cedros-dropdown-menu__item[aria-disabled=\\\"true\\\"] { opacity: 0.5; cursor: not-allowed; }\\n\\n.cedros-academy-admin .ca-feedback-item { padding: 1rem 0; border-top: 1px solid var(--ca-admin-border); overflow-wrap: anywhere; }\\n.cedros-academy-admin form { width: 100%; max-width: var(--cd-container-settings, 45rem); }\\n\\n.cedros-academy-admin .cedros-dropdown-menu__separator { height: 1px; margin: 0.25rem -0.25rem; background: var(--ca-admin-border); }\\n.cedros-academy .ca-card-grid > .ca-card { margin-top: 0; }\\n.cedros-academy.ca-public-stack > .ca-button { min-height: 44px; }\\n\\n/* Page Builder columns can be narrow even when the viewport is wide. */\\n@container cedros-academy (max-width: 760px) {\\n  .cedros-academy.ca-public .ca-card-grid,\\n  .cedros-academy.ca-public .ca-card-grid--compact,\\n  .cedros-academy.ca-public .ca-course-layout,\\n  .cedros-academy.ca-public .ca-player-layout,\\n  .cedros-academy.ca-public .ca-lookup-form,\\n  .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-lesson { border-left: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding: 16px 0 0; }\\n  .cedros-academy.ca-public .ca-card-header { flex-wrap: wrap; }\\n  .cedros-academy.ca-public .ca-public-actions { width: 100%; justify-content: flex-start; }\\n  .cedros-academy.ca-public .ca-public-actions > .ca-button { flex: 1 1 auto; }\\n  .cedros-academy.ca-public .ca-button { max-width: 100%; white-space: normal; text-align: center; }\\n  .cedros-academy.ca-public .ca-course-card { padding: 20px; }\\n  .cedros-academy.ca-public .ca-open-outline .ca-course-artwork { max-height: 180px; }\\n  .cedros-academy.ca-public .ca-open-course .ca-lesson { padding: 16px; }\\n}\\n\\n/* Loading reserves the composition of the job that follows it. */\\n.cedros-academy.ca-public .ca-skeleton--media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--ca-radius-sm); }\\n.cedros-academy.ca-public .ca-skeleton--field { width: 100%; height: 44px; }\\n.cedros-academy.ca-public .ca-loading-reader .ca-player-layout { min-height: 20rem; }\\n.cedros-academy.ca-public .ca-loading-outline { display: grid; gap: 16px; align-content: start; }\\n.cedros-academy.ca-public .ca-loading-form { width: min(100%, 720px); }\\n.cedros-academy.ca-public .ca-loading-reader .ca-inline-stack { align-content: start; }\\n@container cedros-academy (max-width: 680px) {\\n  .cedros-academy.ca-public .ca-loading-outline { display: none; }\\n}\\n\\n/* Discovery: consistent media and outcome-led comparison, scoped to course results. */\\n.cedros-academy.ca-public .ca-catalog-search { border: 0; padding: 0; max-width: 720px; align-items: end; }\\n.cedros-academy.ca-public .ca-catalog-search .ca-field { margin: 0; }\\n.cedros-academy.ca-public .ca-search-context { margin: 0; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-course-detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ca5ss4b-runtime-accent, #2f6c7d); font-weight: 600; text-decoration: none; }\\n.cedros-academy.ca-public .ca-course-detail-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\\n.cedros-academy.ca-public .ca-course-detail-link:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; border-radius: var(--ca-radius-sm); }\\n.cedros-academy.ca-public .ca-discovery-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto auto; gap: 16px; padding: 20px; align-content: start; }\\n.cedros-academy.ca-public .ca-course-card-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }\\n.cedros-academy.ca-public .ca-course-card-copy > .ca-card-header { flex-direction: column; align-items: start; gap: 8px; }\\n.cedros-academy.ca-public .ca-course-card-copy > p { margin: 0; font-size: 15px; line-height: 1.6; }\\n.cedros-academy.ca-public .ca-discovery-card > :is(.ca-course-summary, .ca-public-actions) { grid-column: 1 / -1; }\\n.cedros-academy.ca-public .ca-discovery-card > .ca-public-actions { padding-top: 0; }\\n.cedros-academy.ca-public .ca-discovery-card > .ca-course-summary { padding-top: 16px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { width: 112px; height: 112px; aspect-ratio: 1; max-height: none; }\\n.cedros-academy.ca-public .ca-skeleton-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-content: start; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton--media { width: 112px; height: 112px; }\\n.cedros-academy.ca-public .ca-skeleton-course-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }\\n.cedros-academy.ca-public .ca-skeleton-course-copy > .ca-skeleton { margin: 0; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton-course-facts { grid-column: 1 / -1; width: 65%; height: 16px; margin-top: 16px; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton-course-action { grid-column: 1 / -1; width: 104px; height: 20px; margin-block: 12px; }\\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton { margin: 0; }\\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head { gap: 8px; padding-block: 0; }\\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head > .ca-kicker { display: none; }\\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); }\\n.cedros-academy.ca-public .ca-discovery-card h3 { font-size: 21px; }\\n.cedros-academy.ca-public .ca-course-title-link { text-decoration: none; }\\n.cedros-academy.ca-public .ca-course-title-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\\n.cedros-academy.ca-public .ca-course-title-link:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\\n.cedros-academy.ca-public .ca-course-card-copy > p.ca-muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy.ca-public .ca-course-artwork { aspect-ratio: 16 / 10; object-fit: cover; height: auto; max-height: none; }\\n.cedros-academy.ca-public .ca-course-artwork--missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ca5ss4b-runtime-muted, #667085); background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); font-size: 14px; padding: 20px; }\\n.cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing { gap: 8px; padding: 12px; font-size: 12px; text-align: center; background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); }\\n.cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing svg { width: 28px; height: 28px; flex: none; }\\n.cedros-academy.ca-public .ca-public-head--with-action { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }\\n.cedros-academy.ca-public .ca-public-head--with-action h2 { grid-column: 1; grid-row: 1; }\\n.cedros-academy.ca-public .ca-public-head--with-action > p { grid-column: 1; grid-row: 2; }\\n.cedros-academy.ca-public .ca-catalog-learning-link { grid-column: 2; grid-row: 1 / span 2; }\\n.cedros-academy.ca-public .ca-course-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }\\n.cedros-academy.ca-public .ca-course-navigation .ca-button--quiet { padding-inline: 0; color: var(--ca5ss4b-runtime-accent, #2f6c7d); }\\n.cedros-academy.ca-public .ca-course-navigation [aria-disabled=\\\"true\\\"] { color: var(--ca5ss4b-runtime-muted, #667085); cursor: not-allowed; text-decoration: none; }\\n.cedros-academy.ca-public .ca-course-category { font-size: 13px; }\\n.cedros-academy.ca-public .ca-course-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; line-height: 1.5; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-course-summary > span:first-child { font-weight: 600; color: var(--ca5ss4b-runtime-text, #171717); }\\n@container cedros-academy (min-width: 1000px) {\\n  .cedros-academy.ca-public .ca-card-grid:has(.ca-discovery-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }\\n}\\n\\n/* Detail: curriculum carries the story; enrollment is one contextual action. */\\n.cedros-academy.ca-public.ca-detail-surface .ca-public-head { padding-block: 0; gap: 12px; }\\n.cedros-academy.ca-public.ca-detail-surface .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); line-height: 1.25; }\\n.cedros-academy.ca-public.ca-detail-surface .ca-description-preview > p, .cedros-academy.ca-public .ca-outline-long-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy.ca-public .ca-course-extent { margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 14px; }\\n.cedros-academy.ca-public .ca-course-overview { margin: 0; }\\n.cedros-academy.ca-public .ca-course-primary { display: grid; grid-column: 1; grid-row: 1; gap: 24px; padding: 0; background: transparent; }\\n.cedros-academy.ca-public .ca-course-support { display: grid; grid-column: 1; gap: 24px; min-width: 0; }\\n.cedros-academy.ca-public .ca-course-support:empty { display: none; }\\n.cedros-academy.ca-public .ca-course-primary > .ca-course-artwork { max-height: 280px; object-fit: cover; background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); }\\n.cedros-academy.ca-public .ca-course-outline h3 { font-size: 22px; }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum { gap: 24px; }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum ol { margin: 0; padding-left: 24px; }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum li { padding: 12px 0 12px 8px; border-bottom: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum li::marker { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 13px; font-variant-numeric: tabular-nums; }\\n.cedros-academy.ca-public .ca-course-secondary { display: grid; grid-column: 2; grid-row: 1 / span 2; gap: 16px; margin: 0; align-self: start; }\\n.cedros-academy.ca-public .ca-course-secondary h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-notice { margin: 0; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-button { width: 100%; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-enrollment-explanation { margin: 0; line-height: 1.6; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }\\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list dd { text-transform: none; }\\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list div { border: 0; border-radius: 0; padding: 0; }\\n\\n/* Returning learners: course rows grouped by the next job. */\\n.cedros-academy.ca-public .ca-learning-list, .cedros-academy.ca-public .ca-learning-group { display: grid; gap: 16px; }\\n.cedros-academy.ca-public .ca-learning-list { gap: 32px; max-width: 56rem; }\\n.cedros-academy.ca-public.ca-learning-surface > .ca-notice { max-width: 45rem; }\\n.cedros-academy.ca-public.ca-learning-surface > .ca-notice > .ca-button { justify-self: start; }\\n.cedros-academy.ca-public .ca-learning-group > h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 20px 0; margin: 0; align-items: center; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-enrollment-row:has(.ca-course-artwork) { grid-template-columns: 96px minmax(0, 1fr) auto; }\\n.cedros-academy.ca-public .ca-enrollment-actions { margin: 0; }\\n.cedros-academy.ca-public .ca-learning-browse { justify-self: start; }\\n.cedros-academy.ca-public .ca-learning-complete { margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork { aspect-ratio: 1; }\\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing { padding: 12px; }\\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing span { display: none; }\\n.cedros-academy.ca-public .ca-enrollment-content { display: grid; gap: 12px; min-width: 0; }\\n.cedros-academy.ca-public .ca-enrollment-content .ca-card-header { margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-content h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-enrollment-content .ca-progress { max-width: 440px; margin: 0; }\\n\\n/* Reading: outline is a contextual disclosure; prose owns the main column. */\\n.cedros-academy.ca-public.ca-reading-surface { gap: 16px; padding-top: 16px; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head { gap: 8px; padding-block: 0; max-width: 100%; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head h2 { font-size: clamp(20px, 2cqi, 24px); line-height: 1.35; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head p { font-size: 15px; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-course-overview { margin: 0; }\\n.cedros-academy.ca-public.ca-reading-surface .ca-open-course { margin-top: 0; }\\n.cedros-academy.ca-public .ca-lesson-outline { min-width: 0; }\\n.cedros-academy.ca-public .ca-lesson-outline > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }\\n.cedros-academy.ca-public .ca-lesson-outline[open] > summary { margin-bottom: 12px; }\\n.cedros-academy.ca-public .ca-lesson-outline > summary:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 4px; }\\n.cedros-academy.ca-public .ca-player-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 24px; }\\n.cedros-academy.ca-public .ca-player > .ca-card-header h3 { font-size: 16px; }\\n.cedros-academy.ca-public .ca-player { padding: 24px; }\\n.cedros-academy.ca-public .ca-lesson > h4 { font-size: 28px; line-height: 1.3; }\\n.cedros-academy.ca-public .ca-player-lesson { border: 0; border-radius: var(--ca-radius-sm); display: flex; align-items: start; gap: 12px; }\\n.cedros-academy.ca-public .ca-lesson-number { flex: none; font-size: 12px; line-height: 1.75; font-variant-numeric: tabular-nums; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-lesson-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-lesson-completion { flex: none; min-width: 16px; }\\n.cedros-academy.ca-public .ca-button--quiet { border-color: transparent; background: transparent; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-tool-summary { display: block; margin-top: 4px; font-weight: 400; }\\n.cedros-academy.ca-public .ca-verification-reference p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }\\n.cedros-academy.ca-public.ca-submission-surface { max-width: 45rem; }\\n.cedros-academy.ca-public.ca-submission-surface .ca-public-head { padding-block: 0; gap: 12px; }\\n.cedros-academy.ca-public.ca-submission-surface .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); }\\n.cedros-academy.ca-public.ca-submission-surface .ca-card-grid { grid-template-columns: minmax(0, 1fr); }\\n.cedros-academy.ca-public .ca-player-nav { padding: 0; border: 0; }\\n.cedros-academy.ca-public .ca-outline-context { min-width: 0; }\\n.cedros-academy.ca-public .ca-outline-context > .ca-progress { margin: 0; }\\n.cedros-academy.ca-public .ca-lesson { min-width: 0; }\\n.cedros-academy.ca-public .ca-lesson > .ca-lesson-body { max-width: 60ch; }\\n.cedros-academy.ca-public .ca-player-nav h4 { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 13px; }\\n.cedros-academy.ca-public .ca-open-outline { background: transparent; padding: 0; }\\n.cedros-academy.ca-public .ca-lesson-body { overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-reading-end { border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding-top: 20px; margin: 24px 0 16px; }\\n.cedros-academy .ca-learning-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; padding: 0; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ca5ss4b-runtime-accent, #2f6c7d); cursor: pointer; }\\n.cedros-academy .ca-learning-back:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\\n.cedros-academy .ca-learning-back:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\\n.cedros-academy .ca-learning-back:disabled { color: var(--ca5ss4b-runtime-muted, #667085); cursor: not-allowed; text-decoration: none; }\\n\\n/* Focused public workflows inherit the site typography within a readable frame. */\\n.cedros-academy.ca-public.ca-verification-surface { width: min(100%, 720px); }\\n.cedros-academy.ca-public .ca-verification-result { padding: 24px; }\\n.cedros-academy.ca-public .ca-verification-heading { display: flex; align-items: center; gap: 12px; }\\n.cedros-academy.ca-public .ca-verification-heading > svg { flex: none; }\\n.cedros-academy.ca-public .ca-verification-result .ca-verified-course { font-size: 22px; font-weight: 600; line-height: 1.4; }\\n.cedros-academy.ca-public .ca-verification-result p { overflow-wrap: anywhere; }\\n.cedros-academy.ca-public.ca-profile-surface { width: min(100%, 760px); }\\n.cedros-academy.ca-public.ca-profile-surface .ca-public-head p { white-space: pre-wrap; }\\n.cedros-academy.ca-public .ca-submission-form { width: min(100%, 720px); padding: 24px; }\\n.cedros-academy.ca-public .ca-submission-form h3 { margin: 0; font-size: 20px; }\\n.cedros-academy.ca-public .ca-submission-form h3:not(:first-child) { padding-top: 16px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\\n.cedros-academy.ca-public .ca-submission-form p { margin: 0; }\\n.cedros-academy.ca-public .ca-submission-form .ca-button { justify-self: start; }\\n.cedros-academy.ca-public .ca-submission-history { display: grid; gap: 16px; }\\n.cedros-academy.ca-public .ca-submission-history > h3 { font-size: 20px; margin: 0; }\\n.cedros-academy.ca-public .ca-submission-list { display: grid; }\\n.cedros-academy.ca-public .ca-submission-row { padding-block: 20px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); min-width: 0; }\\n.cedros-academy.ca-public .ca-submission-row h4 { font-size: 20px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }\\n.cedros-academy.ca-public .ca-submission-row .ca-card-header { flex-wrap: wrap; gap: 8px 16px; }\\n.cedros-academy.ca-public .ca-submission-row p { margin: 8px 0 0; }\\n.cedros-academy.ca-public .ca-submission-row .ca-status { flex: none; }\\n.cedros-academy.ca-public .ca-new-submission { width: min(100%, 720px); }\\n.cedros-academy.ca-public .ca-new-submission > .ca-submission-form { border: 0; margin: 0; }\\n\\n/* Admin composition changes consume the existing Workbench bridge and primitives. */\\n.cedros-academy-admin .ca-overview-inventory { max-width: 45rem; margin-top: 1rem; }\\n.cedros-academy-admin .ca-overview-inventory .ca-metric { border: 0; border-radius: 0; padding: 0.75rem 0; background: transparent; box-shadow: none; }\\n.cedros-academy-admin .ca-courses-table { table-layout: fixed; }\\n.cedros-academy-admin .ca-courses-table :is(th, td):first-child { width: 40%; }\\n.cedros-academy-admin .ca-courses-table :is(th, td):nth-child(2) { width: 16%; }\\n.cedros-academy-admin .ca-courses-table :is(th, td):nth-child(3) { width: 16%; }\\n.cedros-academy-admin .ca-course-description { max-width: 40ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy-admin .ca-create-course, .cedros-academy-admin .ca-profile-editor, .cedros-academy-admin .ca-drafting-surface { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-course-editor-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }\\n@container cedros-academy-admin (min-width: 761px) {\\n  .cedros-academy-admin .ca-course-editor-grid > .ca-curriculum-editor { grid-column: 2; grid-row: 1; }\\n  .cedros-academy-admin .ca-course-editor-grid > .ca-course-details { grid-column: 1; grid-row: 1; }\\n}\\n.cedros-academy-admin .ca-readiness-summary { border-bottom: 1px solid var(--ca-admin-border); padding-bottom: 1rem; }\\n.cedros-academy-admin .ca-readiness-summary .ca-card-header { margin-bottom: 0.5rem; }\\n.cedros-academy-admin details.ca-readiness-evidence > summary { font-weight: 400; }\\n.cedros-academy-admin .ca-readiness-evidence .ca-checklist { margin-top: 0.75rem; }\\n.cedros-academy-admin .ca-course-workspace-actions { position: sticky; top: 0; z-index: var(--z-dropdown, 50); margin: 0; padding: 0.5rem 0; align-items: center; background: var(--ca-admin-bg); border-bottom: 1px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-course-open { display: flex; align-items: center; gap: 0.5rem; min-height: 2rem; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ca-admin-fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }\\n.cedros-academy-admin .ca-course-open > span { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\\n.cedros-academy-admin .ca-course-open > svg { flex: none; color: var(--ca-admin-muted); }\\n.cedros-academy-admin .ca-course-open:is(:hover, :focus-visible) > span { text-decoration: underline; }\\n.cedros-academy-admin .ca-course-open:focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 2px; border-radius: var(--ca-radius-sm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca-admin-ring) 14%, transparent); }\\n.cedros-academy-admin .ca-cover-preview { display: flex; align-items: center; gap: 0.75rem; margin: 0; }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork { flex: none; display: block; width: 6rem; height: 4rem; object-fit: cover; border: 1px solid var(--ca-admin-border); border-radius: var(--ca-radius-sm); background: var(--ca-admin-muted-bg); }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing { display: flex; align-items: center; justify-content: center; color: var(--ca-admin-muted); }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing svg { width: 20px; height: 20px; }\\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing span { display: none; }\\n.cedros-academy-admin .ca-cover-preview figcaption { min-width: 0; line-height: 1.5; }\\n.cedros-academy-admin .ca-announcement-receipt, .cedros-academy-admin .ca-feedback--empty { border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; }\\n.cedros-academy-admin .ca-announcement-receipt .ca-card-header, .cedros-academy-admin .ca-feedback--empty .ca-card-header { align-items: center; margin-bottom: 0.25rem; }\\n.cedros-academy-admin .ca-announcement-receipt h3, .cedros-academy-admin .ca-feedback--empty h3 { margin: 0; font-size: 0.875rem; font-weight: 600; }\\n.cedros-academy-admin .ca-announcement-receipt p { margin: 0; }\\n.cedros-academy-admin .ca-course-workspace-actions > [role=\\\"status\\\"] { margin-right: auto; }\\n.cedros-academy-admin .ca-workspace-commands { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; min-width: 0; }\\n.cedros-academy-admin .ca-curriculum-command-row { flex-wrap: nowrap; align-items: center; }\\n.cedros-academy-admin .ca-curriculum-command-row > .ca-intent-actions { width: auto; flex: none; gap: 0.25rem; }\\n.cedros-academy-admin .ca-workspace-commands > .ca-lifecycle-actions { width: auto; }\\n.cedros-academy-admin .ca-access-filters { grid-template-columns: minmax(10rem, 16rem) minmax(0, 18rem); margin-bottom: 0.75rem; }\\n.cedros-academy-admin .ca-draft-result { border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; max-width: 60ch; }\\n.cedros-academy-admin .ca-course-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem; align-items: center; }\\n.cedros-academy-admin .ca-course-filters > .ca-field { width: min(100%, 18rem); margin: 0; }\\n.cedros-academy-admin .ca-course-filters > .ca-field:last-child { width: min(100%, 14rem); }\\n.cedros-academy-admin .ca-toolbar-field { position: relative; }\\n.cedros-academy-admin .ca-toolbar-field > svg { position: absolute; top: 0.625rem; left: 0.75rem; width: 1rem; height: 1rem; color: var(--ca-admin-muted); pointer-events: none; }\\n.cedros-academy-admin .ca-toolbar-field > input { padding-left: 2.25rem; }\\n.cedros-academy-admin .ca-toolbar-field > input[type=\\\"search\\\"] { padding-right: 2.5rem; }\\n.cedros-academy-admin .ca-toolbar-field > input[type=\\\"search\\\"]::-webkit-search-cancel-button { appearance: none; }\\n.cedros-academy-admin .ca-search-clear { position: absolute; top: 0.125rem; right: 0.125rem; width: 2rem; padding: 0; border-radius: max(0px, calc(var(--ca-radius-sm) - 0.125rem)); }\\n.cedros-academy-admin .ca-access-filters > .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-access-summary > summary .ca-muted { flex-basis: 100%; padding-left: 1.5rem; line-height: 1.5; font-weight: 400; }\\n.cedros-academy-admin details.ca-lesson-edit-disclosure > summary { flex-wrap: nowrap; padding-block: 0.25rem; }\\n.cedros-academy-admin .ca-lesson-edit-disclosure > summary > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }\\n.cedros-academy-admin .ca-lesson-edit-disclosure > summary > .ca-muted { flex: none; font-weight: 400; font-size: 0.75rem; }\\n.cedros-academy-admin .ca-lesson-edit-fields { padding-top: 0.75rem; }\\n.cedros-academy-admin .ca-lesson-editor { gap: 0.25rem; }\\n.cedros-academy-admin .ca-lesson-editor > .ca-card-header { margin-bottom: 0; align-items: center; }\\n.cedros-academy-admin .ca-lesson-edit-fields textarea { min-height: 12rem; }\\n.cedros-academy-admin .ca-instructor-bio-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }\\n.cedros-academy-admin .ca-outcome-summary { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-outcome-summary .ca-metric { border: 0; box-shadow: none; padding: 0.75rem 0; background: transparent; }\\n@container cedros-academy (max-width: 680px) {\\n  .cedros-academy.ca-public .ca-discovery-card { grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto; padding: 16px; }\\n  .cedros-academy.ca-public .ca-course-card-copy { display: contents; }\\n  .cedros-academy.ca-public .ca-course-card-copy > .ca-course-category { grid-column: 2; grid-row: 1; }\\n  .cedros-academy.ca-public .ca-course-card-copy > .ca-card-header { grid-column: 2; grid-row: 2; align-self: center; }\\n  .cedros-academy.ca-public .ca-course-card-copy:not(:has(.ca-course-category)) > .ca-card-header { grid-row: 1 / span 2; }\\n  .cedros-academy.ca-public .ca-course-card-copy > p { grid-column: 1 / -1; }\\n  .cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { grid-column: 1; grid-row: 1 / span 2; }\\n  .cedros-academy.ca-public .ca-catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; }\\n  .cedros-academy.ca-public .ca-catalog-search > .ca-public-actions { display: contents; }\\n  .cedros-academy.ca-public .ca-catalog-search .ca-button { align-self: end; }\\n  .cedros-academy.ca-public .ca-catalog-search .ca-button--quiet { grid-column: 1 / -1; justify-self: start; }\\n  .cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { width: 80px; height: 80px; }\\n  .cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing span { display: none; }\\n  .cedros-academy.ca-public .ca-skeleton-card { grid-template-columns: 80px minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton--media { width: 80px; height: 80px; }\\n  .cedros-academy.ca-public .ca-course-layout, .cedros-academy.ca-public .ca-player-layout, .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-course-secondary { grid-column: 1; grid-row: 1; padding: 20px; }\\n  .cedros-academy.ca-public .ca-course-primary { grid-column: 1; grid-row: 2; }\\n  .cedros-academy.ca-public .ca-course-support { grid-row: 3; }\\n  .cedros-academy.ca-public .ca-course-secondary .ca-meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\\n  .cedros-academy.ca-public .ca-enrollment-row { grid-template-columns: minmax(0, 1fr); padding: 16px 0; gap: 16px; align-items: start; }\\n  .cedros-academy.ca-public .ca-enrollment-row:has(.ca-course-artwork) { grid-template-columns: 64px minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-enrollment-actions { grid-column: 1 / -1; width: 100%; }\\n  .cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing span { display: none; }\\n  .cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing { padding: 12px; }\\n  .cedros-academy.ca-public .ca-enrollment-content .ca-public-actions { width: auto; }\\n  .cedros-academy.ca-public .ca-player { padding: 16px; }\\n  .cedros-academy.ca-public .ca-submission-form { padding: 20px; }\\n  .cedros-academy.ca-public .ca-submission-form .ca-button { justify-self: stretch; }\\n}\\n@container cedros-academy-admin (max-width: 760px) {\\n  .cedros-academy-admin .ca-course-workspace-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }\\n  .cedros-academy-admin .ca-workspace-commands { flex-wrap: nowrap; }\\n  .cedros-academy-admin .ca-curriculum-command-row { flex-wrap: nowrap; }\\n  .cedros-academy-admin .ca-notice { grid-template-columns: 1rem minmax(0, 1fr); }\\n  .cedros-academy-admin .ca-notice .cedros-data-status__actions { grid-column: 2; justify-self: start; }\\n  .cedros-academy-admin .ca-course-open { min-height: 2.75rem; }\\n}\\n@media (max-width: 760px) {\\n  .cedros-academy-admin .ca-course-editor-grid, .cedros-academy-admin .ca-access-filters { grid-template-columns: minmax(0, 1fr); }\\n}\\n\\n/* Bound comparison copy without hiding the full detail identity. */\\n.cedros-academy.ca-public .ca-discovery-card h3, .cedros-academy.ca-public .ca-enrollment-content h3, .cedros-academy.ca-public .ca-long-identity { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }\\n.cedros-academy.ca-public .ca-long-identity { -webkit-line-clamp: 4; }\\n.cedros-academy.ca-public .ca-full-copy { margin-block: 8px; color: var(--ca5ss4b-runtime-muted, #667085); }\\n.cedros-academy.ca-public .ca-full-copy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; }\\n.cedros-academy.ca-public .ca-full-copy p { overflow-wrap: anywhere; max-width: 72ch; }\\n\\n/* Workbench controls remain usable inside host-assigned columns. */\\n.cedros-academy-admin :is(.cedros-data-input, .cedros-data-select) { height: 2.25rem; }\\n.cedros-academy-admin .ca-table tbody tr:hover { background: color-mix(in srgb, var(--ca-admin-accent) 52%, transparent); }\\n.cedros-academy-admin .ca-table a:not(.ca-button) { color: var(--ca-admin-fg); text-decoration: none; }\\n.cedros-academy-admin .ca-table a:not(.ca-button):is(:hover, :focus-visible) { text-decoration: underline; }\\n.cedros-academy-admin .cedros-data-pagination { justify-content: space-between; font-variant-numeric: tabular-nums; }\\n.cedros-academy-admin .cedros-data-pagination .cedros-data-actions { margin-left: auto; }\\n.cedros-academy-admin .cedros-data-empty-state p { max-width: 38ch; }\\n.cedros-academy-admin .ca-profile-editor .ca-edit-fields { display: grid; gap: 0.75rem; }\\n.cedros-academy-admin .ca-profile-editor .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-ai-draft-fields { display: grid; gap: 0.75rem; }\\n.cedros-academy-admin .ca-ai-draft-fields .ca-field { margin-bottom: 0; }\\n.cedros-academy-admin .ca-ai-draft-fields > .ca-button { justify-self: start; }\\n.cedros-academy-admin .ca-drafting-surface { display: grid; gap: 1rem; }\\n.cedros-academy-admin .ca-prompt-example > summary { min-height: 2rem; font-size: 0.8125rem; }\\n.cedros-academy-admin .ca-prompt-example > p { margin: 0.5rem 0 0; padding-left: 1.5rem; max-width: 60ch; }\\n.cedros-academy-admin .ca-draft-result .ca-card-header { flex-wrap: wrap; }\\n.cedros-academy-admin .ca-learning-policies .ca-form-switch + .ca-form-switch { border-top: 1px solid var(--ca-admin-border); margin-top: 0.75rem; padding-top: 1rem; }\\n.cedros-academy-admin .ca-access-details { margin-top: 0.25rem; }\\n.cedros-academy-admin .ca-access-details > summary { min-height: 2rem; font-size: 0.75rem; color: var(--ca-admin-muted); }\\n.cedros-academy-admin .ca-access-details dl { display: grid; gap: 0.75rem; margin: 0.5rem 0; }\\n.cedros-academy-admin .ca-access-details dt { color: var(--ca-admin-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }\\n.cedros-academy-admin .ca-access-details dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; }\\n.cedros-academy-admin .ca-access-course-inline, .cedros-academy-admin .ca-access-details .ca-access-progress-inline, .cedros-academy-admin .ca-access-guidance-inline { display: none; }\\n.cedros-academy-admin .ca-enrollment-table { min-width: 0; table-layout: fixed; }\\n.cedros-academy-admin .ca-enrollment-table th:first-child { width: 27%; }\\n.cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(2) { width: 28%; }\\n.cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(4) { width: 12%; }\\n.cedros-academy-admin .ca-enrollment-table th:last-child { width: 3.5rem; }\\n.cedros-academy-admin .ca-access-guidance { margin-top: 0.5rem; }\\n.cedros-academy-admin .ca-enrollment-table .ca-status { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }\\n@container cedros-academy-admin (max-width: 680px) {\\n  .cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(2),\\n  .cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(4) { display: none; }\\n  .cedros-academy-admin .ca-enrollment-table th:first-child { width: auto; }\\n  .cedros-academy-admin .ca-enrollment-table th:nth-child(3) { width: 8rem; }\\n  .cedros-academy-admin .ca-access-course-inline { display: block; margin-top: 0.25rem; }\\n  .cedros-academy-admin .ca-access-details .ca-access-progress-inline { display: block; }\\n  .cedros-academy-admin .ca-access-guidance { display: none; }\\n  .cedros-academy-admin .ca-access-guidance-inline { display: block; }\\n}\\n@container cedros-academy (max-width: 480px) {\\n  .cedros-academy.ca-public .ca-public-head--with-action { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy.ca-public .ca-catalog-learning-link { grid-column: 1; grid-row: 3; justify-self: start; }\\n}\\n.cedros-academy-admin.ca-settings-surface,\\n.cedros-academy-admin.ca-instructors-surface,\\n.cedros-academy-admin.ca-overview-surface { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-contribution-list { display: grid; gap: 1rem; }\\n.cedros-academy-admin .ca-contribution { padding-top: 1rem; border-top: 1px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-contribution > h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }\\n.cedros-academy-admin .ca-contribution > p { margin-bottom: 0.75rem; }\\n.cedros-academy-admin .ca-submission-preview { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-contribution-decision { display: grid; gap: 0.75rem; border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; }\\n.cedros-academy-admin .ca-contribution-decision .ca-field { margin: 0; }\\n.cedros-academy-admin .ca-reply-editor { max-width: var(--cd-container-settings, 45rem); }\\n.cedros-academy-admin .ca-confirmed-reply { margin-block: 0.75rem; padding-left: 1rem; border-left: 2px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-policy-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; cursor: pointer; font-weight: 600; }\\n.cedros-academy-admin .ca-policy-edit > summary .ca-muted { font-weight: 400; }\\n.cedros-academy-admin .ca-policy-edit__body { padding-top: 0.75rem; max-width: 18rem; }\\n.cedros-academy-admin .ca-form-switch { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; padding-block: 0.55rem; }\\n.cedros-academy-admin .ca-form-switch__copy { display: grid; gap: 0.25rem; min-width: 0; max-width: 60ch; }\\n.cedros-academy-admin .ca-form-switch__copy .cedros-data-field__description { line-height: 1.5; }\\n.cedros-academy-admin .ca-form-switch input {\\n  appearance: none; position: relative; flex: none; margin: 0;\\n  width: 2.35rem; height: 1.3rem; border: 1px solid var(--ca-admin-border);\\n  border-radius: var(--ca-radius-pill); background: var(--ca-admin-muted-bg); cursor: pointer;\\n  transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n.cedros-academy-admin .ca-form-switch input::before {\\n  content: \\\"\\\"; position: absolute; top: 1px; left: 1px;\\n  width: 1.1rem; height: 1.1rem; box-sizing: border-box; border: 1px solid var(--ca-admin-border);\\n  border-radius: var(--ca-radius-pill); background: var(--ca-admin-card-bg);\\n  box-shadow: var(--ca-admin-shadow);\\n  transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n.cedros-academy-admin .ca-form-switch input:checked { background: var(--ca-admin-primary); border-color: var(--ca-admin-primary); }\\n.cedros-academy-admin .ca-form-switch input:checked::before { border-color: transparent; transform: translateX(1.02rem); }\\n.cedros-academy-admin .ca-form-switch input:focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 3px; }\\n.cedros-academy-admin .ca-form-switch input:disabled { opacity: 0.5; cursor: not-allowed; }\\n@media (forced-colors: active) {\\n  .cedros-academy-admin .ca-form-switch input { appearance: auto; width: 1.3rem; }\\n  .cedros-academy-admin .ca-form-switch input::before { content: none; }\\n}\\n.cedros-academy-admin .cedros-dropdown-menu__content:popover-open {\\n  animation: ca-menu-in calc(var(--motion-duration-fast, 160ms) * 1.125) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n@keyframes ca-menu-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }\\n@container cedros-academy-admin (max-width: 760px) {\\n  .cedros-academy-admin .ca-course-editor-grid,\\n  .cedros-academy-admin .ca-access-filters,\\n  .cedros-academy-admin .ca-preview-layout { grid-template-columns: minmax(0, 1fr); }\\n  .cedros-academy-admin .ca-card-header { flex-wrap: wrap; }\\n  .cedros-academy-admin .ca-preview-lesson { border-left: 0; border-top: 1px solid var(--ca-admin-border); padding: 1rem 0 0; }\\n}\\n/* Site accents style links; a readable neutral role defines field boundaries. */\\n.cedros-academy .ca-button:not(:disabled):active { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #171717) 12%, var(--ca5ss4b-runtime-panel, #fff)); }\\n.cedros-academy .ca-button-primary:not(:disabled):active { background: color-mix(in srgb, var(--ca5ss4b-runtime-action-bg, #18181b) 80%, var(--ca5ss4b-runtime-action-fg, #fff)); }\\n.cedros-academy .ca-button:disabled:hover { background: var(--ca5ss4b-runtime-panel, #fff); }\\n.cedros-academy .ca-button-primary:disabled:hover { background: var(--ca5ss4b-runtime-action-bg, #18181b); }\\n.cedros-academy .ca-button[aria-pressed=\\\"true\\\"] { border-color: var(--ca5ss4b-runtime-action-bg, #18181b); background: var(--ca5ss4b-runtime-accent-soft, #f4f4f5); }\\n\\n/* Workbench's mobile shell retains its density while touch actions grow. */\\n@media (max-width: 767px) {\\n  .cedros-academy-admin .cedros-data-row-actions .cedros-data-btn { min-height: 2.75rem; }\\n  .cedros-academy-admin :is(.cedros-data-input, .cedros-data-select) { height: 2.75rem; min-height: 2.75rem; }\\n  .cedros-academy-admin .ca-toolbar-field > svg { top: 0.875rem; }\\n  .cedros-academy-admin .ca-search-clear { top: 0; right: 0; width: 2.75rem; border-radius: var(--ca-radius-sm); }\\n  .cedros-academy-admin .cedros-row-actions__trigger,\\n  .cedros-academy-admin .cedros-data-dialog__close { width: 2.75rem; min-height: 2.75rem; }\\n  .cedros-academy-admin .cedros-data-dialog__heading { padding-right: 3.25rem; }\\n  .cedros-academy-admin .cedros-dropdown-menu__item,\\n  .cedros-academy-admin .cedros-back-breadcrumb,\\n  .cedros-academy-admin details > summary,\\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary,\\n  .cedros-academy-admin .ca-form-switch { min-height: 2.75rem; }\\n}\\n\\n/* Workbench primitives mirrored for Academy admin content. */\\n.cedros-academy-admin .ca-icon-button { width: 2rem; padding: 0; }\\n.cedros-academy-admin .ca-icon-button > svg,\\n.cedros-academy-admin .cedros-row-actions__trigger > svg { flex: none; }\\n.cedros-academy-admin .ca-add-lesson { justify-self: start; }\\n.cedros-academy-admin .cedros-data-setup-notice {\\n  display: grid; gap: 0.75rem;\\n  border: 1px solid var(--ca-admin-border); border-radius: var(--ca-admin-radius);\\n  padding: 1rem; background: var(--ca-admin-card-bg); box-shadow: var(--ca-admin-shadow);\\n}\\n.cedros-academy-admin .cedros-data-setup-notice__body { display: grid; gap: 0.25rem; max-width: 60ch; }\\n.cedros-academy-admin .cedros-data-setup-notice__body :is(h3, strong) { font-size: 0.875rem; font-weight: 600; }\\n.cedros-academy-admin .cedros-data-setup-notice .cedros-data-actions { justify-content: flex-start; }\\n.cedros-academy-admin code {\\n  border: 1px solid var(--ca-admin-border); border-radius: 4px; padding: 0 0.3em;\\n  background: var(--ca-admin-muted-bg); color: var(--ca-admin-fg);\\n  font-family: var(--cd-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.75rem;\\n  overflow-wrap: anywhere; justify-self: start;\\n}\\n.cedros-academy-admin .cedros-data-table-summary { display: grid; gap: 0.125rem; min-width: 0; }\\n.cedros-academy-admin .ca-table .ca-row-end { width: 1%; text-align: right; white-space: nowrap; }\\n.cedros-academy-admin .ca-instructors-table { min-width: 30rem; }\\n@media (max-width: 767px) {\\n  .cedros-academy-admin .ca-icon-button { width: 2.75rem; }\\n  .cedros-academy-admin .ca-enrollment-table th:last-child { width: 4.5rem; }\\n}\\n\\n/* Public disclosures share one site-colored chevron instead of mixed native,\\n   \\\"+\\\" and triangle markers. Learner tools inside the player read as hairline\\n   rows, not cards nested inside the player card. */\\n.cedros-academy details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; cursor: pointer; }\\n.cedros-academy details > summary::-webkit-details-marker { display: none; }\\n.cedros-academy details > summary::before {\\n  content: \\\"\\\"; flex: none; width: 16px; height: 16px; background-color: currentColor;\\n  mask: url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\\\") center / 16px no-repeat;\\n  transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\\n}\\n.cedros-academy details[open] > summary::before { transform: rotate(90deg); }\\n.cedros-academy .ca-disclosure > summary .ca-tool-summary { flex-basis: 100%; margin: 0; padding-left: 24px; }\\n.cedros-academy.ca-public .ca-learning-tools { gap: 0; }\\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) { border: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: 0; background: transparent; overflow: visible; }\\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) > summary { padding: 16px 0; min-height: 44px; }\\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) > .ca-disclosure__body { padding: 0 0 20px; }\\n\\n/* Dashboard contribution (Workbench \\u00A76.1): one card frame whose header and\\n   footer are its only chrome; the metric band folds 3\\u21922\\u21921 by the host-assigned\\n   card width, not the viewport. */\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__header {\\n  max-width: none; margin: 0 -1rem; padding: 0 1rem 0.75rem; border-bottom: 1px solid var(--ca-admin-border);\\n}\\n.cedros-academy-admin.ca-dashboard-card .cedros-data-summary-grid {\\n  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));\\n}\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer {\\n  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem;\\n  max-width: none; margin: 0 -1rem; padding: 0.75rem 1rem 0; border-top: 1px solid var(--ca-admin-border);\\n}\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer p { font-size: 0.75rem; }\\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer a { font-size: 0.8125rem; }\\n\\n/* Exception rows: up to a few next actions, hairline separated, action trailing. */\\n.cedros-academy-admin .ca-exception-rows { display: grid; margin: 0; padding: 0; list-style: none; }\\n.cedros-academy-admin .ca-exception-rows li {\\n  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem;\\n  min-height: 2.5rem; padding: 0.5rem 0; border-top: 1px solid var(--ca-admin-border); font-size: 0.8125rem;\\n}\\n.cedros-academy-admin .ca-exception-rows li:first-child { border-top: 0; padding-top: 0; }\\n.cedros-academy-admin .ca-exception-rows li > span { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; }\\n\\n/* A routine receipt reads as a titled region, not a spaced-out stack. */\\n.cedros-academy-admin.ca-announcement-receipt { gap: 0.25rem; }\\n\\n/* Workbench identifiers use mono one step below ordinary field text. */\\n.cedros-academy-admin .ca-field--identifier :is(input, textarea) { font-family: var(--cd-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.75rem; }\\n\\n/* Record streams (saved versions, announcements) read as hairline rows inside\\n   their disclosure, not as a stack of separate cards. */\\n.cedros-academy-admin .ca-record-list { display: grid; margin: 0; padding: 0; list-style: none; }\\n.cedros-academy-admin .ca-record-row { display: grid; gap: 0.5rem; min-width: 0; padding-block: 0.75rem; border-top: 1px solid var(--ca-admin-border); }\\n.cedros-academy-admin .ca-record-row:first-child { border-top: 0; padding-top: 0; }\\n.cedros-academy-admin .ca-record-row .ca-card-header { margin-bottom: 0; }\\n.cedros-academy-admin .ca-record-row h4 { font-size: 0.875rem; font-weight: 600; }\\n.cedros-academy-admin .ca-preserve-lines { white-space: pre-wrap; }\\n\\n/* A disclosure in a narrow table cell keeps its chevron beside the label. */\\n.cedros-academy-admin details.ca-access-details > summary { flex-wrap: nowrap; }\\n.cedros-academy-admin .ca-record-row .ca-disclosure { border-top: 0; padding-top: 0; }\\n/* The promoted row action and its \\u22EF menu stay on one line; start-aligned so the\\n   promoted action keeps its column when a row has no overflow menu. */\\n.cedros-academy-admin .ca-table .ca-row-end .ca-row-actions { flex-wrap: nowrap; gap: 0.25rem; justify-content: flex-start; }\\n/* Secondary forms keep the settings column even inside a page-width frame. */\\n.cedros-academy-admin .ca-secondary-work > .ca-disclosure__body { max-width: var(--cd-container-settings, 45rem); }\\n\";\nconst styleId = \"cedros-academy-runtime-styles\";\nconst archiveStyleKey = \"@cedros-academy/academy::workspace/react/dist/styles.css\";\nexport const academyStyles = inlinedStyles;\nexport function ensureAcademyStyles() {\n    if (typeof document === \"undefined\" || document.getElementById(styleId))\n        return;\n    const style = document.createElement(\"style\");\n    style.id = styleId;\n    style.setAttribute(\"data-ca5ss4b-extension-style\", archiveStyleKey);\n    style.textContent = academyStyles;\n    document.head.appendChild(style);\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/ui.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useCallback, useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport { useAdminAuthority, useAdminOperation, useAdminCallbackFence } from \"./adminAuthority.js\";\nimport { AcademyClient } from \"./api.js\";\nimport { ensureAcademyAdminStyles } from \"./adminStyles.js\";\nexport { RowActions } from \"./rowActions.js\";\nexport { academyExtensionId, adminRootAttrs, LoadingState, Notice } from \"./adminChrome.js\";\nimport { LoadingState, Notice } from \"./adminChrome.js\";\nexport function useAcademyClient(pluginContext) {\n    ensureAcademyAdminStyles();\n    const authority = useAdminAuthority();\n    authority.configure(pluginContext);\n    return useMemo(() => new AcademyClient({\n        authority\n    }), [authority, authority.epoch, authority.lineage]);\n}\nexport function useAsyncData(load, deps, retainOnRefresh = false) {\n    const scope = useAdminAuthority();\n    const actions = useAdminOperation(\"read-refresh\");\n    const [version, setVersion] = useState(0);\n    const [stored, setState] = useState({ loading: true });\n    const previousDeps = useRef(deps);\n    const refreshOwner = useRef({ deps });\n    if (deps.length !== refreshOwner.current.deps.length || deps.some((value, index) => !Object.is(value, refreshOwner.current.deps[index])))\n        refreshOwner.current = { deps };\n    const owner = refreshOwner.current;\n    const request = useRef(0);\n    const epoch = scope.epoch;\n    useEffect(() => {\n        const sequence = ++request.current;\n        const ticket = scope.capture();\n        if (!scope.current(ticket))\n            return;\n        let cancelled = false;\n        const current = () => !cancelled && request.current === sequence && scope.current(ticket);\n        const resourceChanged = deps.some((value, index) => !(value instanceof AcademyClient) && !Object.is(value, previousDeps.current[index]));\n        previousDeps.current = deps;\n        setState(previous => resourceChanged ? { loading: true, epoch: ticket.epoch } : { ...previous, loading: !previous.data, refreshing: Boolean(previous.data), error: undefined });\n        load().then(data => { if (current())\n            setState({ loading: false, data, epoch: ticket.epoch, refreshing: retainOnRefresh ? false : undefined }); })\n            .catch((error) => { if (current())\n            setState(previous => ({ ...previous, loading: false, refreshing: false, blocked: true, error: error.message, epoch: ticket.epoch })); });\n        return () => { cancelled = true; };\n    }, [...deps, epoch, version, retainOnRefresh]);\n    const refresh = useCallback(() => { if (refreshOwner.current === owner && actions.current())\n        setVersion(value => value + 1); }, [actions, owner]);\n    const sourceChanged = deps.length !== previousDeps.current.length || deps.some((value, index) => !Object.is(value, previousDeps.current[index]));\n    const blocked = sourceChanged || stored.blocked || stored.epoch !== epoch || !scope.active || !scope.allowed;\n    return [{ ...stored, blocked }, refresh];\n}\nexport function StateBlock(props) {\n    const data = props.state.data;\n    const hasData = data !== undefined;\n    const unavailable = props.state.blocked || props.state.loading || Boolean(props.state.error);\n    return _jsxs(\"div\", { className: \"ca-inline-stack\", \"aria-busy\": props.state.loading || props.state.refreshing || undefined, children: [props.state.loading && !hasData ? props.loadingContent ?? _jsx(LoadingState, { title: props.loadingTitle ?? \"Loading Academy data\", compact: props.compact }) : null, props.state.error || props.state.blocked ? _jsx(Notice, { tone: props.state.error ? \"error\" : \"info\", title: props.errorTitle ?? \"Current Academy data not confirmed\", message: props.state.error ?? \"Revalidating access. Unsent drafts are held privately.\", action: props.onAction ? _jsx(\"button\", { className: \"cedros-data-btn cedros-data-btn--secondary ca-button\", type: \"button\", onClick: props.onAction, children: props.actionLabel ?? \"Reload current data\" }) : undefined }) : null, _jsxs(\"div\", { hidden: unavailable, inert: unavailable, children: [_jsx(\"div\", { hidden: Boolean(props.empty), inert: Boolean(props.empty), children: data !== undefined ? props.children(data) : null }), !hasData && !unavailable || props.empty && !unavailable ? _jsx(EmptyState, { action: props.emptyAction, micro: props.compact, title: props.emptyTitle ?? \"No Academy records\", message: props.emptyMessage ?? \"Create or enable Academy content to populate this view.\" }) : null] })] });\n}\nexport function TableLoading(props) {\n    return _jsxs(\"div\", { className: \"cedros-data-table-wrap\", role: \"region\", \"aria-label\": props.label, \"aria-busy\": \"true\", tabIndex: 0, children: [_jsxs(\"table\", { className: [\"cedros-data-table\", \"ca-table\", props.tableClassName].filter(Boolean).join(\" \"), children: [_jsx(\"thead\", { children: _jsx(\"tr\", { children: props.columns.map((column) => _jsx(\"th\", { scope: \"col\", className: props.numericColumns?.includes(column) ? \"ca-numeric\" : undefined, children: column }, column)) }) }), _jsx(\"tbody\", { children: [0, 1, 2].map((row) => _jsx(\"tr\", { \"aria-hidden\": \"true\", children: props.columns.map((column) => _jsx(\"td\", { className: props.numericColumns?.includes(column) ? \"ca-numeric\" : undefined, children: _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--line\" }) }, column)) }, row)) })] }), _jsxs(\"span\", { className: \"ca-sr-only\", role: \"status\", children: [\"Loading \", props.label.toLowerCase()] })] });\n}\nexport function Field(props) {\n    const fieldId = useId();\n    const descriptionId = `${fieldId}-description`;\n    const errorId = `${fieldId}-error`;\n    const input = useRef(null);\n    const Wrapper = props.toolbar ? \"div\" : \"label\";\n    function clearSearch() { props.onChange(\"\"); input.current?.focus(); }\n    return (_jsxs(Wrapper, { className: `cedros-data-field ca-field${props.toolbar ? \" ca-toolbar-field\" : \"\"}${props.identifier ? \" ca-field--identifier\" : \"\"}`, children: [props.toolbar ? _jsx(\"label\", { htmlFor: fieldId, className: \"ca-sr-only\", children: props.label }) : _jsxs(\"span\", { className: \"cedros-data-label\", children: [props.label, props.optional ? _jsx(\"span\", { className: \"ca-muted\", children: \" (optional)\" }) : null] }), props.toolbar ? _jsxs(\"svg\", { \"aria-hidden\": \"true\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: [_jsx(\"circle\", { cx: \"11\", cy: \"11\", r: \"8\" }), _jsx(\"path\", { d: \"m21 21-4.3-4.3\" })] }) : null, props.textarea ? (_jsx(\"textarea\", { id: fieldId, \"aria-label\": props.label, \"aria-describedby\": props.error ? errorId : props.help ? descriptionId : undefined, \"aria-invalid\": props.error ? true : undefined, className: \"cedros-data-textarea\", disabled: props.disabled, maxLength: props.maxLength, required: props.required, value: props.value, onBlur: props.onBlur, onChange: (event) => props.onChange(event.target.value), rows: 4 })) : (_jsx(\"input\", { ref: input, id: fieldId, \"aria-label\": props.label, \"aria-describedby\": props.error ? errorId : props.help ? descriptionId : undefined, \"aria-invalid\": props.error ? true : undefined, className: \"cedros-data-input\", disabled: props.disabled, maxLength: props.maxLength, required: props.required, min: props.min, max: props.max, step: props.step, type: props.type ?? \"text\", placeholder: props.toolbar ? props.label : undefined, value: props.value, onBlur: props.onBlur, onChange: (event) => props.onChange(event.target.value), onKeyDown: (event) => { if (props.toolbar && event.key === \"Escape\" && props.value) {\n                    event.preventDefault();\n                    clearSearch();\n                } } })), props.toolbar && props.value ? _jsx(\"button\", { \"aria-label\": \"Clear search\", title: \"Clear search\", className: \"cedros-data-btn cedros-data-btn--ghost ca-button ca-search-clear\", type: \"button\", disabled: props.disabled, onClick: clearSearch, children: _jsx(\"svg\", { \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: _jsx(\"path\", { d: \"m18 6-12 12M6 6l12 12\" }) }) }) : null, props.error ? _jsx(\"span\", { id: errorId, className: \"cedros-data-field__description ca-field-error\", children: props.error }) : props.help ? _jsx(\"span\", { id: descriptionId, className: \"cedros-data-field__description ca-muted\", children: props.help }) : null] }));\n}\nexport function Money(props) {\n    if (props.amountCents === undefined || !Number.isFinite(props.amountCents))\n        return _jsx(\"span\", { children: \"Price unavailable\" });\n    if (props.amountCents === 0)\n        return _jsx(\"span\", { children: \"Free\" });\n    const value = props.amountCents / 100;\n    try {\n        const options = { style: \"currency\", currency: props.currency ?? \"USD\" };\n        const exact = value.toLocaleString(undefined, options);\n        const amount = Math.abs(value) >= 1000000 ? value.toLocaleString(undefined, { ...options, notation: \"compact\", maximumFractionDigits: 2 }) : exact;\n        return _jsx(\"span\", { title: exact, \"aria-label\": exact, children: amount });\n    }\n    catch {\n        return _jsx(\"span\", { children: \"Price unavailable\" });\n    }\n}\nexport function Status(props) {\n    const value = props.value ?? \"unknown\";\n    return _jsx(\"span\", { className: `cedros-data-pill cedros-data-pill--${statusTone(value)} ca-status ca-status--${statusTone(value)}`, children: props.label ?? enumLabel(value) });\n}\n/** Sentence-case a stored enum value (\"needs_review\" → \"Needs review\") for display. */\nexport function enumLabel(value) {\n    const words = value.replaceAll(\"_\", \" \");\n    return words.charAt(0).toLocaleUpperCase() + words.slice(1);\n}\nexport function Guard(props) {\n    const scope = useAdminAuthority();\n    if (!scope.allowed || !props.pluginContext.authenticated || !props.pluginContext.hasPermission(props.permission)) {\n        return (_jsx(\"div\", { className: \"cedros-data-setup-notice ca-card\", children: _jsxs(\"div\", { className: \"cedros-data-setup-notice__body\", children: [_jsx(\"strong\", { children: \"Academy permission required\" }), _jsx(\"p\", { children: \"Ask a site owner for permission to manage Academy before using this view.\" })] }) }));\n    }\n    return props.children;\n}\nexport function SectionHeader(props) {\n    const current = useAdminCallbackFence();\n    const heading = useRef(null);\n    useEffect(() => { if (props.focusOnMount && current())\n        focusViewHeading(heading.current); }, []);\n    return (_jsxs(\"div\", { className: \"cedros-data__header ca-page-header\", children: [_jsxs(\"div\", { className: \"cedros-data__header-text\", children: [_jsx(\"h2\", { ref: heading, tabIndex: -1, className: \"cedros-data__title\", children: props.title }), _jsx(\"p\", { className: \"cedros-data__subtitle ca-muted\", children: props.subtitle })] }), props.action ? _jsx(\"div\", { className: \"cedros-data-actions\", children: props.action }) : null] }));\n}\n/** Announce an in-view navigation without interrupting focus already chosen. */\nexport function focusViewHeading(heading) {\n    if (heading?.isConnected && document.activeElement === document.body) {\n        heading.tabIndex = -1;\n        heading.focus();\n    }\n}\nexport function Metric(props) {\n    const display = typeof props.value === \"number\" ? props.value.toLocaleString(undefined, props.value >= 10000 ? { notation: \"compact\", maximumFractionDigits: 1 } : {}) : props.value;\n    return (_jsxs(\"div\", { className: \"cedros-data-metric ca-metric\", children: [_jsx(\"span\", { className: \"cedros-data-metric__label\", children: props.title }), _jsx(\"strong\", { className: \"cedros-data-metric__value\", title: typeof props.value === \"number\" ? props.value.toLocaleString() : undefined, children: display }), _jsx(\"span\", { className: \"cedros-data-metric__hint ca-muted\", children: props.detail })] }));\n}\nexport function normalizedPageSize(pageSize) {\n    return Number.isFinite(pageSize) ? Math.max(1, Math.min(100, Math.trunc(pageSize))) : 25;\n}\nexport function PageControls(props) {\n    if (props.offset === 0 && props.count < props.limit)\n        return _jsx(_Fragment, {});\n    const page = Math.floor(props.offset / props.limit) + 1;\n    return (_jsxs(\"nav\", { \"aria-label\": \"Pagination\", className: \"cedros-data-pagination ca-row-actions\", children: [_jsxs(\"span\", { className: \"ca-muted\", children: [\"Page \", page.toLocaleString()] }), _jsxs(\"div\", { className: \"cedros-data-actions\", children: [_jsx(\"button\", { \"aria-label\": \"Previous page\", title: \"Previous page\", className: \"cedros-data-btn cedros-data-btn--secondary cedros-data-btn--sm ca-button ca-icon-button\", disabled: props.disabled || props.offset === 0, type: \"button\", onClick: () => props.onChange(Math.max(0, props.offset - props.limit)), children: _jsx(\"svg\", { \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: _jsx(\"path\", { d: \"m15 18-6-6 6-6\" }) }) }), _jsx(\"button\", { \"aria-label\": \"Next page\", title: \"Next page\", className: \"cedros-data-btn cedros-data-btn--secondary cedros-data-btn--sm ca-button ca-icon-button\", disabled: props.disabled || props.count < props.limit, type: \"button\", onClick: () => props.onChange(props.offset + props.limit), children: _jsx(\"svg\", { \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: _jsx(\"path\", { d: \"m9 18 6-6-6-6\" }) }) })] })] }));\n}\nexport function EmptyState(props) {\n    if (props.micro) {\n        return (_jsxs(\"div\", { className: \"cedros-data-empty ca-empty\", role: props.role, children: [_jsx(\"p\", { children: props.message }), props.action ? _jsx(\"div\", { className: \"cedros-data-empty-state__action\", children: props.action }) : null] }));\n    }\n    return (_jsxs(\"div\", { className: \"cedros-data-empty-state ca-empty-state\", role: props.role, children: [_jsx(\"strong\", { children: props.title }), _jsx(\"p\", { className: \"cedros-data-empty-state__copy\", children: props.message }), props.action ? _jsx(\"div\", { className: \"cedros-data-empty-state__action\", children: props.action }) : null] }));\n}\nexport function ConfirmDialog(props) {\n    const scopeCurrent = useAdminCallbackFence();\n    const authorized = useRef(props.authorized);\n    authorized.current = props.authorized;\n    const current = () => authorized.current !== false && scopeCurrent();\n    const adminScope = useAdminAuthority();\n    const dialogId = useId();\n    const [confirmDiscard, setConfirmDiscard] = useState(false);\n    const busyRef = useRef(props.busy);\n    busyRef.current = props.busy;\n    const dialogRef = useRef(null);\n    const overlayRef = useRef(null);\n    const cancelRef = useRef(null);\n    function requestCancel() {\n        if (!current() || props.busy)\n            return;\n        if (confirmDiscard)\n            setConfirmDiscard(false);\n        else if (props.dirty)\n            setConfirmDiscard(true);\n        else\n            props.onCancel();\n    }\n    const onCancelRef = useRef(requestCancel);\n    onCancelRef.current = requestCancel;\n    useEffect(() => {\n        if (!props.dirty)\n            return;\n        const warn = (event) => { event.preventDefault(); event.returnValue = \"\"; };\n        window.addEventListener(\"beforeunload\", warn);\n        return () => window.removeEventListener(\"beforeunload\", warn);\n    }, [props.dirty]);\n    useEffect(() => {\n        const previous = typeof document !== \"undefined\" ? document.activeElement : null;\n        const ticket = adminScope.capture();\n        const overlay = overlayRef.current;\n        if (current())\n            overlay?.showModal();\n        const unsubscribe = adminScope.subscribe(() => { if (!current())\n            overlay?.close(); });\n        if (current())\n            cancelRef.current?.focus();\n        function onKeyDown(event) {\n            if (!current() || event.key !== \"Tab\" || !dialogRef.current)\n                return;\n            const focusable = Array.from(dialogRef.current.querySelectorAll(\"button, input, textarea, select, a[href]\")).filter((item) => !item.matches(\":disabled\") && item.getClientRects().length);\n            const first = focusable[0];\n            const last = focusable[focusable.length - 1];\n            if (!first || !last)\n                return;\n            if (event.shiftKey && document.activeElement === first) {\n                event.preventDefault();\n                last.focus();\n            }\n            else if (!event.shiftKey && document.activeElement === last) {\n                event.preventDefault();\n                first.focus();\n            }\n        }\n        document.addEventListener(\"keydown\", onKeyDown);\n        return () => {\n            unsubscribe();\n            document.removeEventListener(\"keydown\", onKeyDown);\n            overlay?.close();\n            if (authorized.current === false || !adminScope.current(ticket, true))\n                return;\n            if (previous instanceof HTMLElement && previous.isConnected && !previous.closest(\"[hidden], [inert]\")\n                && (document.activeElement === document.body || dialogRef.current?.contains(document.activeElement)))\n                previous.focus();\n        };\n    }, [props.authorized, adminScope.epoch]);\n    useEffect(() => { if (current())\n        cancelRef.current?.focus(); }, [confirmDiscard]);\n    return (_jsx(\"dialog\", { ref: overlayRef, className: \"cedros-data-dialog__overlay\", \"aria-modal\": \"true\", \"aria-busy\": props.busy || undefined, \"aria-labelledby\": `${dialogId}-title`, \"aria-describedby\": `${dialogId}-description`, onCancel: (event) => { event.preventDefault(); if (!busyRef.current)\n            onCancelRef.current(); }, onClick: (event) => {\n            if (event.target === event.currentTarget && !props.dirty && !dialogRef.current?.querySelector(\"input, textarea, select\"))\n                requestCancel();\n        }, children: _jsxs(\"div\", { ref: dialogRef, className: \"cedros-data-dialog\", children: [_jsxs(\"div\", { className: \"cedros-data-dialog__heading\", children: [_jsx(\"h3\", { id: `${dialogId}-title`, className: \"cedros-data-dialog__title\", children: confirmDiscard ? \"Save changes before leaving?\" : props.title }), _jsx(\"p\", { id: `${dialogId}-description`, className: \"cedros-data-dialog__description\", children: confirmDiscard ? \"You have unsaved changes.\" : props.description }), _jsx(\"button\", { \"aria-label\": \"Close dialog\", className: \"cedros-data-btn cedros-data-btn--ghost cedros-data-btn--sm cedros-data-dialog__close ca-button\", disabled: props.busy, title: \"Close dialog\", type: \"button\", onClick: requestCancel, children: _jsx(\"svg\", { \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: _jsx(\"path\", { d: \"m18 6-12 12M6 6l12 12\" }) }) })] }), _jsx(\"div\", { className: \"cedros-data-dialog__body\", children: confirmDiscard ? _jsx(\"p\", { children: \"Exit without saving to discard this draft, or keep editing.\" }) : _jsxs(_Fragment, { children: [_jsx(\"ul\", { className: \"ca-dialog-impact\", children: props.impact.map((item) => _jsx(\"li\", { children: item }, item)) }), props.children] }) }), _jsxs(\"div\", { className: \"ca-dialog-actions\", children: [_jsx(\"button\", { ref: cancelRef, className: \"cedros-data-btn cedros-data-btn--ghost ca-button\", type: \"button\", disabled: props.busy, onClick: requestCancel, children: confirmDiscard ? \"Keep editing\" : \"Cancel\" }), confirmDiscard ? _jsx(\"button\", { className: \"cedros-data-btn cedros-data-btn--secondary ca-button\", type: \"button\", onClick: () => { if (current())\n                                props.onCancel(); }, children: \"Exit without saving\" }) : _jsx(\"button\", { className: `cedros-data-btn cedros-data-btn--${props.tone ?? \"danger\"} ca-button ca-button-${props.tone ?? \"danger\"}`, type: \"button\", disabled: props.busy || props.disabled, onClick: () => { if (current())\n                                props.onConfirm(); }, children: props.confirmLabel })] })] }) }));\n}\nexport function redactIdentifier(value) {\n    if (!value)\n        return \"redacted\";\n    if (value.includes(\"@\")) {\n        const [name, domain] = value.split(\"@\");\n        return `${name.slice(0, 2)}...@${domain.slice(0, 2)}...`;\n    }\n    if (value.length <= 10)\n        return `${value.slice(0, 2)}...`;\n    return `${value.slice(0, 6)}...${value.slice(-4)}`;\n}\nfunction statusTone(value) {\n    const lowered = value.toLowerCase();\n    if ([\"active\", \"published\", \"completed\", \"approved\", \"valid\", \"ready\", \"healthy\", \"issued\", \"free\"].includes(lowered))\n        return \"success\";\n    if ([\"needs_review\", \"needs_attention\", \"pending_payment\", \"payment_pending\", \"checkout_pending\", \"awaiting_pay_event\", \"missing_pay_product\"].includes(lowered))\n        return \"warning\";\n    if ([\"revoked\", \"failed\", \"payment_failed\", \"cancelled\", \"refunded\", \"disputed\", \"chargeback\", \"chargeback_opened\", \"expired\", \"expired_checkout\"].includes(lowered))\n        return \"error\";\n    // Workbench W5: draft, private, archived and inactive are resting states, not\n    // conditions to act on, so they stay neutral and the label carries the meaning.\n    return \"neutral\";\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":166,"specifier":"react","start":161},{"dynamic":false,"end":265,"specifier":"./adminAuthority.js","start":246},{"dynamic":false,"end":307,"specifier":"./api.js","start":299},{"dynamic":false,"end":368,"specifier":"./adminStyles.js","start":352},{"dynamic":false,"end":414,"specifier":"./rowActions.js","start":399},{"dynamic":false,"end":507,"specifier":"./adminChrome.js","start":491},{"dynamic":false,"end":564,"specifier":"./adminChrome.js","start":548}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/writeAttempt.js","kind":"module","text":"import { AcademyError, isRecord, RetiredOperation } from \"./authority.js\";\n/** One invocation, including its preflight. Retirement alone says nothing about dispatch. */\nexport class WriteAttempt {\n    operation;\n    owner;\n    current;\n    changed;\n    expectedOriginal;\n    id = Symbol(\"academy-write-attempt\");\n    disposition = \"preparing\";\n    original;\n    receipt;\n    receiptReady = false;\n    constructor(operation, owner, current, changed, expectedOriginal) {\n        this.operation = operation;\n        this.owner = owner;\n        this.current = current;\n        this.changed = changed;\n        this.expectedOriginal = expectedOriginal;\n    }\n    requirePreparing() {\n        if (this.disposition !== \"preparing\" || !this.current())\n            throw new RetiredOperation();\n    }\n    dispatch(original) {\n        this.requirePreparing();\n        if (original.owner !== this.owner)\n            throw new RetiredOperation();\n        const expected = this.expectedOriginal;\n        if (expected && (expected.site !== original.site || expected.owner !== original.owner || expected.path !== original.path\n            || expected.method !== original.method || expected.bodyJson !== original.bodyJson || !equalJson(expected.headers, original.headers)))\n            throw new RetiredOperation();\n        this.original = Object.freeze({ ...original, headers: Object.freeze({ ...original.headers }) });\n        this.disposition = \"dispatched\";\n        this.changed();\n    }\n    receive(payload) {\n        if (this.disposition !== \"dispatched\" || !this.original || !matchingReceipt(this.original, payload))\n            return;\n        this.receipt = payload;\n        this.disposition = \"confirmed\";\n    }\n    publish() { this.receiptReady = this.disposition === \"confirmed\"; this.changed(); }\n    fail(error) {\n        if (this.disposition !== \"preparing\" && this.disposition !== \"dispatched\") {\n            this.publish();\n            return;\n        }\n        this.disposition = this.disposition === \"preparing\" ? \"not-dispatched\"\n            : error instanceof AcademyError && error.disposition === \"pre-commit-rejected\" ? \"pre-commit-rejected\" : \"uncertain\";\n        this.changed();\n    }\n}\nfunction equalJson(left, right) {\n    if (Array.isArray(left))\n        return Array.isArray(right) && left.length === right.length && left.every((value, index) => equalJson(value, right[index]));\n    if (isRecord(left))\n        return isRecord(right) && Object.keys(left).length === Object.keys(right).length && Object.keys(left).every(key => key in right && equalJson(left[key], right[key]));\n    return left === right;\n}\nfunction matchingReceipt(original, payload) {\n    if (!isRecord(payload))\n        return false;\n    const body = JSON.parse(original.bodyJson);\n    if (!isRecord(body))\n        return false;\n    if (original.path === \"/me/v1/course-submissions\") {\n        return isRecord(payload.submission) && typeof payload.submission.submissionId === \"string\" && Boolean(payload.submission.submissionId)\n            && Array.isArray(body.courses) && body.courses.length === 1 && equalJson(payload.submission.course, body.courses[0]);\n    }\n    const course = /^\\/public\\/v1\\/courses\\/([^/]+)\\/questions$/.exec(original.path)?.[1];\n    const question = payload.question;\n    return Boolean(course && isRecord(question) && typeof question.questionId === \"string\" && question.questionId\n        && question.studentId === original.owner && question.courseId === decodeURIComponent(course)\n        && question.title === body.title && question.body === body.body && typeof question.status === \"string\");\n}\n/** Normalize without truncation: the server accepts canonical slugs of 3–96 ASCII characters. */\nexport function proposalSlug(value) {\n    const slug = value.trim().replace(/[A-Z]/g, letter => letter.toLowerCase()).replace(/[^a-z0-9]+/g, \"-\").replace(/^-|-$/g, \"\");\n    return slug.length >= 3 && slug.length <= 96 ? slug : \"\";\n}\n","imports":[{"dynamic":false,"end":72,"specifier":"./authority.js","start":58}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/styles.css","kind":"style","text":".cedros-academy-course-document {\n  max-width: 64rem;\n  margin-inline: auto;\n  padding: 1.5rem;\n  overflow-wrap: anywhere;\n  line-height: 1.65;\n  color: var(--ca5ss4b-runtime-text, inherit);\n}\n.cedros-academy-course-document nav { margin-block: 1.25rem; }\n.cedros-academy-course-document section { max-width: 48rem; }\n.cedros-academy-course-document a { text-underline-offset: 0.2em; }\n\n.cedros-academy {\n    /* Public blocks inherit the site font and documented runtime color roles.\n       Shape is extension-owned; the runtime does not export radius tokens. */\n    --ca-radius-sm: 7px;\n    --ca-radius-md: 8px;\n    --ca-radius-lg: 12px;\n    --ca-radius-pill: 999px;\n    color: var(--ca5ss4b-runtime-text, #171717);\n    font: inherit;\n    width: 100%;\n    max-width: 100%;\n    min-width: 0;\n    contain: inline-size;\n    container: cedros-academy / inline-size;\n    overflow-wrap: break-word;\n  }\n  .cedros-academy * { box-sizing: border-box; }\n  .cedros-academy > *,\n  .cedros-academy .ca-card-grid,\n  .cedros-academy .ca-card,\n  .cedros-academy .ca-notice {\n    max-width: 100%;\n    min-width: 0;\n  }\n  .cedros-academy a { color: inherit; }\n  .cedros-academy p,\n  .cedros-academy h2,\n  .cedros-academy h3,\n  .cedros-academy h4 { margin-top: 0; letter-spacing: 0; }\n  .cedros-academy p { line-height: 1.55; }\n  .cedros-academy .ca-muted {\n    color: var(--ca5ss4b-runtime-muted, #667085);\n    font-size: 13px;\n  }\n\n  .cedros-academy .ca-card {\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n    border-radius: var(--ca-radius-md);\n    padding: 14px;\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\n    box-shadow: none;\n  }\n  .cedros-academy .ca-card + .ca-card,\n  .cedros-academy .ca-notice + .ca-card,\n  .cedros-academy .ca-card + .ca-notice { margin-top: 12px; }\n  .cedros-academy .ca-card-header {\n    display: flex;\n    gap: 10px;\n    align-items: flex-start;\n    justify-content: space-between;\n    margin-bottom: 10px;\n  }\n  .cedros-academy .ca-card h3,\n  .cedros-academy .ca-card h4 {\n    margin-bottom: 6px;\n    font-size: 16px;\n    line-height: 1.3;\n    font-weight: 650;\n  }\n  .cedros-academy .ca-button {\n    display: inline-flex;\n    min-height: 34px;\n    align-items: center;\n    justify-content: center;\n    gap: 6px;\n    border: 1px solid var(--ca5ss4b-runtime-border, #cbd5e1);\n    border-radius: var(--ca-radius-sm);\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\n    color: inherit;\n    padding: 7px 11px;\n    cursor: pointer;\n    font: inherit;\n    font-weight: 550;\n    text-decoration: none;\n    white-space: nowrap;\n  }\n  .cedros-academy .ca-button-primary {\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\n    color: var(--ca5ss4b-runtime-action-fg, #ffffff);\n    border-color: var(--ca5ss4b-runtime-action-bg, #18181b);\n  }\n\n  .cedros-academy .ca-button:focus-visible,\n  .cedros-academy a.ca-button:focus-visible,\n  .cedros-academy .ca-field input:focus-visible,\n  .cedros-academy .ca-field textarea:focus-visible,\n  .cedros-academy .ca-field select:focus-visible {\n    outline: 2px solid var(--ca5ss4b-runtime-text, #171717);\n    outline-offset: 2px;\n  }\n  .cedros-academy .ca-button[disabled] {\n    cursor: not-allowed;\n    opacity: .55;\n  }\n  .cedros-academy .ca-field {\n    display: grid;\n    gap: 5px;\n    margin-bottom: 11px;\n  }\n  .cedros-academy .ca-field label,\n  .cedros-academy .ca-field > span:first-child {\n    font-size: 12px;\n    font-weight: 650;\n    color: var(--ca5ss4b-runtime-muted, #667085);\n  }\n  .cedros-academy .ca-field input,\n  .cedros-academy .ca-field textarea,\n  .cedros-academy .ca-field select {\n    width: 100%;\n    min-height: 36px;\n    border: 1px solid var(--ca5ss4b-runtime-muted, #667085);\n    border-radius: var(--ca-radius-sm);\n    padding: 8px 10px;\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\n    color: inherit;\n    font: inherit;\n  }\n  .cedros-academy .ca-field textarea { min-height: 92px; resize: vertical; }\n  .cedros-academy .ca-learning-tools { display: grid; gap: 12px; align-items: stretch; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }\n  .cedros-academy .ca-learner-reviews { display: grid; gap: 12px; }\n  .cedros-academy .ca-disclosure { border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: var(--ca-radius-md); background: var(--ca5ss4b-runtime-panel, #ffffff); overflow: hidden; }\n  .cedros-academy .ca-disclosure > summary { padding: 18px 20px; cursor: pointer; font-weight: 650; }\n  .cedros-academy .ca-disclosure > summary:focus-visible { outline: 3px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: -3px; }\n  .cedros-academy .ca-disclosure__body { display: grid; gap: 16px; padding: 0 20px 20px; }\n  .cedros-academy .ca-feedback-item { padding: 16px 0; border-top: 1px solid var(--ca5ss4b-runtime-border, var(--ca-admin-border, #d0d5dd)); overflow-wrap: anywhere; }\n  .cedros-academy .ca-feedback-item p,\n  .cedros-academy-admin .ca-feedback-item p { white-space: pre-wrap; }\n  .cedros-academy .ca-field-error {\n    color: var(--ca5ss4b-runtime-error, #b42318);\n    font-size: 12px;\n  }\n\n  .cedros-academy .ca-status {\n    display: inline-flex;\n    min-height: 22px;\n    align-items: center;\n    border-radius: var(--ca-radius-pill);\n    padding: 2px 8px;\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\n    color: var(--ca5ss4b-runtime-muted, #667085);\n    font-size: 12px;\n    line-height: 1.2;\n    white-space: nowrap;\n  }\n  .cedros-academy .ca-status--success { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #027a48) 12%, transparent); color: var(--ca5ss4b-runtime-text, #05603a); }\n  .cedros-academy .ca-status--warning { background: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 14%, transparent); color: var(--ca5ss4b-runtime-text, #93370d); }\n  .cedros-academy .ca-status--error { background: color-mix(in srgb, var(--ca5ss4b-runtime-error, #b42318) 12%, transparent); color: var(--ca5ss4b-runtime-text, #7a271a); }\n  .cedros-academy .ca-status--info { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #175cd3) 10%, transparent); color: var(--ca5ss4b-runtime-text, #1849a9); }\n  .cedros-academy .ca-notice {\n    display: grid;\n    gap: 4px;\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n    border-radius: var(--ca-radius-md);\n    padding: 12px;\n    margin-bottom: 12px;\n    background: var(--ca5ss4b-runtime-accent-soft, #f8fafc);\n  }\n  .cedros-academy .ca-notice p { margin: 0; }\n  .cedros-academy .ca-notice--success { border-color: color-mix(in srgb, var(--ca5ss4b-runtime-text, #027a48) 35%, var(--ca5ss4b-runtime-border, #d0d5dd)); }\n  .cedros-academy .ca-notice--warning { border-color: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 40%, var(--ca5ss4b-runtime-border, #d0d5dd)); }\n  .cedros-academy .ca-notice--error { border-color: var(--ca5ss4b-runtime-error, #b42318); }\n  .cedros-academy.ca-public {\n    color: var(--ca5ss4b-runtime-text, #171717);\n  }\n  .cedros-academy.ca-public .ca-muted,\n  .cedros-academy.ca-public .ca-kicker {\n    color: var(--ca5ss4b-runtime-muted, #667085);\n  }\n  .cedros-academy.ca-public .ca-status--success {\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #171717) 6%, transparent);\n    color: var(--ca5ss4b-runtime-text, #171717);\n  }\n  .cedros-academy.ca-public .ca-status--warning {\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 16%, transparent);\n    color: var(--ca5ss4b-runtime-text, #171717);\n  }\n  .cedros-academy.ca-public .ca-status--error {\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-error, #b42318) 14%, transparent);\n    color: var(--ca5ss4b-runtime-text, #171717);\n  }\n  .cedros-academy.ca-public .ca-notice--success {\n    border-color: color-mix(in srgb, var(--ca5ss4b-runtime-border, #d0d5dd) 100%, var(--ca5ss4b-runtime-border, #d0d5dd));\n  }\n  .cedros-academy.ca-public .ca-notice--warning {\n    border-color: color-mix(in srgb, var(--ca5ss4b-runtime-warning, #b54708) 45%, var(--ca5ss4b-runtime-border, #d0d5dd));\n  }\n  .cedros-academy.ca-public .ca-notice--error {\n    border-color: var(--ca5ss4b-runtime-error, #b42318);\n  }\n  .cedros-academy.ca-public .ca-public-shell,\n  .cedros-academy.ca-public.ca-public-shell {\n    display: grid;\n    gap: 16px;\n    width: min(100%, 1120px);\n    margin: 0 auto;\n    padding: clamp(20px, 4vw, 44px) 0;\n  }\n  .cedros-academy.ca-public .ca-public-head {\n    display: grid;\n    gap: 8px;\n    max-width: 760px;\n  }\n  .cedros-academy.ca-public .ca-public-head h2 {\n    margin: 0;\n    font-size: clamp(28px, 4vw, 44px);\n    line-height: 1.08;\n    font-weight: 700;\n  }\n  .cedros-academy .ca-kicker {\n    color: var(--ca5ss4b-runtime-muted, #667085);\n    font-size: 12px;\n    font-weight: 700;\n    letter-spacing: 0;\n    text-transform: uppercase;\n  }\n  .cedros-academy .ca-card-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));\n    gap: 14px;\n  }\n  .cedros-academy .ca-card-grid--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }\n  .cedros-academy .ca-skeleton-card {\n    min-height: 156px;\n    align-content: start;\n  }\n  .cedros-academy .ca-skeleton {\n    display: block;\n    height: 12px;\n    border-radius: var(--ca-radius-pill);\n    background: color-mix(in srgb, var(--ca5ss4b-runtime-muted, #667085) 22%, transparent);\n    background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ca5ss4b-runtime-panel, #ffffff) 55%, transparent), transparent);\n    background-size: 220% 100%;\n    background-repeat: no-repeat;\n    animation: ca-shimmer var(--motion-duration-skeleton, 1400ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)) infinite;\n  }\n  .cedros-academy .ca-skeleton--title {\n    width: 54%;\n    height: 18px;\n    margin-bottom: 10px;\n  }\n  .cedros-academy .ca-skeleton--line { width: 88%; margin-bottom: 8px; }\n  .cedros-academy .ca-skeleton--short { width: 62%; }\n  .cedros-academy .ca-course-layout {\n    display: grid;\n    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);\n    gap: 14px;\n    align-items: start;\n  }\n  .cedros-academy .ca-course-card,\n  .cedros-academy .ca-course-primary,\n  .cedros-academy .ca-course-secondary,\n  .cedros-academy .ca-player {\n    background: var(--ca5ss4b-runtime-panel, #ffffff);\n    border-color: var(--ca5ss4b-runtime-border, #d0d5dd);\n  }\n  .cedros-academy .ca-player { border-radius: var(--ca-radius-lg); }\n  .cedros-academy .ca-meta-list {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));\n    gap: 8px;\n    margin: 12px 0;\n  }\n  .cedros-academy .ca-meta-list div {\n    display: grid;\n    gap: 2px;\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n    border-radius: var(--ca-radius-sm);\n    padding: 8px;\n  }\n  .cedros-academy .ca-meta-list dt {\n    color: var(--ca5ss4b-runtime-muted, #667085);\n    font-size: 12px;\n  }\n  .cedros-academy .ca-meta-list dd { margin: 0; font-weight: 650; }\n  .cedros-academy .ca-public-actions {\n    display: flex;\n    gap: 8px;\n    align-items: center;\n    flex-wrap: wrap;\n  }\n  .cedros-academy .ca-progress {\n    position: relative;\n    display: grid;\n    gap: 6px;\n    margin: 10px 0;\n  }\n  .cedros-academy .ca-progress::before,\n  .cedros-academy .ca-progress > span {\n    display: block;\n    height: 8px;\n    border-radius: var(--ca-radius-pill);\n  }\n  .cedros-academy .ca-progress::before {\n    content: \"\";\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\n  }\n  .cedros-academy .ca-progress > span {\n    position: absolute;\n    top: 0;\n    left: 0;\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\n    /* Width is a layout property, so it keeps the standard curve. A spring\n       here would relayout every frame and overshoot the end of the track. */\n    transition: width var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy .ca-progress strong { font-size: 12px; color: var(--ca5ss4b-runtime-muted, #667085); }\n  .cedros-academy .ca-curriculum {\n    display: grid;\n    gap: 10px;\n  }\n  .cedros-academy .ca-curriculum ul {\n    display: grid;\n    gap: 6px;\n    margin: 0;\n    padding-left: 18px;\n  }\n  .cedros-academy .ca-curriculum li span {\n    color: var(--ca5ss4b-runtime-muted, #667085);\n    font-size: 12px;\n  }\n  .cedros-academy .ca-instructor-list,\n  .cedros-academy .ca-instructor-summary {\n    display: grid;\n    gap: 6px;\n  }\n  .cedros-academy .ca-instructor-list {\n    border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n    padding-top: 12px;\n  }\n  .cedros-academy .ca-instructor-summary p { margin-bottom: 8px; }\n  .cedros-academy .ca-player-layout {\n    display: grid;\n    grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr);\n    gap: 16px;\n    align-items: start;\n    margin-top: 16px;\n  }\n  .cedros-academy .ca-player-nav {\n    display: grid;\n    gap: 12px;\n  }\n  .cedros-academy .ca-player-nav ol {\n    display: grid;\n    gap: 6px;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n  .cedros-academy .ca-player-lesson {\n    position: relative;\n    display: grid;\n    gap: 3px;\n    width: 100%;\n    border: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n    border-radius: var(--ca-radius-sm);\n    padding: 9px 10px;\n    background: transparent;\n    color: inherit;\n    cursor: pointer;\n    font: inherit;\n    text-align: left;\n    transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\n      border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy .ca-player-lesson::before {\n    content: \"\";\n    position: absolute;\n    top: 8px;\n    bottom: 8px;\n    left: -1px;\n    width: 3px;\n    border-radius: var(--ca-radius-pill);\n    background: var(--ca5ss4b-runtime-action-bg, #18181b);\n    transform: scaleY(0);\n    transition: transform var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy .ca-player-lesson[aria-current=\"step\"] {\n    border-color: var(--ca5ss4b-runtime-action-bg, #18181b);\n    background: var(--ca5ss4b-runtime-accent-soft, #f2f4f7);\n  }\n  .cedros-academy .ca-player-lesson[aria-current=\"step\"]::before { transform: scaleY(1); }\n  .cedros-academy .ca-player-lesson span:last-child {\n    color: var(--ca5ss4b-runtime-muted, #667085);\n    font-size: 12px;\n  }\n  .cedros-academy .ca-player-lesson:focus-visible {\n    outline: 2px solid var(--ca5ss4b-runtime-action-bg, var(--ca5ss4b-runtime-accent, #2f6c7d));\n    outline-offset: 2px;\n  }\n  .cedros-academy .ca-lesson {\n    min-width: 0;\n    border-left: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n    padding-left: 16px;\n  }\n  .cedros-academy .ca-lesson-body {\n    display: grid;\n    gap: 10px;\n    margin: 14px 0 18px;\n  }\n  .cedros-academy .ca-lesson-body > * { margin: 0; }\n  .cedros-academy .ca-lesson-body p { white-space: pre-wrap; }\n  .cedros-academy .ca-lesson-body :is(h4, h5, h6) { font-weight: 600; line-height: 1.4; }\n  .cedros-academy .ca-lesson-body h4 { font-size: 20px; }\n  .cedros-academy .ca-lesson-body h5 { font-size: 18px; }\n  .cedros-academy .ca-lesson-body h6 { font-size: 16px; }\n  .cedros-academy .ca-certificate {\n    display: grid;\n    gap: 16px;\n    border-radius: var(--ca-radius-lg);\n    width: min(100%, 760px);\n    margin: 0 auto;\n    padding: clamp(24px, 5vw, 56px);\n    border-width: 2px;\n    text-align: center;\n  }\n  .cedros-academy .ca-certificate-heading {\n    display: flex;\n    gap: 16px;\n    align-items: flex-start;\n    justify-content: space-between;\n    text-align: left;\n  }\n  .cedros-academy .ca-certificate-heading h3 {\n    margin: 5px 0 0;\n    font-size: clamp(24px, 4vw, 38px);\n  }\n  .cedros-academy .ca-certificate-statement { margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); }\n  .cedros-academy .ca-certificate-holder { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; }\n  .cedros-academy .ca-certificate-details {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\n    gap: 10px;\n    margin: 8px 0 0;\n    text-align: left;\n  }\n  .cedros-academy .ca-certificate-details div {\n    display: grid;\n    gap: 4px;\n    min-width: 0;\n    padding-top: 10px;\n    border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd);\n  }\n  .cedros-academy .ca-certificate-details dt { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; }\n  .cedros-academy .ca-certificate-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }\n  .cedros-academy .ca-certificate-actions { justify-content: center; }\n  /* Outermost wrapper a public stack navigator returns once it has pushed a\n     detail view. It carries the scope root so the shared-axis rules reach it,\n     which lets the back control and the pushed view travel as one view. */\n  .cedros-academy.ca-public-stack {\n    display: grid;\n    gap: 12px;\n  }\n  .cedros-academy.ca-public-stack > .ca-button { justify-self: start; }\n  .cedros-academy .ca-lookup-form {\n    display: grid;\n    grid-template-columns: minmax(0, 1fr) auto;\n    gap: 10px;\n    align-items: end;\n  }\n  @media (max-width: 760px) {\n    .cedros-academy .ca-card-grid,\n    .cedros-academy .ca-card-grid--compact {\n      grid-template-columns: 1fr;\n    }\n    .cedros-academy .ca-course-layout,\n    .cedros-academy .ca-player-layout,\n    .cedros-academy .ca-lookup-form { grid-template-columns: 1fr; }\n    .cedros-academy .ca-lesson { border-left: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding: 16px 0 0; }\n    .cedros-academy .ca-button { width: fit-content; max-width: 100%; white-space: normal; text-align: center; }\n  }\n  @media print {\n    /* Printed output must never capture a half-finished reveal. */\n    .cedros-academy *,\n    .cedros-academy *::before,\n    .cedros-academy *::after {\n      animation: none !important;\n      transition: none !important;\n    }\n    .cedros-academy .ca-check path { stroke-dashoffset: 0; }\n    body[data-ca5ss4b-academy-print-certificate] * { visibility: hidden !important; }\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate,\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate * { visibility: visible !important; }\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate {\n      position: absolute;\n      inset: 0;\n      width: 100%;\n      max-width: none;\n      border-color: currentColor;\n      box-shadow: none;\n    }\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate-actions,\n    body[data-ca5ss4b-academy-print-certificate] .ca-certificate > .ca-muted { display: none !important; }\n  }\n.cedros-academy-admin {\n    --ca-admin-bg: var(--cd-bg, oklch(1 0 0));\n    --ca-admin-fg: var(--cd-fg, oklch(0.145 0 0));\n    --ca-admin-card-bg: var(--cd-card-bg, oklch(1 0 0));\n    --ca-admin-muted: var(--cd-muted, oklch(0.556 0 0));\n    --ca-admin-muted-bg: var(--cd-muted-bg, oklch(0.97 0 0));\n    --ca-admin-accent: var(--cd-accent, oklch(0.97 0 0));\n    --ca-admin-border: var(--cd-border, oklch(0.922 0 0));\n    --ca-admin-primary: var(--cd-primary, oklch(0.205 0 0));\n    --ca-admin-primary-fg: var(--cd-primary-fg, oklch(0.985 0 0));\n    --ca-admin-ring: var(--cd-ring, oklch(0.556 0 0));\n    --ca-admin-success: var(--cd-success, oklch(0.627 0.194 149.214));\n    --ca-admin-warning: var(--cd-warning, oklch(0.769 0.188 70.08));\n    --ca-admin-warning-fg: var(--cd-warning-fg, oklch(0.52 0.12 75));\n    --ca-admin-error: var(--cd-error, oklch(0.577 0.245 27.325));\n    --ca-admin-danger-bg: var(--cd-danger-bg, oklch(0.5 0.22 27.325));\n    --ca-admin-danger-fg: var(--cd-danger-fg, oklch(0.985 0 0));\n    --ca-admin-info: var(--cd-info, oklch(0.546 0.215 262.881));\n    --ca-admin-input-bg: var(--cd-input-bg, transparent);\n    --ca-radius-sm: var(--cd-radius-control, calc(var(--cd-radius, 8px) - 1px));\n    --ca-radius-md: var(--cd-radius, 8px);\n    --ca-radius-lg: var(--admin-radius, 12px);\n    --ca-radius-pill: 999px;\n    --ca-admin-radius: var(--ca-radius-md);\n    --ca-admin-dialog-radius: var(--admin-radius, 12px);\n    --ca-admin-shadow: var(--cd-shadow, 0 1px 2px color-mix(in srgb, var(--ca-admin-fg) 8%, transparent));\n    color: var(--ca-admin-fg); display: grid; gap: 1rem; width: 100%; max-width: var(--cd-container-page, min(100%, 1360px));\n    min-width: 0; container: cedros-academy-admin / inline-size; overflow-wrap: anywhere; font: inherit; font-size: 0.875rem;\n  }\n  .cedros-academy-admin, .cedros-academy-admin * { box-sizing: border-box; }\n  .cedros-academy-admin > *, .cedros-academy-admin .ca-grid,\n  .cedros-academy-admin .ca-card-grid, .cedros-academy-admin .cedros-data-table-wrap { max-width: 100%; min-width: 0; }\n  .cedros-academy-admin p, .cedros-academy-admin h2,\n  .cedros-academy-admin h3, .cedros-academy-admin h4 { margin: 0; letter-spacing: 0; }\n  .cedros-academy-admin p { line-height: 1.5; }\n  .cedros-academy-admin .ca-muted,\n  .cedros-academy-admin .cedros-data-card__subtitle { color: var(--ca-admin-muted); font-size: 0.8125rem; }\n  .cedros-academy-admin .ca-page-header { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }\n  .cedros-academy-admin .cedros-data__header-text { display: grid; gap: 0.25rem; max-width: 60ch; min-width: min(100%, 18rem); }\n  .cedros-academy-admin .cedros-data__title { font-size: 1.15rem; line-height: 1.25; font-weight: 600; }\n  .cedros-academy-admin .cedros-data-actions,\n  .cedros-academy-admin .ca-row-actions { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }\n  .cedros-academy-admin .ca-grid,\n  .cedros-academy-admin .cedros-data-grid,\n  .cedros-academy-admin .cedros-data-summary-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));\n    gap: 0.75rem;\n  }\n  .cedros-academy-admin .ca-grid--two {\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));\n  }\n  .cedros-academy-admin .ca-grid--metrics {\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));\n  }\n  .cedros-academy-admin .ca-settings-column {\n    display: grid;\n    gap: 1rem;\n    width: min(100%, var(--cd-container-settings, 45rem));\n  }\n  .cedros-academy-admin .ca-access-operations > .cedros-data-card__header { flex-wrap: wrap; }\n  .cedros-academy-admin .ca-access-operations,\n  .cedros-academy-admin .ca-access-filters { min-width: 0; }\n  .cedros-academy-admin .ca-card,\n  .cedros-academy-admin .cedros-data-card,\n  .cedros-academy-admin.cedros-data-card {\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-admin-radius);\n    background: var(--ca-admin-card-bg);\n    box-shadow: var(--ca-admin-shadow);\n  }\n  .cedros-academy-admin .ca-card,\n  .cedros-academy-admin.ca-card,\n  .cedros-academy-admin .cedros-data-card__body {\n    padding: 0.9rem 1rem;\n  }\n  .cedros-academy-admin .ca-card + .ca-card, .cedros-academy-admin .ca-notice + .ca-card,\n  .cedros-academy-admin .ca-card + .ca-notice { margin-top: 0; }\n  .cedros-academy-admin .ca-card-header,\n  .cedros-academy-admin .cedros-data-card__header {\n    display: flex;\n    gap: 0.75rem;\n    align-items: flex-start;\n    justify-content: space-between;\n    margin-bottom: 0.75rem;\n  }\n  .cedros-academy-admin .ca-card h3,\n  .cedros-academy-admin .ca-card h4,\n  .cedros-academy-admin .cedros-data-card__title {\n    font-size: 0.875rem;\n    line-height: 1.25;\n    font-weight: 600;\n  }\n  .cedros-academy-admin .ca-button,\n  .cedros-academy-admin .cedros-data-btn {\n    display: inline-flex;\n    min-height: 2rem;\n    align-items: center;\n    justify-content: center;\n    gap: 0.5rem;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-radius-sm);\n    background: transparent;\n    color: var(--ca-admin-fg);\n    padding: 0 0.75rem;\n    cursor: pointer;\n    font: inherit;\n    font-size: 0.8125rem;\n    font-weight: 500;\n    line-height: 1;\n    text-decoration: none;\n    white-space: nowrap;\n    transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\n      border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)),\n      box-shadow var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), transform var(--motion-duration-micro, 100ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy-admin .cedros-data-btn--sm,\n  .cedros-academy-admin .ca-button--sm,\n  .cedros-academy-admin .cedros-data-row-actions .cedros-data-btn {\n    min-height: 2rem;\n    padding-inline: 0.5rem;\n  }\n  .cedros-academy-admin .ca-button:not(:disabled):hover,\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):hover {\n    background: var(--ca-admin-accent);\n    transform: translateY(-1px);\n  }\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):hover:not(:focus-visible) {\n    box-shadow: var(--ca-admin-shadow);\n  }\n  /* The press itself stays on the micro duration so the control answers the\n     finger immediately; only the release is allowed to spring back. */\n  .cedros-academy-admin .ca-button:not(:disabled):active,\n  .cedros-academy-admin .cedros-data-btn:not(:disabled):active {\n    transform: scale(0.98);\n    transition: transform var(--motion-duration-micro, 100ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy-admin .ca-button-primary,\n  .cedros-academy-admin .cedros-data-btn--primary {\n    border-color: var(--ca-admin-primary);\n    background: var(--ca-admin-primary);\n    color: var(--ca-admin-primary-fg);\n  }\n  .cedros-academy-admin .ca-button-primary:not(:disabled):hover,\n  .cedros-academy-admin .cedros-data-btn--primary:not(:disabled):hover {\n    background: color-mix(in srgb, var(--ca-admin-primary) 90%, var(--ca-admin-primary-fg));\n    color: var(--ca-admin-primary-fg);\n  }\n  .cedros-academy-admin .ca-button-danger,\n  .cedros-academy-admin .cedros-data-btn--danger {\n    border-color: var(--ca-admin-danger-bg);\n    background: var(--ca-admin-danger-bg);\n    color: var(--ca-admin-danger-fg);\n  }\n  .cedros-academy-admin .ca-button-danger:not(:disabled):hover,\n  .cedros-academy-admin .cedros-data-btn--danger:not(:disabled):hover {\n    background: color-mix(in srgb, var(--ca-admin-danger-bg) 90%, var(--ca-admin-fg));\n    color: var(--ca-admin-danger-fg);\n  }\n  .cedros-academy-admin .cedros-data-btn--ghost {\n    border-color: transparent;\n    background: transparent;\n  }\n  .cedros-academy-admin .ca-button:focus-visible,\n  .cedros-academy-admin a.ca-button:focus-visible,\n  .cedros-academy-admin .cedros-data-btn:focus-visible,\n  .cedros-academy-admin .cedros-data-input:focus-visible,\n  .cedros-academy-admin .cedros-data-select:focus-visible,\n  .cedros-academy-admin .cedros-data-textarea:focus-visible {\n    outline: none;\n    border-color: var(--ca-admin-ring);\n    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca-admin-ring) 14%, transparent);\n  }\n  .cedros-academy-admin .ca-button[disabled],\n  .cedros-academy-admin .cedros-data-btn[disabled] {\n    cursor: not-allowed;\n    opacity: 0.5;\n    transform: none;\n  }\n  .cedros-academy-admin .ca-field,\n  .cedros-academy-admin .cedros-data-field {\n    display: grid;\n    gap: 0.25rem;\n    align-content: start;\n    margin: 0 0 0.75rem;\n  }\n  .cedros-academy-admin .cedros-data-label {\n    color: var(--ca-admin-fg);\n    font-size: 0.8125rem;\n    font-weight: 500;\n  }\n  .cedros-academy-admin .cedros-data-input,\n  .cedros-academy-admin .cedros-data-select,\n  .cedros-academy-admin .cedros-data-textarea {\n    width: 100%;\n    min-height: 2.25rem;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-radius-sm);\n    padding: 0 0.75rem;\n    background: var(--ca-admin-input-bg);\n    color: var(--ca-admin-fg);\n    font: inherit;\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .cedros-data-textarea {\n    min-height: 5.5rem;\n    padding-block: 0.5rem;\n    resize: vertical;\n  }\n  .cedros-academy-admin .cedros-data-field__description,\n  .cedros-academy-admin .ca-field-error {\n    color: var(--ca-admin-muted);\n    font-size: 0.75rem;\n  }\n  .cedros-academy-admin .ca-field-error { color: var(--ca-admin-error); }\n  /* A horizontal table scroller keeps its fling to its own axis, so reaching\n     the last column never chains into the host page or the browser's\n     back-navigation gesture. Workbench tables scroll inside a plain hairline\n     frame; no gradient edge shadows. */\n  .cedros-academy-admin .cedros-data-table-wrap {\n    /* Positioned so visually hidden cell labels clip with the scroller. */\n    position: relative;\n    container: cedros-academy-table / inline-size;\n    overflow-x: auto;\n    overscroll-behavior-x: contain;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-radius-sm);\n    background-color: var(--ca-admin-card-bg);\n  }\n  .cedros-academy-admin .ca-table {\n    width: 100%;\n    min-width: 45rem;\n    border-collapse: collapse;\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .ca-table th,\n  .cedros-academy-admin .ca-table td {\n    border-bottom: 1px solid var(--ca-admin-border);\n    padding: 0.55rem 0.75rem;\n    text-align: left;\n    vertical-align: top;\n  }\n  .cedros-academy-admin .ca-table th {\n    background: color-mix(in srgb, var(--ca-admin-bg) 90%, var(--ca-admin-accent) 10%);\n    color: var(--ca-admin-muted);\n    font-size: 0.6875rem;\n    font-weight: 600;\n    letter-spacing: 0.04em;\n    text-transform: uppercase;\n  }\n  .cedros-academy-admin .ca-table tr:last-child td { border-bottom: 0; }\n  .cedros-academy-admin .ca-table td:nth-child(n + 3) {\n    font-variant-numeric: tabular-nums;\n  }\n  .cedros-academy-admin .ca-status,\n  .cedros-academy-admin .cedros-data-pill {\n    display: inline-flex;\n    min-height: 1.375rem;\n    align-items: center;\n    border-radius: var(--ca-radius-pill);\n    padding: 0.125rem 0.5rem;\n    border: 1px solid color-mix(in srgb, var(--ca-admin-muted) 24%, transparent);\n    background: var(--ca-admin-muted-bg);\n    color: var(--ca-admin-fg);\n    font-size: 0.6875rem;\n    font-weight: 600;\n    line-height: 1.2;\n    white-space: nowrap;\n  }\n  .cedros-academy-admin .ca-status--success { background: color-mix(in srgb, var(--ca-admin-success) 14%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\n  .cedros-academy-admin .ca-status--warning { background: color-mix(in srgb, var(--ca-admin-warning) 18%, var(--ca-admin-bg)); color: var(--ca-admin-warning-fg); }\n  .cedros-academy-admin .ca-status--error { background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\n  .cedros-academy-admin .ca-status--info { background: color-mix(in srgb, var(--ca-admin-info) 12%, var(--ca-admin-bg)); color: var(--ca-admin-fg); }\n  .cedros-academy-admin .ca-notice,\n  .cedros-academy-admin .cedros-data-status {\n    display: grid;\n    grid-template-columns: 1rem minmax(0, 1fr) auto;\n    gap: 0.75rem;\n    align-items: flex-start;\n    justify-content: space-between;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-admin-radius);\n    padding: 0.75rem;\n    background: var(--ca-admin-muted-bg);\n  }\n  .cedros-academy-admin .ca-notice strong { font-size: 0.875rem; font-weight: 600; }\n  .cedros-academy-admin .ca-notice p { color: var(--ca-admin-fg); font-size: 0.8125rem; }\n  .cedros-academy-admin .ca-notice__icon { margin-top: 0.125rem; }\n  .cedros-academy-admin .ca-notice__copy { min-width: 0; }\n  .cedros-academy-admin .ca-notice--success { background: color-mix(in srgb, var(--ca-admin-success) 14%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-success) 34%, transparent); }\n  .cedros-academy-admin .ca-notice--warning { background: color-mix(in srgb, var(--ca-admin-warning) 18%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-warning) 34%, transparent); }\n  .cedros-academy-admin .ca-notice--error { background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-error) 34%, transparent); }\n  .cedros-academy-admin .ca-notice--info { background: color-mix(in srgb, var(--ca-admin-info) 12%, var(--ca-admin-bg)); border-color: color-mix(in srgb, var(--ca-admin-info) 34%, transparent); }\n  .cedros-academy-admin .ca-empty,\n  .cedros-academy-admin .cedros-data-empty {\n    color: var(--ca-admin-muted);\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .cedros-data-empty-state {\n    display: grid;\n    place-items: center;\n    align-content: center;\n    gap: 0.5rem;\n    min-height: 9rem;\n    border: 1px dashed color-mix(in srgb, var(--ca-admin-border) 72%, var(--ca-admin-muted));\n    border-radius: var(--ca-admin-radius);\n    padding: 1.5rem 1rem;\n    text-align: center;\n  }\n  .cedros-academy-admin .cedros-data-empty-state strong {\n    font-size: 0.875rem;\n    font-weight: 600;\n  }\n  .cedros-academy-admin .cedros-data-empty-state p {\n    max-width: 32rem;\n    color: var(--ca-admin-muted);\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .ca-skeleton-block {\n    display: grid;\n    gap: 0.5rem;\n    min-height: 6rem;\n    padding: 0.9rem 1rem;\n  }\n  .cedros-academy-admin .ca-skeleton {\n    display: block;\n    height: 0.75rem;\n    border-radius: var(--ca-radius-pill);\n    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ca-admin-muted) 18%, transparent), transparent);\n    background-size: 220% 100%;\n    animation: ca-admin-shimmer var(--motion-duration-skeleton, 1400ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)) infinite;\n  }\n  .cedros-academy-admin .ca-skeleton--title { width: 54%; height: 1rem; }\n  .cedros-academy-admin .ca-skeleton--line { width: 88%; }\n  .cedros-academy-admin .ca-skeleton--short { width: 62%; }\n  .cedros-academy-admin .ca-lesson-body :is(h4, h5, h6) {\n    margin: 0;\n    font-size: 0.875rem;\n    line-height: 1.5;\n    font-weight: 600;\n  }\n  .cedros-academy-admin .ca-metric,\n  .cedros-academy-admin .cedros-data-metric {\n    display: grid;\n    align-content: start;\n    gap: 0.25rem;\n    min-height: 6rem;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-admin-radius);\n    padding: 0.75rem;\n    background: var(--ca-admin-card-bg);\n  }\n  .cedros-academy-admin .cedros-data-metric__label {\n    color: var(--ca-admin-muted);\n    font-size: 0.6875rem;\n    font-weight: 600;\n    letter-spacing: 0.04em;\n    text-transform: uppercase;\n  }\n  .cedros-academy-admin .cedros-data-metric__value {\n    font-size: 1.5rem;\n    line-height: 1;\n    font-weight: 700;\n    font-variant-numeric: tabular-nums;\n  }\n  .cedros-academy-admin .ca-checklist {\n    display: grid;\n    gap: 0.5rem;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n  /* Workbench step list: state icon + label + muted detail; the icon shape,\n     not only its tone, distinguishes done from blocked. */\n  .cedros-academy-admin .ca-checklist li {\n    display: grid;\n    grid-template-columns: 1rem minmax(0, 1fr);\n    column-gap: 0.5rem;\n    row-gap: 0.125rem;\n  }\n  .cedros-academy-admin .ca-checklist li::before {\n    content: \"\";\n    grid-row: 1 / span 2;\n    width: 1rem;\n    height: 1rem;\n    margin-top: 0.125rem;\n    background-color: var(--ca-admin-success);\n    /* Lucide circle-check. */\n    mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E\") center / 1rem no-repeat;\n  }\n  .cedros-academy-admin .ca-checklist li[data-state=\"blocked\"]::before {\n    background-color: var(--ca-admin-warning-fg);\n    /* Lucide circle-alert. */\n    mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4m0 4h.01'/%3E%3C/svg%3E\");\n  }\n  .cedros-academy-admin .ca-checklist strong {\n    font-size: 0.8125rem;\n    font-weight: 500;\n  }\n  .cedros-academy-admin .ca-checklist span {\n    grid-column: 2;\n    color: var(--ca-admin-muted);\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .cedros-autosave-status {\n    display: inline-flex;\n    min-height: 1.5rem;\n    align-items: center;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-radius-pill);\n    padding: 0.125rem 0.625rem;\n    background: var(--ca-admin-muted-bg);\n    color: var(--ca-admin-fg);\n    font-size: 0.75rem;\n  }\n  .cedros-academy-admin .cedros-autosave-status--failed,\n  .cedros-academy-admin .cedros-autosave-status--conflict,\n  .cedros-academy-admin .cedros-autosave-status--offline {\n    background: color-mix(in srgb, var(--ca-admin-error) 12%, var(--ca-admin-bg));\n    color: var(--ca-admin-fg);\n  }\n  .cedros-academy-admin .cedros-autosave-banner {\n    display: flex;\n    gap: 0.5rem;\n    align-items: center;\n    justify-content: space-between;\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-admin-radius);\n    padding: 0.75rem;\n    margin-bottom: 0.75rem;\n    background: var(--ca-admin-muted-bg);\n  }\n  .cedros-academy-admin .cedros-data-dialog__overlay {\n    width: 100%;\n    height: 100%;\n    max-width: none;\n    max-height: none;\n    margin: 0;\n    border: 0;\n    color: inherit;\n    position: fixed;\n    inset: 0;\n    display: grid;\n    place-items: center;\n    padding: 1rem;\n    background: rgb(0 0 0 / 0.45);\n    z-index: var(--z-modal, 1000);\n  }\n  .cedros-academy-admin .cedros-data-dialog {\n    max-height: min(85dvh, 44rem);\n    overflow: hidden;\n    display: grid;\n    grid-template-rows: auto minmax(0, 1fr) auto;\n    gap: 1rem;\n    width: min(100%, 420px);\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-admin-dialog-radius);\n    padding: 1.25rem;\n    background: var(--ca-admin-card-bg);\n    box-shadow: 0 10px 25px -4px color-mix(in srgb, var(--ca-admin-fg) 12%, transparent), 0 4px 6px -1px color-mix(in srgb, var(--ca-admin-fg) 10%, transparent);\n    animation: ca-admin-dialog-in var(--motion-duration-modal, 240ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy-admin .cedros-data-dialog__heading {\n    position: relative;\n    display: grid;\n    gap: 0.25rem;\n    padding-right: 2rem;\n  }\n  .cedros-academy-admin .cedros-data-dialog__close {\n    position: absolute; top: 0; right: 0; width: 2rem; min-height: 2rem; padding: 0;\n  }\n  .cedros-academy-admin .cedros-data-dialog__title {\n    font-size: 1.15rem;\n    line-height: 1.25;\n    font-weight: 600;\n  }\n  .cedros-academy-admin .cedros-data-dialog__description {\n    color: var(--ca-admin-muted);\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .cedros-data-dialog__body {\n    min-height: 0;\n    overflow: auto;\n    display: grid;\n    gap: 1rem;\n    padding: 2px;\n  }\n  .cedros-academy-admin .ca-filtered-empty {\n    /* Recovery belongs to the visible frame, even when its data columns scroll. */\n    position: sticky;\n    inset-inline-start: 0.75rem;\n    inline-size: calc(100cqw - 1.5rem);\n    display: grid;\n    justify-items: center;\n    gap: 0.5rem;\n    padding: 1rem;\n    color: var(--ca-admin-muted);\n  }\n  .cedros-academy-admin .ca-sr-only {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    padding: 0;\n    margin: -1px;\n    overflow: hidden;\n    clip-path: inset(50%);\n    white-space: nowrap;\n    border: 0;\n  }\n  .cedros-academy-admin .cedros-data-table-wrap:focus-visible {\n    outline: 2px solid var(--ca-admin-ring);\n    outline-offset: 2px;\n  }\n  .cedros-academy-admin .ca-dialog-impact {\n    display: grid;\n    gap: 0.25rem;\n    margin: 0;\n    padding-left: 1rem;\n    color: var(--ca-admin-muted);\n    font-size: 0.8125rem;\n  }\n  .cedros-academy-admin .ca-dialog-actions {\n    display: flex;\n    gap: 0.5rem;\n    justify-content: flex-end;\n    flex-wrap: wrap;\n  }\n  .cedros-academy-admin.ca-dashboard-card {\n    display: grid;\n    gap: 0.75rem;\n  }\n  .cedros-academy-admin .cedros-back-breadcrumb {\n    width: fit-content;\n    border: 0;\n    padding: 0;\n    background: transparent;\n    color: var(--ca-admin-primary);\n    cursor: pointer;\n    font: inherit;\n    font-size: 0.8125rem;\n    font-weight: 600;\n  }\n  .cedros-academy-admin .ca-course-workspace,\n  .cedros-academy-admin .ca-curriculum-sections,\n  .cedros-academy-admin .ca-disclosure__body {\n    display: grid;\n    gap: 1rem;\n  }\n  .cedros-academy-admin .ca-course-editor-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));\n    gap: 1rem;\n    align-items: start;\n  }\n  .cedros-academy-admin .ca-curriculum-section {\n    display: grid;\n    gap: 0.75rem;\n    border-top: 1px solid var(--ca-admin-border);\n    padding-top: 1rem;\n  }\n  .cedros-academy-admin .ca-curriculum-section:first-child {\n    border-top: 0;\n    padding-top: 0;\n  }\n  .cedros-academy-admin .ca-lesson-editor {\n    display: grid;\n    gap: 0.75rem;\n    border-top: 1px solid var(--ca-admin-border);\n    padding-top: 0.75rem;\n  }\n  .cedros-academy-admin .ca-learner-preview {\n    margin-top: 1rem;\n  }\n  .cedros-academy-admin .ca-submission-preview {\n    min-width: 18rem;\n    max-width: 36rem;\n  }\n  .cedros-academy-admin .ca-submission-section,\n  .cedros-academy-admin .ca-submission-lesson {\n    display: grid;\n    gap: 0.5rem;\n  }\n  .cedros-academy-admin .ca-submission-lesson {\n    border-top: 1px solid var(--ca-admin-border);\n    padding-top: 0.75rem;\n  }\n  .cedros-academy-admin .ca-submission-lesson h5 {\n    margin: 0;\n  }\n  .cedros-academy-admin .ca-submission-lesson .ca-lesson-body {\n    line-height: 1.6;\n    overflow-wrap: anywhere;\n  }\n  .cedros-academy-admin .ca-preview-layout {\n    display: grid;\n    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);\n    gap: 1rem;\n  }\n  .cedros-academy-admin .ca-preview-nav {\n    display: grid;\n    align-content: start;\n    gap: 0.25rem;\n  }\n  /* Workbench nav-item recipe: muted at rest; accent fill, foreground and 500\n     weight when current. No bar, border, inset ring or shadow. */\n  .cedros-academy-admin .ca-preview-nav .ca-button {\n    justify-content: flex-start;\n    border-color: transparent;\n    padding-left: 0.75rem;\n    color: var(--ca-admin-muted);\n    text-align: left;\n  }\n  .cedros-academy-admin .ca-preview-nav .ca-button:not(:disabled):hover { color: var(--ca-admin-fg); transform: none; box-shadow: none; }\n  .cedros-academy-admin .ca-preview-nav [aria-current=\"page\"] {\n    background: var(--ca-admin-accent);\n    color: var(--ca-admin-fg);\n  }\n  .cedros-academy-admin .ca-preview-lesson {\n    min-width: 0;\n    border-left: 1px solid var(--ca-admin-border);\n    padding-left: 1rem;\n  }\n  .cedros-academy-admin .ca-preview-lesson h4 {\n    margin: 0.25rem 0 1rem;\n  }\n  .cedros-academy-admin .ca-preview-lesson .ca-lesson-body {\n    line-height: 1.65;\n    overflow-wrap: anywhere;\n  }\n  .cedros-academy-admin .ca-course-workspace-actions,\n  .cedros-academy-admin .ca-lifecycle-actions,\n  .cedros-academy-admin .ca-create-course__row {\n    display: flex;\n    gap: 0.75rem;\n    align-items: end;\n    flex-wrap: wrap;\n  }\n  .cedros-academy-admin .ca-lifecycle-actions {\n    align-items: flex-start;\n  }\n  .cedros-academy-admin .ca-create-course__row > .ca-field {\n    flex: 1 1 18rem;\n  }\n  /* Workbench disclosure: details/summary, no frame of its own. Inside a card it\n     is separated by a hairline; page-level secondary work keeps the card frame. */\n  .cedros-academy-admin .ca-disclosure {\n    border-top: 1px solid var(--ca-admin-border);\n    padding-top: 0.75rem;\n  }\n  .cedros-academy-admin .ca-disclosure.ca-secondary-work {\n    border: 1px solid var(--ca-admin-border);\n    border-radius: var(--ca-admin-radius);\n    padding: 0.75rem 1rem;\n    background: var(--ca-admin-card-bg);\n    box-shadow: var(--ca-admin-shadow);\n  }\n  .cedros-academy-admin .ca-disclosure[open] > summary { margin-bottom: 0.75rem; }\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.25rem 0.5rem;\n    min-height: 2rem;\n    list-style: none;\n    cursor: pointer;\n    color: var(--ca-admin-muted);\n    font-size: 0.8125rem;\n    font-weight: 600;\n    transition: color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy-admin details > summary::-webkit-details-marker { display: none; }\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary::before {\n    content: \"\";\n    flex: none;\n    width: 1rem;\n    height: 1rem;\n    background-color: currentColor;\n    /* Lucide chevron-right, painted with the summary color. */\n    mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\") center / 1rem no-repeat;\n    transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n  }\n  .cedros-academy-admin details[open]:not(.ca-policy-edit) > summary::before { transform: rotate(90deg); }\n  .cedros-academy-admin details > summary:hover,\n  .cedros-academy-admin details[open] > summary { color: var(--ca-admin-fg); }\n  @keyframes ca-admin-dialog-in {\n    from { opacity: 0; transform: scale(0.98) translateY(8px); }\n    to { opacity: 1; transform: scale(1) translateY(0); }\n  }\n  @keyframes ca-admin-shimmer {\n    from { background-position: 120% 0; }\n    to { background-position: -120% 0; }\n  }\n\n  @keyframes ca-shimmer {\n    from { background-position: 120% 0; }\n    to { background-position: -120% 0; }\n  }\n  @keyframes ca-spin { to { transform: rotate(360deg); } }\n  /* Recovery copy beside a skeleton waits 1s (Workbench §7 Loading) so an\n     ordinary load never flashes it. Reduced motion removes the animation and\n     therefore shows it immediately. */\n  .cedros-academy .ca-delayed-reveal,\n  .cedros-academy-admin .ca-delayed-reveal { animation: ca-delayed-reveal 1ms linear 1s both; }\n  @keyframes ca-delayed-reveal { from { visibility: hidden; } to { visibility: visible; } }\n  .cedros-academy .ca-progress-mark { display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: none; }\n  .cedros-academy .ca-progress-mark > * { grid-area: 1 / 1; }\n  .cedros-academy .ca-spinner {\n    width: 1rem; height: 1rem;\n    border: 2px solid color-mix(in srgb, currentColor 30%, transparent);\n    border-top-color: currentColor;\n    border-radius: var(--ca-radius-pill);\n    animation: ca-spin calc(var(--motion-duration-modal, 240ms) * 3) linear infinite;\n  }\n  .cedros-academy .ca-check { width: 1rem; height: 1rem; }\n  .cedros-academy-admin .ca-view-stack { display: grid; gap: 1rem; min-width: 0; }\n  .cedros-academy-admin .ca-view-stack > * { max-width: 100%; min-width: 0; }\n  @media (prefers-reduced-motion: reduce) {\n    .cedros-academy *,\n    .cedros-academy *::before,\n    .cedros-academy *::after,\n    .cedros-academy-admin *,\n    .cedros-academy-admin *::before,\n    .cedros-academy-admin *::after,\n    .cedros-academy-admin .ca-skeleton,\n    .cedros-academy-admin .cedros-data-dialog {\n      animation: none !important;\n      transition: none !important;\n    }\n    /* ::details-content is a pseudo-element, so the * rules above cannot\n       reach it and it needs its own cancellation. */\n    .cedros-academy-admin .ca-disclosure::details-content {\n      transition: none !important;\n    }\n    .cedros-academy .ca-player-lesson[aria-current=\"step\"]::before {\n      transform: scaleY(1);\n    }\n    .cedros-academy .ca-check path {\n      stroke-dashoffset: 0;\n    }\n    .cedros-academy-admin .ca-button:not(:disabled):hover,\n    .cedros-academy-admin .cedros-data-btn:not(:disabled):hover,\n    .cedros-academy .ca-course-card:hover {\n      transform: none;\n    }\n  }\n  @media (max-width: 767px) {\n    .cedros-academy .ca-public-head,\n    .cedros-academy .ca-card-header,\n    .cedros-academy-admin .ca-card-header,\n    .cedros-academy-admin .cedros-data-card__header,\n    .cedros-academy-admin .ca-dialog-actions {\n      flex-wrap: wrap;\n    }\n    .cedros-academy .ca-public-actions,\n    .cedros-academy .ca-certificate-actions,\n    .cedros-academy-admin .ca-row-actions,\n    .cedros-academy-admin .ca-course-workspace-actions,\n    .cedros-academy-admin .ca-lifecycle-actions {\n      width: 100%;\n      justify-content: flex-start;\n    }\n    .cedros-academy .ca-public-actions > .ca-button,\n    .cedros-academy-admin .ca-course-workspace-actions > .ca-button,\n    .cedros-academy-admin .ca-lifecycle-actions > .ca-button {\n      flex: 1 1 auto;\n    }\n    .cedros-academy .ca-field input,\n    .cedros-academy .ca-field textarea {\n      font-size: 16px;\n    }\n    .cedros-academy-admin .ca-submission-preview {\n      min-width: 0;\n      width: 100%;\n    }\n    .cedros-academy-admin .ca-grid,\n    .cedros-academy-admin .ca-grid--two,\n    .cedros-academy-admin .ca-grid--metrics,\n    .cedros-academy-admin .cedros-data-summary-grid {\n      grid-template-columns: 1fr;\n    }\n    .cedros-academy-admin .ca-course-editor-grid {\n      grid-template-columns: 1fr;\n    }\n    .cedros-academy-admin .ca-preview-layout {\n      grid-template-columns: 1fr;\n    }\n    .cedros-academy-admin .ca-preview-lesson {\n      border-top: 1px solid var(--ca-admin-border);\n      border-left: 0;\n      padding-top: 1rem;\n      padding-left: 0;\n    }\n    .cedros-academy-admin .ca-page-header,\n    .cedros-academy-admin .cedros-data-actions {\n      align-items: stretch;\n      justify-content: flex-start;\n    }\n    .cedros-academy-admin .ca-button,\n    .cedros-academy-admin .cedros-data-btn {\n      min-height: 2.75rem;\n      max-width: 100%;\n      white-space: normal;\n      text-align: center;\n    }\n    .cedros-academy-admin .ca-table {\n      min-width: 42.5rem;\n      font-size: 0.8125rem;\n    }\n  }\n\n.cedros-academy-admin fieldset.ca-edit-fields {\n  min-width: 0;\n  margin: 0;\n}\n.cedros-academy-admin fieldset.ca-ai-draft-fields,\n.cedros-academy-admin fieldset.ca-feedback-controls,\n.cedros-academy-admin fieldset.ca-course-editor-grid,\n.cedros-academy-admin fieldset.ca-settings-column,\n.cedros-academy-admin fieldset.ca-create-course__row,\n.cedros-academy-admin fieldset.ca-grant-fields {\n  padding: 0;\n  border: 0;\n}\n.cedros-academy-admin .ca-grant-fields {\n  display: grid;\n  gap: 1rem;\n  width: min(100%, var(--cd-container-settings, 45rem));\n}\n.cedros-academy-admin .ca-curriculum-editor .cedros-data-field,\n.cedros-academy-admin .ca-announcements .cedros-data-field {\n  max-width: var(--cd-container-settings, 45rem);\n}\n\n/* Public learning surfaces share the site's theme, with space for course summaries. */\n.cedros-academy.ca-public { font-family: inherit; }\n.cedros-academy.ca-public.ca-public-shell { gap: 28px; padding-block: 28px 48px; }\n.cedros-academy.ca-public .ca-public-head { gap: 14px; padding-block: 12px; }\n.cedros-academy.ca-public .ca-public-head h2 { font-size: clamp(32px, 4cqi, 48px); line-height: 1.12; }\n.cedros-academy.ca-public .ca-public-head p { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 17px; margin: 0; max-width: 640px; }\n.cedros-academy.ca-public .ca-card-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }\n.cedros-academy.ca-public .ca-course-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--ca-radius-lg); gap: 16px; margin: 0; }\n.cedros-academy.ca-public .ca-course-card h3 { font-size: 24px; line-height: 1.25; }\n.cedros-academy.ca-public .ca-course-card > p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); }\n.cedros-academy.ca-public .ca-course-card .ca-card-header { margin: 0; align-items: center; }\n.cedros-academy.ca-public .ca-course-card .ca-public-actions { margin-top: auto; padding-top: 8px; }\n.cedros-academy.ca-public .ca-meta-list { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0; }\n.cedros-academy.ca-public .ca-meta-list div { border: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: var(--ca-radius-sm); padding: 12px 0 0; gap: 5px; }\n.cedros-academy.ca-public .ca-meta-list dd { font-size: 14px; text-transform: capitalize; }\n.cedros-academy.ca-public .ca-lookup-form { padding: 20px; gap: 16px; border-radius: var(--ca-radius-lg); }\n.cedros-academy.ca-public .ca-lookup-form .ca-field { margin-bottom: 0; }\n.cedros-academy.ca-public .ca-field input, .cedros-academy.ca-public .ca-field select { min-height: 46px; border-radius: var(--ca-radius-md); color: var(--ca5ss4b-runtime-text, #171717); background: var(--ca5ss4b-runtime-panel, #fff); border-color: var(--ca5ss4b-runtime-muted, #667085); }\n.cedros-academy.ca-public .ca-button { min-height: 44px; padding: 10px 18px; border-radius: var(--ca-radius-md); }\n.cedros-academy.ca-public .ca-course-primary, .cedros-academy.ca-public .ca-course-secondary { padding: 24px; border-radius: var(--ca-radius-lg); }\n.cedros-academy.ca-public .ca-course-layout { gap: 24px; }\n.cedros-academy.ca-public .ca-lesson-body { font-size: 17px; line-height: 1.75; max-width: 70ch; }\n@media (max-width: 680px) {\n .cedros-academy.ca-public .ca-card-grid { grid-template-columns: 1fr; }\n .cedros-academy.ca-public .ca-course-card { padding: 20px; }\n .cedros-academy.ca-public.ca-public-shell { gap: 20px; padding-block: 20px 32px; }\n}\n\n.cedros-academy.ca-public .ca-course-artwork { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: var(--ca-radius-sm); }\n.cedros-academy.ca-public .ca-course-card { grid-template-columns: minmax(0, 1fr); }\n.cedros-academy.ca-public .ca-course-card .ca-course-artwork { max-height: 260px; background: var(--ca5ss4b-runtime-bg, #fff); }\n.cedros-academy.ca-public .ca-open-course { align-items: start; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }\n.cedros-academy.ca-public .ca-open-outline { display: grid; min-width: 0; padding: 16px; gap: 24px; border-radius: var(--ca-radius-lg); }\n.cedros-academy.ca-public .ca-open-outline .ca-course-artwork { width: 100%; max-width: 220px; margin-inline: auto; }\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav { display: grid; gap: 20px; border: 0; padding: 0; }\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav section { display: grid; gap: 8px; min-width: 0; }\n.cedros-academy.ca-public .ca-open-outline h3 { margin: 0; padding: 0 12px; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; line-height: 1.5; font-weight: 500; }\n.cedros-academy.ca-public .ca-open-outline .ca-player-nav ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 8px 12px; border: 0; background: transparent; border-radius: var(--ca-radius-sm); color: inherit; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; }\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson:hover { background: color-mix(in srgb, currentColor 5%, transparent); }\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson[aria-current=\"step\"] { background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 600; }\n.cedros-academy.ca-public .ca-open-course .ca-player-lesson::before { left: 0; width: 2px; background: currentColor; }\n.cedros-academy.ca-public .ca-open-course .ca-open-lesson-number { flex: 0 0 20px; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }\n.cedros-academy.ca-public .ca-open-course .ca-open-lesson-name { color: inherit; font-size: inherit; overflow-wrap: anywhere; }\n.cedros-academy.ca-public .ca-open-course > .ca-card { margin: 0; }\n.cedros-academy.ca-public .ca-open-course .ca-lesson { min-width: 0; padding: 24px; }\n.cedros-academy.ca-public .ca-open-course .ca-lesson > h3 { font-size: 24px; line-height: 1.3; }\n.cedros-academy.ca-public .ca-open-course .ca-lesson-body { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }\n@media (max-width: 760px) {\n  .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\n  .cedros-academy.ca-public .ca-open-outline .ca-course-artwork { max-height: 180px; }\n  .cedros-academy.ca-public .ca-open-course .ca-lesson { padding: 16px; }\n}\n\n/* Content stacks are not toolbars: forms, grids and feedback use the full frame. */\n.cedros-academy .ca-inline-stack,\n.cedros-academy-admin .ca-inline-stack { display: grid; gap: 1rem; min-width: 0; width: 100%; }\n.cedros-academy-admin span.ca-inline-stack { display: inline-flex; gap: 0.5rem; width: auto; align-items: center; }\n.cedros-academy .ca-inline-stack > *,\n.cedros-academy-admin .ca-inline-stack > * { min-width: 0; max-width: 100%; }\n.cedros-academy .ca-inline-stack > .ca-button,\n.cedros-academy-admin .ca-inline-stack > .ca-button { justify-self: start; }\n.cedros-academy .ca-button:hover { background: var(--ca5ss4b-runtime-accent-soft, #f4f4f5); }\n.cedros-academy .ca-button-primary:hover { background: color-mix(in srgb, var(--ca5ss4b-runtime-action-bg, #18181b) 90%, var(--ca5ss4b-runtime-action-fg, #fff)); }\n.cedros-academy .ca-button { transition: background-color var(--motion-duration-fast, 160ms) ease; }\n.cedros-academy .ca-field > span:first-child { color: var(--ca5ss4b-runtime-text, #171717); font-size: 0.875rem; font-weight: 500; }\n.cedros-academy .ca-field :is(input, select, textarea):disabled { opacity: 0.5; cursor: not-allowed; }\n.cedros-academy .ca-field [aria-invalid=\"true\"] { border-color: var(--ca5ss4b-runtime-error, #b42318); }\n.cedros-academy .ca-player-lesson { min-height: 44px; }\n.cedros-academy .ca-player-lesson:disabled { opacity: 0.5; cursor: not-allowed; }\n.cedros-academy .ca-lesson-body a { color: var(--ca5ss4b-runtime-accent, #2f6c7d); text-decoration: underline; }\n.cedros-academy a:focus-visible,\n.cedros-academy summary:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\n.cedros-academy .ca-certificate-heading { flex-wrap: wrap; }\n.cedros-academy .ca-card-header > *,\n.cedros-academy-admin .ca-card-header > * { min-width: 0; overflow-wrap: anywhere; }\n.cedros-academy .ca-card-header > .ca-status,\n.cedros-academy-admin .ca-card-header > .ca-status { flex: none; }\n.cedros-academy .ca-meta-list div { border-radius: 0; }\n.cedros-academy-admin a:not(.ca-button) { color: var(--cd-link, #2f6c7d); text-decoration: none; }\n.cedros-academy-admin a:not(.ca-button):is(:hover, :focus-visible) { text-decoration: underline; }\n.cedros-academy-admin .cedros-back-breadcrumb { color: var(--ca-admin-muted); font-weight: 500; }\n.cedros-academy-admin :is(a, summary, .cedros-back-breadcrumb):focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 3px; }\n.cedros-academy-admin .cedros-data-input[aria-invalid=\"true\"],\n.cedros-academy-admin .cedros-data-select[aria-invalid=\"true\"],\n.cedros-academy-admin .cedros-data-textarea[aria-invalid=\"true\"] { border-color: color-mix(in srgb, var(--ca-admin-error) 55%, var(--ca-admin-border)); }\n.cedros-academy-admin :is(.cedros-data-input, .cedros-data-select, .cedros-data-textarea):disabled { opacity: 0.5; cursor: not-allowed; }\n.cedros-academy-admin .cedros-data-dialog__overlay::backdrop { background: transparent; }\n.cedros-academy-admin .ca-table :is(th, td).ca-numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }\n.cedros-academy-admin .ca-table .ca-numeric .ca-skeleton { margin-left: auto; }\n.cedros-academy-admin .ca-table td:first-child { overflow-wrap: anywhere; }\n.cedros-academy-admin .ca-table th { white-space: nowrap; }\n.cedros-academy-admin .ca-table .ca-button { white-space: nowrap; }\n.cedros-academy-admin.ca-dashboard-card .ca-metric { border: 0; padding: 0; min-height: 0; background: transparent; box-shadow: none; }\n.cedros-academy-admin .ca-card .ca-metric { box-shadow: none; }\n.cedros-academy-admin .ca-course-workspace-actions { align-items: center; }\n.cedros-academy-admin .ca-create-course__row { align-items: center; }\n.cedros-academy-admin .ca-create-course__row > .ca-field { margin-bottom: 0; }\n.cedros-academy-admin .ca-preview-nav .ca-button { white-space: normal; height: auto; line-height: 1.45; padding-block: 0.5rem; }\n.cedros-academy-admin .ca-row-menu { display: flex; justify-content: flex-end; }\n.cedros-academy-admin .cedros-row-actions__trigger { width: 2rem; padding: 0; }\n.cedros-academy-admin .cedros-dropdown-menu__content {\n  position: fixed; inset: auto; margin: 0;\n  width: max-content; min-width: 11rem; max-width: min(20rem, calc(100vw - 1rem));\n  max-height: min(20rem, calc(100dvh - 1rem)); overflow: auto; padding: 0.25rem;\n  border: 1px solid var(--ca-admin-border); border-radius: var(--ca-admin-radius);\n  background: var(--ca-admin-card-bg); color: var(--ca-admin-fg);\n  box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--ca-admin-fg) 10%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--ca-admin-fg) 8%, transparent);\n  z-index: var(--z-dropdown, 50);\n}\n/* Shared host menu styles set display:flex, overriding the UA's closed state. */\n.cedros-academy-admin .cedros-dropdown-menu__content[popover]:not(:popover-open) { display: none; }\n.cedros-academy-admin .cedros-dropdown-menu__item {\n  display: block; width: 100%; min-height: 2rem;\n  border: 0; border-radius: calc(var(--cd-radius, 8px) - 4px);\n  padding: 0 0.5rem; background: transparent; color: inherit;\n  font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer;\n  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\n}\n.cedros-academy-admin .cedros-dropdown-menu__item:hover,\n.cedros-academy-admin .cedros-dropdown-menu__item:focus-visible { outline: none; background: var(--ca-admin-accent); }\n.cedros-academy-admin .cedros-dropdown-menu__item--danger { color: var(--ca-admin-error); }\n.cedros-academy-admin .cedros-dropdown-menu__item--danger:hover,\n.cedros-academy-admin .cedros-dropdown-menu__item--danger:focus-visible { background: var(--ca-admin-danger-bg); color: var(--ca-admin-danger-fg); }\n.cedros-academy-admin .cedros-dropdown-menu__item[aria-disabled=\"true\"] { opacity: 0.5; cursor: not-allowed; }\n\n.cedros-academy-admin .ca-feedback-item { padding: 1rem 0; border-top: 1px solid var(--ca-admin-border); overflow-wrap: anywhere; }\n.cedros-academy-admin form { width: 100%; max-width: var(--cd-container-settings, 45rem); }\n\n.cedros-academy-admin .cedros-dropdown-menu__separator { height: 1px; margin: 0.25rem -0.25rem; background: var(--ca-admin-border); }\n.cedros-academy .ca-card-grid > .ca-card { margin-top: 0; }\n.cedros-academy.ca-public-stack > .ca-button { min-height: 44px; }\n\n/* Page Builder columns can be narrow even when the viewport is wide. */\n@container cedros-academy (max-width: 760px) {\n  .cedros-academy.ca-public .ca-card-grid,\n  .cedros-academy.ca-public .ca-card-grid--compact,\n  .cedros-academy.ca-public .ca-course-layout,\n  .cedros-academy.ca-public .ca-player-layout,\n  .cedros-academy.ca-public .ca-lookup-form,\n  .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\n  .cedros-academy.ca-public .ca-lesson { border-left: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding: 16px 0 0; }\n  .cedros-academy.ca-public .ca-card-header { flex-wrap: wrap; }\n  .cedros-academy.ca-public .ca-public-actions { width: 100%; justify-content: flex-start; }\n  .cedros-academy.ca-public .ca-public-actions > .ca-button { flex: 1 1 auto; }\n  .cedros-academy.ca-public .ca-button { max-width: 100%; white-space: normal; text-align: center; }\n  .cedros-academy.ca-public .ca-course-card { padding: 20px; }\n  .cedros-academy.ca-public .ca-open-outline .ca-course-artwork { max-height: 180px; }\n  .cedros-academy.ca-public .ca-open-course .ca-lesson { padding: 16px; }\n}\n\n/* Loading reserves the composition of the job that follows it. */\n.cedros-academy.ca-public .ca-skeleton--media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--ca-radius-sm); }\n.cedros-academy.ca-public .ca-skeleton--field { width: 100%; height: 44px; }\n.cedros-academy.ca-public .ca-loading-reader .ca-player-layout { min-height: 20rem; }\n.cedros-academy.ca-public .ca-loading-outline { display: grid; gap: 16px; align-content: start; }\n.cedros-academy.ca-public .ca-loading-form { width: min(100%, 720px); }\n.cedros-academy.ca-public .ca-loading-reader .ca-inline-stack { align-content: start; }\n@container cedros-academy (max-width: 680px) {\n  .cedros-academy.ca-public .ca-loading-outline { display: none; }\n}\n\n/* Discovery: consistent media and outcome-led comparison, scoped to course results. */\n.cedros-academy.ca-public .ca-catalog-search { border: 0; padding: 0; max-width: 720px; align-items: end; }\n.cedros-academy.ca-public .ca-catalog-search .ca-field { margin: 0; }\n.cedros-academy.ca-public .ca-search-context { margin: 0; overflow-wrap: anywhere; }\n.cedros-academy.ca-public .ca-course-detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ca5ss4b-runtime-accent, #2f6c7d); font-weight: 600; text-decoration: none; }\n.cedros-academy.ca-public .ca-course-detail-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\n.cedros-academy.ca-public .ca-course-detail-link:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; border-radius: var(--ca-radius-sm); }\n.cedros-academy.ca-public .ca-discovery-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto auto; gap: 16px; padding: 20px; align-content: start; }\n.cedros-academy.ca-public .ca-course-card-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }\n.cedros-academy.ca-public .ca-course-card-copy > .ca-card-header { flex-direction: column; align-items: start; gap: 8px; }\n.cedros-academy.ca-public .ca-course-card-copy > p { margin: 0; font-size: 15px; line-height: 1.6; }\n.cedros-academy.ca-public .ca-discovery-card > :is(.ca-course-summary, .ca-public-actions) { grid-column: 1 / -1; }\n.cedros-academy.ca-public .ca-discovery-card > .ca-public-actions { padding-top: 0; }\n.cedros-academy.ca-public .ca-discovery-card > .ca-course-summary { padding-top: 16px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\n.cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { width: 112px; height: 112px; aspect-ratio: 1; max-height: none; }\n.cedros-academy.ca-public .ca-skeleton-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-content: start; }\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton--media { width: 112px; height: 112px; }\n.cedros-academy.ca-public .ca-skeleton-course-copy { display: grid; align-content: start; gap: 12px; min-width: 0; }\n.cedros-academy.ca-public .ca-skeleton-course-copy > .ca-skeleton { margin: 0; }\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton-course-facts { grid-column: 1 / -1; width: 65%; height: 16px; margin-top: 16px; }\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton-course-action { grid-column: 1 / -1; width: 104px; height: 20px; margin-block: 12px; }\n.cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton { margin: 0; }\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head { gap: 8px; padding-block: 0; }\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head > .ca-kicker { display: none; }\n.cedros-academy.ca-public:is(.ca-discovery-surface, .ca-learning-surface) .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); }\n.cedros-academy.ca-public .ca-discovery-card h3 { font-size: 21px; }\n.cedros-academy.ca-public .ca-course-title-link { text-decoration: none; }\n.cedros-academy.ca-public .ca-course-title-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\n.cedros-academy.ca-public .ca-course-title-link:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\n.cedros-academy.ca-public .ca-course-card-copy > p.ca-muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.cedros-academy.ca-public .ca-course-artwork { aspect-ratio: 16 / 10; object-fit: cover; height: auto; max-height: none; }\n.cedros-academy.ca-public .ca-course-artwork--missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ca5ss4b-runtime-muted, #667085); background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); font-size: 14px; padding: 20px; }\n.cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing { gap: 8px; padding: 12px; font-size: 12px; text-align: center; background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); }\n.cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing svg { width: 28px; height: 28px; flex: none; }\n.cedros-academy.ca-public .ca-public-head--with-action { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }\n.cedros-academy.ca-public .ca-public-head--with-action h2 { grid-column: 1; grid-row: 1; }\n.cedros-academy.ca-public .ca-public-head--with-action > p { grid-column: 1; grid-row: 2; }\n.cedros-academy.ca-public .ca-catalog-learning-link { grid-column: 2; grid-row: 1 / span 2; }\n.cedros-academy.ca-public .ca-course-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }\n.cedros-academy.ca-public .ca-course-navigation .ca-button--quiet { padding-inline: 0; color: var(--ca5ss4b-runtime-accent, #2f6c7d); }\n.cedros-academy.ca-public .ca-course-navigation [aria-disabled=\"true\"] { color: var(--ca5ss4b-runtime-muted, #667085); cursor: not-allowed; text-decoration: none; }\n.cedros-academy.ca-public .ca-course-category { font-size: 13px; }\n.cedros-academy.ca-public .ca-course-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; line-height: 1.5; color: var(--ca5ss4b-runtime-muted, #667085); }\n.cedros-academy.ca-public .ca-course-summary > span:first-child { font-weight: 600; color: var(--ca5ss4b-runtime-text, #171717); }\n@container cedros-academy (min-width: 1000px) {\n  .cedros-academy.ca-public .ca-card-grid:has(.ca-discovery-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n\n/* Detail: curriculum carries the story; enrollment is one contextual action. */\n.cedros-academy.ca-public.ca-detail-surface .ca-public-head { padding-block: 0; gap: 12px; }\n.cedros-academy.ca-public.ca-detail-surface .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); line-height: 1.25; }\n.cedros-academy.ca-public.ca-detail-surface .ca-description-preview > p, .cedros-academy.ca-public .ca-outline-long-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.cedros-academy.ca-public .ca-course-extent { margin: 0; color: var(--ca5ss4b-runtime-muted, #667085); font-size: 14px; }\n.cedros-academy.ca-public .ca-course-overview { margin: 0; }\n.cedros-academy.ca-public .ca-course-primary { display: grid; grid-column: 1; grid-row: 1; gap: 24px; padding: 0; background: transparent; }\n.cedros-academy.ca-public .ca-course-support { display: grid; grid-column: 1; gap: 24px; min-width: 0; }\n.cedros-academy.ca-public .ca-course-support:empty { display: none; }\n.cedros-academy.ca-public .ca-course-primary > .ca-course-artwork { max-height: 280px; object-fit: cover; background: var(--ca5ss4b-runtime-accent-soft, #edf4f5); }\n.cedros-academy.ca-public .ca-course-outline h3 { font-size: 22px; }\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum { gap: 24px; }\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum ol { margin: 0; padding-left: 24px; }\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum li { padding: 12px 0 12px 8px; border-bottom: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\n.cedros-academy.ca-public .ca-course-outline .ca-curriculum li::marker { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 13px; font-variant-numeric: tabular-nums; }\n.cedros-academy.ca-public .ca-course-secondary { display: grid; grid-column: 2; grid-row: 1 / span 2; gap: 16px; margin: 0; align-self: start; }\n.cedros-academy.ca-public .ca-course-secondary h3 { font-size: 20px; margin: 0; }\n.cedros-academy.ca-public .ca-course-secondary .ca-notice { margin: 0; }\n.cedros-academy.ca-public .ca-course-secondary .ca-button { width: 100%; }\n.cedros-academy.ca-public .ca-course-secondary .ca-enrollment-explanation { margin: 0; line-height: 1.6; }\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list dd { text-transform: none; }\n.cedros-academy.ca-public .ca-course-secondary .ca-meta-list div { border: 0; border-radius: 0; padding: 0; }\n\n/* Returning learners: course rows grouped by the next job. */\n.cedros-academy.ca-public .ca-learning-list, .cedros-academy.ca-public .ca-learning-group { display: grid; gap: 16px; }\n.cedros-academy.ca-public .ca-learning-list { gap: 32px; max-width: 56rem; }\n.cedros-academy.ca-public.ca-learning-surface > .ca-notice { max-width: 45rem; }\n.cedros-academy.ca-public.ca-learning-surface > .ca-notice > .ca-button { justify-self: start; }\n.cedros-academy.ca-public .ca-learning-group > h3 { font-size: 20px; margin: 0; }\n.cedros-academy.ca-public .ca-enrollment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 20px 0; margin: 0; align-items: center; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\n.cedros-academy.ca-public .ca-enrollment-row:has(.ca-course-artwork) { grid-template-columns: 96px minmax(0, 1fr) auto; }\n.cedros-academy.ca-public .ca-enrollment-actions { margin: 0; }\n.cedros-academy.ca-public .ca-learning-browse { justify-self: start; }\n.cedros-academy.ca-public .ca-learning-complete { margin: 0; }\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork { aspect-ratio: 1; }\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing { padding: 12px; }\n.cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing span { display: none; }\n.cedros-academy.ca-public .ca-enrollment-content { display: grid; gap: 12px; min-width: 0; }\n.cedros-academy.ca-public .ca-enrollment-content .ca-card-header { margin: 0; }\n.cedros-academy.ca-public .ca-enrollment-content h3 { font-size: 20px; margin: 0; }\n.cedros-academy.ca-public .ca-enrollment-content .ca-progress { max-width: 440px; margin: 0; }\n\n/* Reading: outline is a contextual disclosure; prose owns the main column. */\n.cedros-academy.ca-public.ca-reading-surface { gap: 16px; padding-top: 16px; }\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head { gap: 8px; padding-block: 0; max-width: 100%; }\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head h2 { font-size: clamp(20px, 2cqi, 24px); line-height: 1.35; }\n.cedros-academy.ca-public.ca-reading-surface .ca-public-head p { font-size: 15px; }\n.cedros-academy.ca-public.ca-reading-surface .ca-course-overview { margin: 0; }\n.cedros-academy.ca-public.ca-reading-surface .ca-open-course { margin-top: 0; }\n.cedros-academy.ca-public .ca-lesson-outline { min-width: 0; }\n.cedros-academy.ca-public .ca-lesson-outline > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }\n.cedros-academy.ca-public .ca-lesson-outline[open] > summary { margin-bottom: 12px; }\n.cedros-academy.ca-public .ca-lesson-outline > summary:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 4px; }\n.cedros-academy.ca-public .ca-player-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 24px; }\n.cedros-academy.ca-public .ca-player > .ca-card-header h3 { font-size: 16px; }\n.cedros-academy.ca-public .ca-player { padding: 24px; }\n.cedros-academy.ca-public .ca-lesson > h4 { font-size: 28px; line-height: 1.3; }\n.cedros-academy.ca-public .ca-player-lesson { border: 0; border-radius: var(--ca-radius-sm); display: flex; align-items: start; gap: 12px; }\n.cedros-academy.ca-public .ca-lesson-number { flex: none; font-size: 12px; line-height: 1.75; font-variant-numeric: tabular-nums; color: var(--ca5ss4b-runtime-muted, #667085); }\n.cedros-academy.ca-public .ca-lesson-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }\n.cedros-academy.ca-public .ca-lesson-completion { flex: none; min-width: 16px; }\n.cedros-academy.ca-public .ca-button--quiet { border-color: transparent; background: transparent; color: var(--ca5ss4b-runtime-muted, #667085); }\n.cedros-academy.ca-public .ca-tool-summary { display: block; margin-top: 4px; font-weight: 400; }\n.cedros-academy.ca-public .ca-verification-reference p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }\n.cedros-academy.ca-public.ca-submission-surface { max-width: 45rem; }\n.cedros-academy.ca-public.ca-submission-surface .ca-public-head { padding-block: 0; gap: 12px; }\n.cedros-academy.ca-public.ca-submission-surface .ca-public-head h2 { font-size: clamp(28px, 3cqi, 36px); }\n.cedros-academy.ca-public.ca-submission-surface .ca-card-grid { grid-template-columns: minmax(0, 1fr); }\n.cedros-academy.ca-public .ca-player-nav { padding: 0; border: 0; }\n.cedros-academy.ca-public .ca-outline-context { min-width: 0; }\n.cedros-academy.ca-public .ca-outline-context > .ca-progress { margin: 0; }\n.cedros-academy.ca-public .ca-lesson { min-width: 0; }\n.cedros-academy.ca-public .ca-lesson > .ca-lesson-body { max-width: 60ch; }\n.cedros-academy.ca-public .ca-player-nav h4 { color: var(--ca5ss4b-runtime-muted, #667085); font-size: 13px; }\n.cedros-academy.ca-public .ca-open-outline { background: transparent; padding: 0; }\n.cedros-academy.ca-public .ca-lesson-body { overflow-wrap: anywhere; }\n.cedros-academy.ca-public .ca-reading-end { border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); padding-top: 20px; margin: 24px 0 16px; }\n.cedros-academy .ca-learning-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; padding: 0; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ca5ss4b-runtime-accent, #2f6c7d); cursor: pointer; }\n.cedros-academy .ca-learning-back:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }\n.cedros-academy .ca-learning-back:focus-visible { outline: 2px solid var(--ca5ss4b-runtime-text, #171717); outline-offset: 3px; }\n.cedros-academy .ca-learning-back:disabled { color: var(--ca5ss4b-runtime-muted, #667085); cursor: not-allowed; text-decoration: none; }\n\n/* Focused public workflows inherit the site typography within a readable frame. */\n.cedros-academy.ca-public.ca-verification-surface { width: min(100%, 720px); }\n.cedros-academy.ca-public .ca-verification-result { padding: 24px; }\n.cedros-academy.ca-public .ca-verification-heading { display: flex; align-items: center; gap: 12px; }\n.cedros-academy.ca-public .ca-verification-heading > svg { flex: none; }\n.cedros-academy.ca-public .ca-verification-result .ca-verified-course { font-size: 22px; font-weight: 600; line-height: 1.4; }\n.cedros-academy.ca-public .ca-verification-result p { overflow-wrap: anywhere; }\n.cedros-academy.ca-public.ca-profile-surface { width: min(100%, 760px); }\n.cedros-academy.ca-public.ca-profile-surface .ca-public-head p { white-space: pre-wrap; }\n.cedros-academy.ca-public .ca-submission-form { width: min(100%, 720px); padding: 24px; }\n.cedros-academy.ca-public .ca-submission-form h3 { margin: 0; font-size: 20px; }\n.cedros-academy.ca-public .ca-submission-form h3:not(:first-child) { padding-top: 16px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); }\n.cedros-academy.ca-public .ca-submission-form p { margin: 0; }\n.cedros-academy.ca-public .ca-submission-form .ca-button { justify-self: start; }\n.cedros-academy.ca-public .ca-submission-history { display: grid; gap: 16px; }\n.cedros-academy.ca-public .ca-submission-history > h3 { font-size: 20px; margin: 0; }\n.cedros-academy.ca-public .ca-submission-list { display: grid; }\n.cedros-academy.ca-public .ca-submission-row { padding-block: 20px; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); min-width: 0; }\n.cedros-academy.ca-public .ca-submission-row h4 { font-size: 20px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }\n.cedros-academy.ca-public .ca-submission-row .ca-card-header { flex-wrap: wrap; gap: 8px 16px; }\n.cedros-academy.ca-public .ca-submission-row p { margin: 8px 0 0; }\n.cedros-academy.ca-public .ca-submission-row .ca-status { flex: none; }\n.cedros-academy.ca-public .ca-new-submission { width: min(100%, 720px); }\n.cedros-academy.ca-public .ca-new-submission > .ca-submission-form { border: 0; margin: 0; }\n\n/* Admin composition changes consume the existing Workbench bridge and primitives. */\n.cedros-academy-admin .ca-overview-inventory { max-width: 45rem; margin-top: 1rem; }\n.cedros-academy-admin .ca-overview-inventory .ca-metric { border: 0; border-radius: 0; padding: 0.75rem 0; background: transparent; box-shadow: none; }\n.cedros-academy-admin .ca-courses-table { table-layout: fixed; }\n.cedros-academy-admin .ca-courses-table :is(th, td):first-child { width: 40%; }\n.cedros-academy-admin .ca-courses-table :is(th, td):nth-child(2) { width: 16%; }\n.cedros-academy-admin .ca-courses-table :is(th, td):nth-child(3) { width: 16%; }\n.cedros-academy-admin .ca-course-description { max-width: 40ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.cedros-academy-admin .ca-create-course, .cedros-academy-admin .ca-profile-editor, .cedros-academy-admin .ca-drafting-surface { max-width: var(--cd-container-settings, 45rem); }\n.cedros-academy-admin .ca-course-editor-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }\n@container cedros-academy-admin (min-width: 761px) {\n  .cedros-academy-admin .ca-course-editor-grid > .ca-curriculum-editor { grid-column: 2; grid-row: 1; }\n  .cedros-academy-admin .ca-course-editor-grid > .ca-course-details { grid-column: 1; grid-row: 1; }\n}\n.cedros-academy-admin .ca-readiness-summary { border-bottom: 1px solid var(--ca-admin-border); padding-bottom: 1rem; }\n.cedros-academy-admin .ca-readiness-summary .ca-card-header { margin-bottom: 0.5rem; }\n.cedros-academy-admin details.ca-readiness-evidence > summary { font-weight: 400; }\n.cedros-academy-admin .ca-readiness-evidence .ca-checklist { margin-top: 0.75rem; }\n.cedros-academy-admin .ca-course-workspace-actions { position: sticky; top: 0; z-index: var(--z-dropdown, 50); margin: 0; padding: 0.5rem 0; align-items: center; background: var(--ca-admin-bg); border-bottom: 1px solid var(--ca-admin-border); }\n.cedros-academy-admin .ca-course-open { display: flex; align-items: center; gap: 0.5rem; min-height: 2rem; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ca-admin-fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }\n.cedros-academy-admin .ca-course-open > span { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.cedros-academy-admin .ca-course-open > svg { flex: none; color: var(--ca-admin-muted); }\n.cedros-academy-admin .ca-course-open:is(:hover, :focus-visible) > span { text-decoration: underline; }\n.cedros-academy-admin .ca-course-open:focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 2px; border-radius: var(--ca-radius-sm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca-admin-ring) 14%, transparent); }\n.cedros-academy-admin .ca-cover-preview { display: flex; align-items: center; gap: 0.75rem; margin: 0; }\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork { flex: none; display: block; width: 6rem; height: 4rem; object-fit: cover; border: 1px solid var(--ca-admin-border); border-radius: var(--ca-radius-sm); background: var(--ca-admin-muted-bg); }\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing { display: flex; align-items: center; justify-content: center; color: var(--ca-admin-muted); }\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing svg { width: 20px; height: 20px; }\n.cedros-academy-admin .ca-cover-preview .ca-course-artwork--missing span { display: none; }\n.cedros-academy-admin .ca-cover-preview figcaption { min-width: 0; line-height: 1.5; }\n.cedros-academy-admin .ca-announcement-receipt, .cedros-academy-admin .ca-feedback--empty { border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; }\n.cedros-academy-admin .ca-announcement-receipt .ca-card-header, .cedros-academy-admin .ca-feedback--empty .ca-card-header { align-items: center; margin-bottom: 0.25rem; }\n.cedros-academy-admin .ca-announcement-receipt h3, .cedros-academy-admin .ca-feedback--empty h3 { margin: 0; font-size: 0.875rem; font-weight: 600; }\n.cedros-academy-admin .ca-announcement-receipt p { margin: 0; }\n.cedros-academy-admin .ca-course-workspace-actions > [role=\"status\"] { margin-right: auto; }\n.cedros-academy-admin .ca-workspace-commands { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; min-width: 0; }\n.cedros-academy-admin .ca-curriculum-command-row { flex-wrap: nowrap; align-items: center; }\n.cedros-academy-admin .ca-curriculum-command-row > .ca-intent-actions { width: auto; flex: none; gap: 0.25rem; }\n.cedros-academy-admin .ca-workspace-commands > .ca-lifecycle-actions { width: auto; }\n.cedros-academy-admin .ca-access-filters { grid-template-columns: minmax(10rem, 16rem) minmax(0, 18rem); margin-bottom: 0.75rem; }\n.cedros-academy-admin .ca-draft-result { border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; max-width: 60ch; }\n.cedros-academy-admin .ca-course-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem; align-items: center; }\n.cedros-academy-admin .ca-course-filters > .ca-field { width: min(100%, 18rem); margin: 0; }\n.cedros-academy-admin .ca-course-filters > .ca-field:last-child { width: min(100%, 14rem); }\n.cedros-academy-admin .ca-toolbar-field { position: relative; }\n.cedros-academy-admin .ca-toolbar-field > svg { position: absolute; top: 0.625rem; left: 0.75rem; width: 1rem; height: 1rem; color: var(--ca-admin-muted); pointer-events: none; }\n.cedros-academy-admin .ca-toolbar-field > input { padding-left: 2.25rem; }\n.cedros-academy-admin .ca-toolbar-field > input[type=\"search\"] { padding-right: 2.5rem; }\n.cedros-academy-admin .ca-toolbar-field > input[type=\"search\"]::-webkit-search-cancel-button { appearance: none; }\n.cedros-academy-admin .ca-search-clear { position: absolute; top: 0.125rem; right: 0.125rem; width: 2rem; padding: 0; border-radius: max(0px, calc(var(--ca-radius-sm) - 0.125rem)); }\n.cedros-academy-admin .ca-access-filters > .ca-field { margin-bottom: 0; }\n.cedros-academy-admin .ca-access-summary > summary .ca-muted { flex-basis: 100%; padding-left: 1.5rem; line-height: 1.5; font-weight: 400; }\n.cedros-academy-admin details.ca-lesson-edit-disclosure > summary { flex-wrap: nowrap; padding-block: 0.25rem; }\n.cedros-academy-admin .ca-lesson-edit-disclosure > summary > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }\n.cedros-academy-admin .ca-lesson-edit-disclosure > summary > .ca-muted { flex: none; font-weight: 400; font-size: 0.75rem; }\n.cedros-academy-admin .ca-lesson-edit-fields { padding-top: 0.75rem; }\n.cedros-academy-admin .ca-lesson-editor { gap: 0.25rem; }\n.cedros-academy-admin .ca-lesson-editor > .ca-card-header { margin-bottom: 0; align-items: center; }\n.cedros-academy-admin .ca-lesson-edit-fields textarea { min-height: 12rem; }\n.cedros-academy-admin .ca-instructor-bio-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }\n.cedros-academy-admin .ca-outcome-summary { max-width: var(--cd-container-settings, 45rem); }\n.cedros-academy-admin .ca-outcome-summary .ca-metric { border: 0; box-shadow: none; padding: 0.75rem 0; background: transparent; }\n@container cedros-academy (max-width: 680px) {\n  .cedros-academy.ca-public .ca-discovery-card { grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto; padding: 16px; }\n  .cedros-academy.ca-public .ca-course-card-copy { display: contents; }\n  .cedros-academy.ca-public .ca-course-card-copy > .ca-course-category { grid-column: 2; grid-row: 1; }\n  .cedros-academy.ca-public .ca-course-card-copy > .ca-card-header { grid-column: 2; grid-row: 2; align-self: center; }\n  .cedros-academy.ca-public .ca-course-card-copy:not(:has(.ca-course-category)) > .ca-card-header { grid-row: 1 / span 2; }\n  .cedros-academy.ca-public .ca-course-card-copy > p { grid-column: 1 / -1; }\n  .cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { grid-column: 1; grid-row: 1 / span 2; }\n  .cedros-academy.ca-public .ca-catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; }\n  .cedros-academy.ca-public .ca-catalog-search > .ca-public-actions { display: contents; }\n  .cedros-academy.ca-public .ca-catalog-search .ca-button { align-self: end; }\n  .cedros-academy.ca-public .ca-catalog-search .ca-button--quiet { grid-column: 1 / -1; justify-self: start; }\n  .cedros-academy.ca-public .ca-discovery-card > .ca-course-artwork { width: 80px; height: 80px; }\n  .cedros-academy.ca-public .ca-discovery-card .ca-course-artwork--missing span { display: none; }\n  .cedros-academy.ca-public .ca-skeleton-card { grid-template-columns: 80px minmax(0, 1fr); }\n  .cedros-academy.ca-public .ca-skeleton-card > .ca-skeleton--media { width: 80px; height: 80px; }\n  .cedros-academy.ca-public .ca-course-layout, .cedros-academy.ca-public .ca-player-layout, .cedros-academy.ca-public .ca-open-course { grid-template-columns: minmax(0, 1fr); }\n  .cedros-academy.ca-public .ca-course-secondary { grid-column: 1; grid-row: 1; padding: 20px; }\n  .cedros-academy.ca-public .ca-course-primary { grid-column: 1; grid-row: 2; }\n  .cedros-academy.ca-public .ca-course-support { grid-row: 3; }\n  .cedros-academy.ca-public .ca-course-secondary .ca-meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }\n  .cedros-academy.ca-public .ca-enrollment-row { grid-template-columns: minmax(0, 1fr); padding: 16px 0; gap: 16px; align-items: start; }\n  .cedros-academy.ca-public .ca-enrollment-row:has(.ca-course-artwork) { grid-template-columns: 64px minmax(0, 1fr); }\n  .cedros-academy.ca-public .ca-enrollment-actions { grid-column: 1 / -1; width: 100%; }\n  .cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing span { display: none; }\n  .cedros-academy.ca-public .ca-enrollment-row .ca-course-artwork--missing { padding: 12px; }\n  .cedros-academy.ca-public .ca-enrollment-content .ca-public-actions { width: auto; }\n  .cedros-academy.ca-public .ca-player { padding: 16px; }\n  .cedros-academy.ca-public .ca-submission-form { padding: 20px; }\n  .cedros-academy.ca-public .ca-submission-form .ca-button { justify-self: stretch; }\n}\n@container cedros-academy-admin (max-width: 760px) {\n  .cedros-academy-admin .ca-course-workspace-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }\n  .cedros-academy-admin .ca-workspace-commands { flex-wrap: nowrap; }\n  .cedros-academy-admin .ca-curriculum-command-row { flex-wrap: nowrap; }\n  .cedros-academy-admin .ca-notice { grid-template-columns: 1rem minmax(0, 1fr); }\n  .cedros-academy-admin .ca-notice .cedros-data-status__actions { grid-column: 2; justify-self: start; }\n  .cedros-academy-admin .ca-course-open { min-height: 2.75rem; }\n}\n@media (max-width: 760px) {\n  .cedros-academy-admin .ca-course-editor-grid, .cedros-academy-admin .ca-access-filters { grid-template-columns: minmax(0, 1fr); }\n}\n\n/* Bound comparison copy without hiding the full detail identity. */\n.cedros-academy.ca-public .ca-discovery-card h3, .cedros-academy.ca-public .ca-enrollment-content h3, .cedros-academy.ca-public .ca-long-identity { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }\n.cedros-academy.ca-public .ca-long-identity { -webkit-line-clamp: 4; }\n.cedros-academy.ca-public .ca-full-copy { margin-block: 8px; color: var(--ca5ss4b-runtime-muted, #667085); }\n.cedros-academy.ca-public .ca-full-copy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; }\n.cedros-academy.ca-public .ca-full-copy p { overflow-wrap: anywhere; max-width: 72ch; }\n\n/* Workbench controls remain usable inside host-assigned columns. */\n.cedros-academy-admin :is(.cedros-data-input, .cedros-data-select) { height: 2.25rem; }\n.cedros-academy-admin .ca-table tbody tr:hover { background: color-mix(in srgb, var(--ca-admin-accent) 52%, transparent); }\n.cedros-academy-admin .ca-table a:not(.ca-button) { color: var(--ca-admin-fg); text-decoration: none; }\n.cedros-academy-admin .ca-table a:not(.ca-button):is(:hover, :focus-visible) { text-decoration: underline; }\n.cedros-academy-admin .cedros-data-pagination { justify-content: space-between; font-variant-numeric: tabular-nums; }\n.cedros-academy-admin .cedros-data-pagination .cedros-data-actions { margin-left: auto; }\n.cedros-academy-admin .cedros-data-empty-state p { max-width: 38ch; }\n.cedros-academy-admin .ca-profile-editor .ca-edit-fields { display: grid; gap: 0.75rem; }\n.cedros-academy-admin .ca-profile-editor .ca-field { margin-bottom: 0; }\n.cedros-academy-admin .ca-ai-draft-fields { display: grid; gap: 0.75rem; }\n.cedros-academy-admin .ca-ai-draft-fields .ca-field { margin-bottom: 0; }\n.cedros-academy-admin .ca-ai-draft-fields > .ca-button { justify-self: start; }\n.cedros-academy-admin .ca-drafting-surface { display: grid; gap: 1rem; }\n.cedros-academy-admin .ca-prompt-example > summary { min-height: 2rem; font-size: 0.8125rem; }\n.cedros-academy-admin .ca-prompt-example > p { margin: 0.5rem 0 0; padding-left: 1.5rem; max-width: 60ch; }\n.cedros-academy-admin .ca-draft-result .ca-card-header { flex-wrap: wrap; }\n.cedros-academy-admin .ca-learning-policies .ca-form-switch + .ca-form-switch { border-top: 1px solid var(--ca-admin-border); margin-top: 0.75rem; padding-top: 1rem; }\n.cedros-academy-admin .ca-access-details { margin-top: 0.25rem; }\n.cedros-academy-admin .ca-access-details > summary { min-height: 2rem; font-size: 0.75rem; color: var(--ca-admin-muted); }\n.cedros-academy-admin .ca-access-details dl { display: grid; gap: 0.75rem; margin: 0.5rem 0; }\n.cedros-academy-admin .ca-access-details dt { color: var(--ca-admin-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }\n.cedros-academy-admin .ca-access-details dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; }\n.cedros-academy-admin .ca-access-course-inline, .cedros-academy-admin .ca-access-details .ca-access-progress-inline, .cedros-academy-admin .ca-access-guidance-inline { display: none; }\n.cedros-academy-admin .ca-enrollment-table { min-width: 0; table-layout: fixed; }\n.cedros-academy-admin .ca-enrollment-table th:first-child { width: 27%; }\n.cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(2) { width: 28%; }\n.cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(4) { width: 12%; }\n.cedros-academy-admin .ca-enrollment-table th:last-child { width: 3.5rem; }\n.cedros-academy-admin .ca-access-guidance { margin-top: 0.5rem; }\n.cedros-academy-admin .ca-enrollment-table .ca-status { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }\n@container cedros-academy-admin (max-width: 680px) {\n  .cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(2),\n  .cedros-academy-admin .ca-enrollment-table :is(th, td):nth-child(4) { display: none; }\n  .cedros-academy-admin .ca-enrollment-table th:first-child { width: auto; }\n  .cedros-academy-admin .ca-enrollment-table th:nth-child(3) { width: 8rem; }\n  .cedros-academy-admin .ca-access-course-inline { display: block; margin-top: 0.25rem; }\n  .cedros-academy-admin .ca-access-details .ca-access-progress-inline { display: block; }\n  .cedros-academy-admin .ca-access-guidance { display: none; }\n  .cedros-academy-admin .ca-access-guidance-inline { display: block; }\n}\n@container cedros-academy (max-width: 480px) {\n  .cedros-academy.ca-public .ca-public-head--with-action { grid-template-columns: minmax(0, 1fr); }\n  .cedros-academy.ca-public .ca-catalog-learning-link { grid-column: 1; grid-row: 3; justify-self: start; }\n}\n.cedros-academy-admin.ca-settings-surface,\n.cedros-academy-admin.ca-instructors-surface,\n.cedros-academy-admin.ca-overview-surface { max-width: var(--cd-container-settings, 45rem); }\n.cedros-academy-admin .ca-contribution-list { display: grid; gap: 1rem; }\n.cedros-academy-admin .ca-contribution { padding-top: 1rem; border-top: 1px solid var(--ca-admin-border); }\n.cedros-academy-admin .ca-contribution > h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }\n.cedros-academy-admin .ca-contribution > p { margin-bottom: 0.75rem; }\n.cedros-academy-admin .ca-submission-preview { max-width: var(--cd-container-settings, 45rem); }\n.cedros-academy-admin .ca-contribution-decision { display: grid; gap: 0.75rem; border-top: 1px solid var(--ca-admin-border); padding-top: 1rem; }\n.cedros-academy-admin .ca-contribution-decision .ca-field { margin: 0; }\n.cedros-academy-admin .ca-reply-editor { max-width: var(--cd-container-settings, 45rem); }\n.cedros-academy-admin .ca-confirmed-reply { margin-block: 0.75rem; padding-left: 1rem; border-left: 2px solid var(--ca-admin-border); }\n.cedros-academy-admin .ca-policy-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; cursor: pointer; font-weight: 600; }\n.cedros-academy-admin .ca-policy-edit > summary .ca-muted { font-weight: 400; }\n.cedros-academy-admin .ca-policy-edit__body { padding-top: 0.75rem; max-width: 18rem; }\n.cedros-academy-admin .ca-form-switch { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; padding-block: 0.55rem; }\n.cedros-academy-admin .ca-form-switch__copy { display: grid; gap: 0.25rem; min-width: 0; max-width: 60ch; }\n.cedros-academy-admin .ca-form-switch__copy .cedros-data-field__description { line-height: 1.5; }\n.cedros-academy-admin .ca-form-switch input {\n  appearance: none; position: relative; flex: none; margin: 0;\n  width: 2.35rem; height: 1.3rem; border: 1px solid var(--ca-admin-border);\n  border-radius: var(--ca-radius-pill); background: var(--ca-admin-muted-bg); cursor: pointer;\n  transition: background-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1)), border-color var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n}\n.cedros-academy-admin .ca-form-switch input::before {\n  content: \"\"; position: absolute; top: 1px; left: 1px;\n  width: 1.1rem; height: 1.1rem; box-sizing: border-box; border: 1px solid var(--ca-admin-border);\n  border-radius: var(--ca-radius-pill); background: var(--ca-admin-card-bg);\n  box-shadow: var(--ca-admin-shadow);\n  transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n}\n.cedros-academy-admin .ca-form-switch input:checked { background: var(--ca-admin-primary); border-color: var(--ca-admin-primary); }\n.cedros-academy-admin .ca-form-switch input:checked::before { border-color: transparent; transform: translateX(1.02rem); }\n.cedros-academy-admin .ca-form-switch input:focus-visible { outline: 2px solid var(--ca-admin-ring); outline-offset: 3px; }\n.cedros-academy-admin .ca-form-switch input:disabled { opacity: 0.5; cursor: not-allowed; }\n@media (forced-colors: active) {\n  .cedros-academy-admin .ca-form-switch input { appearance: auto; width: 1.3rem; }\n  .cedros-academy-admin .ca-form-switch input::before { content: none; }\n}\n.cedros-academy-admin .cedros-dropdown-menu__content:popover-open {\n  animation: ca-menu-in calc(var(--motion-duration-fast, 160ms) * 1.125) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n}\n@keyframes ca-menu-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }\n@container cedros-academy-admin (max-width: 760px) {\n  .cedros-academy-admin .ca-course-editor-grid,\n  .cedros-academy-admin .ca-access-filters,\n  .cedros-academy-admin .ca-preview-layout { grid-template-columns: minmax(0, 1fr); }\n  .cedros-academy-admin .ca-card-header { flex-wrap: wrap; }\n  .cedros-academy-admin .ca-preview-lesson { border-left: 0; border-top: 1px solid var(--ca-admin-border); padding: 1rem 0 0; }\n}\n/* Site accents style links; a readable neutral role defines field boundaries. */\n.cedros-academy .ca-button:not(:disabled):active { background: color-mix(in srgb, var(--ca5ss4b-runtime-text, #171717) 12%, var(--ca5ss4b-runtime-panel, #fff)); }\n.cedros-academy .ca-button-primary:not(:disabled):active { background: color-mix(in srgb, var(--ca5ss4b-runtime-action-bg, #18181b) 80%, var(--ca5ss4b-runtime-action-fg, #fff)); }\n.cedros-academy .ca-button:disabled:hover { background: var(--ca5ss4b-runtime-panel, #fff); }\n.cedros-academy .ca-button-primary:disabled:hover { background: var(--ca5ss4b-runtime-action-bg, #18181b); }\n.cedros-academy .ca-button[aria-pressed=\"true\"] { border-color: var(--ca5ss4b-runtime-action-bg, #18181b); background: var(--ca5ss4b-runtime-accent-soft, #f4f4f5); }\n\n/* Workbench's mobile shell retains its density while touch actions grow. */\n@media (max-width: 767px) {\n  .cedros-academy-admin .cedros-data-row-actions .cedros-data-btn { min-height: 2.75rem; }\n  .cedros-academy-admin :is(.cedros-data-input, .cedros-data-select) { height: 2.75rem; min-height: 2.75rem; }\n  .cedros-academy-admin .ca-toolbar-field > svg { top: 0.875rem; }\n  .cedros-academy-admin .ca-search-clear { top: 0; right: 0; width: 2.75rem; border-radius: var(--ca-radius-sm); }\n  .cedros-academy-admin .cedros-row-actions__trigger,\n  .cedros-academy-admin .cedros-data-dialog__close { width: 2.75rem; min-height: 2.75rem; }\n  .cedros-academy-admin .cedros-data-dialog__heading { padding-right: 3.25rem; }\n  .cedros-academy-admin .cedros-dropdown-menu__item,\n  .cedros-academy-admin .cedros-back-breadcrumb,\n  .cedros-academy-admin details > summary,\n  .cedros-academy-admin details:not(.ca-policy-edit) > summary,\n  .cedros-academy-admin .ca-form-switch { min-height: 2.75rem; }\n}\n\n/* Workbench primitives mirrored for Academy admin content. */\n.cedros-academy-admin .ca-icon-button { width: 2rem; padding: 0; }\n.cedros-academy-admin .ca-icon-button > svg,\n.cedros-academy-admin .cedros-row-actions__trigger > svg { flex: none; }\n.cedros-academy-admin .ca-add-lesson { justify-self: start; }\n.cedros-academy-admin .cedros-data-setup-notice {\n  display: grid; gap: 0.75rem;\n  border: 1px solid var(--ca-admin-border); border-radius: var(--ca-admin-radius);\n  padding: 1rem; background: var(--ca-admin-card-bg); box-shadow: var(--ca-admin-shadow);\n}\n.cedros-academy-admin .cedros-data-setup-notice__body { display: grid; gap: 0.25rem; max-width: 60ch; }\n.cedros-academy-admin .cedros-data-setup-notice__body :is(h3, strong) { font-size: 0.875rem; font-weight: 600; }\n.cedros-academy-admin .cedros-data-setup-notice .cedros-data-actions { justify-content: flex-start; }\n.cedros-academy-admin code {\n  border: 1px solid var(--ca-admin-border); border-radius: 4px; padding: 0 0.3em;\n  background: var(--ca-admin-muted-bg); color: var(--ca-admin-fg);\n  font-family: var(--cd-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.75rem;\n  overflow-wrap: anywhere; justify-self: start;\n}\n.cedros-academy-admin .cedros-data-table-summary { display: grid; gap: 0.125rem; min-width: 0; }\n.cedros-academy-admin .ca-table .ca-row-end { width: 1%; text-align: right; white-space: nowrap; }\n.cedros-academy-admin .ca-instructors-table { min-width: 30rem; }\n@media (max-width: 767px) {\n  .cedros-academy-admin .ca-icon-button { width: 2.75rem; }\n  .cedros-academy-admin .ca-enrollment-table th:last-child { width: 4.5rem; }\n}\n\n/* Public disclosures share one site-colored chevron instead of mixed native,\n   \"+\" and triangle markers. Learner tools inside the player read as hairline\n   rows, not cards nested inside the player card. */\n.cedros-academy details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; cursor: pointer; }\n.cedros-academy details > summary::-webkit-details-marker { display: none; }\n.cedros-academy details > summary::before {\n  content: \"\"; flex: none; width: 16px; height: 16px; background-color: currentColor;\n  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\") center / 16px no-repeat;\n  transition: transform var(--motion-duration-fast, 160ms) var(--motion-ease-standard, cubic-bezier(0.16, 1, 0.3, 1));\n}\n.cedros-academy details[open] > summary::before { transform: rotate(90deg); }\n.cedros-academy .ca-disclosure > summary .ca-tool-summary { flex-basis: 100%; margin: 0; padding-left: 24px; }\n.cedros-academy.ca-public .ca-learning-tools { gap: 0; }\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) { border: 0; border-top: 1px solid var(--ca5ss4b-runtime-border, #d0d5dd); border-radius: 0; background: transparent; overflow: visible; }\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) > summary { padding: 16px 0; min-height: 44px; }\n.cedros-academy.ca-public :is(.ca-learning-tools > .ca-disclosure, .ca-learner-announcements) > .ca-disclosure__body { padding: 0 0 20px; }\n\n/* Dashboard contribution (Workbench §6.1): one card frame whose header and\n   footer are its only chrome; the metric band folds 3→2→1 by the host-assigned\n   card width, not the viewport. */\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__header {\n  max-width: none; margin: 0 -1rem; padding: 0 1rem 0.75rem; border-bottom: 1px solid var(--ca-admin-border);\n}\n.cedros-academy-admin.ca-dashboard-card .cedros-data-summary-grid {\n  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));\n}\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer {\n  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem;\n  max-width: none; margin: 0 -1rem; padding: 0.75rem 1rem 0; border-top: 1px solid var(--ca-admin-border);\n}\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer p { font-size: 0.75rem; }\n.cedros-academy-admin.ca-dashboard-card .ca-dashboard-card__footer a { font-size: 0.8125rem; }\n\n/* Exception rows: up to a few next actions, hairline separated, action trailing. */\n.cedros-academy-admin .ca-exception-rows { display: grid; margin: 0; padding: 0; list-style: none; }\n.cedros-academy-admin .ca-exception-rows li {\n  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem;\n  min-height: 2.5rem; padding: 0.5rem 0; border-top: 1px solid var(--ca-admin-border); font-size: 0.8125rem;\n}\n.cedros-academy-admin .ca-exception-rows li:first-child { border-top: 0; padding-top: 0; }\n.cedros-academy-admin .ca-exception-rows li > span { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; }\n\n/* A routine receipt reads as a titled region, not a spaced-out stack. */\n.cedros-academy-admin.ca-announcement-receipt { gap: 0.25rem; }\n\n/* Workbench identifiers use mono one step below ordinary field text. */\n.cedros-academy-admin .ca-field--identifier :is(input, textarea) { font-family: var(--cd-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.75rem; }\n\n/* Record streams (saved versions, announcements) read as hairline rows inside\n   their disclosure, not as a stack of separate cards. */\n.cedros-academy-admin .ca-record-list { display: grid; margin: 0; padding: 0; list-style: none; }\n.cedros-academy-admin .ca-record-row { display: grid; gap: 0.5rem; min-width: 0; padding-block: 0.75rem; border-top: 1px solid var(--ca-admin-border); }\n.cedros-academy-admin .ca-record-row:first-child { border-top: 0; padding-top: 0; }\n.cedros-academy-admin .ca-record-row .ca-card-header { margin-bottom: 0; }\n.cedros-academy-admin .ca-record-row h4 { font-size: 0.875rem; font-weight: 600; }\n.cedros-academy-admin .ca-preserve-lines { white-space: pre-wrap; }\n\n/* A disclosure in a narrow table cell keeps its chevron beside the label. */\n.cedros-academy-admin details.ca-access-details > summary { flex-wrap: nowrap; }\n.cedros-academy-admin .ca-record-row .ca-disclosure { border-top: 0; padding-top: 0; }\n/* The promoted row action and its ⋯ menu stay on one line; start-aligned so the\n   promoted action keeps its column when a row has no overflow menu. */\n.cedros-academy-admin .ca-table .ca-row-end .ca-row-actions { flex-wrap: nowrap; gap: 0.25rem; justify-content: flex-start; }\n/* Secondary forms keep the settings column even inside a page-width frame. */\n.cedros-academy-admin .ca-secondary-work > .ca-disclosure__body { max-width: var(--cd-container-settings, 45rem); }\n"},{"path":"workspace/react/dist/web/api.js","kind":"module","text":"import { PublicSessionAuthority, publicSessionAuthority } from \"./publicSession.js\";\nimport { WriteAttempt } from \"../shared/writeAttempt.js\";\nimport { AcademyError, isRecord, LearnerBinding, normalizedSite, readResponse, RetiredOperation } from \"../shared/authority.js\";\nexport class PublicApi {\n    binding = new LearnerBinding();\n    get scope() { return this.binding.scope; }\n    get viewGeneration() { return this.binding.viewGeneration; }\n    courseViewVersion(courseId) { return this.binding.courseViewVersion(courseId); }\n    configurationError = null;\n    publicSite = \"\";\n    get publicServerUrl() { return this.publicSite; }\n    unavailableScope = new PublicSessionAuthority();\n    sessionScope = this.unavailableScope;\n    monitorSession() { return this.sessionScope.monitorSession(); }\n    configure(props) {\n        let site = \"\";\n        try {\n            site = normalizedSite(props.serverUrl ?? (typeof window === \"undefined\" ? \"\" : window.location.origin));\n            this.configurationError = null;\n        }\n        catch {\n            this.configurationError = new Error(\"Academy server URL is required.\");\n        }\n        this.publicSite = site;\n        try {\n            this.sessionScope = props.publicSession ? publicSessionAuthority(props.publicSession) : this.unavailableScope;\n        }\n        catch {\n            this.sessionScope = this.unavailableScope;\n        }\n        this.binding.configureScope(this.sessionScope, false);\n    }\n    constructor(props) { this.configure(props); }\n    async account() {\n        await this.get(\"/me/v1/dashboard?limit=1&offset=0\", true);\n        if (!this.scope.owner)\n            throw new RetiredOperation();\n        return this.scope.owner;\n    }\n    async get(path, auth) {\n        // Anonymous discovery/reading is independent of the learner session and its\n        // visibility fence. Private requests below retain every authority check.\n        if (!auth)\n            return this.request(\"GET\", path, undefined, false, this.scope.capture());\n        const enrollmentId = /^\\/me\\/v1\\/enrollments\\/([^/]+)\\/player(?:\\?|$)/.exec(path)?.[1];\n        const announcementCourse = /^\\/me\\/v1\\/courses\\/([^/]+)\\/announcements/.exec(path)?.[1];\n        const course = enrollmentId ? this.scope.courseFor(decodeURIComponent(enrollmentId)) : announcementCourse ? decodeURIComponent(announcementCourse) : undefined;\n        const ticket = this.scope.capture(course);\n        this.scope.requireCurrent(enrollmentId ? { ...ticket, course: undefined } : ticket);\n        if (auth && !path.startsWith(\"/me/v1/dashboard\") && !/\\/player(?:\\?|$)/.test(path))\n            await this.account();\n        this.scope.requireCurrent(enrollmentId ? { ...ticket, course: undefined } : ticket);\n        const result = await this.request(\"GET\", path, undefined, auth, ticket);\n        if (auth && !path.startsWith(\"/me/v1/dashboard\") && !enrollmentId)\n            await this.account();\n        if (enrollmentId) {\n            const course = this.scope.courseFor(decodeURIComponent(enrollmentId));\n            if (!course)\n                throw new RetiredOperation();\n            this.scope.requireCurrent({ ...ticket, course, courseVersion: ticket.course ? ticket.courseVersion : this.scope.courseVersion(course) });\n        }\n        else\n            this.scope.requireCurrent(ticket);\n        return result;\n    }\n    post(path, body, headers, attempt) { return this.write(\"POST\", path, body, headers, attempt); }\n    put(path, body) { return this.write(\"PUT\", path, body); }\n    async write(method, path, body, headers, attempt) {\n        try {\n            attempt?.requirePreparing();\n            if (!isRecord(body) || typeof body.expectedAccountId !== \"string\" || !body.expectedAccountId)\n                throw new AcademyError(\"Reauthorize before saving.\", 422, \"cedros.academy.account_context_invalid\");\n            if (body.expectedAccountId !== this.scope.owner)\n                throw new RetiredOperation();\n            if (attempt && (attempt.owner !== body.expectedAccountId || attempt.operation.ticket.authority !== this.scope))\n                throw new RetiredOperation();\n            const originalHeaders = headers ? { ...headers } : undefined;\n            // Serialize before any await: retries must use the original owner and body.\n            const original = JSON.parse(JSON.stringify(body));\n            const pathCourse = /^\\/public\\/v1\\/courses\\/([^/]+)\\/(questions|reviews)$/.exec(path)?.[1];\n            const courseId = typeof body.enrollmentId === \"string\" ? this.scope.courseFor(body.enrollmentId) : pathCourse ? decodeURIComponent(pathCourse) : undefined;\n            const ticket = this.scope.capture(courseId);\n            this.scope.requireCurrent(ticket);\n            const owner = await this.account();\n            attempt?.requirePreparing();\n            this.scope.requireCurrent(ticket);\n            if (original.expectedAccountId !== owner) {\n                this.scope.retire();\n                throw new RetiredOperation();\n            }\n            if (courseId) {\n                const enrollmentId = this.scope.enrollmentFor(courseId);\n                if (enrollmentId) {\n                    const lesson = typeof original.lessonId === \"string\" ? `?lessonId=${encodeURIComponent(original.lessonId)}` : \"\";\n                    await this.get(`/me/v1/enrollments/${encodeURIComponent(enrollmentId)}/player${lesson}`, true);\n                }\n            }\n            this.scope.requireCurrent(ticket);\n            const result = await this.request(method, path, original, true, ticket, originalHeaders, attempt);\n            attempt?.publish();\n            return result;\n        }\n        catch (error) {\n            attempt?.fail(error);\n            throw error;\n        }\n    }\n    async request(method, path, body, auth, ticket, headers, attempt) {\n        if (this.configurationError)\n            throw this.configurationError;\n        const readObservation = this.scope.nextRead();\n        const playerRead = method === \"GET\" && /\\/player(?:\\?|$)/.test(path);\n        const lessonNotesRead = playerRead && /[?&]lessonId=/.test(path);\n        const authorityTicket = playerRead ? { ...ticket, course: undefined } : ticket;\n        const stopSession = auth ? this.monitorSession() : undefined;\n        const signal = auth ? undefined : AbortSignal.timeout(20_000);\n        try {\n            if (auth)\n                await this.scope.credential(authorityTicket);\n            if (auth)\n                this.scope.requireCurrent(authorityTicket);\n            const bodyJson = body === undefined ? undefined : JSON.stringify(body);\n            const requestHeaders = { \"content-type\": \"application/json\", ...headers };\n            // No await between the final captured-operation fence and mutation transport entry.\n            attempt?.dispatch({ site: this.scope.site, owner: attempt.owner, method, path, bodyJson: bodyJson ?? \"\", headers: headers ?? {} });\n            const response = await fetch(`${auth ? this.scope.site : this.publicSite}/extensions/cedros-academy${path}`, {\n                method, cache: \"no-store\", credentials: auth ? \"same-origin\" : \"omit\",\n                signal,\n                headers: requestHeaders,\n                body: bodyJson\n            });\n            // Parse failures and HTTP denials have the same ownership fence as success.\n            let payload;\n            try {\n                payload = await readResponse(response);\n            }\n            catch (error) {\n                // Preserve the actual response disposition even if the subsequent authority observation retires.\n                attempt?.fail(error);\n                if (auth)\n                    await this.scope.credential(authorityTicket);\n                throw error;\n            }\n            if (auth) {\n                await this.scope.credential(authorityTicket);\n                this.scope.requireCurrent(authorityTicket);\n                if (isRecord(payload) && path.startsWith(\"/me/v1/dashboard\")) {\n                    this.scope.bindOwner(isRecord(payload.student) ? payload.student.userId : undefined, ticket, readObservation);\n                    if (!Array.isArray(payload.enrollments))\n                        throw new AcademyError(\"Academy returned an invalid dashboard.\");\n                    this.scope.rememberDashboard(payload.enrollments.map(readEnrollment));\n                }\n                if (ticket.course && ticket.courseVersion !== this.scope.courseVersion(ticket.course))\n                    throw new RetiredOperation();\n                if (isRecord(payload) && /\\/player(?:\\?|$)/.test(path)) {\n                    this.scope.acceptEnrollment(readEnrollment(payload.enrollment), authorityTicket, readObservation);\n                }\n            }\n            attempt?.receive(payload);\n            if (attempt && attempt.disposition !== \"confirmed\")\n                throw new AcademyError(\"Academy did not return a matching original receipt.\", response.status);\n            return payload;\n        }\n        catch (error) {\n            if (signal?.aborted)\n                throw new AcademyError(\"Academy did not respond in time. Try again.\", 504, \"cedros.academy.request_timeout\");\n            if (auth) {\n                const enrollmentId = /^\\/me\\/v1\\/enrollments\\/([^/]+)\\/player(?:\\?|$)/.exec(path)?.[1];\n                const course = ticket.course ?? (enrollmentId ? this.scope.courseFor(decodeURIComponent(enrollmentId)) : undefined);\n                const responseTicket = { ...ticket, course };\n                if (!this.scope.responseCurrent(responseTicket, readObservation) || (course && ticket.courseVersion !== this.scope.courseVersion(course)))\n                    throw new RetiredOperation();\n                this.scope.denial(error, responseTicket, readObservation, playerRead || /^\\/(?:me|public)\\/v1\\/courses\\//.test(path));\n                if (this.scope.responseCurrent({ ...ticket, course }, readObservation) && !(error instanceof RetiredOperation)) {\n                    if (path.startsWith(\"/me/v1/dashboard\"))\n                        this.scope.quarantineAccount();\n                    // An unavailable auxiliary note read has its own disabled/retry state.\n                    // Authentication and access denials above still invalidate authority.\n                    else if (method === \"GET\" && !lessonNotesRead && course && ticket.courseVersion === this.scope.courseVersion(course))\n                        this.scope.quarantineCourse(course);\n                }\n            }\n            throw error;\n        }\n        finally {\n            stopSession?.();\n        }\n    }\n}\nexport function readEnrollment(value) {\n    if (!isRecord(value) || typeof value.enrollmentId !== \"string\" || typeof value.courseId !== \"string\" || typeof value.studentId !== \"string\" || typeof value.status !== \"string\")\n        throw new AcademyError(\"Academy returned an invalid enrollment.\");\n    return { enrollmentId: value.enrollmentId, courseId: value.courseId, studentId: value.studentId, status: value.status, expiresAt: value.expiresAt };\n}\n","imports":[{"dynamic":false,"end":82,"specifier":"./publicSession.js","start":64},{"dynamic":false,"end":140,"specifier":"../shared/writeAttempt.js","start":115},{"dynamic":false,"end":269,"specifier":"../shared/authority.js","start":247}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/authority.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { createContext, useContext, useEffect, useRef, useState } from \"react\";\nimport { LearnerAuthority, RetiredOperation } from \"../shared/authority.js\";\nimport { PublicApi } from \"./api.js\";\nimport { ensureAcademyStyles } from \"../shared/styles.js\";\nimport { PublicRecheck } from \"./publicUi.js\";\nconst CurrentApi = createContext(null);\nexport function usePublicApi(props) {\n    ensureAcademyStyles();\n    const inherited = useContext(CurrentApi);\n    const own = useRef(null);\n    if (!own.current)\n        own.current = new PublicApi(props);\n    const api = inherited ?? own.current;\n    if (!inherited)\n        api.configure(props);\n    useAuthorityVersion(api.scope);\n    useEffect(() => {\n        if (inherited)\n            return;\n        const scope = api.scope;\n        const stopSession = api.monitorSession();\n        const stopMonitor = scope.monitor(() => {\n            let timer;\n            // Only known session/enrollment deadlines wake this monitor. Host\n            // invalidation and fresh request/result reads supply session authority.\n            const schedule = () => {\n                clearTimeout(timer);\n                const delay = scope.wakeDelay();\n                if (scope.active && Number.isFinite(delay))\n                    timer = setTimeout(tick, Math.min(delay, 2_147_483_647));\n            };\n            const tick = () => { scope.checkExpiry(); schedule(); };\n            const visibility = () => { if (document.visibilityState === \"hidden\")\n                scope.suspend();\n            else {\n                scope.checkExpiry();\n                scope.resume();\n            } schedule(); };\n            const hide = () => { scope.suspend(); schedule(); };\n            const show = () => { if (document.visibilityState !== \"hidden\") {\n                scope.checkExpiry();\n                scope.resume();\n                schedule();\n            } };\n            const stopWake = scope.subscribeWake(schedule);\n            visibility();\n            document.addEventListener(\"visibilitychange\", visibility);\n            window.addEventListener(\"pagehide\", hide);\n            window.addEventListener(\"pageshow\", show);\n            return () => { stopWake(); clearTimeout(timer); document.removeEventListener(\"visibilitychange\", visibility); window.removeEventListener(\"pagehide\", hide); window.removeEventListener(\"pageshow\", show); };\n        });\n        return () => { stopMonitor(); stopSession(); };\n    }, [api, api.scope, inherited]);\n    return api;\n}\nexport function useAuthorityVersion(scope) {\n    const [, update] = useState(0);\n    useEffect(() => scope.subscribe(() => update(value => value + 1)), [scope]);\n    return scope.version;\n}\nexport function AccountBoundary({ props, children }) {\n    const api = usePublicApi(props);\n    const [authorization, setAuthorization] = useState(null);\n    const [retry, setRetry] = useState(0);\n    const version = api.scope.version;\n    useEffect(() => {\n        if (!api.scope.active)\n            return;\n        const ticket = api.scope.capture();\n        let active = true;\n        let retryTimer;\n        void api.account().then(() => {\n            if (active && api.scope.current(ticket))\n                setAuthorization({ authority: ticket.authority, epoch: ticket.epoch, lineage: ticket.lineage });\n        }).catch(error => {\n            if (active && api.scope.current(ticket) && error instanceof RetiredOperation) {\n                retryTimer = setTimeout(() => { if (active)\n                    setRetry(value => value + 1); }, 100);\n                return;\n            }\n            if (active && api.scope.current(ticket) && !(error instanceof RetiredOperation))\n                setAuthorization({ authority: ticket.authority, epoch: ticket.epoch, lineage: ticket.lineage, error: error instanceof Error ? error : new Error(\"Reauthorization failed.\") });\n        });\n        return () => { active = false; clearTimeout(retryTimer); };\n    }, [api, api.scope, version, retry]);\n    const ready = authorization?.authority === api.scope && authorization.epoch === api.scope.epoch && authorization.lineage === api.scope.lineage && !authorization.error && api.scope.active;\n    const generation = api.viewGeneration;\n    const retainedGeneration = useRef(null);\n    if (ready)\n        retainedGeneration.current = generation;\n    // Keep same-owner children mounted, inaccessible and invisible during revalidation.\n    // A definitive retirement changes the key and destroys every retained private draft.\n    // First authorize the account before mounting its private resource reads.\n    return _jsxs(CurrentApi.Provider, { value: api, children: [_jsx(\"div\", { hidden: !ready, inert: !ready, children: retainedGeneration.current === generation ? children : null }, generation), !ready ? _jsx(PublicRecheck, { shell: true, error: authorization?.authority === api.scope && authorization.epoch === api.scope.epoch ? authorization.error : undefined, onRetry: () => setRetry(value => value + 1) }) : null] });\n}\nexport function useOperation(scope, course, allowUnauthenticated = false, input) {\n    const mounted = useRef(true);\n    const renderScope = scope.capture(course);\n    const currentInput = useRef(input);\n    currentInput.current = input;\n    const operationInputs = useRef(new WeakMap());\n    const latch = useRef(null);\n    const [busy, setBusy] = useState(null);\n    useEffect(() => { mounted.current = true; return () => { mounted.current = false; if (latch.current)\n        scope.release(latch.current); latch.current = null; }; }, [scope]);\n    const version = useAuthorityVersion(scope);\n    useEffect(() => { if (latch.current && (!scope.current(latch.current.ticket) || operationInputs.current.get(latch.current) !== currentInput.current)) {\n        scope.release(latch.current);\n        latch.current = null;\n        setBusy(null);\n    } }, [scope, version, input]);\n    return {\n        busy: busy && busy.operation === latch.current && scope.owns(busy.operation) && operationInputs.current.get(busy.operation) === currentInput.current ? busy.kind : \"\",\n        pending() { return scope.pending(course); },\n        start(kind = \"saving\") {\n            if (!mounted.current || currentInput.current !== input || !scope.current(renderScope))\n                return null;\n            const ticket = scope.capture(course);\n            if (latch.current && (!scope.current(latch.current.ticket) || operationInputs.current.get(latch.current) !== currentInput.current)) {\n                scope.release(latch.current);\n                latch.current = null;\n            }\n            if (latch.current || !scope.current(ticket) || (!allowUnauthenticated && scope.authorizedEpoch !== scope.epoch))\n                return null;\n            const operation = scope.acquire(ticket, kind);\n            if (!operation)\n                return null;\n            operationInputs.current.set(operation, currentInput.current);\n            latch.current = operation;\n            setBusy({ operation, kind });\n            return operation;\n        },\n        current(operation) { return mounted.current && latch.current === operation && operationInputs.current.get(operation) === currentInput.current && scope.owns(operation); },\n        finish(operation) { scope.release(operation); if (mounted.current && latch.current === operation) {\n            latch.current = null;\n            setBusy(null);\n        } }\n    };\n}\nexport function useLearningNavigation(api, courseId) {\n    const operation = useOperation(api.scope, courseId);\n    const [error, setError] = useState(\"\");\n    async function navigate(href) {\n        const ticket = operation.start(\"navigation\");\n        if (!ticket)\n            return;\n        setError(\"\");\n        try {\n            const enrollmentId = api.scope.enrollmentFor(courseId);\n            if (!enrollmentId)\n                return;\n            await api.get(`/me/v1/enrollments/${encodeURIComponent(enrollmentId)}/player`, true);\n            if (operation.current(ticket))\n                window.location.assign(href);\n        }\n        catch (caught) {\n            if (operation.current(ticket) && !(caught instanceof RetiredOperation))\n                setError(caught instanceof Error ? caught.message : \"Could not open lesson link.\");\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    return { navigate: (href) => { void navigate(href); }, error };\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":141,"specifier":"react","start":136},{"dynamic":false,"end":218,"specifier":"../shared/authority.js","start":196},{"dynamic":false,"end":256,"specifier":"./api.js","start":248},{"dynamic":false,"end":315,"specifier":"../shared/styles.js","start":296},{"dynamic":false,"end":362,"specifier":"./publicUi.js","start":349}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/blocks.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useCallback, useEffect, useId, useRef, useState } from \"react\";\nimport { useFormValidation } from \"../shared/formValidation.js\";\nimport { PublicApi } from \"./api.js\";\nimport { AccountBoundary, useOperation, usePublicApi } from \"./authority.js\";\nimport { enrollmentHasAccess, RetiredOperation } from \"../shared/authority.js\";\nexport { PublicApi } from \"./api.js\";\nexport { usePublicApi } from \"./authority.js\";\nimport { usePublicData } from \"./publicData.js\";\nexport { usePublicData } from \"./publicData.js\";\nimport { Status } from \"../shared/ui.js\";\nimport { courseSlugFromSearch, currentCourseSlug } from \"../shared/links.js\";\nimport { hasOpenLessons } from \"../shared/courseAccess.js\";\nimport { OpenCourseView } from \"./openCourse.js\";\nimport { PlayerView } from \"./learnerPlayer.js\";\nimport { coursePayReadiness, isPaidCourse, publicErrorCopy, publicSetupCopy } from \"./publicState.js\";\nimport { CourseGrid, CourseMeta, EnrollmentGrid, InstructorList, Notice, ProgressMark, PublicPageControls, PublicShell, PublicStack, PublicStateBlock } from \"./publicUi.js\";\nimport { CourseArtwork } from \"../shared/courseArtwork.js\";\nimport { CertificateCredential } from \"./certificateCredential.js\";\nimport { formatCertificateDate } from \"./certificateState.js\";\nexport function CourseCatalogBlock(props) {\n    const pageSize = 12;\n    const [selectedSlug, setSelectedSlug] = useState(currentCourseSlug);\n    const [searchDraft, setSearchDraft] = useState(\"\");\n    const [query, setQuery] = useState(\"\");\n    const [offset, setOffset] = useState(0);\n    const searchInput = useRef(null);\n    const api = usePublicApi(props);\n    const state = usePublicData(() => api.get(`/public/v1/catalog?limit=${query ? 100 : pageSize}&offset=${query ? 0 : offset}${query ? `&q=${encodeURIComponent(query)}` : \"\"}`, false).then((data) => ({ ...data, searchQuery: query })), [api, offset, query], \"anonymous\");\n    useEffect(() => {\n        if (typeof window === \"undefined\")\n            return;\n        const syncSelection = () => {\n            const slug = courseSlugFromSearch(window.location.search);\n            setSelectedSlug(slug);\n        };\n        window.addEventListener(\"popstate\", syncSelection);\n        return () => window.removeEventListener(\"popstate\", syncSelection);\n    }, []);\n    function selectCourse(course) {\n        const slug = course?.slug || course?.courseId || \"\";\n        setSelectedSlug(slug);\n        if (typeof window === \"undefined\")\n            return;\n        const url = new URL(window.location.href);\n        url.searchParams.delete(\"lesson\");\n        if (slug)\n            url.searchParams.set(\"course\", slug);\n        else\n            url.searchParams.delete(\"course\");\n        window.history.pushState(null, \"\", `${url.pathname}${url.search}${url.hash}`);\n    }\n    function clearSearch() {\n        setSearchDraft(\"\");\n        setOffset(0);\n        setQuery(\"\");\n        searchInput.current?.focus();\n    }\n    const catalogEmpty = !state.loading && !state.error && offset === 0 && state.data?.searchQuery === \"\" && state.data.courses.length === 0 && !state.data.hasMore;\n    if (selectedSlug) {\n        return (_jsx(PublicStack, { children: _jsx(CourseLandingBlock, { ...props, courseSlug: selectedSlug, onBackToCatalog: () => selectCourse(null) }) }));\n    }\n    return (_jsxs(PublicShell, { title: \"Course catalog\", eyebrow: \"Learn\", description: \"Find your next course and start learning.\", className: \"ca-discovery-surface\", action: !catalogEmpty ? _jsxs(\"a\", { className: \"ca-course-detail-link ca-catalog-learning-link\", href: \"/academy/dashboard\", children: [\"My Learning \", _jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2192\" })] }) : undefined, children: [!catalogEmpty || query ? _jsxs(\"form\", { className: \"ca-catalog-search ca-lookup-form\", onSubmit: (event) => { event.preventDefault(); setOffset(0); setQuery(searchDraft.trim()); }, children: [_jsxs(\"label\", { className: \"ca-field\", children: [_jsx(\"span\", { children: \"Search courses\" }), _jsx(\"input\", { ref: searchInput, type: \"search\", maxLength: 200, value: searchDraft, onChange: (event) => setSearchDraft(event.target.value) })] }), _jsxs(\"div\", { className: \"ca-public-actions\", children: [_jsx(\"button\", { className: \"ca-button\", type: \"submit\", children: \"Search\" }), query ? _jsx(\"button\", { className: \"ca-button ca-button--quiet\", type: \"button\", onClick: clearSearch, children: \"Clear search\" }) : null] })] }) : null, !state.loading && !state.error && state.data?.searchQuery === query && query ? _jsxs(\"p\", { className: \"ca-muted ca-search-context\", role: \"status\", children: [state.data.courses.length.toLocaleString(), state.data.truncated ? \"+\" : \"\", \" \", state.data.courses.length === 1 ? \"course\" : \"courses\", \" for \", _jsxs(\"strong\", { children: [\"\\u201C\", query, \"\\u201D\"] })] }) : null, _jsx(PublicStateBlock, { state: state, empty: offset === 0 && state.data?.courses.length === 0 && !state.data?.hasMore, emptyTitle: state.data?.catalogEnabled === false ? \"The public catalog is turned off\" : query ? \"No courses match your search\" : \"No courses are published yet\", emptyMessage: query ? \"Try a different title or learning outcome, or clear your search.\" : state.data?.catalogEnabled === false ? \"The site team has paused public course discovery. Existing learners can continue in My Learning.\" : \"New courses will appear here when the site team publishes them. Already enrolled? Continue in My Learning.\", emptyAction: !query ? { href: \"/academy/dashboard\", label: \"Open My Learning\" } : undefined, children: (data) => (_jsxs(\"div\", { className: \"ca-inline-stack\", children: [data.truncated ? _jsx(Notice, { copy: { tone: \"warning\", title: \"Refine this catalog view\", message: \"More matching courses exist than this bounded view can show. Search with a more specific title or learning outcome.\" } }) : null, _jsx(CourseGrid, { courses: data.courses, onSelect: selectCourse }), !query ? _jsx(PublicPageControls, { hasMore: Boolean(data.hasMore), label: \"Catalog\", offset: offset, pageSize: pageSize, onChange: setOffset }) : null] })) })] }));\n}\nexport function FeaturedCoursesBlock(props) {\n    const api = usePublicApi(props);\n    const state = usePublicData(() => api.get(\"/public/v1/catalog?limit=3&offset=0\", false), [api], \"anonymous\");\n    return (_jsx(PublicShell, { title: \"Course highlights\", eyebrow: \"Current learning\", description: \"Explore a selection of current courses.\", className: \"ca-discovery-surface\", children: _jsx(PublicStateBlock, { state: state, empty: state.data?.courses.length === 0, emptyTitle: state.data?.catalogEnabled === false ? \"The public catalog is turned off\" : \"Course highlights are not available\", children: (data) => _jsx(CourseGrid, { courses: data.courses.slice(0, 3), compact: true }) }) }));\n}\nexport function CourseLandingBlock(props) {\n    const api = usePublicApi(props);\n    const slug = String(props.courseSlug ?? authoredProps(props).courseSlug ?? props.courseId ?? \"\");\n    const state = usePublicData(() => slug ? api.get(`/public/v1/courses/${encodeURIComponent(slug)}`, false) : Promise.reject(new Error(\"Course slug is required.\")), [api, slug], \"anonymous\");\n    if (!slug) {\n        return (_jsx(PublicShell, { title: \"Course details\", eyebrow: \"Setup required\", description: \"This course block needs a published course slug or course id before it can render.\", children: _jsx(Notice, { copy: publicSetupCopy(\"course\") }) }));\n    }\n    return (_jsx(PublicShell, { title: state.data?.course.title ?? \"Course details\", eyebrow: state.data?.course.category && state.data.course.category !== \"general\" ? state.data.course.category : \"\", description: state.data?.course.description ?? \"Explore the course and its lessons.\", descriptionDisclosure: Boolean(state.data && hasOpenLessons(state.data.course)), className: state.data && hasOpenLessons(state.data.course) ? \"ca-reading-surface\" : \"ca-detail-surface\", navigation: _jsxs(\"nav\", { className: \"ca-course-navigation\", \"aria-label\": \"Course navigation\", children: [props.onBackToCatalog ? _jsxs(\"button\", { className: \"ca-button ca-button--quiet\", type: \"button\", onClick: props.onBackToCatalog, children: [_jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2190\" }), \" Back to catalog\"] }) : _jsxs(\"a\", { className: \"ca-course-detail-link\", href: \"/courses\", children: [_jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2190\" }), \" All courses\"] }), _jsx(\"a\", { className: \"ca-course-detail-link\", href: \"/academy/dashboard\", children: \"My Learning\" })] }), children: _jsx(PublicStateBlock, { state: state, loadingLayout: \"detail\", loadingTitle: \"Loading course details\", children: (data) => _jsx(CourseDetailView, { api: api, detail: data }, data.course.courseId) }) }));\n}\nexport function InstructorProfileBlock(props) {\n    const authored = authoredProps(props);\n    const name = String(authored.displayName ?? \"Academy instructor\");\n    const bio = String(authored.bio ?? \"\");\n    return (_jsx(PublicShell, { title: name, eyebrow: \"Instructor\", description: bio || \"This instructor has not added a biography yet.\", className: \"ca-profile-surface\", children: _jsxs(\"a\", { className: \"ca-course-detail-link\", href: \"/courses\", children: [\"Explore courses \", _jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2192\" })] }) }));\n}\nexport function StudentDashboardBlock(props) {\n    return _jsx(AccountBoundary, { props: props, children: _jsx(StudentDashboardBlockContent, { ...props }) });\n}\nfunction StudentDashboardBlockContent(props) {\n    const pageSize = 12;\n    const [selectedEnrollmentId, setSelectedEnrollmentId] = useState(\"\");\n    const [selectedCertificateId, setSelectedCertificateId] = useState(\"\");\n    const [playerDirty, setPlayerDirty] = useState(false);\n    const [dashboardRevision, setDashboardRevision] = useState(0);\n    const [offset, setOffset] = useState(0);\n    const api = usePublicApi(props);\n    const state = usePublicData(() => api.get(`/me/v1/dashboard?limit=${pageSize}&offset=${offset}`, true), [api, dashboardRevision, offset]);\n    const navigation = useOperation(api.scope, undefined, false, offset);\n    const [navigationError, setNavigationError] = useState(\"\");\n    async function selectPrivate(id, kind) {\n        const selectedCourse = api.scope.courseFor(selectedEnrollmentId);\n        if (selectedCourse && (api.scope.pending(selectedCourse) || api.scope.hasDirty(selectedCourse)))\n            return;\n        const ticket = navigation.start(\"navigation\");\n        if (!ticket)\n            return;\n        setNavigationError(\"\");\n        try {\n            const current = await api.get(`/me/v1/dashboard?limit=${pageSize}&offset=${offset}`, true);\n            if (!navigation.current(ticket))\n                return;\n            if (kind === \"learning\" && !current.enrollments.some(row => row.enrollmentId === id && enrollmentHasAccess(row)))\n                throw new Error(\"Course access is expired or locked.\");\n            if (kind === \"certificate\" && !current.certificates.some(row => row.certificateId === id))\n                throw new Error(\"Certificate unavailable.\");\n            setSelectedEnrollmentId(kind === \"learning\" ? id : \"\");\n            setSelectedCertificateId(kind === \"certificate\" ? id : \"\");\n            setPlayerDirty(false);\n            setDashboardRevision(value => value + 1);\n        }\n        catch (error) {\n            if (navigation.current(ticket) && !(error instanceof RetiredOperation))\n                setNavigationError(error instanceof Error ? error.message : \"Navigation failed.\");\n        }\n        finally {\n            navigation.finish(ticket);\n        }\n    }\n    if (selectedEnrollmentId) {\n        return (_jsxs(PublicStack, { children: [_jsxs(\"button\", { className: \"ca-course-detail-link ca-learning-back\", type: \"button\", disabled: playerDirty, onClick: () => { void selectPrivate(\"\", \"back\"); }, children: [_jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2190\" }), \" Back to My Learning\"] }), _jsx(CoursePlayerBlock, { ...props, enrollmentId: selectedEnrollmentId, onLearningChanged: () => setDashboardRevision((current) => current + 1), onDraftChange: setPlayerDirty })] }));\n    }\n    if (selectedCertificateId) {\n        return (_jsxs(PublicStack, { children: [_jsxs(\"button\", { className: \"ca-course-detail-link ca-learning-back\", type: \"button\", onClick: () => { void selectPrivate(\"\", \"back\"); }, children: [_jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2190\" }), \" Back to My Learning\"] }), _jsx(PublicShell, { title: \"Your certificate\", eyebrow: \"Completed learning\", description: \"Present this credential and share its privacy-safe verification link.\", children: _jsx(PublicStateBlock, { state: state, loadingLayout: \"form\", loadingTitle: \"Loading your certificate\", children: (data) => {\n                            const certificate = data.certificates.find((item) => item.certificateId === selectedCertificateId);\n                            if (!certificate)\n                                return _jsx(Notice, { copy: { tone: \"warning\", title: \"Certificate unavailable\", message: \"This certificate is no longer available in your Academy records.\" } });\n                            const course = data.courses.find((item) => item.courseId === certificate.courseId);\n                            const enrollment = data.enrollments.find((item) => item.courseId === certificate.courseId);\n                            return _jsx(CertificateCredential, { api: api, certificate: certificate, course: course, holderName: data.student?.name?.trim() || enrollment?.studentName });\n                        } }) })] }));\n    }\n    return (_jsxs(PublicShell, { title: \"My Learning\", eyebrow: \"Your courses\", description: \"Pick up where you left off, review your progress, or view your certificates.\", className: \"ca-learning-surface\", children: [navigationError ? _jsx(Notice, { copy: publicErrorCopy(navigationError) }) : null, _jsx(PublicStateBlock, { state: state, loadingLayout: \"learning\", loadingTitle: \"Loading your courses\", empty: offset === 0 && state.data?.enrollments.length === 0, emptyTitle: \"No enrollments yet\", emptyMessage: \"Browse published courses and enroll to start learning.\", emptyAction: { href: \"/courses\", label: \"Browse courses\" }, children: (data) => (_jsxs(\"div\", { className: \"ca-inline-stack\", children: [_jsx(EnrollmentGrid, { certificates: data.certificates, courses: data.courses, enrollments: data.enrollments, onCertificateSelect: (id) => { void selectPrivate(id, \"certificate\"); }, onSelect: (id) => { void selectPrivate(id, \"learning\"); } }), _jsx(PublicPageControls, { hasMore: Boolean(data.hasMore), label: \"Learning\", offset: offset, pageSize: pageSize, onChange: setOffset }), _jsxs(\"a\", { className: \"ca-course-detail-link ca-learning-browse\", href: \"/courses\", children: [\"Browse more courses \", _jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2192\" })] })] })) })] }));\n}\nexport function CoursePlayerBlock(props) {\n    return _jsx(AccountBoundary, { props: props, children: _jsx(CoursePlayerBlockContent, { ...props }) });\n}\nfunction CoursePlayerBlockContent(props) {\n    const api = usePublicApi(props);\n    const enrollmentId = String(props.enrollmentId ?? authoredProps(props).enrollmentId ?? \"\");\n    const currentEnrollment = useRef(enrollmentId);\n    currentEnrollment.current = enrollmentId;\n    const [draftDirty, setDraftDirty] = useState(false);\n    const draftTicket = api.scope.capture();\n    const onDraftChange = useCallback((dirty) => {\n        if (!api.scope.current(draftTicket) || currentEnrollment.current !== enrollmentId)\n            return;\n        setDraftDirty(dirty);\n        props.onDraftChange?.(dirty);\n    }, [props.onDraftChange, api, draftTicket.epoch, draftTicket.lineage, enrollmentId]);\n    useEffect(() => { setDraftDirty(false); }, [enrollmentId]);\n    const state = usePublicData(() => enrollmentId ? api.get(`/me/v1/enrollments/${encodeURIComponent(enrollmentId)}/player`, true) : Promise.reject(new Error(\"Enrollment ID is required.\")), [api, enrollmentId]);\n    if (!enrollmentId)\n        return (_jsx(PublicShell, { title: \"Course player\", eyebrow: \"Your learning\", description: \"Choose a course to start or continue a lesson.\", children: _jsx(Notice, { copy: { tone: \"neutral\", title: \"Choose a course\", message: \"Open My Learning to continue one of your enrolled courses.\", action: { href: \"/academy/dashboard\", label: \"Open My Learning\" } } }) }));\n    return (_jsx(PublicShell, { title: state.data?.course.title ?? \"Your course\", eyebrow: \"My Learning\", description: \"\", className: \"ca-reading-surface\", navigation: !props.onDraftChange ? _jsxs(\"nav\", { className: \"ca-course-navigation\", \"aria-label\": \"Learning navigation\", children: [_jsxs(\"a\", { className: \"ca-course-detail-link\", href: \"/academy/dashboard\", \"aria-disabled\": draftDirty || undefined, onClick: (event) => { const course = api.scope.courseFor(enrollmentId); if (draftDirty || (course && (api.scope.hasDirty(course) || api.scope.pending(course))))\n                        event.preventDefault(); }, children: [_jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2190\" }), \" Back to My Learning\"] }), draftDirty ? _jsx(\"span\", { className: \"ca-muted\", role: \"status\", children: \"Save or discard your lesson changes before leaving.\" }) : null] }) : undefined, children: _jsx(PublicStateBlock, { state: state, loadingLayout: \"reading\", loadingTitle: \"Loading your lesson\", children: (data) => _jsx(PlayerView, { api: api, detail: data, onDraftChange: onDraftChange, loadAnnouncements: (offset, limit) => api.get(`/me/v1/courses/${encodeURIComponent(data.course.courseId)}/announcements?limit=${limit}&offset=${offset}`, true), tools: {\n                    saveNote: async (lessonId, body, expectedBody) => (await api.put(`/me/v1/notes/${encodeURIComponent(`${enrollmentId}:${lessonId}`)}`, { enrollmentId, lessonId, body, expectedBody, expectedAccountId: data.enrollment.studentId })).record,\n                    reloadNotes: async (lessonId) => (await api.get(`/me/v1/enrollments/${encodeURIComponent(enrollmentId)}/player?lessonId=${encodeURIComponent(lessonId)}`, true)).notes,\n                    bookmark: async (lessonId, bookmarked) => (await api.put(`/me/v1/bookmarks/${encodeURIComponent(`${enrollmentId}:${lessonId}`)}`, { enrollmentId, lessonId, bookmarked, expectedAccountId: data.enrollment.studentId })).record,\n                    ask: async (title, body, key, expectedAccountId, attempt) => (await api.post(`/public/v1/courses/${encodeURIComponent(data.course.courseId)}/questions`, { title, body, expectedAccountId }, { \"idempotency-key\": key }, attempt)).question,\n                    reloadReview: async () => (await api.get(`/me/v1/enrollments/${encodeURIComponent(enrollmentId)}/player`, true)).review ?? null,\n                    review: async (rating, body, expectedReview) => (await api.post(`/public/v1/courses/${encodeURIComponent(data.course.courseId)}/reviews`, { rating, body, expectedReview, expectedAccountId: data.enrollment.studentId })).review\n                }, onComplete: async (lessonId) => {\n                    const callbackTicket = api.scope.capture(data.course.courseId);\n                    const response = await api.post(\"/me/v1/progress\", { enrollmentId: data.enrollment.enrollmentId, lessonId, expectedAccountId: data.enrollment.studentId });\n                    const player = await api.get(`/me/v1/enrollments/${encodeURIComponent(data.enrollment.enrollmentId)}/player`, true);\n                    if (api.scope.current(callbackTicket) && currentEnrollment.current === data.enrollment.enrollmentId)\n                        props.onLearningChanged?.();\n                    return { ...response, player };\n                } }, `${data.course.courseId}:${data.enrollment.enrollmentId}:${api.courseViewVersion(data.course.courseId)}`) }) }));\n}\nexport function CertificateVerificationBlock(props) {\n    const api = usePublicApi(props);\n    const queryCertificateId = typeof window === \"undefined\"\n        ? \"\"\n        : new URLSearchParams(window.location.search).get(\"certificateId\") ?? \"\";\n    const certificateId = String(props.certificateId ?? authoredProps(props).certificateId ?? queryCertificateId);\n    if (!certificateId)\n        return _jsx(CertificateLookup, { api: api });\n    return _jsx(CertificateResult, { api: api, certificateId: certificateId });\n}\nfunction CourseDetailView({ api, detail }) {\n    const [savedEnrollment, setEnrolled] = useState(false);\n    const accountReady = api.scope.authorizedEpoch === api.scope.epoch && api.scope.owner !== null;\n    const enrolled = savedEnrollment && accountReady && !api.scope.knownLocked(detail.course.courseId);\n    useEffect(() => setEnrolled(false), [api.scope, api.scope.lineage]);\n    const course = detail.course;\n    const lessonCount = detail.curriculum?.sections?.reduce((count, section) => count + (section.lessons?.length ?? 0), 0) ?? 0;\n    if (hasOpenLessons(course))\n        return _jsxs(_Fragment, { children: [_jsx(OpenCourseView, { curriculum: detail.curriculum }, course.courseId), _jsx(LearnerReviews, { reviews: detail.reviews })] });\n    const readiness = coursePayReadiness(course);\n    return (_jsxs(\"div\", { className: \"ca-course-layout\", children: [_jsxs(\"aside\", { className: \"ca-card ca-course-secondary\", children: [_jsx(\"h3\", { children: enrolled ? \"You're enrolled\" : \"Join this course\" }), detail.curriculum?.sections?.length ? _jsxs(\"p\", { className: \"ca-course-extent\", children: [lessonCount.toLocaleString(), \" text \", lessonCount === 1 ? \"lesson\" : \"lessons\"] }) : null, !enrolled ? _jsxs(_Fragment, { children: [_jsx(CourseMeta, { course: course }), readiness.ready ? _jsx(\"p\", { className: \"ca-muted ca-enrollment-explanation\", children: readiness.message }) : _jsx(Notice, { copy: { tone: \"warning\", title: course.enrollmentStatus === \"closed\" ? \"Enrollment closed\" : isPaidCourse(course) ? \"Checkout unavailable\" : \"Enrollment unavailable\", message: readiness.message } })] }) : null, _jsx(EnrollmentButton, { api: api, course: course, onEnrolled: () => setEnrolled(true) })] }), _jsxs(\"article\", { className: \"ca-course-primary\", children: [_jsx(CourseArtwork, { course: course, hideWhenUnavailable: true }), _jsxs(\"section\", { className: \"ca-course-outline\", children: [_jsx(\"h3\", { children: \"What you'll learn\" }), _jsx(CurriculumList, { curriculum: detail.curriculum })] })] }), _jsxs(\"div\", { className: \"ca-course-support\", children: [_jsx(InstructorList, { instructors: detail.instructors ?? [] }), _jsx(LearnerReviews, { reviews: detail.reviews })] })] }));\n}\nfunction LearnerReviews({ reviews }) {\n    return reviews?.length ? _jsxs(\"section\", { className: \"ca-learner-reviews\", children: [_jsx(\"h3\", { children: \"Learner reviews\" }), reviews.map((review, index) => _jsxs(\"article\", { className: \"ca-feedback-item\", children: [_jsxs(\"strong\", { children: [review.rating, \" of 5\"] }), _jsx(\"p\", { children: review.body })] }, index))] }) : null;\n}\nfunction EnrollmentButton({ api, course, onEnrolled }) {\n    const [state, setState] = useState(null);\n    const [savedEnrollment, setEnrolled] = useState(false);\n    const accountReady = api.scope.authorizedEpoch === api.scope.epoch && api.scope.owner !== null;\n    const enrolled = savedEnrollment && accountReady && !api.scope.knownLocked(course.courseId);\n    const operation = useOperation(api.scope, undefined, true, course.courseId);\n    const busy = Boolean(operation.busy);\n    const pay = coursePayReadiness(course);\n    useEffect(() => { setState(null); setEnrolled(false); }, [api.scope, api.scope.lineage]);\n    const paid = isPaidCourse(course);\n    async function enroll() {\n        const ticket = operation.start();\n        if (!ticket)\n            return;\n        setState(null);\n        try {\n            const expectedAccountId = await api.account();\n            if (!operation.current(ticket))\n                return;\n            const endpoint = paid ? \"checkout\" : \"enroll\";\n            const response = await api.post(`/public/v1/courses/${encodeURIComponent(course.courseId)}/${endpoint}`, {\n                expectedAccountId, successUrl: \"/academy/dashboard\"\n            });\n            if (!operation.current(ticket))\n                return;\n            const checkoutUrl = response.checkout?.url;\n            if (checkoutUrl && typeof window !== \"undefined\")\n                window.location.assign(checkoutUrl);\n            if (!paid) {\n                setEnrolled(true);\n                onEnrolled();\n            }\n            setState({ tone: \"success\", title: paid ? \"Checkout created\" : \"Enrollment active\", message: paid ? \"Cedros Pay is opening the checkout handoff.\" : \"The course is now available in My Learning.\" });\n        }\n        catch (error) {\n            if (operation.current(ticket) && !(error instanceof RetiredOperation))\n                setState(publicErrorCopy(error instanceof Error ? error.message : undefined));\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    const enrollLabel = busy ? \"Working...\" : paid ? \"Continue to Cedros Pay\" : \"Enroll\";\n    return (_jsxs(\"div\", { className: \"ca-inline-stack\", children: [enrolled || !pay.ready ? null : (_jsxs(\"button\", { className: \"ca-button ca-button-primary\", disabled: !pay.ready || busy, onClick: () => enroll(), children: [busy ? _jsx(ProgressMark, { state: \"busy\" }) : null, _jsx(\"span\", { className: \"ca-swap\", children: enrollLabel }, enrollLabel)] })), course.enrollmentStatus === \"closed\" ? _jsx(\"a\", { className: \"ca-button\", href: \"/academy/dashboard\", children: \"Open My Learning\" }) : null, api.scope.accountDenied ? _jsx(Notice, { copy: publicErrorCopy(\"Sign in with Cedros Login to continue.\") }) : state && (state.tone !== \"success\" || (accountReady && enrolled)) ? _jsx(Notice, { copy: state }) : null, enrolled ? _jsx(\"a\", { className: \"ca-button ca-button-primary\", href: \"/academy/dashboard\", children: \"Open My Learning\" }) : null] }));\n}\nfunction CertificateLookup({ api }) {\n    const [value, setValue] = useState(\"\");\n    const [active, setActive] = useState(\"\");\n    const verification = useFormValidation();\n    const error = verification.errors.reference;\n    const errorId = useId();\n    return (_jsxs(PublicShell, { title: \"Verify certificate\", eyebrow: \"Public verification\", description: \"Confirm a course completion certificate using its reference.\", className: \"ca-verification-surface\", children: [_jsxs(\"form\", { ref: verification.ref, noValidate: true, className: \"ca-card ca-lookup-form\", onSubmit: (event) => { event.preventDefault(); if (verification.validate({ reference: value.trim().length < 6 ? \"Enter at least 6 characters from the certificate reference.\" : \"\" }))\n                    setActive(value.trim()); }, children: [_jsxs(\"label\", { className: \"ca-field\", children: [_jsxs(\"span\", { children: [\"Certificate reference \", _jsx(\"span\", { className: \"ca-muted\", children: \"(required)\" })] }), _jsx(\"input\", { \"aria-label\": \"Certificate ID\", \"aria-describedby\": error ? errorId : undefined, \"aria-invalid\": error ? true : undefined, value: value, onChange: (event) => setValue(event.target.value), required: true }), error ? _jsx(\"span\", { id: errorId, className: \"ca-field-error\", children: error }) : null] }), _jsx(\"button\", { className: \"ca-button ca-button-primary\", type: \"submit\", children: \"Verify\" })] }), active ? _jsx(CertificateResult, { api: api, certificateId: active, embedded: true }) : null] }));\n}\nfunction CertificateResult(props) {\n    const state = usePublicData(() => props.api.get(`/public/v1/certificates/${encodeURIComponent(props.certificateId)}/verify`, false), [props.api, props.certificateId], \"anonymous\");\n    const content = (_jsx(PublicStateBlock, { state: state, loadingLayout: \"form\", loadingTitle: \"Checking the certificate\", children: (data) => (_jsxs(\"article\", { className: \"ca-card ca-verification-result\", children: [_jsxs(\"div\", { className: \"ca-card-header\", children: [_jsxs(\"h3\", { className: \"ca-verification-heading\", children: [data.valid ? _jsxs(\"svg\", { width: \"24\", height: \"24\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", \"aria-hidden\": \"true\", children: [_jsx(\"circle\", { cx: \"12\", cy: \"12\", r: \"9\" }), _jsx(\"path\", { d: \"m8 12 3 3 5-6\" })] }) : null, data.valid ? \"Certificate verified\" : \"Certificate not valid\"] }), !data.valid ? _jsx(Status, { value: String(data.certificate.status ?? \"invalid\") }) : null] }), _jsx(\"p\", { children: data.valid ? \"This record confirms completion of the course below.\" : \"This certificate does not confirm completion. Ask the issuing course team to check the record.\" }), _jsx(\"p\", { className: \"ca-verified-course\", children: String(data.course?.title ?? \"Course title unavailable\") }), _jsxs(\"p\", { className: \"ca-muted\", children: [\"Issued \", formatCertificateDate(typeof data.certificate.issuedAt === \"string\" || typeof data.certificate.issuedAt === \"number\" ? data.certificate.issuedAt : null)] }), _jsxs(\"details\", { className: \"ca-full-copy ca-verification-reference\", children: [_jsx(\"summary\", { children: \"Certificate reference\" }), _jsx(\"p\", { children: String(data.certificate.certificateId ?? props.certificateId) })] }), !props.embedded ? _jsx(\"a\", { className: \"ca-button\", href: \"/academy/certificates/verify\", children: \"Check another certificate\" }) : null] })) }));\n    if (props.embedded)\n        return content;\n    return _jsx(PublicShell, { title: \"Verify certificate\", eyebrow: \"Public verification\", description: \"Confirm this course completion and its current status.\", className: \"ca-verification-surface\", children: content });\n}\nfunction CurriculumList({ curriculum }) {\n    const sections = curriculum?.sections ?? [];\n    if (sections.length === 0)\n        return _jsx(\"p\", { className: \"ca-muted\", children: \"Curriculum outline is not published yet.\" });\n    return (_jsx(\"div\", { className: \"ca-curriculum\", children: sections.map((section, sectionIndex) => (_jsxs(\"section\", { children: [_jsx(\"h4\", { children: section.title }), _jsx(\"ol\", { children: (section.lessons ?? []).slice(0, 6).map((lesson, lessonIndex) => _jsx(\"li\", { children: _jsx(OutlineLessonTitle, { title: lesson.title }) }, lesson.lessonId ?? `${lesson.title}-${lessonIndex}`)) }), (section.lessons?.length ?? 0) > 6 ? _jsxs(\"details\", { className: \"ca-full-copy\", children: [_jsxs(\"summary\", { children: [(section.lessons ?? []).length - 6, \" more lessons\"] }), _jsx(\"ol\", { start: 7, children: (section.lessons ?? []).slice(6).map((lesson, lessonIndex) => _jsx(\"li\", { children: _jsx(OutlineLessonTitle, { title: lesson.title }) }, lesson.lessonId ?? `${lesson.title}-${lessonIndex}`)) })] }) : null] }, section.sectionId ?? `${section.title}-${sectionIndex}`))) }));\n}\nfunction OutlineLessonTitle({ title }) {\n    return title.length > 160 ? _jsxs(_Fragment, { children: [_jsx(\"span\", { className: \"ca-outline-long-title\", children: title }), _jsxs(\"details\", { className: \"ca-full-copy\", children: [_jsx(\"summary\", { children: \"Full lesson title\" }), _jsx(\"p\", { children: title })] })] }) : _jsx(_Fragment, { children: title });\n}\nfunction authoredProps(props) {\n    return props.block?.props ?? props.props ?? {};\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":157,"specifier":"react","start":152},{"dynamic":false,"end":222,"specifier":"../shared/formValidation.js","start":195},{"dynamic":false,"end":260,"specifier":"./api.js","start":252},{"dynamic":false,"end":338,"specifier":"./authority.js","start":324},{"dynamic":false,"end":418,"specifier":"../shared/authority.js","start":396},{"dynamic":false,"end":456,"specifier":"./api.js","start":448},{"dynamic":false,"end":503,"specifier":"./authority.js","start":489},{"dynamic":false,"end":552,"specifier":"./publicData.js","start":537},{"dynamic":false,"end":601,"specifier":"./publicData.js","start":586},{"dynamic":false,"end":643,"specifier":"../shared/ui.js","start":628},{"dynamic":false,"end":721,"specifier":"../shared/links.js","start":703},{"dynamic":false,"end":781,"specifier":"../shared/courseAccess.js","start":756},{"dynamic":false,"end":831,"specifier":"./openCourse.js","start":816},{"dynamic":false,"end":880,"specifier":"./learnerPlayer.js","start":862},{"dynamic":false,"end":983,"specifier":"./publicState.js","start":967},{"dynamic":false,"end":1157,"specifier":"./publicUi.js","start":1144},{"dynamic":false,"end":1217,"specifier":"../shared/courseArtwork.js","start":1191},{"dynamic":false,"end":1285,"specifier":"./certificateCredential.js","start":1259},{"dynamic":false,"end":1348,"specifier":"./certificateState.js","start":1327}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/certificateCredential.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useId, useState } from \"react\";\nimport { RetiredOperation } from \"../shared/authority.js\";\nimport { useOperation } from \"./authority.js\";\nimport { Status } from \"../shared/ui.js\";\nimport { Notice } from \"./publicUi.js\";\nimport { formatCertificateDate } from \"./certificateState.js\";\nexport function CertificateCredential(props) {\n    const [copyState, setCopyState] = useState(\"idle\");\n    const headingId = useId();\n    const holderName = props.certificate.studentName?.trim() || props.holderName?.trim() || \"\";\n    const operation = useOperation(props.api.scope);\n    const verificationPath = `${new URL(props.api.scope.site).origin}/academy/certificates/verify?certificateId=${encodeURIComponent(props.certificate.certificateId)}`;\n    const revoked = props.certificate.status === \"revoked\";\n    async function present(action) {\n        const ticket = operation.start(action);\n        if (!ticket)\n            return;\n        const link = verificationPath;\n        const certificateId = props.certificate.certificateId;\n        setCopyState(\"idle\");\n        try {\n            await props.api.account();\n            if (!operation.current(ticket))\n                return;\n            if (action === \"verify\") {\n                window.location.assign(link);\n                return;\n            }\n            if (action === \"print\") {\n                printCertificate(certificateId);\n                return;\n            }\n            if (typeof navigator === \"undefined\" || !navigator.clipboard?.writeText)\n                throw new Error(\"Clipboard access is unavailable.\");\n            await navigator.clipboard.writeText(link);\n            if (operation.current(ticket))\n                setCopyState(\"copied\");\n        }\n        catch (error) {\n            if (operation.current(ticket) && !(error instanceof RetiredOperation))\n                setCopyState(\"failed\");\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    return (_jsxs(\"article\", { className: \"ca-card ca-certificate\", \"aria-labelledby\": headingId, children: [_jsxs(\"div\", { className: \"ca-certificate-heading\", children: [_jsxs(\"div\", { children: [_jsx(\"span\", { className: \"ca-kicker\", children: \"Certificate of completion\" }), _jsx(\"h3\", { id: headingId, children: props.course?.title ?? \"Academy course\" })] }), _jsx(Status, { value: props.certificate.status })] }), _jsx(\"p\", { className: \"ca-certificate-statement\", children: \"This certifies that\" }), holderName ? (_jsx(\"strong\", { className: \"ca-certificate-holder\", children: holderName })) : (_jsx(Notice, { copy: {\n                    tone: \"warning\",\n                    title: \"Learner name unavailable\",\n                    message: \"This older certificate can still be verified, but the learner should contact the site team before presenting it.\"\n                } })), _jsx(\"p\", { className: \"ca-certificate-statement\", children: \"completed the course shown above.\" }), revoked ? _jsx(Notice, { copy: { tone: \"warning\", title: \"Certificate revoked\", message: \"This credential is no longer valid. Its public verification page shows the current status.\" } }) : null, _jsxs(\"dl\", { className: \"ca-certificate-details\", children: [_jsxs(\"div\", { children: [_jsx(\"dt\", { children: \"Issued\" }), _jsx(\"dd\", { children: formatCertificateDate(props.certificate.issuedAt) })] }), _jsxs(\"div\", { children: [_jsx(\"dt\", { children: \"Certificate reference\" }), _jsx(\"dd\", { children: props.certificate.certificateId })] })] }), _jsx(\"p\", { className: \"ca-muted\", children: \"The public verification page confirms the reference, course, issue date, and current status without exposing the learner's account identity.\" }), _jsxs(\"div\", { className: \"ca-public-actions ca-certificate-actions\", children: [_jsx(\"a\", { className: \"ca-button ca-button-primary\", href: verificationPath, onClick: (event) => { event.preventDefault(); void present(\"verify\"); }, children: \"Verify certificate\" }), _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(operation.busy), onClick: () => void present(\"copy\"), children: \"Copy verification link\" }), _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(operation.busy), onClick: () => void present(\"print\"), children: \"Print or save as PDF\" })] }), copyState === \"copied\" ? _jsx(\"p\", { className: \"ca-muted\", role: \"status\", children: \"Verification link copied.\" }) : null, copyState === \"failed\" ? _jsx(\"p\", { className: \"ca-field-error\", role: \"alert\", children: \"Copying is unavailable. Open Verify certificate and copy the address from the browser.\" }) : null] }));\n}\nfunction printCertificate(certificateId) {\n    if (typeof window === \"undefined\" || typeof document === \"undefined\")\n        return;\n    const attribute = \"data-ca5ss4b-academy-print-certificate\";\n    const previous = document.body.getAttribute(attribute);\n    const restore = () => {\n        if (previous === null)\n            document.body.removeAttribute(attribute);\n        else\n            document.body.setAttribute(attribute, previous);\n    };\n    document.body.setAttribute(attribute, certificateId);\n    window.addEventListener(\"afterprint\", restore, { once: true });\n    window.print();\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":102,"specifier":"react","start":97},{"dynamic":false,"end":161,"specifier":"../shared/authority.js","start":139},{"dynamic":false,"end":208,"specifier":"./authority.js","start":194},{"dynamic":false,"end":250,"specifier":"../shared/ui.js","start":235},{"dynamic":false,"end":290,"specifier":"./publicUi.js","start":277},{"dynamic":false,"end":353,"specifier":"./certificateState.js","start":332}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/certificateState.js","kind":"module","text":"import { certificateVerificationUrl } from \"../shared/links.js\";\nexport { certificateVerificationUrl } from \"../shared/links.js\";\nexport function absoluteCertificateVerificationUrl(certificateId) {\n    const path = certificateVerificationUrl(certificateId);\n    return typeof window === \"undefined\" ? path : new URL(path, window.location.origin).toString();\n}\nexport function formatCertificateDate(value) {\n    if (value === null || value === undefined || value === \"\")\n        return \"Date unavailable\";\n    const numeric = Number(value);\n    const date = Number.isFinite(numeric) ? new Date(numeric * 1000) : new Date(String(value));\n    return Number.isNaN(date.getTime()) ? String(value) : date.toLocaleDateString();\n}\n","imports":[{"dynamic":false,"end":62,"specifier":"../shared/links.js","start":44},{"dynamic":false,"end":127,"specifier":"../shared/links.js","start":109}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/courseSubmission.js","kind":"module","text":"import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useId, useRef, useState } from \"react\";\nimport { useFormValidation } from \"../shared/formValidation.js\";\nimport { courseCatalogUrl } from \"../shared/links.js\";\nimport { Status } from \"../shared/ui.js\";\nimport { usePublicApi } from \"./authority.js\";\nimport { usePublicData } from \"./publicData.js\";\nimport { proposalSlug } from \"../shared/writeAttempt.js\";\nimport { useRetainedWrite } from \"../shared/retainedWrite.js\";\nimport { RetiredOperation } from \"../shared/authority.js\";\nimport { AccountBoundary, useOperation } from \"./authority.js\";\nimport { Notice, PublicPageControls, PublicShell, PublicStateBlock } from \"./publicUi.js\";\nconst emptyDraft = { title: \"\", slug: \"\", description: \"\", lessonTitle: \"Introduction\", lessonBody: \"\" };\nconst submissionPageSize = 10;\nexport function CourseSubmissionBlock(props) {\n    return _jsx(AccountBoundary, { props: props, children: _jsx(CourseSubmissionContent, { ...props }) });\n}\nfunction CourseSubmissionContent(props) {\n    const api = usePublicApi(props);\n    const [draft, setDraft] = useState(emptyDraft);\n    const editRevision = useRef(0);\n    const renderEditRevision = editRevision.current;\n    const [idempotencyKey, setIdempotencyKey] = useState(newIdempotencyKey);\n    const operation = useOperation(api.scope);\n    const saving = Boolean(operation.busy);\n    const [formOpen, setFormOpen] = useState(false);\n    const [error, setError] = useState(\"\");\n    const [success, setSuccess] = useState(\"\");\n    const [refreshVersion, setRefreshVersion] = useState(0);\n    const [offset, setOffset] = useState(0);\n    const submissionForm = useFormValidation();\n    const state = usePublicData(() => api.get(`/me/v1/course-submissions?limit=${submissionPageSize}&offset=${offset}`, true), [api, offset, refreshVersion]);\n    const recovery = useRetainedWrite(api.scope, () => {\n        editRevision.current++;\n        setDraft(emptyDraft);\n        setFormOpen(false);\n        setIdempotencyKey(newIdempotencyKey());\n        setError(\"\");\n        setSuccess(\"Your course was submitted. It will remain private until the site team accepts and publishes it.\");\n        setOffset(0);\n        setRefreshVersion(value => value + 1);\n    });\n    const original = recovery.original;\n    if (state.loading || state.error) {\n        return (_jsx(PublicShell, { title: \"Submit a course\", eyebrow: \"Cedros Login required\", description: \"Sign in before sending a course to the site team for review.\", children: _jsx(PublicStateBlock, { state: state, loadingLayout: \"form\", loadingTitle: \"Checking your Cedros Login session\", children: () => _jsx(_Fragment, {}) }) }));\n    }\n    async function submitCourse() {\n        if (renderEditRevision !== editRevision.current)\n            return;\n        const ticket = operation.start();\n        if (!ticket)\n            return;\n        if (!original && !submissionForm.validate({ title: draft.title.trim().length < 3 ? \"Enter a course title of at least 3 characters.\" : \"\", slug: !proposalSlug(draft.slug || draft.title) ? \"Use a URL slug of 3–96 letters, numbers or single hyphens.\" : \"\", lessonTitle: !draft.lessonTitle.trim() ? \"Enter the first lesson title.\" : \"\", lessonBody: !draft.lessonBody.trim() ? \"Add content for the first lesson.\" : \"\" })) {\n            operation.finish(ticket);\n            return;\n        }\n        setError(\"\");\n        setSuccess(\"\");\n        try {\n            const slug = proposalSlug(draft.slug || draft.title);\n            if (!original && !slug)\n                throw new Error(\"Use a URL slug of 3–96 letters, numbers or single hyphens.\");\n            const document = {\n                schemaVersion: 1,\n                courses: [{\n                        title: draft.title.trim(),\n                        slug,\n                        description: draft.description.trim(),\n                        listed: true,\n                        pricing: { type: \"free\", amountCents: 0, currency: \"USD\" },\n                        sections: [{\n                                sectionId: \"section:introduction\",\n                                title: \"Introduction\",\n                                lessons: [{\n                                        lessonId: \"lesson:introduction\",\n                                        title: draft.lessonTitle.trim(),\n                                        type: \"text\",\n                                        body: draft.lessonBody.trim()\n                                    }]\n                            }]\n                    }]\n            };\n            const owner = api.scope.owner;\n            if (!owner || !operation.current(ticket))\n                return;\n            const revision = editRevision.current;\n            const { intent, attempt } = recovery.begin({ ...document, expectedAccountId: owner }, idempotencyKey, ticket, () => operation.current(ticket) && revision === editRevision.current);\n            await api.post(\"/me/v1/course-submissions\", intent.body, { \"idempotency-key\": intent.key }, attempt);\n        }\n        catch (caught) {\n            if (operation.current(ticket) && renderEditRevision === editRevision.current && !(caught instanceof RetiredOperation))\n                setError(recovery.failureMessage(caught));\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    const hasHistory = Boolean(state.data?.submissions.length) || offset > 0;\n    const history = (_jsxs(\"section\", { className: \"ca-submission-history\", children: [_jsx(\"h3\", { children: \"Your submissions\" }), _jsx(PublicStateBlock, { state: state, empty: offset === 0 && state.data?.submissions.length === 0, emptyTitle: \"No course submissions yet\", emptyMessage: \"Your submitted courses and review status will appear here.\", children: (data) => (_jsx(\"div\", { className: \"ca-submission-list\", children: data.submissions.map((submission) => (_jsxs(\"article\", { className: \"ca-submission-row\", children: [_jsxs(\"div\", { className: \"ca-card-header\", children: [_jsx(\"h4\", { children: submission.course.title }), _jsx(Status, { value: submission.status })] }), _jsx(SubmissionOutcome, { submission: submission }), submission.reviewNote ? _jsxs(\"p\", { className: \"ca-muted\", children: [\"Review note: \", submission.reviewNote] }) : null] }, submission.submissionId))) })) }), _jsx(PublicPageControls, { hasMore: (state.data?.submissions.length ?? 0) === submissionPageSize, label: \"Submission\", offset: offset, pageSize: submissionPageSize, onChange: setOffset })] }));\n    const proposalForm = (_jsxs(\"form\", { ref: submissionForm.ref, noValidate: true, className: \"ca-card ca-inline-stack ca-submission-form\", onSubmit: (event) => { event.preventDefault(); void submitCourse(); }, children: [_jsx(\"h3\", { children: \"Your course idea\" }), original ? _jsx(\"p\", { role: \"status\", children: \"Submission result unconfirmed. The original account, key and proposal are retained. Retry confirms that original submission.\" }) : null, _jsx(SubmissionField, { disabled: saving || Boolean(original), label: \"Course title\", required: true, error: submissionForm.errors.title, value: draft.title, onChange: (title) => updateDraft({ title }) }), _jsx(SubmissionField, { disabled: saving || Boolean(original), label: \"Course description\", value: draft.description, onChange: (description) => updateDraft({ description }), textarea: true }), _jsx(\"h3\", { children: \"A sample lesson\" }), _jsx(\"p\", { className: \"ca-muted\", children: \"Give the site team a complete text lesson to review.\" }), _jsx(SubmissionField, { disabled: saving || Boolean(original), label: \"First lesson title\", required: true, error: submissionForm.errors.lessonTitle, value: draft.lessonTitle, onChange: (lessonTitle) => updateDraft({ lessonTitle }) }), _jsx(SubmissionField, { disabled: saving || Boolean(original), label: \"First lesson content\", required: true, error: submissionForm.errors.lessonBody, value: draft.lessonBody, onChange: (lessonBody) => updateDraft({ lessonBody }), textarea: true }), _jsxs(\"details\", { className: \"ca-disclosure\", open: submissionForm.errors.slug ? true : undefined, children: [_jsx(\"summary\", { children: \"Custom course URL\" }), _jsx(\"div\", { className: \"ca-disclosure__body\", children: _jsx(SubmissionField, { disabled: saving || Boolean(original), label: \"URL slug\", error: submissionForm.errors.slug, value: draft.slug, onChange: (slug) => updateDraft({ slug }), help: \"Optional; generated from the title when blank.\" }) })] }), _jsx(\"button\", { className: \"ca-button ca-button-primary\", disabled: saving, type: \"submit\", children: saving ? \"Submitting…\" : original ? \"Retry original submission\" : \"Submit for review\" })] }));\n    return (_jsxs(PublicShell, { title: hasHistory ? \"Your course submissions\" : \"Submit a course\", eyebrow: \"\", description: hasHistory ? \"Check the site team's decisions or propose your next course.\" : \"Share a free text course and a complete sample lesson for the site team to review.\", className: \"ca-submission-surface\", children: [success ? _jsx(Notice, { copy: { tone: \"success\", title: \"Course submitted\", message: success } }) : null, error ? _jsx(Notice, { copy: { tone: \"error\", title: original ? \"Submission result unconfirmed\" : \"Submission failed\", message: error } }) : null, hasHistory ? history : null, hasHistory ? _jsxs(\"details\", { className: \"ca-disclosure ca-new-submission\", open: formOpen || Boolean(error) || Boolean(original), onToggle: (event) => setFormOpen(event.currentTarget.open), children: [_jsx(\"summary\", { children: \"Propose a new course\" }), proposalForm] }) : proposalForm] }));\n    function updateDraft(patch) {\n        if (operation.pending() || recovery.locked())\n            return;\n        editRevision.current++;\n        setDraft((current) => ({ ...current, ...patch }));\n        setIdempotencyKey(newIdempotencyKey());\n    }\n}\nfunction SubmissionOutcome({ submission }) {\n    if (submission.status === \"submitted\")\n        return _jsx(\"p\", { className: \"ca-muted\", children: \"Awaiting a decision from the site team.\" });\n    if (submission.status === \"rejected\")\n        return _jsx(\"p\", { className: \"ca-muted\", children: \"The site team did not accept this course.\" });\n    const course = submission.acceptedCourse;\n    if (!course || [\"draft\", \"needs_review\", \"approved\"].includes(course.status)) {\n        return _jsx(\"p\", { className: \"ca-muted\", children: \"Accepted as an owner-controlled draft. The site team is preparing the learner experience.\" });\n    }\n    if (course.status === \"published\" && course.slug) {\n        return _jsxs(\"p\", { className: \"ca-muted\", children: [\"The course is now public. \", _jsx(\"a\", { href: courseCatalogUrl(course.slug), children: \"Open course\" })] });\n    }\n    if (course.status === \"private\")\n        return _jsx(\"p\", { className: \"ca-muted\", children: \"The site team launched this course for invited learners only.\" });\n    if ([\"archived\", \"retired\", \"suspended\"].includes(course.status))\n        return _jsx(\"p\", { className: \"ca-muted\", children: \"The accepted course is not currently available to new learners.\" });\n    return _jsx(\"p\", { className: \"ca-muted\", children: \"Accepted by the site team. Current publication status is unavailable.\" });\n}\nfunction SubmissionField(props) {\n    const id = useId();\n    const fieldAttrs = { disabled: props.disabled, required: props.required, \"aria-label\": props.label, \"aria-invalid\": props.error ? true : undefined, \"aria-describedby\": props.error ? `${id}-error` : props.help ? `${id}-help` : undefined };\n    return (_jsxs(\"label\", { className: \"ca-field\", children: [_jsxs(\"span\", { children: [props.label, props.required ? _jsx(\"span\", { className: \"ca-muted\", children: \" (required)\" }) : null] }), props.textarea ? (_jsx(\"textarea\", { ...fieldAttrs, rows: 5, value: props.value, onChange: (event) => props.onChange(event.target.value) })) : (_jsx(\"input\", { ...fieldAttrs, value: props.value, onChange: (event) => props.onChange(event.target.value) })), props.error ? _jsx(\"small\", { id: `${id}-error`, className: \"ca-field-error\", children: props.error }) : props.help ? _jsx(\"small\", { id: `${id}-help`, className: \"ca-muted\", children: props.help }) : null] }));\n}\nfunction newIdempotencyKey() {\n    if (typeof globalThis.crypto?.randomUUID === \"function\")\n        return globalThis.crypto.randomUUID();\n    return `academy-${Date.now()}-${Math.random().toString(36).slice(2)}`;\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":133,"specifier":"react","start":128},{"dynamic":false,"end":198,"specifier":"../shared/formValidation.js","start":171},{"dynamic":false,"end":253,"specifier":"../shared/links.js","start":235},{"dynamic":false,"end":295,"specifier":"../shared/ui.js","start":280},{"dynamic":false,"end":342,"specifier":"./authority.js","start":328},{"dynamic":false,"end":391,"specifier":"./publicData.js","start":376},{"dynamic":false,"end":449,"specifier":"../shared/writeAttempt.js","start":424},{"dynamic":false,"end":512,"specifier":"../shared/retainedWrite.js","start":486},{"dynamic":false,"end":571,"specifier":"../shared/authority.js","start":549},{"dynamic":false,"end":635,"specifier":"./authority.js","start":621},{"dynamic":false,"end":726,"specifier":"./publicUi.js","start":713}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/learnerAnnouncements.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nimport { useLearningNavigation } from \"./authority.js\";\nimport { usePublicData } from \"./publicData.js\";\nimport { LearnerLessonBody } from \"../shared/lessonContent.js\";\nimport { PublicPageControls, PublicStateBlock } from \"./publicUi.js\";\nexport function LearnerAnnouncements(props) {\n    const links = useLearningNavigation(props.api, props.courseId);\n    const [open, setOpen] = useState(false);\n    const [offset, setOffset] = useState(0);\n    const state = usePublicData(() => open ? props.load(offset, 20) : Promise.resolve({ announcements: [], hasMore: false }), [props.api, props.courseId, offset, open]);\n    const refresh = state.retry ?? (() => undefined);\n    return _jsxs(\"details\", { className: \"ca-disclosure ca-learner-announcements\", onToggle: (event) => { if (event.currentTarget instanceof HTMLDetailsElement && event.target === event.currentTarget)\n            setOpen(event.currentTarget.open); }, children: [_jsx(\"summary\", { children: \"Course team announcements\" }), _jsxs(\"div\", { className: \"ca-disclosure__body ca-inline-stack\", children: [links.error ? _jsx(\"p\", { role: \"alert\", children: links.error }) : null, open ? _jsx(PublicStateBlock, { state: { ...state, retry: refresh }, empty: state.data?.announcements.length === 0, emptyTitle: offset ? \"No older announcements\" : \"No course announcements yet\", emptyMessage: \"Notices from your course team appear here when you return.\", children: data => _jsx(\"div\", { className: \"ca-inline-stack\", children: data.announcements.map((item, index) => _jsxs(\"article\", { className: \"ca-feedback-item\", children: [_jsx(\"h4\", { children: item.title || \"Course announcement\" }), _jsx(LearnerLessonBody, { onNavigate: links.navigate, body: item.body, headingLevel: 5 })] }, item.announcementId || `${offset}-${index}`)) }) }) : null, !state.loading && !state.error ? _jsx(PublicPageControls, { hasMore: state.data?.hasMore ?? false, label: \"Course announcements\", offset: offset, pageSize: 20, onChange: setOffset }) : null, _jsx(\"button\", { type: \"button\", className: \"ca-button\", disabled: state.loading, onClick: refresh, children: \"Reload announcements\" })] })] });\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":95,"specifier":"react","start":90},{"dynamic":false,"end":151,"specifier":"./authority.js","start":137},{"dynamic":false,"end":200,"specifier":"./publicData.js","start":185},{"dynamic":false,"end":264,"specifier":"../shared/lessonContent.js","start":238},{"dynamic":false,"end":334,"specifier":"./publicUi.js","start":321}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/learnerPlayer.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useCallback, useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport { enrollmentHasAccess, RetiredOperation } from \"../shared/authority.js\";\nimport { useOperation, useLearningNavigation } from \"./authority.js\";\nimport { Status } from \"../shared/ui.js\";\nimport { LearnerLessonBody } from \"../shared/lessonContent.js\";\nimport { enrollmentAccessCopy, publicErrorCopy } from \"./publicState.js\";\nimport { LessonOutline, Notice, ProgressMark } from \"./publicUi.js\";\nimport { CertificateCredential } from \"./certificateCredential.js\";\nimport { LearningTools } from \"./learningTools.js\";\nimport { LearnerAnnouncements } from \"./learnerAnnouncements.js\";\nexport function PlayerView(props) {\n    const [authorizedDetail, setAuthorizedDetail] = useState({ source: props.detail, value: props.detail });\n    const detail = authorizedDetail.source === props.detail ? authorizedDetail.value : props.detail;\n    const links = useLearningNavigation(props.api, detail.course.courseId);\n    const headingId = useId();\n    const [enrollmentStatus, setEnrollmentStatus] = useState(detail.enrollment.status);\n    const access = enrollmentAccessCopy(enrollmentHasAccess({ ...detail.enrollment, status: enrollmentStatus }) && !props.api.scope.knownLocked(detail.course.courseId) ? enrollmentStatus : \"locked\");\n    const lessons = useMemo(() => (detail.curriculum?.sections ?? []).flatMap((section) => (section.lessons ?? [])\n        .filter((lesson) => Boolean(lesson.lessonId))\n        .map((lesson) => ({ ...lesson, sectionTitle: section.title }))), [detail.curriculum]);\n    const initialCompleted = detail.progress?.completedLessonIds ?? detail.enrollment.completedLessonIds ?? [];\n    const initialLesson = lessons.find((lesson) => !initialCompleted.includes(lesson.lessonId)) ?? lessons[0];\n    const [selectedLessonId, setSelectedLessonId] = useState(initialLesson?.lessonId ?? \"\");\n    const [completedLessonIds, setCompletedLessonIds] = useState(initialCompleted);\n    const [progressPercent, setProgressPercent] = useState(detail.progress?.progressPercent ?? detail.enrollment.progressPercent ?? 0);\n    const focusRevision = useRef(0);\n    const focusSource = useRef(props.detail);\n    if (focusSource.current !== props.detail) {\n        focusSource.current = props.detail;\n        focusRevision.current++;\n    }\n    const lessonHeading = useRef(null);\n    const operation = useOperation(props.api.scope, detail.course.courseId, false, props.detail);\n    const busy = Boolean(operation.busy);\n    const [notice, setNotice] = useState(null);\n    const certificateSource = useRef(null);\n    const [certificate, setCertificate] = useState(null);\n    const [toolsDirty, setToolsDirty] = useState(false);\n    const renderTicket = props.api.scope.capture(detail.course.courseId);\n    const onToolsDirty = useCallback((dirty) => {\n        if (!props.api.scope.current(renderTicket))\n            return;\n        setToolsDirty(dirty);\n        props.onDraftChange?.(dirty);\n    }, [props.onDraftChange, props.api, detail.course.courseId, renderTicket.epoch, renderTicket.lineage, renderTicket.courseVersion]);\n    useEffect(() => {\n        setEnrollmentStatus(detail.enrollment.status);\n        setCompletedLessonIds(detail.progress?.completedLessonIds ?? detail.enrollment.completedLessonIds ?? []);\n        setProgressPercent(detail.progress?.progressPercent ?? detail.enrollment.progressPercent ?? 0);\n    }, [detail]);\n    const ownerTicket = props.api.scope.capture();\n    useEffect(() => {\n        if ((!enrollmentHasAccess(detail.enrollment) || props.api.scope.knownLocked(detail.course.courseId)) && props.api.scope.authorizedEpoch === props.api.scope.epoch && props.api.scope.current(ownerTicket)) {\n            setToolsDirty(false);\n            props.onDraftChange?.(false);\n        }\n    }, [props.api, props.api.scope, props.api.scope.version, detail.enrollment, detail.course.courseId, props.onDraftChange]);\n    if (!access.canOpen)\n        return _jsx(Notice, { copy: access });\n    if (lessons.length === 0)\n        return _jsx(Notice, { copy: { tone: \"neutral\", title: \"No lessons available\", message: \"The course curriculum has not been published yet.\" } });\n    const selectedIndex = Math.max(0, lessons.findIndex((lesson) => lesson.lessonId === selectedLessonId));\n    const selectedLesson = lessons[selectedIndex];\n    const completed = completedLessonIds.includes(selectedLesson.lessonId);\n    function scheduleFocus(ticket) {\n        const revision = ++focusRevision.current;\n        requestAnimationFrame(() => { if (revision === focusRevision.current && props.api.scope.current(ticket))\n            lessonHeading.current?.focus(); });\n    }\n    async function selectLesson(lessonId) {\n        if (toolsDirty || props.api.scope.hasDirty(detail.course.courseId))\n            return;\n        const ticket = operation.start(\"navigation\");\n        if (!ticket)\n            return;\n        try {\n            const current = await props.api.get(`/me/v1/enrollments/${encodeURIComponent(detail.enrollment.enrollmentId)}/player`, true);\n            if (!operation.current(ticket))\n                return;\n            setAuthorizedDetail({ source: props.detail, value: current });\n            setSelectedLessonId(lessonId);\n            setNotice(null);\n            scheduleFocus(ticket.ticket);\n        }\n        catch (error) {\n            if (operation.current(ticket) && !(error instanceof RetiredOperation))\n                setNotice(publicErrorCopy(error instanceof Error ? error.message : undefined));\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    async function completeLesson() {\n        const ticket = operation.start();\n        if (!ticket)\n            return;\n        if (toolsDirty || props.api.scope.hasDirty(detail.course.courseId) || !enrollmentHasAccess(detail.enrollment)) {\n            operation.finish(ticket);\n            return;\n        }\n        setNotice(null);\n        try {\n            const response = await props.onComplete(selectedLesson.lessonId);\n            if (!operation.current(ticket))\n                return;\n            setEnrollmentStatus(response.enrollment.status);\n            setCompletedLessonIds(response.progress.completedLessonIds ?? []);\n            setProgressPercent(response.progress.progressPercent ?? 0);\n            const nextDetail = response.player ?? detail;\n            setAuthorizedDetail({ source: props.detail, value: nextDetail });\n            certificateSource.current = nextDetail;\n            setCertificate(response.certificate ?? null);\n            const courseCompleted = response.progress.progressPercent === 100;\n            const nextLesson = (nextDetail.curriculum?.sections ?? []).flatMap(section => section.lessons ?? []).find((lesson) => !(response.progress.completedLessonIds ?? []).includes(lesson.lessonId));\n            if (!courseCompleted && nextLesson) {\n                setSelectedLessonId(nextLesson.lessonId);\n                scheduleFocus(ticket.ticket);\n            }\n            setNotice(courseCompleted\n                ? { tone: \"success\", title: \"Course completed\", message: response.certificate?.status === \"issued\" ? \"Your certificate is ready to present and share.\" : \"You have completed every lesson. Your learning progress has been saved.\" }\n                : { tone: \"success\", title: \"Lesson completed\", message: \"Your learning progress has been saved.\" });\n        }\n        catch (error) {\n            if (operation.current(ticket) && !(error instanceof RetiredOperation))\n                setNotice(publicErrorCopy(error instanceof Error ? error.message : undefined));\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    const remainingLessons = lessons.filter((lesson) => !completedLessonIds.includes(lesson.lessonId)).length;\n    const completeLabel = busy ? \"Saving…\" : completed ? \"Completed\" : remainingLessons === 1 ? \"Complete course\" : \"Complete and continue\";\n    return (_jsxs(\"article\", { className: \"ca-card ca-player\", children: [_jsxs(\"div\", { className: \"ca-card-header\", children: [_jsx(\"div\", { children: _jsxs(\"h3\", { children: [\"Lesson \", selectedIndex + 1, \" of \", lessons.length] }) }), enrollmentStatus !== \"active\" ? _jsx(Status, { value: enrollmentStatus }) : null] }), _jsxs(\"div\", { className: \"ca-player-layout\", children: [_jsx(LessonOutline, { progress: progressPercent, children: _jsx(\"nav\", { className: \"ca-player-nav\", \"aria-label\": \"Course lessons\", children: (detail.curriculum?.sections ?? []).map((section, sectionIndex) => (_jsxs(\"section\", { children: [_jsx(\"h4\", { children: section.title }), _jsx(\"ol\", { children: (section.lessons ?? []).filter((lesson) => Boolean(lesson.lessonId)).map((lesson) => (_jsx(\"li\", { children: _jsxs(\"button\", { \"aria-current\": lesson.lessonId === selectedLesson.lessonId ? \"step\" : undefined, className: \"ca-player-lesson\", disabled: busy || toolsDirty, onClick: () => { void selectLesson(lesson.lessonId); }, type: \"button\", children: [_jsx(\"span\", { className: \"ca-lesson-number\", \"aria-hidden\": \"true\", children: String(lessons.findIndex((item) => item.lessonId === lesson.lessonId) + 1).padStart(2, \"0\") }), _jsx(\"span\", { className: \"ca-lesson-name\", children: lesson.title }), _jsx(\"span\", { className: \"ca-lesson-completion\", role: \"img\", \"aria-label\": completedLessonIds.includes(lesson.lessonId) ? \"Completed\" : \"Not completed\", children: completedLessonIds.includes(lesson.lessonId) ? _jsx(ProgressMark, { state: \"done\" }) : null })] }) }, lesson.lessonId))) })] }, section.sectionId ?? `${section.title}-${sectionIndex}`))) }) }), _jsxs(\"section\", { className: \"ca-lesson\", \"aria-labelledby\": headingId, children: [_jsx(\"span\", { className: \"ca-kicker\", children: selectedLesson.sectionTitle }), _jsx(\"h4\", { id: headingId, ref: lessonHeading, tabIndex: -1, children: selectedLesson.title }), selectedLesson.body ? _jsx(LearnerLessonBody, { onNavigate: links.navigate, body: selectedLesson.body, headingLevel: 5, title: selectedLesson.title }) : _jsx(\"p\", { className: \"ca-muted\", children: \"This lesson does not include readable text content.\" }), links.error ? _jsx(Notice, { copy: publicErrorCopy(links.error) }) : null, notice ? _jsx(Notice, { copy: notice }) : null, certificate && certificateSource.current === detail ? _jsx(CertificateCredential, { api: props.api, certificate: certificate, course: detail.course, holderName: detail.student?.name?.trim() || detail.enrollment.studentName }) : null, _jsxs(\"div\", { className: \"ca-public-actions\", children: [_jsxs(\"button\", { className: `ca-button${completed ? \"\" : \" ca-button-primary\"}`, disabled: busy || completed || toolsDirty, onClick: () => void completeLesson(), type: \"button\", children: [busy ? _jsx(ProgressMark, { state: \"busy\" }) : completed ? _jsx(ProgressMark, { state: \"done\" }) : null, _jsx(\"span\", { className: \"ca-swap\", children: completeLabel }, completeLabel)] }), selectedIndex < lessons.length - 1 ? (_jsx(\"button\", { className: `ca-button ${completed ? \"ca-button-primary\" : \"ca-button--quiet\"}`, disabled: busy || toolsDirty, onClick: () => { void selectLesson(lessons[selectedIndex + 1].lessonId); }, type: \"button\", children: \"Next lesson\" })) : null] }), props.tools ? _jsx(LearningTools, { snapshot: detail, api: props.api, courseId: detail.course.courseId, owner: detail.enrollment.studentId, lessonId: selectedLesson.lessonId, completed: enrollmentStatus === \"completed\", disabled: busy, notes: detail.notes, questions: detail.questions, review: detail.review, actions: props.tools, onDirty: onToolsDirty }) : null, props.loadAnnouncements ? _jsx(LearnerAnnouncements, { api: props.api, courseId: detail.course.courseId, load: props.loadAnnouncements }) : null] })] })] }));\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":143,"specifier":"react","start":138},{"dynamic":false,"end":223,"specifier":"../shared/authority.js","start":201},{"dynamic":false,"end":293,"specifier":"./authority.js","start":279},{"dynamic":false,"end":335,"specifier":"../shared/ui.js","start":320},{"dynamic":false,"end":399,"specifier":"../shared/lessonContent.js","start":373},{"dynamic":false,"end":473,"specifier":"./publicState.js","start":457},{"dynamic":false,"end":542,"specifier":"./publicUi.js","start":529},{"dynamic":false,"end":610,"specifier":"./certificateCredential.js","start":584},{"dynamic":false,"end":662,"specifier":"./learningTools.js","start":644},{"dynamic":false,"end":728,"specifier":"./learnerAnnouncements.js","start":703}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/learningTools.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { useRetainedWrite } from \"../shared/retainedWrite.js\";\nimport { isRecord, RetiredOperation } from \"../shared/authority.js\";\nimport { useOperation, useLearningNavigation } from \"./authority.js\";\nimport { useFormValidation } from \"../shared/formValidation.js\";\nimport { LearnerLessonBody } from \"../shared/lessonContent.js\";\nimport { Notice } from \"./publicUi.js\";\nimport { publicErrorCopy } from \"./publicState.js\";\nexport function LearningTools(props) {\n    const links = useLearningNavigation(props.api, props.courseId);\n    const [notes, setNotes] = useState(props.notes ?? []);\n    const [noteRead, setNoteRead] = useState(null);\n    const [questions, setQuestions] = useState(props.questions ?? []);\n    const [review, setReview] = useState(props.review);\n    const replyCount = questions.filter((item) => item.reply).length;\n    const waitingCount = questions.length - replyCount;\n    const savedNote = notes.find((note) => note.kind === \"note\" && note.lessonId === props.lessonId);\n    const bookmarked = notes.some((note) => note.kind === \"bookmark\" && note.lessonId === props.lessonId && note.bookmarked !== false);\n    const [drafts, setDrafts] = useState({});\n    const noteDraft = drafts[props.lessonId] ?? savedNote?.body ?? \"\";\n    const noteDirty = noteDraft !== (savedNote?.body ?? \"\");\n    const [title, setTitle] = useState(\"\");\n    const [question, setQuestion] = useState(\"\");\n    const [questionKey, setQuestionKey] = useState(() => crypto.randomUUID());\n    const [rating, setRating] = useState(String(review?.rating ?? 5));\n    const [reviewBody, setReviewBody] = useState(review?.body ?? \"\");\n    const operation = useOperation(props.api.scope, props.courseId, false, props.snapshot);\n    const busy = operation.busy;\n    const editRevision = useRef(0);\n    const questionRevision = useRef(0);\n    const renderQuestionRevision = questionRevision.current;\n    const draftKey = useRef(Symbol());\n    useEffect(() => () => props.api.scope.forgetDraft(draftKey.current), [props.api]);\n    const [notice, setNotice] = useState(null);\n    const [noteRecovery, setNoteRecovery] = useState(\"\");\n    const [reviewRecovery, setReviewRecovery] = useState(\"\");\n    const notesReady = noteRead?.lessonId === props.lessonId && noteRead.source === props.notes && noteRead.epoch === props.api.scope.epoch && noteRead.ready;\n    const notesError = noteRead?.lessonId === props.lessonId && noteRead.source === props.notes && noteRead.epoch === props.api.scope.epoch ? noteRead.error : undefined;\n    useEffect(() => {\n        const ticket = props.api.scope.capture(props.courseId);\n        const lessonId = props.lessonId;\n        let active = true;\n        setNoteRead(null);\n        void props.actions.reloadNotes(lessonId).then(latest => {\n            if (!active || !props.api.scope.current(ticket))\n                return;\n            setNotes(current => [...current.filter(note => note.lessonId !== lessonId), ...latest.filter(note => note.lessonId === lessonId)]);\n            setNoteRead({ lessonId, source: props.notes, epoch: ticket.epoch, ready: true });\n        }).catch(error => {\n            if (!active || !props.api.scope.current(ticket))\n                return;\n            setNoteRead({ lessonId, source: props.notes, epoch: ticket.epoch, ready: false, error: error instanceof Error ? error.message : \"Saved notes could not be loaded.\" });\n        });\n        return () => { active = false; };\n    }, [props.api, props.api.scope, props.api.scope.epoch, props.courseId, props.lessonId, props.notes]);\n    useEffect(() => {\n        setDrafts(current => Object.fromEntries(Object.entries(current).filter(([lesson, draft]) => draft !== (notes.find(note => note.kind === \"note\" && note.lessonId === lesson)?.body ?? \"\"))));\n        setNotes(props.notes ?? []);\n        setQuestions(props.questions ?? []);\n    }, [props.notes, props.questions]);\n    useEffect(() => {\n        if (reviewBody === (review?.body ?? \"\") && rating === String(review?.rating ?? 5)) {\n            setReviewBody(props.review?.body ?? \"\");\n            setRating(String(props.review?.rating ?? 5));\n        }\n        setReview(props.review);\n    }, [props.review]);\n    const recovery = useRetainedWrite(props.api.scope, (payload, attempt) => {\n        if (!isRecord(payload) || !isRecord(payload.question))\n            return;\n        const record = payload.question;\n        if (typeof record.questionId !== \"string\" || typeof record.title !== \"string\" || typeof record.body !== \"string\" || typeof record.status !== \"string\")\n            return;\n        const confirmed = { questionId: record.questionId, title: record.title, body: record.body, status: record.status,\n            ...(typeof record.reply === \"string\" ? { reply: record.reply } : {}) };\n        questionRevision.current++;\n        setQuestions(current => [confirmed, ...current.filter(item => item.questionId !== confirmed.questionId)]);\n        setTitle(\"\");\n        setQuestion(\"\");\n        setQuestionKey(crypto.randomUUID());\n        if (!operation.pending() || operation.current(attempt.operation))\n            setNotice({ tone: \"success\", title: \"Saved\", message: \"Question sent. Your course team can now respond.\" });\n    }, props.courseId);\n    const originalQuestion = recovery.original;\n    const contribution = useFormValidation();\n    const errorId = useId();\n    useEffect(() => setNoteRecovery(\"\"), [props.lessonId]);\n    const dirty = noteDirty || Boolean(title || question) || (props.completed && (reviewBody !== (review?.body ?? \"\") || rating !== String(review?.rating ?? 5)));\n    const renderTicket = props.api.scope.capture(props.courseId);\n    if (props.api.scope.owner === props.owner)\n        props.api.scope.setDirty(draftKey.current, props.courseId, dirty || Boolean(busy) || Boolean(originalQuestion));\n    useEffect(() => {\n        if (props.api.scope.current(renderTicket)) {\n            props.api.scope.setDirty(draftKey.current, props.courseId, dirty || Boolean(busy) || Boolean(originalQuestion));\n            props.onDirty(dirty || Boolean(busy) || Boolean(originalQuestion));\n        }\n        if (!dirty)\n            return;\n        const warn = (event) => { event.preventDefault(); event.returnValue = \"\"; };\n        window.addEventListener(\"beforeunload\", warn);\n        return () => window.removeEventListener(\"beforeunload\", warn);\n    }, [dirty, busy, props.onDirty, props.api, props.courseId, originalQuestion, props.notes, renderTicket.epoch, renderTicket.lineage, renderTicket.courseVersion]);\n    const renderEditRevision = editRevision.current;\n    async function act(kind, run, message) {\n        if (renderEditRevision !== editRevision.current)\n            return;\n        const ticket = operation.start(kind);\n        if (!ticket)\n            return;\n        if (props.disabled) {\n            operation.finish(ticket);\n            return;\n        }\n        const revision = editRevision.current;\n        const lesson = props.lessonId;\n        const wait = async (pending) => {\n            const result = await pending;\n            if (!operation.current(ticket) || revision !== editRevision.current || lesson !== currentLesson.current)\n                throw new RetiredOperation();\n            return result;\n        };\n        setNotice(null);\n        try {\n            await run(wait);\n            if (operation.current(ticket))\n                setNotice({ tone: \"success\", title: kind.startsWith(\"reload-\") ? \"Reloaded\" : \"Saved\", message });\n        }\n        catch (error) {\n            if (!operation.current(ticket) || error instanceof RetiredOperation)\n                return;\n            const message = error instanceof Error ? error.message : undefined;\n            const noteConflict = kind === \"note\" && /changed|conflict/i.test(message ?? \"\");\n            const reviewConflict = kind === \"review\" && /changed|conflict/i.test(message ?? \"\");\n            if (noteConflict)\n                setNoteRecovery(\"reload\");\n            if (reviewConflict)\n                setReviewRecovery(\"reload\");\n            setNotice(publicErrorCopy(noteConflict ? \"This note changed in another session.\" : reviewConflict ? \"This review changed in another session.\" : message));\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    async function sendQuestion() {\n        if (renderQuestionRevision !== questionRevision.current || props.disabled)\n            return;\n        const ticket = operation.start(\"question\");\n        if (!ticket)\n            return;\n        const revision = questionRevision.current;\n        setNotice(null);\n        try {\n            const { intent, attempt } = recovery.begin({ title: title.trim(), body: question.trim(), expectedAccountId: props.owner }, questionKey, ticket, () => operation.current(ticket) && revision === questionRevision.current);\n            // The retained payload is serialized independently of subsequent renders.\n            const captured = intent.body;\n            if (!(\"title\" in captured) || typeof captured.title !== \"string\" || !(\"body\" in captured) || typeof captured.body !== \"string\")\n                throw new Error(\"Academy could not capture the question draft.\");\n            await props.actions.ask(captured.title, captured.body, intent.key, captured.expectedAccountId, attempt);\n        }\n        catch (error) {\n            if (operation.current(ticket) && revision === questionRevision.current && !(error instanceof RetiredOperation))\n                setNotice(recovery.locked() ? { tone: \"warning\", title: \"Question result unconfirmed\", message: recovery.failureMessage(error) } : publicErrorCopy(recovery.failureMessage(error)));\n        }\n        finally {\n            operation.finish(ticket);\n        }\n    }\n    const currentLesson = useRef(props.lessonId);\n    currentLesson.current = props.lessonId;\n    function remember(record) {\n        setNotes((current) => [record, ...current.filter((note) => note.recordId !== record.recordId && !(note.lessonId === record.lessonId && note.kind === record.kind))]);\n    }\n    return _jsxs(\"fieldset\", { ref: contribution.ref, className: \"ca-learning-tools\", disabled: props.disabled, children: [links.error ? _jsx(Notice, { copy: publicErrorCopy(links.error) }) : null, notice ? _jsx(Notice, { copy: notice }) : null, _jsxs(\"details\", { className: \"ca-disclosure\", children: [_jsxs(\"summary\", { children: [_jsx(\"span\", { children: \"Personal notes and bookmark\" }), savedNote?.body || bookmarked ? _jsx(\"span\", { className: \"ca-tool-summary ca-muted\", children: [savedNote?.body ? \"Saved note\" : \"\", bookmarked ? \"Bookmarked\" : \"\"].filter(Boolean).join(\" · \") }) : null] }), _jsxs(\"div\", { className: \"ca-disclosure__body\", children: [_jsx(\"p\", { className: \"ca-muted\", children: \"These notes are private to your account.\" }), !notesReady ? _jsx(\"p\", { role: \"status\", children: notesError ?? \"Loading this lesson's saved notes…\" }) : null, _jsxs(\"label\", { className: \"ca-field\", children: [_jsx(\"span\", { children: \"Lesson note\" }), _jsx(\"textarea\", { \"aria-label\": \"Lesson note\", maxLength: 20000, rows: 4, value: noteDraft, disabled: Boolean(busy) || !notesReady, onChange: (event) => { if (operation.pending() || !notesReady)\n                                            return; editRevision.current++; props.api.scope.setDirty(draftKey.current, props.courseId, true); setDrafts((current) => ({ ...current, [props.lessonId]: event.target.value })); } })] }), _jsxs(\"div\", { className: \"ca-public-actions\", children: [_jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy) || !notesReady || !noteDirty || noteRecovery === \"reload\", onClick: () => void act(\"note\", async (wait) => {\n                                            remember(await wait(props.actions.saveNote(props.lessonId, noteDraft, savedNote?.body ?? \"\")));\n                                            setNoteRecovery(\"\");\n                                        }, \"Your private lesson note is saved.\"), children: \"Save note\" }), _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy) || !noteDirty, onClick: () => {\n                                            if (operation.pending() || !props.api.scope.current(renderTicket))\n                                                return;\n                                            setDrafts((current) => ({ ...current, [props.lessonId]: savedNote?.body ?? \"\" }));\n                                            setNoteRecovery(\"\");\n                                            setNotice({ tone: \"neutral\", title: \"Draft discarded\", message: \"Your unsaved note draft was discarded.\" });\n                                        }, children: \"Discard note changes\" }), noteRecovery || notesError ? _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy), onClick: () => void act(\"reload-notes\", async (wait) => {\n                                            const latest = await wait(props.actions.reloadNotes(props.lessonId));\n                                            if (noteRecovery)\n                                                setDrafts((current) => ({ ...current, [props.lessonId]: noteDraft }));\n                                            setNotes(current => [...current.filter(note => note.lessonId !== props.lessonId), ...latest.filter(note => note.lessonId === props.lessonId)]);\n                                            setNoteRead({ lessonId: props.lessonId, source: props.notes, epoch: props.api.scope.epoch, ready: true });\n                                            setNoteRecovery(noteRecovery ? \"review\" : \"\");\n                                        }, noteRecovery ? \"Saved notes reloaded. Your draft is kept; compare it with the latest saved note before saving or discarding.\" : \"This lesson's saved notes are loaded.\"), children: \"Reload saved notes\" }) : null, _jsx(\"button\", { className: \"ca-button\", type: \"button\", \"aria-pressed\": bookmarked, disabled: Boolean(busy) || !notesReady, onClick: () => void act(\"bookmark\", async (wait) => remember(await wait(props.actions.bookmark(props.lessonId, !bookmarked))), bookmarked ? \"Bookmark removed.\" : \"Lesson bookmarked.\"), children: bookmarked ? \"Remove bookmark\" : \"Bookmark lesson\" })] }), noteRecovery === \"review\" ? _jsxs(\"div\", { className: \"ca-feedback-item\", children: [_jsx(\"h4\", { children: \"Latest saved note\" }), _jsx(\"p\", { children: savedNote?.body || \"No note has been saved for this lesson.\" })] }) : null] })] }), _jsxs(\"details\", { className: \"ca-disclosure\", children: [_jsxs(\"summary\", { children: [_jsx(\"span\", { children: \"Ask your course team\" }), questions.length ? _jsx(\"span\", { className: \"ca-tool-summary ca-muted\", children: [replyCount ? `${replyCount.toLocaleString()} ${replyCount === 1 ? \"reply\" : \"replies\"}` : \"\", waitingCount ? `${waitingCount.toLocaleString()} waiting` : \"\"].filter(Boolean).join(\" · \") }) : null] }), _jsxs(\"div\", { className: \"ca-disclosure__body\", children: [_jsx(\"p\", { className: \"ca-muted\", children: \"Your question and the team's reply appear here when you return to the course.\" }), questions.length ? _jsx(\"h4\", { children: \"Your recent questions\" }) : _jsx(\"p\", { className: \"ca-muted\", children: \"No questions sent yet.\" }), questions.map((item) => _jsxs(\"article\", { className: \"ca-feedback-item\", children: [_jsx(\"h4\", { children: item.title }), _jsx(\"p\", { children: item.body }), item.reply ? _jsxs(\"div\", { children: [_jsx(\"strong\", { children: \"Course team reply\" }), _jsx(LearnerLessonBody, { onNavigate: links.navigate, body: item.reply, headingLevel: 5 })] }) : _jsx(\"p\", { className: \"ca-muted\", children: \"Waiting for the course team.\" })] }, item.questionId)), questions.length ? _jsx(\"h4\", { children: \"New question\" }) : null, _jsxs(\"label\", { className: \"ca-field\", children: [_jsxs(\"span\", { children: [\"Question title \", _jsx(\"span\", { className: \"ca-muted\", children: \"(required)\" })] }), _jsx(\"input\", { \"aria-label\": \"Question title\", required: true, \"aria-invalid\": contribution.errors.title ? true : undefined, \"aria-describedby\": contribution.errors.title ? `${errorId}-title` : undefined, maxLength: 200, value: title, disabled: Boolean(busy) || Boolean(originalQuestion), onChange: (event) => { if (operation.pending() || recovery.locked())\n                                            return; questionRevision.current++; editRevision.current++; props.api.scope.setDirty(draftKey.current, props.courseId, true); setTitle(event.target.value); setQuestionKey(crypto.randomUUID()); } }), contribution.errors.title ? _jsx(\"span\", { id: `${errorId}-title`, className: \"ca-field-error\", children: contribution.errors.title }) : null] }), _jsxs(\"label\", { className: \"ca-field\", children: [_jsxs(\"span\", { children: [\"Your question \", _jsx(\"span\", { className: \"ca-muted\", children: \"(required)\" })] }), _jsx(\"textarea\", { \"aria-label\": \"Your question\", required: true, \"aria-invalid\": contribution.errors.question ? true : undefined, \"aria-describedby\": contribution.errors.question ? `${errorId}-question` : undefined, maxLength: 10000, rows: 4, value: question, disabled: Boolean(busy) || Boolean(originalQuestion), onChange: (event) => { if (operation.pending() || recovery.locked())\n                                            return; questionRevision.current++; editRevision.current++; props.api.scope.setDirty(draftKey.current, props.courseId, true); setQuestion(event.target.value); setQuestionKey(crypto.randomUUID()); } }), contribution.errors.question ? _jsx(\"span\", { id: `${errorId}-question`, className: \"ca-field-error\", children: contribution.errors.question }) : null] }), _jsxs(\"div\", { className: \"ca-public-actions\", children: [_jsx(\"button\", { className: \"ca-button ca-button-primary\", type: \"button\", disabled: Boolean(busy), onClick: () => {\n                                            if (operation.pending() || !props.api.scope.current(renderTicket))\n                                                return;\n                                            if (!recovery.locked() && !contribution.validate({ title: !title.trim() ? \"Enter a question title.\" : \"\", question: !question.trim() ? \"Enter your question for the course team.\" : \"\" }))\n                                                return;\n                                            void sendQuestion();\n                                        }, children: originalQuestion ? \"Retry original question\" : \"Send question\" }), _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy) || Boolean(originalQuestion) || !(title || question), onClick: () => { if (operation.pending() || recovery.locked() || !props.api.scope.current(renderTicket))\n                                            return; questionRevision.current++; editRevision.current++; setTitle(\"\"); setQuestion(\"\"); setQuestionKey(crypto.randomUUID()); contribution.validate({}); }, children: \"Discard question\" })] })] })] }), props.completed ? _jsxs(\"details\", { className: \"ca-disclosure\", children: [_jsx(\"summary\", { children: \"Review this course\" }), _jsxs(\"div\", { className: \"ca-disclosure__body\", children: [_jsx(\"p\", { className: \"ca-muted\", children: \"Reviews appear anonymously on the course page after the site team approves them.\" }), review ? _jsx(\"p\", { role: \"status\", children: review.status === \"approved\" ? \"Your review is published.\" : review.status === \"rejected\" ? \"The site team declined this review. You can revise it and submit again.\" : \"Your review is awaiting approval.\" }) : null, _jsxs(\"label\", { className: \"ca-field\", children: [_jsx(\"span\", { children: \"Course rating\" }), _jsx(\"select\", { \"aria-label\": \"Course rating\", value: rating, disabled: Boolean(busy), onChange: (event) => { if (operation.pending())\n                                            return; editRevision.current++; props.api.scope.setDirty(draftKey.current, props.courseId, true); setRating(event.target.value); }, children: [5, 4, 3, 2, 1].map((value) => _jsxs(\"option\", { value: value, children: [value, \" of 5\"] }, value)) })] }), _jsxs(\"label\", { className: \"ca-field\", children: [_jsxs(\"span\", { children: [\"Your review \", _jsx(\"span\", { className: \"ca-muted\", children: \"(required)\" })] }), _jsx(\"textarea\", { \"aria-label\": \"Your review\", required: true, \"aria-invalid\": contribution.errors.review ? true : undefined, \"aria-describedby\": contribution.errors.review ? `${errorId}-review` : undefined, maxLength: 5000, rows: 4, value: reviewBody, disabled: Boolean(busy), onChange: (event) => { if (operation.pending())\n                                            return; editRevision.current++; props.api.scope.setDirty(draftKey.current, props.courseId, true); setReviewBody(event.target.value); } }), contribution.errors.review ? _jsx(\"span\", { id: `${errorId}-review`, className: \"ca-field-error\", children: contribution.errors.review }) : null] }), _jsxs(\"div\", { className: \"ca-public-actions\", children: [_jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy) || reviewRecovery === \"reload\" || (reviewBody === review?.body && rating === String(review.rating)), onClick: () => {\n                                            if (operation.pending() || !props.api.scope.current(renderTicket))\n                                                return;\n                                            if (!contribution.validate({ review: !reviewBody.trim() ? \"Write a review before submitting it.\" : \"\" }))\n                                                return;\n                                            void act(\"review\", async (wait) => {\n                                                const result = await wait(props.actions.review(Number(rating), reviewBody.trim(), review ? { rating: review.rating, body: review.body } : null));\n                                                setReview(result);\n                                                setReviewBody(result.body);\n                                                setRating(String(result.rating));\n                                                setReviewRecovery(\"\");\n                                            }, \"Review submitted for approval.\");\n                                        }, children: \"Submit review\" }), _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy) || (reviewBody === (review?.body ?? \"\") && rating === String(review?.rating ?? 5)), onClick: () => { if (operation.pending() || !props.api.scope.current(renderTicket))\n                                            return; setReviewBody(review?.body ?? \"\"); setRating(String(review?.rating ?? 5)); setReviewRecovery(\"\"); contribution.validate({}); }, children: \"Discard review changes\" }), reviewRecovery ? _jsx(\"button\", { className: \"ca-button\", type: \"button\", disabled: Boolean(busy), onClick: () => void act(\"reload-review\", async (wait) => {\n                                            setReview(await wait(props.actions.reloadReview()));\n                                            setReviewRecovery(\"review\");\n                                        }, \"Saved review reloaded. Your draft is kept; compare it with the latest saved review before submitting or discarding.\"), children: \"Reload saved review\" }) : null] }), reviewRecovery === \"review\" ? _jsxs(\"div\", { className: \"ca-feedback-item\", children: [_jsx(\"h4\", { children: \"Latest saved review\" }), review ? _jsxs(_Fragment, { children: [_jsxs(\"strong\", { children: [review.rating, \" of 5\"] }), _jsx(\"p\", { children: review.body })] }) : _jsx(\"p\", { children: \"No review has been saved for this course.\" })] }) : null] })] }) : null, originalQuestion ? _jsx(\"p\", { className: \"ca-muted\", role: \"status\", children: \"Question result unconfirmed. The original question is retained until its result is confirmed. Retry sends the same account, key and text.\" }) : null, dirty ? _jsx(\"p\", { className: \"ca-muted\", role: \"status\", children: \"Save or discard your changes before leaving this lesson.\" }) : null] });\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":144,"specifier":"react","start":139},{"dynamic":false,"end":207,"specifier":"../shared/retainedWrite.js","start":181},{"dynamic":false,"end":276,"specifier":"../shared/authority.js","start":254},{"dynamic":false,"end":346,"specifier":"./authority.js","start":332},{"dynamic":false,"end":411,"specifier":"../shared/formValidation.js","start":384},{"dynamic":false,"end":475,"specifier":"../shared/lessonContent.js","start":449},{"dynamic":false,"end":515,"specifier":"./publicUi.js","start":502},{"dynamic":false,"end":567,"specifier":"./publicState.js","start":551}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/openCourse.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { LearnerLessonBody } from \"../shared/lessonContent.js\";\nimport { LessonOutline, Notice } from \"./publicUi.js\";\n/** Reading needs no enrollment or learner writes. Progress remains an enrolled-course feature. */\nexport function OpenCourseView({ curriculum }) {\n    const lessons = (curriculum?.sections ?? []).flatMap((section) => section.lessons ?? []);\n    const fromUrl = () => typeof window === \"undefined\" ? \"\" : new URLSearchParams(window.location.search).get(\"lesson\") ?? \"\";\n    const [selectedId, setSelectedId] = useState(fromUrl);\n    const heading = useRef(null);\n    const headingId = useId();\n    const index = Math.max(0, lessons.findIndex((lesson) => lesson.lessonId === selectedId));\n    const selected = lessons[index];\n    useEffect(() => {\n        const back = () => setSelectedId(fromUrl());\n        window.addEventListener(\"popstate\", back);\n        return () => window.removeEventListener(\"popstate\", back);\n    }, []);\n    function select(id) {\n        const url = new URL(window.location.href);\n        url.searchParams.set(\"lesson\", id);\n        window.history.pushState({}, \"\", url);\n        setSelectedId(id);\n        requestAnimationFrame(() => heading.current?.focus());\n    }\n    if (!selected)\n        return _jsx(Notice, { copy: { tone: \"neutral\", title: \"No lessons available\", message: \"The course curriculum has not been published yet.\" } });\n    return _jsxs(\"div\", { className: \"ca-open-course ca-player-layout\", children: [_jsx(LessonOutline, { children: _jsx(\"aside\", { className: \"ca-open-outline\", children: _jsx(\"nav\", { className: \"ca-player-nav\", \"aria-label\": \"Course lessons\", children: (curriculum?.sections ?? []).map((section, sectionIndex) => _jsxs(\"section\", { children: [_jsx(\"h3\", { children: section.title }), _jsx(\"ol\", { children: (section.lessons ?? []).map((lesson) => _jsx(\"li\", { children: _jsxs(\"button\", { type: \"button\", className: \"ca-player-lesson\", \"aria-current\": lesson.lessonId === selected.lessonId ? \"step\" : undefined, onClick: () => select(lesson.lessonId), children: [_jsx(\"span\", { className: \"ca-open-lesson-number\", \"aria-hidden\": \"true\", children: String(lessons.findIndex((item) => item.lessonId === lesson.lessonId) + 1).padStart(2, \"0\") }), _jsx(\"span\", { className: \"ca-open-lesson-name\", children: lesson.title })] }) }, lesson.lessonId)) })] }, section.sectionId ?? sectionIndex)) }) }) }), _jsxs(\"article\", { className: \"ca-card ca-lesson\", \"aria-labelledby\": headingId, children: [_jsxs(\"span\", { className: \"ca-kicker\", children: [\"Lesson \", index + 1, \" of \", lessons.length] }), _jsx(\"h3\", { id: headingId, ref: heading, tabIndex: -1, children: selected.title }), selected.body ? _jsx(LearnerLessonBody, { body: selected.body, title: selected.title }) : _jsx(\"p\", { children: \"This lesson does not include readable text content.\" }), index === lessons.length - 1 ? _jsx(\"p\", { className: \"ca-muted ca-reading-end\", children: \"End of course \\u00B7 Explore another course or revisit a lesson from the outline.\" }) : null, _jsxs(\"div\", { className: \"ca-public-actions\", children: [index > 0 ? _jsx(\"button\", { type: \"button\", className: \"ca-button\", onClick: () => select(lessons[index - 1].lessonId), children: \"Previous lesson\" }) : null, index < lessons.length - 1 ? _jsx(\"button\", { type: \"button\", className: \"ca-button ca-button-primary\", onClick: () => select(lessons[index + 1].lessonId), children: \"Next lesson\" }) : _jsxs(\"a\", { className: \"ca-course-detail-link\", href: \"/courses\", children: [\"Explore more courses \", _jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2192\" })] })] })] })] });\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":121,"specifier":"react","start":116},{"dynamic":false,"end":185,"specifier":"../shared/lessonContent.js","start":159},{"dynamic":false,"end":240,"specifier":"./publicUi.js","start":227}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/publicData.js","kind":"module","text":"import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { RetiredOperation } from \"../shared/authority.js\";\nimport { PublicApi } from \"./api.js\";\nexport function usePublicData(load, dependencies, access = \"learner\") {\n    const [state, setState] = useState({ loading: true });\n    const resourceApi = dependencies.find((value) => value instanceof PublicApi);\n    // Public responses contain no learner state. Visibility/session retirement must\n    // neither suppress their transport nor quarantine their already public content.\n    const api = access === \"learner\" ? resourceApi : undefined;\n    const deps = [...dependencies, access, resourceApi?.publicServerUrl];\n    const version = api?.scope.version;\n    const lineage = api?.scope.lineage;\n    const publishedVersion = useRef(undefined);\n    const authority = api?.scope;\n    const publishedAuthority = useRef(authority);\n    const publishedOwner = useRef(null);\n    const publishedSite = useRef(\"\");\n    const publishedDeps = useRef([]);\n    const publishedRevision = useRef(-1);\n    const reportedDeps = useRef([]);\n    const reportedAuthority = useRef(authority);\n    const renderDeps = useRef(deps);\n    renderDeps.current = deps;\n    const [revision, setRevision] = useState(0);\n    const renderRevision = useRef(revision);\n    renderRevision.current = revision;\n    const retry = useCallback(() => setRevision((current) => current + 1), []);\n    useEffect(() => {\n        let cancelled = false;\n        if (api && !api.scope.active)\n            return;\n        const ticket = api?.scope.capture();\n        const ownsLoad = () => !cancelled && revision === renderRevision.current && deps.every((value, index) => value === renderDeps.current[index]) && (!ticket || Boolean(api?.scope.current(ticket)));\n        setState(current => ({ loading: true, data: current.data, quarantined: true }));\n        load()\n            .then((data) => { if (ownsLoad()) {\n            reportedDeps.current = deps;\n            reportedAuthority.current = authority;\n            publishedAuthority.current = authority;\n            publishedOwner.current = authority?.owner ?? null;\n            publishedSite.current = authority?.site ?? \"\";\n            publishedVersion.current = api?.scope.version;\n            publishedDeps.current = deps;\n            publishedRevision.current = revision;\n            setState({ loading: false, data });\n        } })\n            .catch((error) => { if (ownsLoad()) {\n            if (error instanceof RetiredOperation) {\n                setTimeout(() => { if (!cancelled)\n                    retry(); }, 100);\n                return;\n            }\n            reportedDeps.current = deps;\n            reportedAuthority.current = authority;\n            setState(current => ({ loading: false, error, data: current.data, quarantined: true }));\n        } });\n        return () => { cancelled = true; };\n    }, [...deps, revision, authority, version, lineage]);\n    const bindingChanged = publishedAuthority.current !== authority;\n    const sameOwnerBinding = publishedOwner.current !== null && publishedOwner.current === authority?.owner && publishedSite.current === authority?.site;\n    const resourceChanged = (bindingChanged && !sameOwnerBinding) || deps.some((value, index) => value !== publishedDeps.current[index]);\n    const currentError = reportedAuthority.current === authority && reportedDeps.current.length === deps.length && reportedDeps.current.every((value, index) => value === deps[index]) ? state.error : undefined;\n    return { ...state, data: resourceChanged ? undefined : state.data, error: currentError, loading: state.loading || (resourceChanged && !currentError), quarantined: bindingChanged || state.quarantined || publishedRevision.current !== revision || deps.some((value, index) => value !== publishedDeps.current[index]) || (api ? !api.scope.active || publishedVersion.current !== api.scope.version : false), retry };\n}\n","imports":[{"dynamic":false,"end":63,"specifier":"react","start":58},{"dynamic":false,"end":122,"specifier":"../shared/authority.js","start":100},{"dynamic":false,"end":160,"specifier":"./api.js","start":152}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/publicSession.js","kind":"module","text":"import { AcademyError, LearnerAuthority, normalizedSite, RetiredOperation } from \"../shared/authority.js\";\nconst unavailable = () => new AcademyError(\"Private learning is unavailable until this site supplies a secure Cedros Login session. Public courses are still available.\", 503, \"cedros.academy.session_unavailable\");\n/** The supplied host binding owns cookies. Academy keeps only opaque fencing identities. */\nexport class PublicSessionAuthority extends LearnerAuthority {\n    services;\n    snapshot = null;\n    previous = null;\n    readers = new Set();\n    generation = 0;\n    snapshotObservation = 0;\n    accepted = 0;\n    users = 0;\n    unsubscribe;\n    constructor(services) {\n        super();\n        this.services = services;\n        this.configure(services?.serverUrl ?? \"\", undefined);\n    }\n    monitorSession() {\n        if (this.users++ === 0 && this.services?.contractVersion === 1) {\n            try {\n                this.unsubscribe = this.services.subscribeInvalidation(() => this.invalidateSession());\n            }\n            catch {\n                this.users--;\n                throw unavailable();\n            }\n        }\n        return () => {\n            if (--this.users === 0) {\n                this.unsubscribe?.();\n                this.unsubscribe = undefined;\n                this.invalidateSession();\n            }\n        };\n    }\n    invalidateSession() {\n        this.generation++;\n        for (const reader of this.readers)\n            reader.abort();\n        this.snapshot = null;\n        this.invalidateAccount();\n        this.wakeChanged();\n    }\n    checkExpiry() {\n        super.checkExpiry();\n        if (this.snapshot && this.snapshot.expiresAt <= Date.now())\n            this.invalidateSession();\n    }\n    wakeDelay() {\n        return Math.max(1, Math.min(this.expiryDelay(), this.snapshot ? this.snapshot.expiresAt - Date.now() : Infinity));\n    }\n    async credential(ticket) {\n        this.checkExpiry();\n        this.requireCurrent(ticket);\n        const services = this.services;\n        if (!services || services.contractVersion !== 1 || typeof window === \"undefined\"\n            || window.location.protocol !== \"https:\" || services.serverUrl !== window.location.origin)\n            throw unavailable();\n        const generation = this.generation, observation = ++this.snapshotObservation;\n        const reader = new AbortController();\n        this.readers.add(reader);\n        try {\n            const snapshot = await services.getSnapshot({ signal: reader.signal });\n            if (generation !== this.generation || observation < this.accepted)\n                throw new RetiredOperation();\n            this.accepted = observation;\n            this.requireCurrent(ticket);\n            if (snapshot.status !== \"signed-in\") {\n                if (this.snapshot)\n                    this.invalidateSession();\n                if (snapshot.status === \"signed-out\") {\n                    if (this.owner !== null || this.previous) {\n                        this.previous = null;\n                        this.retire();\n                    }\n                    throw new AcademyError(\"Sign in with Cedros Login to continue.\", 401, \"cedros.academy.account_auth_required\");\n                }\n                throw unavailable();\n            }\n            if (snapshot.siteOrigin !== this.site || !snapshot.subject?.trim()\n                || !(snapshot.organizationId === null || (typeof snapshot.organizationId === \"string\" && snapshot.organizationId.trim()))\n                || !/^[a-f0-9]{64}$/.test(snapshot.accountKey) || !/^[a-f0-9]{64}$/.test(snapshot.sessionKey)\n                || !Number.isFinite(snapshot.expiresAt) || snapshot.expiresAt <= Date.now()) {\n                if (this.snapshot)\n                    this.invalidateSession();\n                throw unavailable();\n            }\n            const previous = this.previous;\n            this.snapshot = snapshot;\n            this.previous = snapshot;\n            this.wakeChanged();\n            if (previous && (previous.accountKey !== snapshot.accountKey || previous.subject !== snapshot.subject\n                || previous.organizationId !== snapshot.organizationId)) {\n                this.retire();\n                throw new RetiredOperation();\n            }\n            if (previous && previous.sessionKey !== snapshot.sessionKey) {\n                this.invalidateAccount();\n                throw new RetiredOperation();\n            }\n            return null;\n        }\n        catch (error) {\n            if (generation !== this.generation || !this.current(ticket))\n                throw new RetiredOperation();\n            if (!(error instanceof RetiredOperation) && this.snapshot)\n                this.invalidateSession();\n            throw error;\n        }\n        finally {\n            this.readers.delete(reader);\n        }\n    }\n    bindOwner(owner, ticket, observation) {\n        if (!this.snapshot || this.snapshot.subject !== owner || this.snapshot.expiresAt <= Date.now()) {\n            this.invalidateSession();\n            throw new AcademyError(\"Academy could not confirm the current account. Check your sign-in and try again.\", 409, \"cedros.academy.account_context_changed\");\n        }\n        return super.bindOwner(owner, ticket, observation);\n    }\n}\nconst authorities = new WeakMap();\nexport function publicSessionAuthority(services) {\n    let scope = authorities.get(services);\n    if (!scope) {\n        // Reject path prefixes, credentials, and authored/foreign origins before any protected IO.\n        if (normalizedSite(services.serverUrl) !== services.serverUrl)\n            throw unavailable();\n        scope = new PublicSessionAuthority(services);\n        authorities.set(services, scope);\n    }\n    return scope;\n}\n","imports":[{"dynamic":false,"end":104,"specifier":"../shared/authority.js","start":82}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/publicState.js","kind":"module","text":"import { AcademyError } from \"../shared/authority.js\";\nexport function isFreeCourse(course) {\n    return course.pricing?.type === \"free\" && course.pricing.amountCents === 0;\n}\nexport function isPaidCourse(course) {\n    return course.pricing?.type === \"one_time\" && (course.pricing.amountCents ?? 0) > 0;\n}\nexport function coursePayReadiness(course) {\n    if (course.enrollmentStatus === \"closed\") {\n        return {\n            ready: false,\n            message: \"New enrollment is currently closed. Existing learners can continue from My Learning.\"\n        };\n    }\n    if (isFreeCourse(course)) {\n        return { ready: true, message: \"Sign in with Cedros Login to enroll for free and start learning.\" };\n    }\n    if (isPaidCourse(course))\n        return {\n            ready: false,\n            message: \"Paid enrollment is not available yet. Contact the course team for access.\"\n        };\n    return {\n        ready: false,\n        message: \"Enrollment is temporarily unavailable. Contact the course team for help.\"\n    };\n}\nexport function enrollmentAccessCopy(status) {\n    switch ((status ?? \"\").toLowerCase()) {\n        case \"active\":\n        case \"completed\":\n            return {\n                canOpen: true,\n                tone: \"success\",\n                title: \"Access active\",\n                message: \"Cedros Login identity and current access state allow this course.\"\n            };\n        case \"pending_payment\":\n        case \"payment_pending\":\n        case \"checkout_pending\":\n            return {\n                canOpen: false,\n                tone: \"warning\",\n                title: \"Payment pending\",\n                message: \"Cedros Pay has not confirmed the checkout or entitlement yet.\"\n            };\n        case \"payment_failed\":\n        case \"failed\":\n        case \"cancelled\":\n        case \"expired_checkout\":\n            return {\n                canOpen: false,\n                tone: \"error\",\n                title: \"Payment failed\",\n                message: \"Contact the course team to review your payment and restore access.\"\n            };\n        case \"refunded\":\n        case \"refund_settled\":\n            return {\n                canOpen: false,\n                tone: \"warning\",\n                title: \"Access refunded\",\n                message: \"The Pay entitlement was revoked after refund settlement.\"\n            };\n        case \"disputed\":\n        case \"chargeback\":\n        case \"chargeback_opened\":\n            return {\n                canOpen: false,\n                tone: \"error\",\n                title: \"Access under review\",\n                message: \"Cedros Pay marked this purchase disputed, so Academy access is locked.\"\n            };\n        case \"revoked\":\n        case \"expired\":\n        case \"past_due\":\n            return {\n                canOpen: false,\n                tone: \"warning\",\n                title: \"Access locked\",\n                message: \"This enrollment is not currently active.\"\n            };\n        default:\n            return {\n                canOpen: false,\n                tone: \"neutral\",\n                title: \"Access unavailable\",\n                message: \"Your course access could not be confirmed. Try again or contact the course team.\"\n            };\n    }\n}\nexport function publicErrorCopy(error) {\n    const text = (error instanceof Error ? error.message : error) ?? \"Academy data is unavailable.\";\n    const lowered = text.toLowerCase();\n    if (error instanceof AcademyError && (error.status === 401 || error.code === \"cedros.academy.account_auth_required\"))\n        return signInCopy();\n    if (lowered.includes(\"secure cedros login session\"))\n        return {\n            tone: \"warning\", title: \"Sign-in unavailable\",\n            message: \"Private learning is unavailable until this site supplies a secure Cedros Login session. Public courses are still available.\"\n        };\n    if (error instanceof AcademyError && error.status >= 500)\n        return unavailableCopy();\n    if (lowered.includes(\"note changed in another session\")) {\n        return {\n            tone: \"warning\",\n            title: \"Note changed in another session\",\n            message: \"Your draft is kept. Reload saved notes, compare the latest note, then save your draft or discard your changes.\"\n        };\n    }\n    if (lowered.includes(\"review changed in another session\")) {\n        return {\n            tone: \"warning\",\n            title: \"Review changed in another session\",\n            message: \"Your draft is kept. Reload the saved review, compare it with your draft, then submit or discard your changes.\"\n        };\n    }\n    if (lowered.includes(\"slug is required\") || lowered.includes(\"enrollment id is required\")) {\n        return publicSetupCopy(\"block\");\n    }\n    if (lowered.includes(\"sign in\") || lowered.includes(\"authentication\") || lowered.includes(\"cedros login account\")) {\n        return signInCopy();\n    }\n    if (lowered.includes(\"pay\") || lowered.includes(\"checkout\") || lowered.includes(\"entitlement\")) {\n        return {\n            tone: \"warning\",\n            title: \"Payment access unavailable\",\n            message: \"Cedros Pay could not confirm checkout or entitlement state. Access remains locked.\"\n        };\n    }\n    if (lowered.includes(\"reactivation\") || lowered.includes(\"administrator must review\")) {\n        return {\n            tone: \"warning\",\n            title: \"Enrollment needs review\",\n            message: \"This course already has an inactive access record. Contact the site team to review and reactivate it.\"\n        };\n    }\n    if (lowered.includes(\"permission\") || lowered.includes(\"forbidden\")) {\n        return {\n            tone: \"error\",\n            title: \"Permission denied\",\n            message: \"This account does not have access to that Academy record.\"\n        };\n    }\n    if (lowered.includes(\"not found\")) {\n        return {\n            tone: \"warning\",\n            title: \"Academy record not found\",\n            message: \"The requested Academy item is not available on this site.\"\n        };\n    }\n    return unavailableCopy();\n}\nfunction unavailableCopy() {\n    return {\n        tone: \"error\", title: \"Academy unavailable\",\n        message: \"Academy data is unavailable right now. Try again or contact the site owner.\"\n    };\n}\nfunction signInCopy() {\n    return {\n        tone: \"warning\", title: \"Sign in required\", message: \"Use Cedros Login to continue.\",\n        action: { href: \"/login\", label: \"Sign in with Cedros Login\" }, retryable: false\n    };\n}\nexport function prioritizeLearning(enrollments) {\n    return enrollments\n        .map((enrollment, index) => ({ enrollment, index }))\n        .sort((left, right) => {\n        const priority = learnerEnrollmentPriority(left.enrollment.status) - learnerEnrollmentPriority(right.enrollment.status);\n        if (priority)\n            return priority;\n        if (left.enrollment.status === \"active\" && right.enrollment.status === \"active\") {\n            const started = Number((right.enrollment.progressPercent ?? 0) > 0) - Number((left.enrollment.progressPercent ?? 0) > 0);\n            if (started)\n                return started;\n        }\n        const recency = enrollmentTimestamp(right.enrollment.updatedAt) - enrollmentTimestamp(left.enrollment.updatedAt);\n        return recency || left.index - right.index;\n    })\n        .map(({ enrollment }) => enrollment);\n}\nfunction learnerEnrollmentPriority(status) {\n    const normalized = status.toLowerCase();\n    if (normalized === \"active\")\n        return 0;\n    if ([\n        \"pending_payment\",\n        \"payment_pending\",\n        \"checkout_pending\",\n        \"payment_failed\",\n        \"failed\",\n        \"cancelled\",\n        \"expired_checkout\",\n        \"disputed\",\n        \"chargeback\",\n        \"chargeback_opened\"\n    ].includes(normalized))\n        return 1;\n    if (normalized === \"completed\")\n        return 2;\n    return 3;\n}\nfunction enrollmentTimestamp(value) {\n    if (!value)\n        return 0;\n    const numeric = Number(value);\n    if (Number.isFinite(numeric))\n        return numeric * 1000;\n    const parsed = Date.parse(value);\n    return Number.isNaN(parsed) ? 0 : parsed;\n}\nexport function publicSetupCopy(kind) {\n    return {\n        tone: \"warning\",\n        title: kind === \"course\" ? \"Course block needs setup\" : \"Academy block needs setup\",\n        message: \"The site owner needs to connect this block to a published Academy record before visitors can use it.\"\n    };\n}\n","imports":[{"dynamic":false,"end":52,"specifier":"../shared/authority.js","start":30}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/publicUi.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { CourseArtwork } from \"../shared/courseArtwork.js\";\nimport { enrollmentHasAccess } from \"../shared/authority.js\";\nimport { hasOpenLessons } from \"../shared/courseAccess.js\";\nimport { courseCatalogUrl } from \"../shared/links.js\";\nimport { focusViewHeading, Money, Status } from \"../shared/ui.js\";\nimport { enrollmentAccessCopy, prioritizeLearning, publicErrorCopy } from \"./publicState.js\";\n/** Only pushed views claim focus; ordinary embedded blocks leave it to the host. */\nexport function PublicStack(props) {\n    const root = useRef(null);\n    useEffect(() => {\n        const view = root.current;\n        const parent = view?.parentElement;\n        const position = parent && view ? Array.from(parent.children).indexOf(view) : -1;\n        focusViewHeading(view?.querySelector(\"h2\") ?? null);\n        return () => {\n            const replacement = parent?.children[position];\n            if (replacement instanceof HTMLElement && replacement.matches(\".cedros-academy\")) {\n                focusViewHeading(replacement.querySelector(\"h2\"));\n            }\n        };\n    }, []);\n    return _jsx(\"div\", { ref: root, className: \"cedros-academy ca-public-stack\", children: props.children });\n}\nexport function PublicShell(props) {\n    return (_jsxs(\"section\", { className: [\"cedros-academy\", \"ca-public\", \"ca-public-shell\", props.className].filter(Boolean).join(\" \"), children: [props.navigation, _jsxs(\"header\", { className: `ca-public-head${props.action ? \" ca-public-head--with-action\" : \"\"}`, children: [props.eyebrow ? _jsx(\"span\", { className: \"ca-kicker\", children: props.eyebrow }) : null, _jsx(\"h2\", { className: props.title.length > 160 ? \"ca-long-identity\" : undefined, children: props.title }), props.title.length > 160 ? _jsxs(\"details\", { className: \"ca-full-copy\", children: [_jsx(\"summary\", { children: \"Full title\" }), _jsx(\"p\", { children: props.title })] }) : null, props.descriptionDisclosure && props.description ? _jsxs(\"details\", { className: \"ca-full-copy ca-course-overview\", children: [_jsx(\"summary\", { children: \"Course overview\" }), _jsx(\"p\", { children: props.description })] }) : props.description.length > 360 ? _jsxs(\"div\", { className: \"ca-description-preview\", children: [_jsxs(\"p\", { children: [props.description.slice(0, 320).replace(/\\s+\\S*$/, \"\"), \"\\u2026\"] }), _jsxs(\"details\", { className: \"ca-full-copy\", children: [_jsx(\"summary\", { children: \"Read full overview\" }), _jsx(\"p\", { children: props.description })] })] }) : props.description ? _jsx(\"p\", { children: props.description }) : null, props.action] }), props.children] }));\n}\nexport function PublicStateBlock(props) {\n    const blocked = props.state.loading || Boolean(props.state.error) || props.state.quarantined;\n    if (props.state.data && !props.empty)\n        return _jsxs(_Fragment, { children: [_jsx(\"div\", { hidden: blocked, inert: blocked, children: props.children(props.state.data) }), blocked ? _jsx(PublicRecheck, { error: props.state.error, onRetry: props.state.retry, layout: props.loadingLayout }) : null] });\n    if (props.state.loading) {\n        return _jsx(PublicLoading, { title: props.loadingTitle ?? \"Loading Academy data\", layout: props.loadingLayout });\n    }\n    if (props.state.error) {\n        const copy = publicErrorCopy(props.state.error);\n        return (_jsxs(\"div\", { className: \"ca-inline-stack\", children: [_jsx(Notice, { copy: copy }), props.state.retry && copy.retryable !== false ? _jsx(\"button\", { className: \"ca-button\", type: \"button\", onClick: props.state.retry, children: \"Retry\" }) : null] }));\n    }\n    if (!props.state.data || props.empty) {\n        return (_jsx(Notice, { copy: {\n                tone: \"neutral\",\n                title: props.emptyTitle ?? \"No Academy data\",\n                message: props.emptyMessage ?? \"There is no public Academy content to show yet.\",\n                action: props.emptyAction\n            } }));\n    }\n    return props.children(props.state.data);\n}\n/** Revalidation keeps private views inert. A failure explains itself at once;\n * a pending check shows the layout skeleton and offers retry only past 1s. */\nexport function PublicRecheck(props) {\n    const copy = props.error ? publicErrorCopy(props.error) : undefined;\n    const retry = props.onRetry && copy?.retryable !== false ? _jsx(\"button\", { type: \"button\", className: \"ca-button\", onClick: props.onRetry, children: \"Try again\" }) : null;\n    const body = copy\n        ? _jsxs(\"div\", { className: \"ca-inline-stack\", children: [_jsx(Notice, { copy: copy }), retry] })\n        : _jsxs(\"div\", { className: \"ca-inline-stack\", \"aria-busy\": \"true\", children: [_jsx(PublicLoading, { title: \"Checking your Academy access\", layout: props.layout }), _jsxs(\"div\", { className: \"ca-inline-stack ca-delayed-reveal\", children: [_jsx(Notice, { copy: { tone: \"neutral\", title: \"Checking your Academy access\", message: \"Your learning appears after your account is confirmed. Unsent drafts stay on this page.\" } }), retry] })] });\n    return props.shell ? _jsx(\"section\", { className: \"cedros-academy ca-public ca-public-shell\", children: body }) : body;\n}\nexport function Notice({ copy }) {\n    return (_jsxs(\"div\", { className: `ca-notice ca-notice--${copy.tone}`, role: copy.tone === \"error\" ? \"alert\" : \"status\", children: [_jsxs(\"div\", { children: [_jsx(\"strong\", { children: copy.title }), _jsx(\"p\", { children: copy.message })] }), copy.action ? _jsx(\"a\", { className: \"ca-button\", href: copy.action.href, children: copy.action.label }) : null] }));\n}\nexport function PublicPageControls(props) {\n    if (props.offset === 0 && !props.hasMore)\n        return _jsx(_Fragment, {});\n    return (_jsxs(\"div\", { className: \"ca-public-actions\", \"aria-label\": `${props.label} pagination`, children: [_jsx(\"button\", { className: \"ca-button\", disabled: props.offset === 0, type: \"button\", onClick: () => props.onChange(Math.max(0, props.offset - props.pageSize)), children: \"Previous\" }), _jsxs(\"span\", { className: \"ca-muted\", children: [\"Page \", Math.floor(props.offset / props.pageSize) + 1] }), _jsx(\"button\", { className: \"ca-button\", disabled: !props.hasMore, type: \"button\", onClick: () => props.onChange(props.offset + props.pageSize), children: \"Next\" })] }));\n}\nexport function CourseMeta({ course }) {\n    return (_jsxs(\"dl\", { className: \"ca-meta-list\", children: [!hasOpenLessons(course) ? _jsxs(\"div\", { children: [_jsx(\"dt\", { children: \"Price\" }), _jsx(\"dd\", { children: _jsx(Money, { amountCents: course.pricing?.amountCents, currency: course.pricing?.currency }) })] }) : null, _jsxs(\"div\", { children: [_jsx(\"dt\", { children: \"Level\" }), _jsx(\"dd\", { children: courseLevel(course.level) })] }), _jsxs(\"div\", { children: [_jsx(\"dt\", { children: \"Language\" }), _jsx(\"dd\", { children: courseLanguage(course.language) })] })] }));\n}\nfunction courseLevel(level) {\n    return !level || level === \"all\" ? \"All levels\" : level.charAt(0).toUpperCase() + level.slice(1);\n}\nfunction courseLanguage(language) {\n    const code = language?.trim() || \"en\";\n    try {\n        return new Intl.DisplayNames([\"en\"], { type: \"language\" }).of(code) || code;\n    }\n    catch {\n        return code;\n    }\n}\nexport function InstructorList({ instructors }) {\n    if (instructors.length === 0)\n        return _jsx(_Fragment, {});\n    return (_jsxs(\"div\", { className: \"ca-instructor-list\", children: [_jsx(\"h3\", { children: instructors.length === 1 ? \"Instructor\" : \"Instructors\" }), instructors.map((instructor) => (_jsxs(\"section\", { className: \"ca-instructor-summary\", children: [_jsx(\"h4\", { children: instructor.displayName || \"Academy instructor\" }), instructor.bio ? _jsx(\"p\", { className: \"ca-muted\", children: instructor.bio }) : null] }, instructor.instructorId)))] }));\n}\nexport function Progress({ value }) {\n    const progress = Math.max(0, Math.min(100, value));\n    return (_jsxs(\"div\", { className: \"ca-progress\", \"aria-label\": `${progress}% complete`, \"aria-valuemax\": 100, \"aria-valuemin\": 0, \"aria-valuenow\": progress, role: \"progressbar\", children: [_jsx(\"span\", { style: { width: `${progress}%` } }), _jsx(\"strong\", { children: _jsxs(\"span\", { className: \"ca-swap\", children: [progress, \"% complete\"] }, progress) })] }));\n}\n/**\n * Spinner-to-check morph for completion controls. Both marks occupy the same\n * grid cell so the swap reads as one mark becoming the other.\n */\nexport function ProgressMark({ state }) {\n    return (_jsx(\"span\", { className: \"ca-progress-mark\", \"aria-hidden\": \"true\", children: state === \"busy\"\n            ? _jsx(\"span\", { className: \"ca-spinner\" })\n            : (_jsx(\"svg\", { className: \"ca-check\", viewBox: \"0 0 16 16\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: _jsx(\"path\", { d: \"M3 8.5 6.5 12 13 4.5\" }) })) }));\n}\nfunction PublicLoading({ title, layout = \"courses\" }) {\n    const copy = _jsxs(_Fragment, { children: [_jsx(\"span\", { className: \"ca-skeleton ca-skeleton--title\" }), _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--line\" }), _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--line ca-skeleton--short\" })] });\n    if (layout === \"reading\")\n        return _jsx(\"div\", { className: \"ca-card ca-player ca-loading-reader\", role: \"status\", \"aria-label\": title, children: _jsxs(\"div\", { className: \"ca-player-layout\", \"aria-hidden\": \"true\", children: [_jsx(\"div\", { className: \"ca-loading-outline\", children: copy }), _jsxs(\"div\", { className: \"ca-inline-stack\", children: [copy, copy] })] }) });\n    if (layout === \"learning\")\n        return _jsxs(\"div\", { className: \"ca-learning-list\", role: \"status\", \"aria-label\": title, children: [_jsx(\"span\", { className: \"ca-skeleton ca-skeleton--title\", \"aria-hidden\": \"true\" }), [0, 1, 2].map(item => _jsxs(\"div\", { className: \"ca-enrollment-row\", \"aria-hidden\": \"true\", children: [_jsx(\"span\", { className: \"ca-course-artwork ca-skeleton\" }), _jsx(\"div\", { className: \"ca-enrollment-content\", children: copy })] }, item))] });\n    if (layout === \"detail\")\n        return _jsxs(\"div\", { className: \"ca-course-layout\", role: \"status\", \"aria-label\": title, children: [_jsxs(\"div\", { className: \"ca-course-primary\", \"aria-hidden\": \"true\", children: [copy, copy] }), _jsxs(\"div\", { className: \"ca-card ca-course-secondary\", \"aria-hidden\": \"true\", children: [copy, _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--line\" })] })] });\n    if (layout === \"form\")\n        return _jsx(\"div\", { className: \"ca-card ca-inline-stack ca-loading-form\", role: \"status\", \"aria-label\": title, children: _jsxs(\"div\", { className: \"ca-inline-stack\", \"aria-hidden\": \"true\", children: [copy, [0, 1, 2].map(item => _jsx(\"span\", { className: \"ca-skeleton ca-skeleton--field\" }, item))] }) });\n    return (_jsx(\"div\", { className: \"ca-card-grid ca-skeleton-grid\", role: \"status\", \"aria-label\": title, children: [0, 1, 2].map((item) => (_jsxs(\"div\", { className: \"ca-card ca-skeleton-card\", \"aria-hidden\": \"true\", children: [_jsx(\"span\", { className: \"ca-skeleton ca-skeleton--media\" }), _jsx(\"div\", { className: \"ca-skeleton-course-copy\", children: copy }), _jsx(\"span\", { className: \"ca-skeleton ca-skeleton-course-facts\" }), _jsx(\"span\", { className: \"ca-skeleton ca-skeleton-course-action\" })] }, item))) }));\n}\nexport function CourseGrid({ courses, compact = false, onSelect }) {\n    return (_jsx(\"div\", { className: compact ? \"ca-card-grid ca-card-grid--compact\" : \"ca-card-grid\", children: courses.map((course) => (_jsxs(\"article\", { className: \"ca-card ca-course-card ca-discovery-card\", children: [_jsx(CourseArtwork, { course: course }), _jsxs(\"div\", { className: \"ca-course-card-copy\", children: [course.category && course.category !== \"general\" ? _jsx(\"span\", { className: \"ca-muted ca-course-category\", children: course.category }) : null, _jsxs(\"div\", { className: \"ca-card-header\", children: [_jsx(\"h3\", { title: course.title, children: _jsx(\"a\", { className: \"ca-course-title-link\", href: courseCatalogUrl(course.slug || course.courseId), onClick: onSelect ? (event) => { event.preventDefault(); onSelect(course); } : undefined, children: course.title }) }), !hasOpenLessons(course) && course.enrollmentStatus === \"closed\" ? _jsx(Status, { value: \"closed\", label: \"Enrollment closed\" }) : null] }), _jsx(\"p\", { className: \"ca-muted\", children: course.description ?? course.subtitle ?? \"Course details are being prepared.\" })] }), _jsxs(\"p\", { className: \"ca-course-summary\", children: [_jsx(\"span\", { children: hasOpenLessons(course) ? \"Open lessons\" : _jsx(Money, { amountCents: course.pricing?.amountCents, currency: course.pricing?.currency }) }), _jsx(\"span\", { children: courseLevel(course.level) }), course.lessonCount ? _jsxs(\"span\", { children: [course.lessonCount.toLocaleString(), \" \", course.lessonCount === 1 ? \"lesson\" : \"lessons\"] }) : null, _jsx(\"span\", { children: courseLanguage(course.language) })] }), _jsx(\"div\", { className: \"ca-public-actions\", children: _jsxs(\"a\", { className: \"ca-course-detail-link\", href: courseCatalogUrl(course.slug || course.courseId), onClick: onSelect ? (event) => { event.preventDefault(); onSelect(course); } : undefined, children: [\"View course \", _jsx(\"span\", { \"aria-hidden\": \"true\", children: \"\\u2192\" })] }) })] }, course.courseId))) }));\n}\nexport function EnrollmentGrid(props) {\n    const enrollments = prioritizeLearning(props.enrollments);\n    const groups = [\n        { title: \"Continue learning\", rows: enrollments.filter((item) => item.status !== \"completed\" && enrollmentHasAccess(item)) },\n        { title: \"Completed courses\", rows: enrollments.filter((item) => item.status === \"completed\" && enrollmentHasAccess(item)) },\n        { title: \"Access needs attention\", rows: enrollments.filter((item) => !enrollmentHasAccess(item)) }\n    ];\n    const primaryCredentialCourseId = groups[1].rows.find((row) => props.certificates.some((item) => item.courseId === row.courseId))?.courseId;\n    return _jsx(\"div\", { className: \"ca-learning-list\", children: groups.filter((group) => group.rows.length).map((group) => _jsxs(\"section\", { className: \"ca-learning-group\", children: [_jsx(\"h3\", { children: group.title }), group.rows.map((enrollment, index) => {\n                    const course = props.courses.find((item) => item.courseId === enrollment.courseId);\n                    const courseCertificates = props.certificates.filter((item) => item.courseId === enrollment.courseId);\n                    const certificate = courseCertificates.find((item) => item.status === \"issued\") ?? courseCertificates[0];\n                    const access = enrollmentAccessCopy(enrollmentHasAccess(enrollment) ? enrollment.status : \"locked\");\n                    const completed = enrollment.status === \"completed\";\n                    return _jsxs(\"article\", { className: \"ca-enrollment-row\", children: [_jsx(CourseArtwork, { course: course ?? {} }), _jsxs(\"div\", { className: \"ca-enrollment-content\", children: [_jsxs(\"div\", { className: \"ca-card-header\", children: [_jsx(\"h3\", { title: course?.title, children: course?.title ?? \"Academy course\" }), !access.canOpen ? _jsx(Status, { value: enrollment.status }) : null] }), completed ? _jsx(\"p\", { className: \"ca-muted ca-learning-complete\", children: \"Completed\" }) : _jsx(Progress, { value: enrollment.progressPercent ?? 0 }), !access.canOpen ? _jsx(Notice, { copy: access }) : null] }), _jsxs(\"div\", { className: \"ca-public-actions ca-enrollment-actions\", children: [certificate ? _jsx(\"button\", { className: `ca-button${completed && groups[0].rows.length === 0 && enrollment.courseId === primaryCredentialCourseId ? \" ca-button-primary\" : \"\"}`, type: \"button\", onClick: () => props.onCertificateSelect(certificate.certificateId), children: \"View certificate\" }) : null, access.canOpen ? _jsx(\"button\", { className: `ca-button${!completed && index === 0 ? \" ca-button-primary\" : \"\"}`, type: \"button\", onClick: () => { if (enrollmentHasAccess(enrollment))\n                                            props.onSelect(enrollment.enrollmentId); }, children: completed ? \"Review course\" : \"Continue\" }) : null] })] }, enrollment.enrollmentId);\n                })] }, group.title)) });\n}\n/** Keep the lesson outline available without placing it ahead of reading on narrow blocks. */\nexport function LessonOutline(props) {\n    const root = useRef(null);\n    const [open, setOpen] = useState(true);\n    useEffect(() => {\n        const container = root.current?.closest(\".ca-public\");\n        if (!container)\n            return;\n        let narrow;\n        const observer = new ResizeObserver(([entry]) => {\n            const next = entry.contentRect.width < 680;\n            if (next !== narrow) {\n                narrow = next;\n                setOpen(!next);\n            }\n        });\n        observer.observe(container);\n        return () => observer.disconnect();\n    }, []);\n    const outline = _jsxs(\"details\", { ref: root, className: \"ca-lesson-outline\", open: open, onToggle: (event) => setOpen(event.currentTarget.open), children: [_jsx(\"summary\", { children: \"Course lessons\" }), props.children] });\n    return props.progress === undefined ? outline : _jsxs(\"div\", { className: \"ca-outline-context\", children: [_jsx(Progress, { value: props.progress }), outline] });\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":137,"specifier":"react","start":132},{"dynamic":false,"end":197,"specifier":"../shared/courseArtwork.js","start":171},{"dynamic":false,"end":259,"specifier":"../shared/authority.js","start":237},{"dynamic":false,"end":319,"specifier":"../shared/courseAccess.js","start":294},{"dynamic":false,"end":374,"specifier":"../shared/links.js","start":356},{"dynamic":false,"end":441,"specifier":"../shared/ui.js","start":426},{"dynamic":false,"end":535,"specifier":"./publicState.js","start":519}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/register.js","kind":"module","text":"import { createElement } from \"react\";\nimport { extensionBootstrap } from \"../bootstrap.js\";\nimport { generatedContentTemplates as contentTemplates } from \"../generated-templates.js\";\nimport { extensionManifest } from \"../manifest.js\";\nimport { ensureAcademyStyles } from \"../shared/styles.js\";\nimport { CertificateVerificationBlock, CourseCatalogBlock, CourseLandingBlock, CoursePlayerBlock, FeaturedCoursesBlock, InstructorProfileBlock, StudentDashboardBlock } from \"./blocks.js\";\nimport { CourseSubmissionBlock } from \"./courseSubmission.js\";\nconst blockComponents = {\n    \"cedros-academy:course-catalog\": CourseCatalogBlock,\n    \"cedros-academy:featured-courses\": FeaturedCoursesBlock,\n    \"cedros-academy:course-landing\": CourseLandingBlock,\n    \"cedros-academy:instructor-profile\": InstructorProfileBlock,\n    \"cedros-academy:student-dashboard\": StudentDashboardBlock,\n    \"cedros-academy:course-player\": CoursePlayerBlock,\n    \"cedros-academy:certificate-verification\": CertificateVerificationBlock,\n    \"cedros-academy:course-submission\": CourseSubmissionBlock\n};\nconst contentBlocks = (extensionManifest.contentBlocks ?? []).map((block) => ({\n    ...block,\n    Component: blockComponents[block.type]\n}));\nconst contentBlockRenderers = [\n    { type: \"cedros-academy:course-catalog\", render: renderBlock(CourseCatalogBlock) },\n    { type: \"cedros-academy:featured-courses\", render: renderBlock(FeaturedCoursesBlock) },\n    { type: \"cedros-academy:course-landing\", render: renderBlock(CourseLandingBlock) },\n    { type: \"cedros-academy:instructor-profile\", render: renderBlock(InstructorProfileBlock) },\n    { type: \"cedros-academy:student-dashboard\", render: renderBlock(StudentDashboardBlock) },\n    { type: \"cedros-academy:course-player\", render: renderBlock(CoursePlayerBlock) },\n    { type: \"cedros-academy:certificate-verification\", render: renderBlock(CertificateVerificationBlock) },\n    { type: \"cedros-academy:course-submission\", render: renderBlock(CourseSubmissionBlock) }\n];\nensureAcademyStyles();\nexport function registerCedrosWebSurface() {\n    return { ...extensionBootstrap, contentBlocks, contentBlockRenderers, contentTemplates };\n}\nexport default registerCedrosWebSurface;\nfunction renderBlock(Component) {\n    return (input) => createElement(Component, input);\n}\n","imports":[{"dynamic":false,"end":36,"specifier":"react","start":31},{"dynamic":false,"end":90,"specifier":"../bootstrap.js","start":75},{"dynamic":false,"end":181,"specifier":"../generated-templates.js","start":156},{"dynamic":false,"end":233,"specifier":"../manifest.js","start":219},{"dynamic":false,"end":292,"specifier":"../shared/styles.js","start":273},{"dynamic":false,"end":480,"specifier":"./blocks.js","start":469},{"dynamic":false,"end":543,"specifier":"./courseSubmission.js","start":522}],"hasUnsupportedDynamicImports":false}]}