html:has(body.pdp-standalone-page) {
    margin: 0 !important;
}
body.pdp-standalone-page {
    --pdp-sand-50: #fffaf0;
    --pdp-sand-100: #f8f2dc;
    --pdp-sand-200: #efe3c3;
    --pdp-yellow: #f2c94c;
    --pdp-yellow-strong: #e6b635;
    --pdp-blue-50: #edf6f8;
    --pdp-blue-100: #d9edf1;
    --pdp-blue: #0b757f;
    --pdp-blue-dark: #075a62;
    --pdp-charcoal: #263238;
    --pdp-muted: #66737a;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 7% 6%, rgba(242, 201, 76, .22), transparent 29%),
        radial-gradient(circle at 94% 3%, rgba(11, 117, 127, .16), transparent 30%),
        linear-gradient(135deg, #fffaf0 0%, #f8f2dc 48%, #edf6f8 100%);
    color: var(--pdp-charcoal);
}
body.pdp-standalone-page #wpadminbar { position: fixed; }
body.pdp-standalone-page .pdp-app {
    min-height: 100vh;
    padding: 0;
}

/*
 * PixiDojo Platform Frontend Styles
 * Brand direction: warm sand, sunny CTA, calm blue/teal structure, charcoal text.
 */
.pdp-wrap {
    --pdp-sand-50: #fffaf0;
    --pdp-sand-100: #f8f2dc;
    --pdp-sand-200: #efe3c3;
    --pdp-yellow: #f2c94c;
    --pdp-yellow-strong: #e6b635;
    --pdp-blue-50: #edf6f8;
    --pdp-blue-100: #d9edf1;
    --pdp-blue: #0b757f;
    --pdp-blue-dark: #075a62;
    --pdp-charcoal: #263238;
    --pdp-muted: #66737a;
    --pdp-line: rgba(38, 50, 56, .11);
    --pdp-card: rgba(255, 255, 255, .88);
    --pdp-shadow-soft: 0 18px 50px rgba(38, 50, 56, .08);
    --pdp-shadow-hover: 0 22px 64px rgba(38, 50, 56, .13);
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 56px;
    color: var(--pdp-charcoal);
    font-size: 16px;
}
.pdp-wrap *, .pdp-wrap *::before, .pdp-wrap *::after { box-sizing: border-box; }
.pdp-wrap a { color: var(--pdp-blue); text-underline-offset: 3px; }
.pdp-wrap a:hover { color: var(--pdp-blue-dark); }
.pdp-content {
    position: relative;
    padding: clamp(18px, 3vw, 34px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 8% 4%, rgba(242, 201, 76, .19), transparent 28%),
        radial-gradient(circle at 94% 8%, rgba(11, 117, 127, .12), transparent 30%),
        linear-gradient(135deg, rgba(248, 242, 220, .66), rgba(255, 255, 255, .78));
    border: 1px solid rgba(255, 255, 255, .62);
    box-shadow: 0 16px 70px rgba(38, 50, 56, .06);
    overflow: hidden;
}
.pdp-content::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 50, 56, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 50, 56, .025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 70%);
}
.pdp-content > * { position: relative; z-index: 1; }

/* Shell */
.pdp-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--pdp-line);
    border-radius: 999px;
    box-shadow: var(--pdp-shadow-soft);
    backdrop-filter: blur(12px);
}
.pdp-shell-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--pdp-charcoal);
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -.02em;
}
.pdp-shell-brand a::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pdp-yellow), var(--pdp-blue));
    box-shadow: 0 0 0 5px rgba(242, 201, 76, .16);
}
.pdp-shell-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pdp-shell-nav a,
.pdp-link-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--pdp-charcoal);
    text-decoration: none;
    font-weight: 750;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pdp-shell-nav a:hover,
.pdp-link-button:hover,
.pdp-shell-nav a.is-active {
    background: var(--pdp-blue-50);
    color: var(--pdp-blue-dark);
    transform: translateY(-1px);
}
.pdp-inline-form { display: inline; margin: 0; }
.pdp-link-button { border: 0; background: transparent; cursor: pointer; font: inherit; }

/* Typography */
.pdp-page-header { margin: 0 0 26px; max-width: 820px; }
.pdp-page-header h1,
.pdp-course-hero h1,
.pdp-auth-card h1 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0 0 12px;
    color: var(--pdp-charcoal);
}
.pdp-page-header p,
.pdp-section-heading p,
.pdp-course-card p,
.pdp-course-hero p,
.pdp-card > p {
    color: var(--pdp-muted);
    line-height: 1.62;
}
.pdp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .75rem;
    font-weight: 850;
    color: var(--pdp-blue);
}
.pdp-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: var(--pdp-yellow-strong);
}

/* Cards and forms */
.pdp-card {
    background: var(--pdp-card);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: 22px;
    box-shadow: var(--pdp-shadow-soft);
}
.pdp-card h2 { margin-top: 0; letter-spacing: -.025em; }
.pdp-form { display: grid; gap: 13px; }
.pdp-form label span { display: block; margin-bottom: 7px; font-weight: 750; }
.pdp-form input,
.pdp-form textarea,
.pdp-form select,
.pdp-filterbar input,
.pdp-filterbar select,
.pdp-comment-form input {
    width: 100%;
    border: 1px solid rgba(38, 50, 56, .16);
    border-radius: 16px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .88);
    color: var(--pdp-charcoal);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.pdp-form textarea { resize: vertical; min-height: 120px; }
.pdp-form input:focus,
.pdp-form textarea:focus,
.pdp-form select:focus,
.pdp-filterbar input:focus,
.pdp-filterbar select:focus,
.pdp-comment-form input:focus {
    border-color: rgba(11, 117, 127, .52);
    box-shadow: 0 0 0 4px rgba(11, 117, 127, .11);
    background: #fff;
}
.pdp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pdp-yellow), var(--pdp-yellow-strong));
    color: var(--pdp-charcoal) !important;
    font-weight: 850;
    text-decoration: none !important;
    padding: 12px 19px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(230, 182, 53, .24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.pdp-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(230, 182, 53, .32); filter: saturate(1.04); }
.pdp-button-secondary {
    background: linear-gradient(135deg, #fff, var(--pdp-blue-50));
    color: var(--pdp-blue-dark) !important;
    border: 1px solid rgba(11, 117, 127, .13);
    box-shadow: 0 10px 24px rgba(11, 117, 127, .08);
}
.pdp-button-small { padding: 9px 13px; font-size: .9rem; }
.pdp-button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pdp-notice {
    padding: 13px 15px;
    border-radius: 18px;
    margin: 13px 0;
    font-weight: 700;
}
.pdp-notice-success { background: #edf8ee; color: #246b32; border: 1px solid rgba(36, 107, 50, .13); }
.pdp-notice-error { background: #fff0f0; color: #8f2d2d; border: 1px solid rgba(143, 45, 45, .13); }

/* Sections */
.pdp-section { margin: 38px 0; }
.pdp-section-heading { margin: 0 0 18px; max-width: 760px; }
.pdp-section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    letter-spacing: -.035em;
}
.pdp-page-header-with-action { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }

/* Course catalog */
.pdp-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}
.pdp-course-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pdp-course-card:hover { transform: translateY(-3px); box-shadow: var(--pdp-shadow-hover); }
.pdp-course-card-body { display: flex; flex-direction: column; gap: 13px; padding: 22px; flex: 1; }
.pdp-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pdp-course-card h3 { font-size: 1.35rem; line-height: 1.15; margin: 0; letter-spacing: -.03em; }
.pdp-course-card p { margin: 0; }
.pdp-course-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    background: var(--pdp-sand-100);
}
.pdp-course-image-placeholder {
    background:
        radial-gradient(circle at 20% 25%, rgba(242, 201, 76, .55), transparent 24%),
        radial-gradient(circle at 80% 12%, rgba(11, 117, 127, .24), transparent 26%),
        linear-gradient(135deg, var(--pdp-sand-100), #fff);
}
.pdp-badge {
    align-self: flex-start;
    background: var(--pdp-sand-100);
    border: 1px solid rgba(230, 182, 53, .18);
    border-radius: 999px;
    padding: 6px 11px;
    color: #705400;
    font-weight: 850;
    font-size: .82rem;
}
.pdp-status-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}
.pdp-status-available { background: #edf8ee; color: #246b32; }
.pdp-status-locked { background: #fff4d2; color: #725300; }
.pdp-course-lock-wrap { position: relative; }
.pdp-lock-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .93);
    display: grid;
    place-items: center;
    box-shadow: 0 9px 22px rgba(38, 50, 56, .15);
}
.pdp-course-locked .pdp-course-image { filter: saturate(.78); opacity: .88; }
.pdp-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdp-meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(11, 117, 127, .08);
    color: var(--pdp-blue-dark);
    padding: 6px 10px;
    font-size: .84rem;
    font-weight: 750;
}
.pdp-meta-row-large { margin: 16px 0; }
.pdp-progress-wrap { display: grid; gap: 7px; }
.pdp-progress-wrap span { font-size: .84rem; font-weight: 750; color: var(--pdp-muted); }
.pdp-progress { height: 10px; border-radius: 999px; background: rgba(38, 50, 56, .09); overflow: hidden; }
.pdp-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pdp-yellow), var(--pdp-blue)); }
.pdp-progress-wrap-wide { max-width: 560px; margin-top: 18px; }

