/* ws-lesson-page-wrap (lesson single view) */
            /* Palette matches the rest of the site's frontend panels (see
               workshop-suite's admin-theme.css / ws-theme-wrapper): a flat,
               border-only card style, orange #ff6608 accent, no bubbly
               shadows/radii — not a generic blue SaaS-LMS look. */
            .ws-lesson-page-wrap { --ws-card-bg: #ffffff; --ws-card-border: #e2e8f0; --ws-text-heading: #1d2327; --ws-text-body: #3c434a; --ws-text-muted: #646970; --ws-surface-alt: #f6f7f7; --ws-border-soft: #eaeaea; --ws-accent: #ff6608; }
            .ws-theme-dark .ws-lesson-page-wrap { --ws-card-bg: transparent; --ws-card-border: rgba(255,255,255,.15); --ws-text-heading: #ffffff; --ws-text-body: rgba(255,255,255,.8); --ws-text-muted: rgba(255,255,255,.5); --ws-surface-alt: rgba(255,255,255,.05); --ws-border-soft: rgba(255,255,255,.08); }
            .ws-lesson-page-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 1300px; margin: 0 auto; padding: 20px 0 60px; color: var(--ws-text-body); }
            .ws-lesson-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
            @media (max-width: 980px) { .ws-lesson-grid { grid-template-columns: 1fr; } }
            .ws-lp-breadcrumb { margin-bottom: 18px; font-size: 13.5px; color: var(--ws-text-muted); }
            .ws-lp-breadcrumb a { color: var(--ws-text-muted); text-decoration: none; }
            .ws-lp-breadcrumb a.ws-lp-course-link { color: var(--ws-accent); font-weight: 600; }
            .ws-lp-breadcrumb .ws-lp-current { color: var(--ws-text-heading); font-weight: 700; }
            .ws-stage-box { background: var(--ws-card-bg); border: 1px solid var(--ws-card-border); border-radius: 6px; overflow: hidden; }
            .ws-video-player-frame { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
            .ws-video-player-frame iframe, .ws-video-player-frame video { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }
            .ws-yt-facade { position: absolute; top:0; left:0; width:100%; height:100%; background-color:#111; background-size:cover; background-position:center; cursor:pointer; display:flex; align-items:center; justify-content:center; }
            .ws-yt-play { width:76px; height:76px; border-radius:50%; background: rgba(255,102,8,.92); color:#fff; font-size:26px; display:flex; align-items:center; justify-content:center; padding-left:5px; transition: background .15s ease, transform .15s ease; }
            .ws-yt-facade:hover .ws-yt-play { background:#ff6608; transform: scale(1.06); }
            .ws-stream-banner { background: rgba(255,102,8,.12); border-bottom: 1px solid var(--ws-card-border); color: var(--ws-text-heading); padding: 36px 24px; text-align: center; }
            .ws-lp-body { padding: 28px 26px; }
            .ws-lp-body h1 { font-size: 24px; font-weight: 700; color: var(--ws-text-heading); margin: 0 0 14px 0; }
            .ws-lp-body-content { font-size: 15px; color: var(--ws-text-body); line-height: 1.65; }
            .ws-lp-locked-note { color: var(--ws-text-muted); }
            .ws-lp-attachments { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ws-card-border); }
            .ws-lp-attachments h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-text-muted); margin: 0 0 10px; }
            .ws-lp-attachment-link { display: block; padding: 8px 12px; margin-bottom: 6px; border: 1px solid var(--ws-card-border); border-radius: 4px; color: var(--ws-text-body); text-decoration: none !important; font-size: 14px; }
            .ws-lp-attachment-link:hover { border-color: var(--ws-accent); color: var(--ws-accent); }
            .ws-lp-qa { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ws-card-border); }
            .ws-lp-qa h3 { font-size: 15px; font-weight: 700; color: var(--ws-text-heading); margin: 0 0 14px; }
            .ws-lp-qa-list { list-style: none; margin: 0 0 20px; padding: 0; }
            .ws-lp-qa-list .comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ws-border-soft); }
            .ws-lp-qa-list .comment .avatar { border-radius: 50%; flex-shrink: 0; }
            .ws-lp-qa-list .comment-author .fn { font-weight: 700; font-size: 13.5px; color: var(--ws-text-heading); font-style: normal; }
            .ws-lp-qa-list .comment-metadata { font-size: 12px; color: var(--ws-text-muted); margin-bottom: 4px; }
            .ws-lp-qa-list .comment-metadata a { color: inherit; }
            .ws-lp-qa-list .comment-content p { font-size: 14px; color: var(--ws-text-body); margin: 4px 0 0; line-height: 1.55; }
            .ws-lp-qa-list ul.children { list-style: none; margin: 0; padding-left: 48px; }
            .ws-lp-qa #commentform { display: flex; flex-direction: column; gap: 10px; }
            .ws-lp-qa #commentform textarea { width: 100%; min-height: 90px; padding: 10px 12px; border: 1px solid var(--ws-card-border); border-radius: 4px; background: var(--ws-card-bg); color: var(--ws-text-body); font-family: inherit; font-size: 14px; resize: vertical; }
            .ws-lp-qa #commentform input[type="text"], .ws-lp-qa #commentform input[type="email"] { padding: 9px 12px; border: 1px solid var(--ws-card-border); border-radius: 4px; background: var(--ws-card-bg); color: var(--ws-text-body); font-size: 14px; }
            .ws-lp-qa #commentform .comment-form-author, .ws-lp-qa #commentform .comment-form-email { display: inline-block; width: calc(50% - 6px); }
            .ws-lp-qa #commentform label { display: block; font-size: 12px; color: var(--ws-text-muted); margin-bottom: 4px; }
            .ws-lp-qa #commentform .form-submit input { background: var(--ws-accent); color: #fff; border: none; font-weight: 700; font-size: 13.5px; padding: 10px 24px; border-radius: 4px; cursor: pointer; }
            .ws-lp-qa #commentform .form-submit input:hover { background: #e05a00; }
            .ws-lp-footer { background: var(--ws-surface-alt); border-top: 1px solid var(--ws-card-border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
            .ws-nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 4px; text-decoration: none !important; font-weight: 700; font-size: 13.5px; border: 1px solid transparent; }
            .ws-nav-btn-prev { background: transparent; border-color: var(--ws-card-border); color: var(--ws-text-body); }
            .ws-nav-btn-prev:hover { border-color: var(--ws-accent); color: var(--ws-accent); }
            .ws-nav-btn-next { background: var(--ws-accent); color: #ffffff; }
            .ws-nav-btn-next:hover { background: #e05a00; }
            .ws-nav-btn-finish { background: #2e8b3d; color: #ffffff; }
            .ws-curriculum-nav { background: var(--ws-card-bg); border: 1px solid var(--ws-card-border); border-radius: 6px; overflow: hidden; }
            .ws-curr-head { background: var(--ws-surface-alt); border-bottom: 1px solid var(--ws-card-border); padding: 18px 20px; }
            .ws-curr-head span { font-size: 11px; font-weight: 800; color: var(--ws-accent); text-transform: uppercase; letter-spacing: 0.5px; }
            .ws-curr-head h3 { font-size: 16px; font-weight: 700; color: var(--ws-text-heading); margin: 4px 0 0 0; }
            .ws-curr-item { padding: 14px 18px; border-bottom: 1px solid var(--ws-border-soft); display: flex; align-items: center; justify-content: space-between; text-decoration: none !important; color: var(--ws-text-body); transition: background .15s ease, color .15s ease; font-size: 14px; }
            .ws-curr-item:hover { background: var(--ws-surface-alt); color: var(--ws-accent); }
            .ws-curr-active { background: rgba(255,102,8,.1) !important; color: var(--ws-accent) !important; font-weight: 700; border-left: 3px solid var(--ws-accent); }
            .ws-curr-item-label { display: flex; align-items: center; gap: 10px; }
            .ws-curr-now { font-size: 11px; background: var(--ws-accent); color: #ffffff; padding: 2px 8px; border-radius: 3px; }
            .ws-lp-locked-panel { padding: 60px 26px; text-align: center; background: rgba(0,0,0,.85); color: #ffffff; }

/* ws-cp-wrap (course view) */
            .ws-cp-wrap { --ws-card-bg: #ffffff; --ws-card-border: #e2e8f0; --ws-text-heading: #1d2327; --ws-text-body: #3c434a; --ws-text-muted: #646970; --ws-surface-alt: #f6f7f7; --ws-border-soft: #eaeaea; --ws-accent: #ff6608; }
            .ws-theme-dark .ws-cp-wrap { --ws-card-bg: transparent; --ws-card-border: rgba(255,255,255,.15); --ws-text-heading: #ffffff; --ws-text-body: rgba(255,255,255,.8); --ws-text-muted: rgba(255,255,255,.5); --ws-surface-alt: rgba(255,255,255,.05); --ws-border-soft: rgba(255,255,255,.08); }
            .ws-cp-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 1100px; margin: 0 auto; padding: 20px 0 60px; color: var(--ws-text-body); }
            .ws-cp-hero { background: rgba(255,102,8,.08); border: 1px solid var(--ws-card-border); border-radius: 6px; padding: 50px 30px; margin-bottom: 30px; text-align: center; }
            .ws-cp-hero .ws-cp-kicker { display: inline-block; background: rgba(255,102,8,.15); border: 1px solid rgba(255,102,8,.4); color: #ff6608; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 3px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
            .ws-cp-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--ws-text-heading); margin: 0 0 12px 0; }
            .ws-cp-hero p { font-size: 15px; color: var(--ws-text-muted); margin: 0 0 24px 0; }
            .ws-cp-cta { display: inline-block; background: var(--ws-accent); color: #ffffff !important; font-weight: 700; font-size: 14.5px; padding: 13px 30px; border-radius: 4px; text-decoration: none !important; }
            .ws-cp-cta:hover { background: #e05a00; }
            .ws-cp-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
            @media (max-width: 860px) { .ws-cp-grid { grid-template-columns: 1fr; } }
            .ws-cp-overview { background: var(--ws-card-bg); border: 1px solid var(--ws-card-border); border-radius: 6px; padding: 30px; }
            .ws-cp-overview h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px 0; color: var(--ws-text-heading); }
            .ws-cp-overview-content { font-size: 15px; line-height: 1.65; }
            .ws-lp-attachments { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ws-card-border); }
            .ws-lp-attachments h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-text-muted); margin: 0 0 10px; }
            .ws-lp-attachment-link { display: block; padding: 8px 12px; margin-bottom: 6px; border: 1px solid var(--ws-card-border); border-radius: 4px; color: var(--ws-text-body); text-decoration: none !important; font-size: 14px; }
            .ws-lp-attachment-link:hover { border-color: var(--ws-accent); color: var(--ws-accent); }
            .ws-cp-curriculum { background: var(--ws-card-bg); border: 1px solid var(--ws-card-border); border-radius: 6px; overflow: hidden; }
            .ws-cp-curr-head { padding: 18px 20px; background: var(--ws-surface-alt); border-bottom: 1px solid var(--ws-card-border); }
            .ws-cp-curr-head h3 { font-size: 15.5px; font-weight: 700; color: var(--ws-text-heading); margin: 0; }
            .ws-cp-module-label { padding: 12px 20px; background: var(--ws-surface-alt); border-bottom: 1px solid var(--ws-border-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-text-muted); }
            .ws-cp-lesson-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--ws-border-soft); text-decoration: none !important; color: var(--ws-text-body); font-size: 14px; }
            .ws-cp-lesson-row:hover { background: var(--ws-surface-alt); }
            .ws-cp-lesson-status { color: var(--ws-accent); font-weight: 600; }
            .ws-cp-empty { padding: 20px; color: var(--ws-text-muted); font-size: 14px; margin: 0; }

/* ws-cg-wrap (courses grid) */
            .ws-cg-wrap { --ws-card-bg: #ffffff; --ws-card-border: #e2e8f0; --ws-text-heading: #1d2327; --ws-text-muted: #646970; --ws-accent: #ff6608; }
            .ws-theme-dark .ws-cg-wrap { --ws-card-bg: transparent; --ws-card-border: rgba(255,255,255,.15); --ws-text-heading: #ffffff; --ws-text-muted: rgba(255,255,255,.5); }
            .ws-cg-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
            .ws-cg-card { background: var(--ws-card-bg); border: 1px solid var(--ws-card-border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
            .ws-cg-thumb { height: 170px; background-color: rgba(255,255,255,.05); background-size: cover; background-position: center; }
            .ws-cg-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
            .ws-cg-body h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px 0; }
            .ws-cg-body h3 a { text-decoration: none; color: var(--ws-text-heading); }
            .ws-cg-body p { font-size: 13.5px; color: var(--ws-text-muted); margin: 0 0 16px 0; line-height: 1.5; }
            .ws-cg-cta { display: inline-block; text-align: center; background: var(--ws-accent); color: #ffffff !important; font-size: 13.5px; font-weight: 700; padding: 10px 18px; border-radius: 4px; text-decoration: none !important; }
            .ws-cg-cta:hover { background: #e05a00; }

/* ws_my_courses shortcode ('I miei corsi') */
            .wsmc { color: #2c3338; max-width: 1000px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
            .wsmc h2 { color: #1d2327; font-size: 18px; margin: 0 0 16px; }
            .wsmc-hint { color: #646970; font-size: 13px; line-height: 1.6; }
            .wsmc-locked { max-width: 420px; }
            .wsmc-locked form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
            .wsmc-locked input[type=email] { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 13px; }
            .wsmc-locked button { padding: 9px 18px; background: #2271b1; border: 1px solid #2271b1; color: #fff; border-radius: 4px; font-size: 13px; cursor: pointer; }
            .wsmc-locked button:hover { background: #135e96; }
            .wsmc-locked button:disabled { opacity: .6; cursor: default; }
            .wsmc-msg { color: #008a20; font-size: 13px; margin-top: 10px; }
            .wsmc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
            .wsmc-card { background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
            .wsmc-thumb { height: 130px; background-color: #ececec; background-size: cover; background-position: center; position: relative; }
            .wsmc-badge-done { position: absolute; top: 8px; right: 8px; background: #008a20; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
            .wsmc-card-body { padding: 14px; }
            .wsmc-card-body h3 { font-size: 14px; margin: 0 0 10px; color: #1d2327; }
            .wsmc-progress-bar { height: 6px; background: #f0f0f1; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
            .wsmc-progress-fill { height: 100%; background: #2271b1; }
            .wsmc-progress-label { font-size: 11px; color: #646970; margin-bottom: 12px; }
            .wsmc-btn { display: inline-block; background: #2271b1; color: #fff !important; padding: 8px 16px; border-radius: 4px; font-size: 13px; text-decoration: none !important; }
            .wsmc-btn:hover { background: #135e96; }

            /* Frontend dark theme — see WS_Shortcode_Base::render() in the core plugin. */
            .ws-theme-dark .wsmc { color: #fff; }
            .ws-theme-dark .wsmc h2 { color: #fff; }
            .ws-theme-dark .wsmc-hint { color: rgba(255,255,255,.5); }
            .ws-theme-dark .wsmc-locked input[type=email] { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
            .ws-theme-dark .wsmc-locked button { background: #ff6608; border-color: #ff6608; }
            .ws-theme-dark .wsmc-locked button:hover { background: #e05a00; }
            .ws-theme-dark .wsmc-msg { color: #7ddc8e; }
            .ws-theme-dark .wsmc-card { background: transparent; border-color: rgba(255,255,255,.15); box-shadow: none; }
            .ws-theme-dark .wsmc-thumb { background-color: rgba(255,255,255,.05); }
            .ws-theme-dark .wsmc-card-body h3 { color: #fff; }
            .ws-theme-dark .wsmc-progress-label { color: rgba(255,255,255,.5); }
            .ws-theme-dark .wsmc-btn { background: #ff6608 !important; }
            .ws-theme-dark .wsmc-btn:hover { background: #e05a00 !important; }