/* Course detail */
.pdp-course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 30px;
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    background:
        radial-gradient(circle at 12% 12%, rgba(242, 201, 76, .22), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(248, 242, 220, .74));
}
.pdp-course-hero-content { min-width: 0; }
.pdp-course-hero-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: var(--pdp-sand-100); box-shadow: 0 18px 44px rgba(38, 50, 56, .12); }
.pdp-rich-text > :first-child { margin-top: 0; }
.pdp-rich-text > :last-child { margin-bottom: 0; }
.pdp-module-list { display: grid; gap: 18px; }
.pdp-module-block {
    border: 1px solid var(--pdp-line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .66);
}
.pdp-module-block h3 { margin: 0 0 12px; letter-spacing: -.02em; }
.pdp-lesson-list { padding-left: 20px; }
.pdp-lesson-list li { margin: 10px 0; }
.pdp-lesson-list-cards { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.pdp-lesson-list-cards li > a,
.pdp-lesson-list-cards li > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pdp-charcoal);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--pdp-line);
    border-radius: 17px;
    padding: 13px 15px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.pdp-lesson-list-cards li > a:hover { transform: translateX(3px); border-color: rgba(11, 117, 127, .25); background: #fff; }
.pdp-lesson-list-cards small { font-weight: 850; color: var(--pdp-blue); }
.pdp-lesson-list-cards .is-complete > a { background: #edf8ee; border-color: rgba(36, 107, 50, .15); }
.pdp-locked-box { border-color: rgba(242, 201, 76, .42); background: linear-gradient(135deg, #fffaf0, rgba(255, 255, 255, .88)); }

/* Lesson view */
.pdp-lesson-layout { display: grid; grid-template-columns: minmax(230px, 290px) 1fr; gap: 22px; align-items: start; }
.pdp-lesson-sidebar {
    position: sticky;
    top: 24px;
    background: rgba(248, 242, 220, .9);
    border: 1px solid rgba(230, 182, 53, .18);
    border-radius: 26px;
    padding: 20px;
    box-shadow: var(--pdp-shadow-soft);
}
.pdp-lesson-sidebar > a { display: inline-flex; margin-bottom: 14px; font-weight: 850; text-decoration: none; }
.pdp-lesson-sidebar ol { padding-left: 20px; margin: 0; }
.pdp-lesson-sidebar li { margin: 9px 0; color: var(--pdp-muted); }
.pdp-lesson-sidebar li a { color: var(--pdp-charcoal); text-decoration: none; }
.pdp-lesson-sidebar .is-current a { font-weight: 850; color: var(--pdp-blue-dark); }
.pdp-lesson-content { min-width: 0; }
.pdp-lesson-content h1 { margin-top: 0; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.045em; }
.pdp-lesson-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pdp-line); }

/* Feed */
.pdp-filterbar {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 230px) auto;
    gap: 12px;
    margin-bottom: 22px;
}
.pdp-feed-list { display: grid; gap: 18px; }
.pdp-feed-post h2 { margin: 10px 0 8px; letter-spacing: -.025em; }
.pdp-post-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--pdp-muted); font-size: .9rem; }
.pdp-post-meta span:first-child { color: var(--pdp-blue-dark); font-weight: 850; }
.pdp-post-content { line-height: 1.62; }
.pdp-comments { margin-top: 16px; display: grid; gap: 8px; }
.pdp-comment { background: rgba(248, 242, 220, .72); border-radius: 16px; padding: 11px 13px; }
.pdp-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 15px; }

/* Account */
.pdp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.pdp-access-list { display: grid; gap: 10px; }
.pdp-access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--pdp-line);
    border-radius: 18px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .72);
}
.pdp-access-item small { display: block; color: var(--pdp-muted); margin-top: 4px; }
.pdp-empty { padding: 26px; background: rgba(255, 255, 255, .72); border: 1px dashed rgba(38, 50, 56, .16); border-radius: 20px; color: var(--pdp-muted); }
.pdp-auth-card { max-width: 560px; margin: 0 auto; }

@media (max-width: 900px) {
    .pdp-shell-header { align-items: flex-start; border-radius: 28px; flex-direction: column; }
    .pdp-shell-nav { width: 100%; }
    .pdp-page-header-with-action,
    .pdp-course-hero,
    .pdp-lesson-layout { display: block; }
    .pdp-course-hero-image { margin-top: 20px; }
    .pdp-lesson-sidebar { position: static; margin-bottom: 20px; }
}
@media (max-width: 680px) {
    .pdp-wrap { padding: 22px 14px 42px; }
    .pdp-content { padding: 18px; border-radius: 26px; }
    .pdp-filterbar,
    .pdp-comment-form { grid-template-columns: 1fr; }
    .pdp-shell-nav a,
    .pdp-link-button { min-height: 34px; padding: 7px 11px; }
}

/* Standalone footer */
.pdp-shell-footer {display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:22px;padding:18px 6px 0;color:var(--pdp-muted);font-size:.94rem;}
.pdp-shell-footer div{display:flex;flex-direction:column;gap:3px;}
.pdp-shell-footer strong{color:var(--pdp-charcoal);}
.pdp-shell-footer a{color:var(--pdp-blue-dark);font-weight:750;text-decoration:none;}
.pdp-shell-footer a:hover{text-decoration:underline;}
@media (max-width:720px){.pdp-shell-footer{align-items:flex-start;flex-direction:column;}}

/* Community feed v0.9 */
.pdp-plus-button {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 0;
    background: var(--pdp-yellow);
    color: var(--pdp-charcoal);
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: var(--pdp-shadow-soft);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pdp-plus-button:hover { transform: translateY(-2px) rotate(5deg); box-shadow: var(--pdp-shadow); }
.pdp-composer-card { margin-bottom: 22px; border-color: rgba(230, 182, 53, .32); }
.pdp-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pdp-form-message { margin: 0; color: var(--pdp-blue-dark); font-weight: 750; }
.pdp-form-message.is-error { color: #9f2d20; }
.pdp-feed-post { scroll-margin-top: 24px; }
.pdp-feed-post.is-pinned { border-color: rgba(230, 182, 53, .48); }
.pdp-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(230, 182, 53, .2);
    color: var(--pdp-charcoal);
    font-weight: 800;
}
.pdp-post-headline { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.pdp-post-actions, .pdp-comment-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pdp-link-button {
    border: 0;
    background: transparent;
    color: var(--pdp-blue-dark);
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.pdp-link-button:hover { text-decoration: underline; }
.pdp-feed-actions-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.pdp-reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--pdp-line);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--pdp-charcoal);
    padding: 8px 13px;
    cursor: pointer;
    font-weight: 800;
}
.pdp-reaction-button.is-active { background: rgba(230, 182, 53, .22); border-color: rgba(230, 182, 53, .48); }
.pdp-comment-count { color: var(--pdp-muted); font-size: .94rem; }
.pdp-edit-post-form { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--pdp-line); }
.pdp-edit-comment-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 8px; }
.pdp-comment-view { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 680px) {
    .pdp-post-headline { display: block; }
    .pdp-post-actions { margin-bottom: 8px; }
    .pdp-edit-comment-form { grid-template-columns: 1fr; }
}

/* Browser-/Theme-sicher: versteckte UI-Elemente wirklich ausblenden */
.pdp-app [hidden],
.pdp-standalone-page [hidden] {
    display: none !important;
}


/* v0.9.3/v0.10 – nüchterneres Design / weniger Bonbon */
body.pdp-standalone-page {
    --pdp-sand-50: #f8f5ef;
    --pdp-sand-100: #f1ece2;
    --pdp-sand-200: #e6dfd1;
    --pdp-yellow: #d2b04c;
    --pdp-yellow-strong: #b99837;
    --pdp-blue-50: #eef3f4;
    --pdp-blue-100: #dfe8ea;
    --pdp-blue: #5d767d;
    --pdp-blue-dark: #42555b;
    --pdp-charcoal: #2f3538;
    --pdp-muted: #6b7276;
    background: linear-gradient(180deg, #f6f3ee 0%, #f1ece4 100%);
}
.pdp-wrap {
    --pdp-sand-50: #f8f5ef;
    --pdp-sand-100: #f1ece2;
    --pdp-sand-200: #e6dfd1;
    --pdp-yellow: #d2b04c;
    --pdp-yellow-strong: #b99837;
    --pdp-blue-50: #eef3f4;
    --pdp-blue-100: #dfe8ea;
    --pdp-blue: #5d767d;
    --pdp-blue-dark: #42555b;
    --pdp-charcoal: #2f3538;
    --pdp-muted: #6b7276;
    --pdp-line: rgba(47, 53, 56, .10);
    --pdp-card: #fbfaf8;
    --pdp-shadow-soft: 0 8px 24px rgba(20, 25, 28, .05);
    --pdp-shadow-hover: 0 12px 28px rgba(20, 25, 28, .08);
}
.pdp-content {border-radius:18px;background:rgba(251,250,248,.96);border:1px solid rgba(47,53,56,.08);box-shadow:0 10px 30px rgba(20,25,28,.05);}
.pdp-content::before{display:none;}
.pdp-shell-header{border-radius:14px;background:rgba(255,255,255,.9);box-shadow:0 4px 14px rgba(20,25,28,.04);backdrop-filter:none;}
.pdp-shell-brand a::before{width:10px;height:10px;background:var(--pdp-yellow-strong);box-shadow:none;}
.pdp-shell-nav a,.pdp-link-button{border-radius:10px;}
.pdp-shell-nav a:hover,.pdp-link-button:hover,.pdp-shell-nav a.is-active{transform:none;background:var(--pdp-blue-50);}
.pdp-card,.pdp-course-card,.pdp-module-block,.pdp-lesson-sidebar,.pdp-locked-box,.pdp-comment,.pdp-access-item,.pdp-empty,.pdp-auth-card,.pdp-composer-card{border-radius:16px;}
.pdp-card{background:var(--pdp-card);border:1px solid rgba(47,53,56,.08);box-shadow:var(--pdp-shadow-soft);}
.pdp-form input,.pdp-form textarea,.pdp-form select,.pdp-filterbar input,.pdp-filterbar select,.pdp-comment-form input{border-radius:10px;background:#fff;}
.pdp-button{border-radius:10px;background:var(--pdp-yellow);box-shadow:none;}
.pdp-button:hover{transform:translateY(-1px);box-shadow:none;filter:none;}
.pdp-button-secondary{background:#fff;border:1px solid rgba(47,53,56,.1);box-shadow:none;}
.pdp-badge,.pdp-status-pill,.pdp-meta-row span,.pdp-pill,.pdp-reaction-button,.pdp-lock-icon{border-radius:10px;}
.pdp-badge{background:#efe6cf;border-color:rgba(185,152,55,.18);color:#6a5830;}
.pdp-status-available{background:#eef3ee;color:#44614a;}
.pdp-status-locked{background:#f1ebdb;color:#6a5830;}
.pdp-meta-row span{background:#eef3f4;color:var(--pdp-blue-dark);}
.pdp-course-card:hover{transform:translateY(-2px);}
.pdp-course-hero{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(245,241,234,.95));}
.pdp-course-hero-image{border-radius:16px;box-shadow:0 8px 24px rgba(20,25,28,.08);}
.pdp-lesson-list-cards li>a,.pdp-lesson-list-cards li>span{border-radius:12px;}
.pdp-plus-button{width:46px;height:46px;border-radius:12px;background:#fff;border:1px solid rgba(47,53,56,.12);box-shadow:0 4px 14px rgba(20,25,28,.05);font-size:1.7rem;}
.pdp-plus-button:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(20,25,28,.07);}
.pdp-comment{background:#f5f1ea;border:1px solid rgba(47,53,56,.06);}
.pdp-feed-post.is-pinned{border-color:rgba(185,152,55,.35);}


/* v0.10.2 – gedeckter, ruhiger, mehr Border statt Shadow */
body.pdp-standalone-page {
    --pdp-sand-50: #f6f3ee;
    --pdp-sand-100: #eeeadf;
    --pdp-sand-200: #ddd6c7;
    --pdp-yellow: #bea24e;
    --pdp-yellow-strong: #9f8540;
    --pdp-blue-50: #edf1f1;
    --pdp-blue-100: #dde5e6;
    --pdp-blue: #617378;
    --pdp-blue-dark: #49595e;
    --pdp-charcoal: #31373a;
    --pdp-muted: #70777b;
    background: #f3efe8;
}
.pdp-wrap {
    --pdp-line: rgba(49, 55, 58, .12);
    --pdp-line-strong: rgba(49, 55, 58, .16);
    --pdp-card: #faf8f3;
    --pdp-shadow-soft: 0 4px 12px rgba(17, 22, 24, .04);
    --pdp-shadow-hover: 0 8px 18px rgba(17, 22, 24, .06);
}
.pdp-content {
    background: rgba(250, 248, 243, .98);
    border: 1px solid var(--pdp-line);
    box-shadow: 0 2px 8px rgba(17, 22, 24, .03);
}
.pdp-shell-header {
    background: #faf8f3;
    border: 1px solid var(--pdp-line);
    box-shadow: none;
}
.pdp-card,
.pdp-course-card,
.pdp-module-block,
.pdp-lesson-sidebar,
.pdp-locked-box,
.pdp-comment,
.pdp-access-item,
.pdp-empty,
.pdp-auth-card,
.pdp-composer-card,
.pdp-course-hero,
.pdp-lesson-list-cards li > a,
.pdp-lesson-list-cards li > span {
    box-shadow: none;
    border: 1px solid var(--pdp-line);
    background: var(--pdp-card);
}
.pdp-course-card:hover,
.pdp-card:hover {
    box-shadow: 0 6px 14px rgba(17, 22, 24, .05);
    border-color: var(--pdp-line-strong);
    transform: translateY(-1px);
}
.pdp-course-hero {
    background: #f8f5ef;
    border: 1px solid var(--pdp-line);
}
.pdp-course-hero-image {
    box-shadow: none;
    border: 1px solid var(--pdp-line);
}
.pdp-lesson-sidebar {
    background: #f7f3eb;
    border: 1px solid var(--pdp-line);
    box-shadow: none;
}
.pdp-comment {
    background: #f7f4ed;
    border: 1px solid rgba(49,55,58,.08);
}
.pdp-badge {
    background: #ece5d5;
    border-color: rgba(159,133,64,.16);
    color: #645431;
}
.pdp-meta-row span,
.pdp-pill,
.pdp-reaction-button,
.pdp-status-pill {
    background: #f0f3f3;
    border: 1px solid rgba(49,55,58,.08);
    color: var(--pdp-blue-dark);
}
.pdp-status-available {
    background: #edf2ee;
    border-color: rgba(68,97,74,.14);
    color: #48604c;
}
.pdp-status-locked {
    background: #f1ece1;
    border-color: rgba(100,84,49,.14);
    color: #645431;
}
.pdp-button {
    background: var(--pdp-yellow);
    border: 1px solid rgba(79, 66, 28, .10);
}
.pdp-button-secondary,
.pdp-link-button,
.pdp-plus-button {
    background: #f9f7f2;
    border: 1px solid var(--pdp-line);
}
.pdp-plus-button {
    box-shadow: none;
    color: var(--pdp-blue-dark);
}
.pdp-plus-button:hover {
    box-shadow: 0 4px 10px rgba(17,22,24,.04);
    border-color: var(--pdp-line-strong);
}
.pdp-form input,
.pdp-form textarea,
.pdp-form select,
.pdp-filterbar input,
.pdp-filterbar select,
.pdp-comment-form input {
    background: #fff;
    border: 1px solid rgba(49,55,58,.12);
    box-shadow: none;
}
.pdp-form input:focus,
.pdp-form textarea:focus,
.pdp-form select:focus,
.pdp-filterbar input:focus,
.pdp-filterbar select:focus,
.pdp-comment-form input:focus {
    outline: none;
    border-color: rgba(97,115,120,.45);
    box-shadow: 0 0 0 3px rgba(97,115,120,.08);
}
.pdp-feed-post.is-pinned {
    border-color: rgba(159,133,64,.28);
    background: #faf7ef;
}
.pdp-shell-footer {
    border-top: 1px solid var(--pdp-line);
    padding-top: 16px;
}


/* v0.10.5 – Divi/Builder content should keep its own styling inside lessons */
.pdp-lesson-content .pdp-divi-content {
    background: transparent;
}
.pdp-lesson-content .pdp-divi-content > .et_pb_section,
.pdp-lesson-content .pdp-divi-content .et_pb_section:not([style*="background"]):not([class*="et_pb_section_parallax"]) {
    background-color: transparent;
}
.pdp-lesson-content .pdp-divi-content .et_pb_button,
.pdp-lesson-content .pdp-divi-content .et_pb_button:hover {
    text-decoration: none;
}


/* v0.11.1 lesson progress polish */
.pdp-lesson-actions form {
    margin: 0;
}
.pdp-completed-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(68, 97, 74, .18);
    border-radius: 10px;
    background: #edf2ee;
    color: #48604c;
    font-weight: 700;
}


/* v0.12.1 – Theme/Divi shell + stronger contrast + CSS containment
 * Platform routes now use the active theme header/footer, so the plugin should not
 * paint the whole body like a standalone app anymore.
 */
body.pdp-platform-page .pdp-app,
body.single-pdp_lesson .pdp-app {
    width: 100%;
    background: transparent;
}
body.pdp-platform-page .pdp-wrap,
body.single-pdp_lesson .pdp-wrap {
    --pdp-sand-50: #fff8e8;
    --pdp-sand-100: #f3ead8;
    --pdp-sand-200: #e0d2b9;
    --pdp-yellow: #f2c94c;
    --pdp-yellow-strong: #d5a91f;
    --pdp-blue-50: #e8f3f5;
    --pdp-blue-100: #cfe5e9;
    --pdp-blue: #0b757f;
    --pdp-blue-dark: #064f56;
    --pdp-charcoal: #20282c;
    --pdp-muted: #4f5d63;
    --pdp-line: rgba(32, 40, 44, .18);
    --pdp-line-strong: rgba(32, 40, 44, .28);
    --pdp-card: #ffffff;
    --pdp-shadow-soft: 0 8px 24px rgba(17, 22, 24, .07);
    --pdp-shadow-hover: 0 10px 28px rgba(17, 22, 24, .09);
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(44px, 5vw, 72px);
}
body.pdp-platform-page .pdp-content,
body.single-pdp_lesson .pdp-content {
    background: #fffaf0;
    border: 1px solid var(--pdp-line);
    box-shadow: 0 10px 30px rgba(17, 22, 24, .06);
}
body.pdp-platform-page .pdp-card,
body.single-pdp_lesson .pdp-card,
body.pdp-platform-page .pdp-module-block,
body.single-pdp_lesson .pdp-module-block,
body.pdp-platform-page .pdp-course-hero,
body.single-pdp_lesson .pdp-course-hero,
body.pdp-platform-page .pdp-lesson-sidebar,
body.single-pdp_lesson .pdp-lesson-sidebar {
    background: #fff;
    border-color: var(--pdp-line);
}
body.pdp-platform-page .pdp-page-header p,
body.pdp-platform-page .pdp-section-heading p,
body.pdp-platform-page .pdp-course-card p,
body.pdp-platform-page .pdp-course-hero p,
body.pdp-platform-page .pdp-card > p,
body.single-pdp_lesson .pdp-page-header p,
body.single-pdp_lesson .pdp-section-heading p,
body.single-pdp_lesson .pdp-course-card p,
body.single-pdp_lesson .pdp-course-hero p,
body.single-pdp_lesson .pdp-card > p {
    color: var(--pdp-muted);
}

/* Divi content must own its typography. Broad platform paragraph rules are kept out of .pdp-divi-content. */
.pdp-lesson-content .pdp-divi-content {
    font-size: inherit;
    color: inherit;
}

/* Kursinhalt in Lektionen/Kursübersichten: ruhig, keine Kachel-Hover-Spielerei. */
.pdp-lesson-list-cards li > a,
.pdp-lesson-list-cards li > span {
    transition: border-color .16s ease, background .16s ease;
}
.pdp-lesson-list-cards li > a:hover {
    transform: none;
    border-color: var(--pdp-line-strong);
    background: #fff;
}
.pdp-lesson-sidebar li a:hover {
    color: var(--pdp-blue-dark);
    text-decoration: underline;
}

/* v0.15.3.1 – Platform footer can be enabled independently of the theme footer. */
/* v0.12.2 – wider course canvas + lesson sidebar buttons */
body.pdp-platform-page .pdp-wrap,
body.single-pdp_lesson .pdp-wrap {
    width: min(1640px, calc(100vw - 32px));
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
body.single-pdp_lesson .pdp-wrap {
    width: min(1760px, calc(100vw - 28px));
}
body.pdp-platform-page .pdp-content,
body.single-pdp_lesson .pdp-content {
    padding: clamp(18px, 2.2vw, 30px);
}
body.single-pdp_lesson .pdp-content {
    padding: clamp(14px, 1.8vw, 24px);
}
body.single-pdp_lesson .pdp-lesson-layout {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: clamp(18px, 2.2vw, 30px);
}
body.single-pdp_lesson .pdp-lesson-content {
    padding: clamp(20px, 2.7vw, 38px);
}

/* Sidebar is now a real course navigation, not a plain link list. */
.pdp-lesson-sidebar {
    padding: 16px;
}
.pdp-lesson-sidebar-back {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px !important;
    padding: 10px 11px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pdp-line);
    color: var(--pdp-blue-dark) !important;
    font-weight: 850;
    text-decoration: none !important;
}
.pdp-lesson-sidebar-back:hover {
    border-color: var(--pdp-line-strong);
    background: var(--pdp-blue-50);
    text-decoration: none !important;
}
.pdp-lesson-sidebar-list {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0 !important;
}
.pdp-lesson-sidebar-module {
    margin: 14px 0 4px;
    padding: 0 4px;
    color: var(--pdp-muted);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.pdp-lesson-sidebar-module:first-child {
    margin-top: 0;
}
.pdp-lesson-sidebar-item {
    margin: 0 !important;
    color: inherit;
}
.pdp-lesson-sidebar-item > a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid var(--pdp-line);
    color: var(--pdp-charcoal) !important;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.pdp-lesson-sidebar-item > a:hover {
    background: var(--pdp-blue-50);
    border-color: var(--pdp-line-strong);
    color: var(--pdp-blue-dark) !important;
    text-decoration: none !important;
}
.pdp-lesson-sidebar-status {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f3ead8;
    border: 1px solid rgba(32, 40, 44, .12);
    color: transparent;
    font-size: .8rem;
    font-weight: 900;
}
.pdp-lesson-sidebar-title {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pdp-lesson-sidebar-item.is-current > a {
    background: linear-gradient(135deg, #fff8e8, #e8f3f5);
    border-color: rgba(11, 117, 127, .36);
    color: var(--pdp-blue-dark) !important;
    box-shadow: inset 3px 0 0 var(--pdp-blue);
}
.pdp-lesson-sidebar-item.is-current .pdp-lesson-sidebar-status {
    background: var(--pdp-blue);
    border-color: var(--pdp-blue);
    color: #fff;
}
.pdp-lesson-sidebar-item.is-current .pdp-lesson-sidebar-status::before {
    content: '•';
}
.pdp-lesson-sidebar-item.is-complete > a {
    background: #edf7ef;
    border-color: rgba(68, 97, 74, .22);
}
.pdp-lesson-sidebar-item.is-complete .pdp-lesson-sidebar-status {
    background: #48604c;
    border-color: #48604c;
    color: #fff;
}
.pdp-lesson-sidebar-item.is-current.is-complete .pdp-lesson-sidebar-status::before {
    content: none;
}

/* Course-content lists should feel calm. No card lift or sideways hover here. */
.pdp-module-block:hover,
.pdp-lesson-list-cards li > a:hover,
.pdp-lesson-list-cards li > span:hover,
.pdp-lesson-content:hover {
    transform: none;
}
body.single-pdp_lesson .pdp-card:hover,
body.single-pdp_lesson .pdp-module-block:hover {
    box-shadow: var(--pdp-shadow-soft);
    border-color: var(--pdp-line);
}

@media (max-width: 1200px) {
    body.single-pdp_lesson .pdp-lesson-layout {
        grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    }
}
@media (max-width: 900px) {
    body.pdp-platform-page .pdp-wrap,
    body.single-pdp_lesson .pdp-wrap {
        width: calc(100vw - 24px);
    }
    body.single-pdp_lesson .pdp-lesson-sidebar-list {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
    .pdp-lesson-sidebar-module {
        grid-column: 1 / -1;
    }
}
@media (max-width: 680px) {
    body.pdp-platform-page .pdp-wrap,
    body.single-pdp_lesson .pdp-wrap {
        width: calc(100vw - 16px);
    }
    body.pdp-platform-page .pdp-content,
    body.single-pdp_lesson .pdp-content {
        padding: 12px;
    }
}

/* v0.12.3 – Community Companion Layout + gentle member stats */
body.pdp-platform-page .pdp-community-layout {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 760px) minmax(230px, 310px);
    gap: clamp(16px, 1.8vw, 26px);
    align-items: start;
}
body.pdp-platform-page .pdp-community-main {
    min-width: 0;
}
body.pdp-platform-page .pdp-community-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 24px;
}
body.admin-bar.pdp-platform-page .pdp-community-sidebar {
    top: 56px;
}
.pdp-companion-card {
    background: #fff;
    border: 1px solid var(--pdp-line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--pdp-shadow-soft);
}
.pdp-companion-card h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.18;
    letter-spacing: -.025em;
}
.pdp-companion-card p {
    margin: 0;
    color: var(--pdp-muted);
    line-height: 1.45;
}
.pdp-companion-card .pdp-eyebrow {
    margin-bottom: 7px;
}
.pdp-companion-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.pdp-companion-headline h2 {
    margin: 0;
}
.pdp-companion-headline a {
    font-size: .86rem;
    font-weight: 850;
    text-decoration: none;
}
.pdp-member-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
}
.pdp-member-stats div {
    padding: 11px 9px;
    border: 1px solid rgba(32, 40, 44, .12);
    border-radius: 14px;
    background: #fffaf0;
}
.pdp-member-stats strong {
    display: block;
    color: var(--pdp-charcoal);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -.04em;
}
.pdp-member-stats span {
    display: block;
    margin-top: 5px;
    color: var(--pdp-muted);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.15;
}
.pdp-course-tree,
.pdp-recommendation-list,
.pdp-topic-list {
    display: grid;
    gap: 8px;
}
.pdp-course-tree-item,
.pdp-recommendation-card,
.pdp-topic-list a {
    display: block;
    border: 1px solid rgba(32, 40, 44, .12);
    border-radius: 14px;
    background: #fff;
    color: var(--pdp-charcoal) !important;
    text-decoration: none !important;
    transition: background .16s ease, border-color .16s ease;
}
.pdp-course-tree-item {
    padding: 11px;
}
.pdp-course-tree-item:hover,
.pdp-recommendation-card:hover,
.pdp-topic-list a:hover {
    background: var(--pdp-blue-50);
    border-color: var(--pdp-line-strong);
}
.pdp-course-tree-item span,
.pdp-recommendation-card strong {
    display: block;
    font-weight: 850;
    line-height: 1.2;
}
.pdp-course-tree-item small {
    display: block;
    margin-top: 6px;
    color: var(--pdp-muted);
    font-size: .78rem;
    font-weight: 800;
}
.pdp-course-tree-item i {
    display: block;
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1eadc;
}
.pdp-course-tree-item i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--pdp-blue);
}
.pdp-topic-list a {
    padding: 9px 11px;
    font-weight: 850;
}
.pdp-recommendation-card {
    padding: 13px;
}
.pdp-recommendation-card small {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(242, 201, 76, .24);
    color: var(--pdp-charcoal);
    font-size: .72rem;
    font-style: normal;
    font-weight: 850;
}
.pdp-recommendation-card span {
    display: block;
    margin-top: 6px;
    color: var(--pdp-muted);
    font-size: .9rem;
    line-height: 1.38;
}
.pdp-recommendation-card em {
    display: inline-flex;
    margin-top: 10px;
    color: var(--pdp-blue-dark);
    font-size: .86rem;
    font-style: normal;
    font-weight: 900;
}
.pdp-highlight-card {
    background: linear-gradient(135deg, #fff8e8, #e8f3f5);
}
.pdp-highlight-card .pdp-button {
    margin-top: 13px;
}
.pdp-soft-note-card {
    background: #faf8f3;
}
.pdp-companion-muted {
    font-size: .92rem;
}
.pdp-author-mini-stats {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--pdp-muted) !important;
    font-size: .82rem;
    font-weight: 800;
}
.pdp-comment-view {
    align-items: center;
}
.pdp-comment-content {
    flex-basis: 100%;
    line-height: 1.45;
}

@media (max-width: 1280px) {
    body.pdp-platform-page .pdp-community-layout {
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(210px, 270px);
    }
}
@media (max-width: 1080px) {
    body.pdp-platform-page .pdp-community-layout {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    }
    body.pdp-platform-page .pdp-community-sidebar-left {
        display: none;
    }
}
@media (max-width: 860px) {
    body.pdp-platform-page .pdp-community-layout {
        display: flex;
        flex-direction: column;
    }
    body.pdp-platform-page .pdp-community-main,
    body.pdp-platform-page .pdp-community-sidebar {
        width: 100%;
    }
    body.pdp-platform-page .pdp-community-sidebar-left {
        display: grid;
        order: 2;
        position: static;
    }
    body.pdp-platform-page .pdp-community-main {
        order: 1;
    }
    body.pdp-platform-page .pdp-community-sidebar-right {
        order: 3;
        position: static;
    }
    .pdp-member-stats,
    .pdp-course-tree,
    .pdp-recommendation-list,
    .pdp-topic-list {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

/* v0.12.4 – Community Feed Polish: collapsed posts, hidden threads, icon stats */
.pdp-post-content.pdp-js-clamp-content {
    position: relative;
    overflow: visible;
}
.pdp-post-content.pdp-js-clamp-content.is-collapsed {
    max-height: 8.2em;
    overflow: hidden;
}
.pdp-post-content.pdp-js-clamp-content.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.4em;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(251,250,248,0), var(--pdp-card) 78%);
}
.pdp-post-content.pdp-js-clamp-content.is-expanded {
    max-height: none;
}
.pdp-content-toggle,
.pdp-thread-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--pdp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pdp-blue-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.pdp-content-toggle {
    margin-top: 8px;
    padding: 8px 11px;
}
.pdp-thread-toggle {
    padding: 8px 12px;
}
.pdp-content-toggle:hover,
.pdp-thread-toggle:hover,
.pdp-thread-toggle.is-active {
    background: var(--pdp-blue-50);
    border-color: var(--pdp-line-strong);
    color: var(--pdp-blue-dark);
}
.pdp-thread-toggle strong {
    color: var(--pdp-charcoal);
    font-size: .92rem;
    line-height: 1;
}
.pdp-thread-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pdp-line);
}
.pdp-thread-panel .pdp-comments {
    margin-top: 0;
}
.pdp-icon-stats div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
}
.pdp-icon-stats .pdp-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--pdp-blue-dark);
    font-size: .95rem;
    line-height: 1;
}
.pdp-icon-stats strong {
    display: inline-flex;
    font-size: 1.35rem;
}
.pdp-author-mini-stats {
    gap: 5px;
    padding: 2px 6px;
    border: 1px solid rgba(32, 40, 44, .08);
    border-radius: 999px;
    background: rgba(255,255,255,.64);
    line-height: 1;
}
.pdp-author-mini-stats strong {
    color: var(--pdp-charcoal);
    font-size: .82rem;
    line-height: 1;
}
.pdp-comment-view .pdp-author-mini-stats {
    transform: translateY(-1px);
}
.pdp-feed-actions-row {
    align-items: center;
}
.pdp-reaction-button {
    min-height: 36px;
}
@media (max-width: 680px) {
    .pdp-post-content.pdp-js-clamp-content.is-collapsed {
        max-height: 9.8em;
    }
    .pdp-feed-actions-row {
        gap: 8px;
    }
    .pdp-reaction-button,
    .pdp-thread-toggle,
    .pdp-content-toggle {
        font-size: .86rem;
    }
}

/* v0.12.5 – Member Profiles + desktop app-shell community scrolling */
.pdp-author-link,
.pdp-profile-name-link,
.pdp-mini-profile-link {
    color: var(--pdp-charcoal) !important;
    text-decoration: none !important;
    font-weight: 850;
}
.pdp-author-link:hover,
.pdp-profile-name-link:hover,
.pdp-mini-profile-link:hover {
    color: var(--pdp-blue-dark) !important;
}
.pdp-mini-profile-link,
.pdp-profile-public-link a {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    font-size: .86rem;
    font-weight: 850;
    color: var(--pdp-blue-dark) !important;
    text-decoration: none !important;
}
.pdp-public-profile-card {
    overflow: hidden;
}
.pdp-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
    align-items: center;
}
.pdp-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(74px, 10vw, 112px);
    height: clamp(74px, 10vw, 112px);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--pdp-yellow), var(--pdp-blue-100));
    color: var(--pdp-charcoal);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 950;
    letter-spacing: -.06em;
    box-shadow: 0 16px 34px rgba(38, 50, 56, .12);
}
.pdp-profile-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: .98;
    letter-spacing: -.055em;
}
.pdp-profile-joined {
    margin: 0;
    color: var(--pdp-muted);
    font-weight: 750;
}
.pdp-profile-bio {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--pdp-line);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    color: var(--pdp-charcoal);
    line-height: 1.62;
}
.pdp-profile-bio p:last-child { margin-bottom: 0; }
.pdp-profile-bio.is-empty { color: var(--pdp-muted); }
.pdp-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 680px;
    margin-top: 18px;
}
.pdp-profile-stats div {
    min-height: 76px;
    background: #fffaf0;
}
.pdp-profile-stats div span:last-child {
    margin-left: 2px;
    color: var(--pdp-muted);
    font-size: .82rem;
    font-weight: 850;
}
.pdp-profile-post-list {
    display: grid;
    gap: 10px;
}
.pdp-profile-post-item {
    display: grid;
    grid-template-columns: minmax(80px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--pdp-line);
    border-radius: 16px;
    background: #fff;
}
.pdp-profile-post-item span {
    display: inline-flex;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--pdp-blue-50);
    color: var(--pdp-blue-dark);
    font-size: .78rem;
    font-weight: 850;
}
.pdp-profile-post-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pdp-profile-post-item small {
    color: var(--pdp-muted);
    font-weight: 750;
}

@media (min-width: 1081px) {
    /* v0.12.6 – true desktop app shell: only the feed list scrolls. */
    html:has(body.pdp-route-feed.pdp-platform-page),
    body.pdp-route-feed.pdp-platform-page {
        overflow: hidden;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-app {
        height: calc(100vh - var(--pdp-app-top-offset, 0px));
        min-height: 520px;
        overflow: hidden;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-wrap {
        height: 100%;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        padding-top: 14px;
        padding-bottom: 14px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-shell-header {
        flex: 0 0 auto;
        margin-bottom: 14px;
        position: relative;
        z-index: 20;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-content {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        padding: clamp(14px, 1.4vw, 20px);
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-layout {
        height: 100%;
        min-height: 0;
        align-items: stretch;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar {
        position: relative;
        top: auto;
        align-self: stretch;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        align-content: start;
        padding-right: 0;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-main {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        display: grid;
        grid-template-rows: auto auto auto minmax(0, 1fr);
        gap: 14px;
        padding-right: 0;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-main > .pdp-page-header {
        position: relative;
        top: auto;
        z-index: 4;
        margin-bottom: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-filterbar,
    body.pdp-route-feed.pdp-platform-page .pdp-composer-card {
        position: relative;
        top: auto;
        z-index: 3;
        margin-bottom: 0;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-list {
        min-height: 0;
        overflow-y: auto;
        padding-right: 8px;
        scrollbar-gutter: stable;
    }
}
@media (max-width: 680px) {
    .pdp-profile-hero {
        grid-template-columns: 1fr;
    }
    .pdp-profile-stats {
        grid-template-columns: 1fr;
    }
    .pdp-profile-post-item {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .pdp-profile-post-item strong {
        white-space: normal;
    }
}

/* v0.12.7 – Community App Layout v2
 * Community behaves like a compact fullscreen learning app on desktop.
 * The feed gets the visual priority: no title/intro block, compact controls, and only the post track scrolls.
 */
@media (min-width: 1081px) {
    html:has(body.pdp-route-feed.pdp-platform-page),
    body.pdp-route-feed.pdp-platform-page {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-app {
        position: fixed;
        inset: 0;
        z-index: 9990;
        width: 100vw;
        height: 100vh;
        min-height: 560px;
        overflow: hidden;
        background:
            radial-gradient(circle at 5% 0%, rgba(242, 201, 76, .14), transparent 28%),
            radial-gradient(circle at 96% 0%, rgba(11, 117, 127, .10), transparent 30%),
            linear-gradient(135deg, #fffaf0 0%, #f8f2dc 52%, #edf6f8 100%);
    }
    body.admin-bar.pdp-route-feed.pdp-platform-page .pdp-app {
        top: 32px;
        height: calc(100vh - 32px);
    }

    body.pdp-route-feed.pdp-platform-page .pdp-wrap {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-rows: 58px minmax(0, 1fr);
        color: var(--pdp-charcoal);
    }

    body.pdp-route-feed.pdp-platform-page .pdp-shell-header {
        height: 58px;
        margin: 0;
        padding: 8px 18px;
        border-radius: 0;
        border-width: 0 0 1px 0;
        border-color: rgba(32, 40, 44, .12);
        background: rgba(255, 250, 240, .94);
        box-shadow: 0 1px 12px rgba(17, 22, 24, .05);
        backdrop-filter: blur(14px);
        position: relative;
        z-index: 50;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-shell-brand a {
        padding-left: 0;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-shell-nav a,
    body.pdp-route-feed.pdp-platform-page .pdp-shell-nav button {
        min-height: 36px;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-content {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        padding: 12px 18px 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-layout {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr) 280px;
        gap: 18px;
        align-items: stretch;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar {
        position: relative;
        top: auto;
        align-self: stretch;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 2px 2px 10px;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar::-webkit-scrollbar,
    body.pdp-route-feed.pdp-platform-page .pdp-feed-list::-webkit-scrollbar {
        width: 9px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar::-webkit-scrollbar-thumb,
    body.pdp-route-feed.pdp-platform-page .pdp-feed-list::-webkit-scrollbar-thumb {
        background: rgba(32, 40, 44, .18);
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-companion-card {
        padding: 13px;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(17, 22, 24, .045);
    }
    body.pdp-route-feed.pdp-platform-page .pdp-companion-card h2 {
        font-size: .96rem;
        margin-bottom: 8px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-companion-card p {
        font-size: .9rem;
        line-height: 1.38;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-main {
        width: min(100%, 780px);
        max-width: 780px;
        height: 100%;
        min-height: 0;
        justify-self: center;
        overflow: hidden;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: 10px;
        padding: 0;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-page-header {
        display: none !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        min-height: 44px;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar .pdp-filterbar {
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: minmax(180px, 1fr) minmax(150px, auto) auto;
        gap: 8px;
        align-items: center;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar input,
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar select {
        min-height: 42px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .92);
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar .pdp-button {
        min-height: 42px;
        white-space: nowrap;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-button-new-post {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding-inline: 14px;
        border-radius: 14px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-button-new-post span:first-child {
        font-size: 1.2rem;
        line-height: 1;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-composer-card {
        margin: 0;
        max-height: min(46vh, 430px);
        overflow-y: auto;
        border-radius: 18px;
        padding: 16px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-composer-card[hidden] {
        display: none !important;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-composer-card h2 {
        margin-bottom: 10px;
        font-size: 1.05rem;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-composer-card textarea {
        min-height: 96px;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-feed-list {
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 2px 8px 20px 2px;
        display: grid;
        align-content: start;
        gap: 12px;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-post {
        margin: 0;
        border-radius: 18px;
    }
}

@media (min-width: 1081px) and (max-width: 1360px) {
    body.pdp-route-feed.pdp-platform-page .pdp-community-layout {
        grid-template-columns: 246px minmax(0, 1fr) 246px;
        gap: 14px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-main {
        width: min(100%, 740px);
        max-width: 740px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar {
        grid-template-columns: 1fr;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-button-new-post {
        justify-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 782px) {
    body.admin-bar.pdp-route-feed.pdp-platform-page .pdp-app {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

@media (max-width: 1080px) {
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar {
        display: grid;
        gap: 10px;
        margin-bottom: 12px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar .pdp-filterbar {
        margin-bottom: 0;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-button-new-post {
        width: 100%;
        justify-content: center;
    }
}


/* v0.13.0 – Theme-flow community + calmer lesson navigation
 * The fullscreen overlay from v0.12.7 was too app-like for pages that should still
 * be controllable through Divi Theme Builder templates. Community and course overview
 * now live in the normal theme flow again: get_header()/get_footer() stay visible,
 * Divi can hide them through templates, and the footer appears when the page ends.
 */

/* Kurs-Menü: completed/current states less green and less heavy. */
.pdp-lesson-sidebar-item.is-current > a {
    background: #ffffff;
    border-color: rgba(11, 117, 127, .30);
    color: var(--pdp-blue-dark) !important;
    box-shadow: inset 3px 0 0 rgba(11, 117, 127, .72);
}
.pdp-lesson-sidebar-item.is-current .pdp-lesson-sidebar-status {
    background: rgba(11, 117, 127, .12);
    border-color: rgba(11, 117, 127, .22);
    color: var(--pdp-blue-dark);
}
.pdp-lesson-sidebar-item.is-current .pdp-lesson-sidebar-status::before {
    content: '•';
}
.pdp-lesson-sidebar-item.is-complete > a {
    background: #fffaf0;
    border-color: rgba(32, 40, 44, .13);
}
.pdp-lesson-sidebar-item.is-complete .pdp-lesson-sidebar-status {
    background: #f3ead8;
    border-color: rgba(32, 40, 44, .14);
    color: #6a5830;
}
.pdp-lesson-sidebar-item.is-complete .pdp-lesson-sidebar-status::before {
    content: '✓';
}
.pdp-lesson-sidebar-item.is-current.is-complete > a {
    background: linear-gradient(90deg, rgba(11,117,127,.055), #fff 34%);
    border-color: rgba(11, 117, 127, .30);
}
.pdp-lesson-sidebar-item.is-current.is-complete .pdp-lesson-sidebar-status {
    background: rgba(11, 117, 127, .14);
    border-color: rgba(11, 117, 127, .24);
    color: var(--pdp-blue-dark);
}
.pdp-lesson-sidebar-item.is-current.is-complete .pdp-lesson-sidebar-status::before {
    content: '✓';
}

/* Community and course overview should not feel trapped in an extra plugin window. */
body.pdp-route-feed.pdp-platform-page .pdp-content,
body.pdp-route-courses.pdp-platform-page .pdp-content,
body.pdp-route-course.pdp-platform-page .pdp-content {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding-inline: 0;
}
body.pdp-route-feed.pdp-platform-page .pdp-wrap,
body.pdp-route-courses.pdp-platform-page .pdp-wrap,
body.pdp-route-course.pdp-platform-page .pdp-wrap {
    width: min(1660px, calc(100vw - 32px));
    max-width: none;
}

@media (min-width: 1081px) {
    html:has(body.pdp-route-feed.pdp-platform-page),
    body.pdp-route-feed.pdp-platform-page {
        overflow: auto !important;
        overscroll-behavior: auto !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-app {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        z-index: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }
    body.admin-bar.pdp-route-feed.pdp-platform-page .pdp-app {
        top: auto !important;
        height: auto !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-wrap {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: clamp(18px, 2.2vw, 34px) 0 clamp(44px, 5vw, 72px) !important;
        display: block !important;
        color: var(--pdp-charcoal);
    }

    body.pdp-route-feed.pdp-platform-page .pdp-shell-header {
        height: auto !important;
        min-height: 58px;
        margin: 0 0 14px !important;
        padding: 9px 14px !important;
        border-radius: 16px !important;
        border: 1px solid var(--pdp-line) !important;
        background: rgba(255, 255, 255, .92) !important;
        box-shadow: 0 6px 18px rgba(17, 22, 24, .045) !important;
        backdrop-filter: blur(10px);
        position: sticky !important;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px) !important;
        z-index: 50 !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-content {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-block: 0 !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-layout {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(220px, 280px) minmax(0, 780px) minmax(230px, 300px) !important;
        justify-content: center;
        gap: clamp(14px, 1.8vw, 24px) !important;
        align-items: start !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar {
        position: sticky !important;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px) !important;
        align-self: start !important;
        height: auto !important;
        max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 104px) !important;
        min-height: 0 !important;
        display: grid !important;
        gap: 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 2px 4px 8px 2px !important;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-main {
        width: min(100%, 780px) !important;
        max-width: 780px !important;
        height: auto !important;
        min-height: 0 !important;
        justify-self: center;
        overflow: visible !important;
        display: grid !important;
        grid-template-rows: auto auto auto !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-page-header {
        display: none !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        align-items: center !important;
        min-height: 44px;
        position: sticky;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px);
        z-index: 30;
        padding: 8px;
        margin: -8px -8px 0;
        border-radius: 18px;
        background: rgba(255, 250, 240, .86);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(32, 40, 44, .08);
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar .pdp-filterbar {
        margin: 0 !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(180px, 1fr) minmax(150px, auto) auto !important;
        gap: 8px !important;
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-composer-card {
        margin: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 18px;
        padding: 16px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-composer-card[hidden] {
        display: none !important;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-feed-list {
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 2px 20px !important;
        display: grid !important;
        align-content: start;
        gap: 12px;
        scrollbar-gutter: auto !important;
        overscroll-behavior: auto !important;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-post {
        margin: 0;
        border-radius: 18px;
    }

    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar::-webkit-scrollbar {
        width: 9px;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-sidebar::-webkit-scrollbar-thumb {
        background: rgba(32, 40, 44, .18);
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: content-box;
    }
}

@media (min-width: 1081px) and (max-width: 1360px) {
    body.pdp-route-feed.pdp-platform-page .pdp-community-layout {
        grid-template-columns: minmax(200px, 250px) minmax(0, 740px) minmax(210px, 260px) !important;
        gap: 14px !important;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-community-main {
        width: min(100%, 740px) !important;
        max-width: 740px !important;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-feed-toolbar {
        grid-template-columns: 1fr !important;
    }
    body.pdp-route-feed.pdp-platform-page .pdp-button-new-post {
        justify-self: stretch;
        justify-content: center;
    }
}

/* v0.13.3 Course description polish */
.pdp-course-hero-compact {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: center;
}
.pdp-course-hero-compact .pdp-course-hero-image {
    aspect-ratio: 16 / 10;
    max-height: 320px;
}
.pdp-course-short-description {
    max-width: 720px;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.55;
}
.pdp-course-content-card {
    display: grid;
    gap: 24px;
}
.pdp-course-long-description {
    max-width: 860px;
    color: var(--pdp-charcoal);
    font-size: 1rem;
    line-height: 1.68;
}
.pdp-course-long-description h2,
.pdp-course-long-description h3,
.pdp-course-long-description h4 {
    margin: 1.4em 0 .55em;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--pdp-charcoal);
}
.pdp-course-long-description h2:first-child,
.pdp-course-long-description h3:first-child,
.pdp-course-long-description h4:first-child {
    margin-top: 0;
}
.pdp-course-long-description p {
    margin: 0 0 1em;
}
.pdp-course-long-description ol,
.pdp-course-long-description ul {
    margin: .6em 0 1.2em;
    padding-left: 1.35em;
}
.pdp-course-long-description li {
    margin: .35em 0;
}
.pdp-course-long-description strong {
    color: var(--pdp-charcoal);
}
.pdp-course-content-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--pdp-line);
    padding-top: 22px;
}
.pdp-course-content-heading h2 {
    margin: 0;
}
.pdp-course-content-heading span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(112, 158, 161, .12);
    color: var(--pdp-blue-dark);
    padding: 6px 10px;
    font-size: .84rem;
    font-weight: 750;
    white-space: nowrap;
}
.pdp-course-content-card .pdp-module-list {
    margin-top: 0;
}
.pdp-lesson-nav-item.is-completed::before,
.pdp-course-lesson.is-completed::before,
.pdp-lesson-button.is-completed::before,
.pdp-lesson-list-cards li.is-complete::before {
    content: none !important;
}
@media (max-width: 760px) {
    .pdp-course-content-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v0.13.4 Formatted short descriptions */
.pdp-course-short-description {
    display: grid;
    gap: 8px;
}
.pdp-course-short-description > * {
    margin: 0;
}
.pdp-course-short-description h3,
.pdp-course-short-description h4 {
    color: var(--pdp-charcoal);
    line-height: 1.18;
    letter-spacing: -.02em;
}
.pdp-course-short-description h3 {
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
}
.pdp-course-short-description h4 {
    font-size: clamp(1.05rem, 1.25vw, 1.22rem);
}
.pdp-course-short-description p {
    margin: 0;
    color: var(--pdp-muted);
    line-height: 1.55;
}
.pdp-course-short-description strong {
    color: var(--pdp-charcoal);
    font-weight: 800;
}


/* v0.13.5 Course card HTML + tighter toplines + hero image fit */
.pdp-card-topline {
    justify-content: flex-start;
}
.pdp-course-card-description {
    display: grid;
    gap: 7px;
    color: var(--pdp-muted);
    line-height: 1.55;
}
.pdp-course-card-description > * {
    margin: 0;
}
.pdp-course-card-description h3,
.pdp-course-card-description h4 {
    color: var(--pdp-charcoal);
    line-height: 1.22;
    letter-spacing: -.015em;
}
.pdp-course-card-description h3 {
    font-size: 1.05rem;
}
.pdp-course-card-description h4 {
    font-size: .98rem;
}
.pdp-course-card-description p {
    margin: 0;
    color: var(--pdp-muted);
    line-height: 1.55;
}
.pdp-course-card-description strong {
    color: var(--pdp-charcoal);
    font-weight: 800;
}
.pdp-course-hero-compact {
    align-items: stretch;
}
.pdp-course-hero-compact .pdp-course-hero-image {
    height: 100%;
    min-height: 260px;
    max-height: none;
    object-fit: cover;
    align-self: stretch;
}
@media (max-width: 760px) {
    .pdp-course-hero-compact .pdp-course-hero-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}


/* v0.13.6 Course hero header image + tighter copy */
.pdp-course-hero-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.pdp-course-hero-media {
    width: 100%;
    aspect-ratio: 16 / 6.5;
    overflow: hidden;
    border-radius: 20px;
    background: var(--pdp-sand-100);
    border: 1px solid rgba(38, 50, 56, .08);
}
.pdp-course-hero-compact .pdp-course-hero-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 0;
    box-shadow: none;
}
.pdp-course-short-description,
.pdp-course-card-description {
    gap: 5px;
}
.pdp-course-short-description p,
.pdp-course-card-description p {
    line-height: 1.35;
}
.pdp-course-short-description h3,
.pdp-course-card-description h3 {
    line-height: 1.08;
}
.pdp-course-short-description h4,
.pdp-course-card-description h4 {
    line-height: 1.12;
}
.pdp-course-short-description br,
.pdp-course-card-description br {
    line-height: 1;
}
@media (max-width: 980px) {
    .pdp-course-hero-media {
        aspect-ratio: 16 / 8;
    }
}
@media (max-width: 760px) {
    .pdp-course-hero-media {
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }
}


/* v0.13.7 Course hero split layout: image left, content right */
@media (min-width: 981px) {
    .pdp-course-hero-compact {
        grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
        align-items: stretch;
        gap: clamp(22px, 3vw, 42px);
    }
    .pdp-course-hero-media {
        position: relative;
        height: auto;
        min-height: clamp(300px, 24vw, 440px);
        aspect-ratio: auto;
        align-self: stretch;
    }
    .pdp-course-hero-compact .pdp-course-hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .pdp-course-hero-content {
        align-self: center;
        display: grid;
        align-content: center;
        gap: 12px;
        min-width: 0;
    }
    .pdp-course-hero-content > * {
        margin-top: 0;
        margin-bottom: 0;
    }
    .pdp-course-hero-content h1 {
        margin: 0;
    }
    .pdp-course-short-description {
        margin-top: 2px;
    }
    .pdp-course-hero-content .pdp-meta-row-large,
    .pdp-course-hero-content .pdp-progress-wrap-wide {
        margin-top: 4px;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
    .pdp-course-hero-compact {
        grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    }
    .pdp-course-hero-media {
        min-height: clamp(280px, 26vw, 380px);
    }
}

@media (max-width: 980px) {
    .pdp-course-hero-compact {
        grid-template-columns: 1fr;
    }
    .pdp-course-hero-media {
        aspect-ratio: 16 / 8;
    }
    .pdp-course-hero-compact .pdp-course-hero-image {
        position: static;
    }
}


/* v0.13.9 Course hero start CTA */
.pdp-course-start-button {
    margin-top: 14px;
    align-self: flex-start;
    min-width: 180px;
}
.pdp-course-hero-content .pdp-progress-wrap-wide + .pdp-course-start-button {
    margin-top: 12px;
}
@media (max-width: 760px) {
    .pdp-course-start-button {
        width: 100%;
    }
}


/* v0.14.0 Course card action hierarchy */
.pdp-course-card-actions {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 2px;
}
.pdp-course-card-actions .pdp-button {
    width: 100%;
    min-height: 46px;
    padding-inline: 14px;
    white-space: nowrap;
}
.pdp-course-card-info-button {
    box-shadow: none;
}
.pdp-course-card-start-button {
    font-size: 1.02rem;
}
@media (max-width: 420px) {
    .pdp-course-card-actions {
        grid-template-columns: 1fr;
    }
}


/* v0.14.1 Digistore24 thank-you page + polished platform emails support */
.pdp-thankyou-card{text-align:center;max-width:720px;margin-left:auto;margin-right:auto}.pdp-thankyou-icon{width:54px;height:54px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;margin:0 auto 14px;background:rgba(242,201,76,.26);border:1px solid rgba(242,201,76,.55);color:#263238;font-size:26px;font-weight:900}.pdp-thankyou-product{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:rgba(112,158,161,.12);border:1px solid rgba(112,158,161,.22);color:#385b5d;font-weight:800;margin:4px 0 14px}.pdp-thankyou-message{font-size:17px;line-height:1.55;margin:0 auto 16px;max-width:560px}.pdp-digistore24-required{margin:16px auto;padding:12px 14px;border-radius:16px;background:#fff8df;border:1px solid rgba(242,201,76,.5);max-width:520px}.pdp-thankyou-muted{color:var(--pdp-muted);font-size:14px;margin:0 auto 20px;max-width:560px}.pdp-thankyou-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:22px 0}.pdp-thankyou-help{text-align:left;margin-top:24px;padding:18px;border-radius:18px;background:rgba(112,158,161,.08);border:1px solid rgba(112,158,161,.16)}.pdp-thankyou-help h3{margin:0 0 8px;font-size:16px}.pdp-thankyou-help p{margin:0;color:var(--pdp-muted);line-height:1.5}.pdp-btn.pdp-is-waiting{opacity:.9}@media(max-width:640px){.pdp-thankyou-actions .pdp-btn{width:100%;justify-content:center}}


/* v0.14.7 smoother Digistore24 waiting state */
.pdp-digistore24-required {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--pdp-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}
.pdp-thankyou-actions .pdp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
}
.pdp-thankyou-actions .pdp-btn-primary {
    background: var(--pdp-yellow);
    color: #17242a;
    border: 1px solid rgba(23,36,42,.12);
    box-shadow: 0 8px 20px rgba(242, 201, 76, .22);
}
.pdp-thankyou-actions .pdp-btn-secondary {
    background: #fff;
    color: #0b757f;
    border: 1px solid rgba(11, 117, 127, .24);
}
.pdp-thankyou-icon-waiting {
    animation: pdp-soft-pulse 1.6s ease-in-out infinite;
}
@keyframes pdp-soft-pulse {
    0%, 100% { transform: scale(1); opacity: .82; }
    50% { transform: scale(1.05); opacity: 1; }
}


/* v0.14.8 Digistore24 visual auto-check feedback */
.pdp-thankyou-sync {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 2px auto 14px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(112, 158, 161, .10);
    border: 1px solid rgba(112, 158, 161, .18);
    color: #385b5d;
    font-size: 13px;
    font-weight: 800;
}
.pdp-thankyou-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #709ea1;
    box-shadow: 0 0 0 0 rgba(112, 158, 161, .38);
    animation: pdp-sync-pulse 1.45s ease-in-out infinite;
}
@keyframes pdp-sync-pulse {
    0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(112, 158, 161, .38); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(112, 158, 161, 0); }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(112, 158, 161, 0); }
}
@media(max-width:640px){
    .pdp-thankyou-sync { width: 100%; border-radius: 14px; }
}


/* v0.14.9 Digistore24 extended waiting fallback */
.pdp-thankyou-fallback {
    margin: 18px auto 0;
    padding: 16px 18px;
    max-width: 620px;
    text-align: left;
    border-radius: 18px;
    background: rgba(242, 201, 76, .10);
    border: 1px solid rgba(242, 201, 76, .28);
}
.pdp-thankyou-fallback h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
}
.pdp-thankyou-fallback p {
    margin: 0;
    color: var(--pdp-muted);
    line-height: 1.5;
}
.pdp-thankyou-fallback .pdp-thankyou-support {
    margin-top: 10px;
}
.pdp-thankyou-fallback a {
    color: #0b757f;
    font-weight: 800;
}


/* v0.15.3 course purchase + platform footer */
.pdp-course-purchase-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pdp-course-price-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .72);
    color: var(--pdp-text, #18212f);
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.pdp-course-card-price {
    margin-top: 4px;
    margin-bottom: 12px;
}

.pdp-course-outline-hidden-note {
    margin: 0;
    color: var(--pdp-muted, #64748b);
}

.pdp-shell-footer {
    margin-top: 28px;
    padding: 20px 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--pdp-muted, #64748b);
    font-size: 14px;
}

.pdp-shell-footer strong {
    display: block;
    color: var(--pdp-text, #18212f);
    font-size: 14px;
}

.pdp-shell-footer-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pdp-shell-footer-nav a {
    color: inherit;
    text-decoration: none;
}

.pdp-shell-footer-nav a:hover {
    color: var(--pdp-text, #18212f);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .pdp-course-purchase-block,
    .pdp-shell-footer,
    .pdp-shell-footer-nav {
        align-items: flex-start;
        flex-direction: column;
    }
}
