/* ==========================================================================
   PsychAura Reader v43 — široký layout přes obrazovku
   ========================================================================== */

:root {
    --reader-shell-max: min(1440px, 100%);
    --reader-prose: min(56rem, 100%);
    --reader-gutter: clamp(1rem, 3vw, 2.5rem);
    --reader-paper: #ffffff;
    --reader-ink: #1c1917;
    --reader-muted: #6b6560;
    --reader-rule: rgba(28, 25, 23, 0.1);
    --reader-chrome-bg: rgba(255, 255, 255, 0.96);
    --reader-body: 1.125rem;
    --reader-lh: 1.82;
    --reader-gap: 1rem;
    --reader-sticky: var(--pa-nav-reserve, 88px);
    --reader-z-chrome: 99980;
    --reader-z-progress: 99988;
    --pa-subhead-inset: calc(0.6rem + 3px);
    --pa-float-gutter: min(12rem, 32%);
    --pa-float-gap: 1rem;
}

html.pa-page-materialy {
    --pa-font-reading: "Literata", Georgia, "Times New Roman", serif;
    /* Jen html scrolluje. overflow-x:hidden + overflow-y:visible ⇒ prohlížeč přepočítá y na auto (= 2. scroll) */
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
    overscroll-behavior-y: auto;
    scrollbar-gutter: auto;
}

html.pa-page-materialy body {
    overflow-x: clip;
    overflow-y: visible;
    min-height: 100%;
    height: auto;
    max-height: none;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: auto;
    background: var(--reader-paper, #fff);
    color: var(--reader-ink, #1c1917);
}

@supports not (overflow: clip) {
    html.pa-page-materialy {
        overflow-x: hidden;
        overflow-y: auto; /* Android (Redmi): bez clip musí html scrollovat */
    }
    html.pa-page-materialy body {
        overflow-x: hidden;
        overflow-y: visible;
        height: auto;
        max-height: none;
    }
}

/* Mobil — žádný posun textu kvůli float gutter / zaseknutému body */
@media (max-width: 900px) {
    html.pa-page-materialy,
    html.pa-page-materialy body {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: 100% !important;
        transform: none !important;
        height: auto !important;
        max-height: none !important;
    }

    html.pa-page-materialy {
        overflow-x: clip !important;
        overflow-y: auto !important;
    }

    html.pa-page-materialy body {
        overflow-x: clip !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }

    @supports not (overflow: clip) {
        html.pa-page-materialy {
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }
        html.pa-page-materialy body {
            overflow-x: hidden !important;
            overflow-y: visible !important;
            height: auto !important;
            max-height: none !important;
        }
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich,
    #psychaura-final-site .pa-reader__article {
        --pa-float-gutter: 0px !important;
        /* 0px — ne 100 %: u kap. 1 jinak calc(100% - var(--pa-dejiny-float)) zúží text na tabletu na výšku */
        --pa-dejiny-float: 0px !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--right,
    #psychaura-final-site .pa-reader__article .pa-figure--left {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #psychaura-final-site .pa-topic-block__body .pa-study-table-wrap,
    #psychaura-final-site .pa-person-sheet__main .pa-study-table-wrap {
        max-width: 100% !important;
        width: 100% !important;
        clear: both !important;
    }

    #psychaura-final-site .pa-topic-block,
    #psychaura-final-site .pa-person-sheet,
    #psychaura-final-site .pa-s23,
    #psychaura-final-site .pa-study-lead {
        max-width: 100%;
        box-sizing: border-box;
    }

    #psychaura-final-site .pa-topic-block__body {
        --pa-float-gutter: 0px !important;
    }
}

/*
 * Tablet na výšku (ne telefon): text OBTÉKÁ menší obrázky.
 * Telefony (≤700 / .pa-touch-notes) mají vlastní full-width stack níže.
 */
@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) {
    html.pa-page-materialy {
        --reader-gutter: clamp(0.9rem, 4vw, 2rem);
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich,
    #psychaura-final-site .pa-reader__article {
        --pa-float-gutter: min(11.25rem, 40%) !important;
        --pa-dejiny-float: min(11.25rem, 40%) !important;
        --pa-float-gap: 0.85rem;
    }

    #psychaura-final-site .pa-reader {
        padding-left: var(--reader-gutter);
        padding-right: var(--reader-gutter);
    }

    /* Zruš stack z ≤900px — znovu float + obtékání */
    #psychaura-final-site .pa-reader__article .pa-figure--right,
    #psychaura-final-site .pa-reader__article .pa-figure--lead,
    #psychaura-final-site .pa-reader__article .pa-figure--dejiny,
    #psychaura-final-site .pa-reader__article .pa-figure--compact,
    #psychaura-final-site .pa-reader__article .pa-figure--intro-table {
        float: right !important;
        clear: none !important;
        display: block !important;
        width: auto !important;
        max-width: min(11.25rem, 42%) !important;
        margin: 0.1rem 0 0.7rem 0.85rem !important;
        shape-outside: margin-box !important;
        text-align: left !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--left {
        float: left !important;
        clear: none !important;
        display: block !important;
        width: auto !important;
        max-width: min(11.25rem, 42%) !important;
        margin: 0.1rem 0.85rem 0.7rem 0 !important;
        shape-outside: margin-box !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--portrait {
        float: right !important;
        clear: none !important;
        width: auto !important;
        max-width: min(10.5rem, 40%) !important;
        margin: 0.1rem 0 0.7rem 0.85rem !important;
        text-align: left !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--diagram {
        float: right !important;
        clear: none !important;
        width: auto !important;
        max-width: min(13rem, 46%) !important;
        margin: 0.1rem 0 0.7rem 0.85rem !important;
        shape-outside: margin-box !important;
    }

    /* Široká schémata/bloky — střední šířka, ne přes celou kartu */
    #psychaura-final-site .pa-reader__article .pa-figure--block,
    #psychaura-final-site .pa-reader__article .pa-figure--chart {
        float: none !important;
        clear: both !important;
        width: min(100%, 22rem) !important;
        max-width: min(100%, 22rem) !important;
        margin: 0.65rem auto 0.9rem !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--right img,
    #psychaura-final-site .pa-reader__article .pa-figure--left img,
    #psychaura-final-site .pa-reader__article .pa-figure--portrait img,
    #psychaura-final-site .pa-reader__article .pa-figure--lead img,
    #psychaura-final-site .pa-reader__article .pa-figure--dejiny img,
    #psychaura-final-site .pa-reader__article .pa-figure--diagram img,
    #psychaura-final-site .pa-reader__article .pa-figure--compact img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: min(210px, 28vh) !important;
        object-fit: contain !important;
        object-position: top center !important;
        margin: 0 !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--diagram img {
        width: 100% !important;
        max-height: min(240px, 32vh) !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--block img,
    #psychaura-final-site .pa-reader__article .pa-figure--chart img {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(260px, 34vh) !important;
        object-fit: contain !important;
    }

    /* Kap. 1 — obtékání + max-width pro text vedle floatu */
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] {
        --pa-dejiny-float: min(11.25rem, 40%) !important;
        --pa-float-gutter: min(11.25rem, 40%) !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-lead > .pa-figure--lead,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--diagram {
        float: right !important;
        clear: none !important;
        width: auto !important;
        max-width: min(11.25rem, 42%) !important;
        margin: 0.1rem 0 0.65rem 0.85rem !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-figure--chart {
        float: none !important;
        width: min(100%, 22rem) !important;
        max-width: min(100%, 22rem) !important;
        margin: 0.55rem 0 0.75rem !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
        max-width: calc(100% - var(--pa-dejiny-float) - 0.85rem) !important;
    }

    #psychaura-final-site .pa-illustrated-block {
        grid-template-columns: minmax(0, 1fr) min(10.5rem, 36%) !important;
        gap: 0.75rem 1rem !important;
    }

    #psychaura-final-site .pa-illustrated-block .pa-figure--illustration {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: sticky !important;
        top: calc(var(--reader-sticky) + 0.5rem);
    }

    #psychaura-final-site .pa-illustrated-block .pa-figure--illustration img {
        width: 100% !important;
        max-height: min(220px, 30vh) !important;
    }
}

/* Tablet portrait přes JS třídu (bez telefonu) */
@media (min-width: 701px) and (max-width: 1100px) {
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes).pa-page-materialy {
        --reader-gutter: clamp(0.9rem, 4vw, 2rem);
    }

    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-study-rich,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article {
        --pa-float-gutter: min(11.25rem, 40%) !important;
        --pa-dejiny-float: min(11.25rem, 40%) !important;
    }

    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--right,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--portrait,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--lead,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--dejiny,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--diagram {
        float: right !important;
        clear: none !important;
        width: auto !important;
        max-width: min(11.25rem, 42%) !important;
        margin: 0.1rem 0 0.7rem 0.85rem !important;
        shape-outside: margin-box !important;
    }

    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--left {
        float: left !important;
        max-width: min(11.25rem, 42%) !important;
        margin: 0.1rem 0.85rem 0.7rem 0 !important;
    }

    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--block,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--chart {
        float: none !important;
        width: min(100%, 22rem) !important;
        max-width: min(100%, 22rem) !important;
        margin: 0.65rem auto 0.9rem !important;
    }

    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--right img,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--left img,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--portrait img,
    html.pa-orient-portrait.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-reader__article .pa-figure--dejiny img {
        max-width: 100% !important;
        width: auto !important;
        max-height: min(210px, 28vh) !important;
        object-fit: contain !important;
    }
}

/* Tablet na šířku — desktop float (ne telefon) */
@media (min-width: 901px) {
    html.pa-orient-landscape.pa-tablet-notes:not(.pa-touch-notes) #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] {
        --pa-dejiny-float: min(18rem, 38%);
        --pa-float-gutter: min(20rem, 42%);
        --pa-float-gap: 1rem;
    }

    html.pa-orient-landscape.pa-tablet-notes:not(.pa-touch-notes).pa-page-materialy {
        --reader-gutter: clamp(1rem, 2.6vw, 2.25rem);
    }
}

/* Telefon: obrázky na šířku, text plný — žádné úzké obtékání (to je jen tablet) */
@media (max-width: 720px) {
    html.pa-page-materialy {
        --reader-gutter: clamp(0.75rem, 3.5vw, 1.1rem);
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich,
    #psychaura-final-site .pa-reader__article,
    #psychaura-final-site .pa-topic-block__body,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] {
        --pa-float-gutter: 0px !important;
        --pa-dejiny-float: 0px !important;
        --pa-float-gap: 0.65rem;
    }

    #psychaura-final-site .pa-reader__article .pa-figure,
    #psychaura-final-site .pa-reader__article .pa-figure--right,
    #psychaura-final-site .pa-reader__article .pa-figure--left,
    #psychaura-final-site .pa-reader__article .pa-figure--portrait,
    #psychaura-final-site .pa-reader__article .pa-figure--lead,
    #psychaura-final-site .pa-reader__article .pa-figure--dejiny,
    #psychaura-final-site .pa-reader__article .pa-figure--diagram,
    #psychaura-final-site .pa-reader__article .pa-figure--compact,
    #psychaura-final-site .pa-reader__article .pa-figure--intro-table,
    #psychaura-final-site .pa-reader__article .pa-figure--block,
    #psychaura-final-site .pa-reader__article .pa-figure--chart,
    #psychaura-final-site .pa-reader__article .pa-figure--illustration,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--right,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-lead > .pa-figure--lead,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-figure--chart {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.55rem 0 0.85rem !important;
        shape-outside: none !important;
        text-align: center !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure img,
    #psychaura-final-site .pa-study-rich .pa-figure img,
    #psychaura-final-site .pa-illustrated-block .pa-figure img,
    #psychaura-final-site .pa-s23-panel__fig img {
        display: block !important;
        width: auto !important;
        max-width: min(100%, 22rem) !important;
        height: auto !important;
        max-height: min(34vh, 200px) !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        object-position: center top !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--diagram img,
    #psychaura-final-site .pa-reader__article .pa-figure--block img,
    #psychaura-final-site .pa-reader__article .pa-figure--chart img {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(40vh, 240px) !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figure--portrait img,
    #psychaura-final-site .pa-reader__article .pa-figure--lead img {
        max-width: min(100%, 14rem) !important;
        max-height: min(32vh, 180px) !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap,
    #psychaura-final-site .pa-topic-block__body .pa-study-table-wrap,
    #psychaura-final-site .pa-person-sheet__main .pa-study-table-wrap {
        max-width: 100% !important;
        width: 100% !important;
    }

    #psychaura-final-site .pa-illustrated-block {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    #psychaura-final-site .pa-illustrated-block .pa-figure--illustration {
        grid-column: 1 !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.35rem 0 0.65rem !important;
    }

    #psychaura-final-site .pa-reader__article .pa-figcaption {
        text-align: left !important;
        align-items: flex-start !important;
    }
}

/* Stejný telefonní stack i přes JS třídu (jistota) */
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-study-rich,
html.pa-touch-notes #psychaura-final-site .pa-reader__article,
html.pa-touch-notes #psychaura-final-site .pa-topic-block__body,
html.pa-touch-notes #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] {
    --pa-float-gutter: 0px !important;
    --pa-dejiny-float: 0px !important;
}

html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--right,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--left,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--portrait,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--lead,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--dejiny,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--diagram,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--compact,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--intro-table,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--block,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--chart,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--illustration {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.55rem 0 0.85rem !important;
    shape-outside: none !important;
    text-align: center !important;
}

html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure img,
html.pa-touch-notes #psychaura-final-site .pa-study-rich .pa-figure img {
    display: block !important;
    width: auto !important;
    max-width: min(100%, 22rem) !important;
    height: auto !important;
    /* Dřív 52vh/320px = půlka displeje na jeden obrázek */
    max-height: min(34vh, 200px) !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--diagram img,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--chart img,
html.pa-touch-notes #psychaura-final-site .pa-reader__article .pa-figure--block img {
    max-width: 100% !important;
    max-height: min(40vh, 240px) !important;
}

html.pa-touch-notes #psychaura-final-site .pa-illustrated-block {
    grid-template-columns: 1fr !important;
}

html.pa-touch-notes #psychaura-final-site .pa-illustrated-block .pa-figure--illustration {
    grid-column: 1 !important;
    position: static !important;
}

html.pa-touch-notes #psychaura-final-site .pa-illustrated-block .pa-figure--illustration img {
    max-height: min(34vh, 200px) !important;
}

/* Kap. 1: na telefonu žádné „zúžení textu vedle floatu“ */
html.pa-touch-notes #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
html.pa-touch-notes #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
html.pa-touch-notes #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > :is(p, ul, ol, h4, .pa-study-table-wrap),
html.pa-touch-notes #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-table-wrap {
    max-width: 100% !important;
}

html.pa-touch-notes #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row {
    grid-template-columns: 1fr !important;
}

html.pa-touch-notes #psychaura-final-site .pa-study-rich .pa-figure[style],
html.pa-touch-notes #psychaura-final-site .pa-study-rich .pa-figure:has(> img) {
    width: 100% !important;
    max-width: 100% !important;
}

/*
  Telefon + ink: scroll prstem OK; při tahu (drawing) touch-action none.
*/
html.pa-touch-notes body.pa-ink-mode #psychaura-final-site .pa-ink-layer--active .pa-ink-hit {
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

html.pa-touch-notes body.pa-ink-drawing #psychaura-final-site .pa-ink-layer--active .pa-ink-hit,
html.pa-touch-notes body.pa-ink-mode #psychaura-final-site .pa-ink-layer--active.pa-ink-layer--drawing .pa-ink-hit {
    touch-action: none !important;
    pointer-events: auto !important;
}

/* Telefon: safe-area padding */
html.pa-touch-notes #psychaura-final-site .pa-reader {
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
}

html.pa-touch-notes.pa-orient-landscape.pa-page-materialy {
    --reader-gutter: clamp(0.45rem, 1.8vw, 0.9rem);
}

html.pa-touch-notes.pa-orient-landscape #psychaura-final-site .pa-reader__article {
    padding-left: clamp(0.7rem, 2vw, 1rem);
    padding-right: clamp(0.7rem, 2vw, 1rem);
}

html.pa-page-materialy #psychaura-final-site {
    min-height: 0;
    overflow: visible;
    --pa-reward: var(--pa-plus-burgundy);
    --pa-yellow: var(--pa-accent-lavender);
    --pa-accent-honey: var(--pa-accent-lavender);
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-pink:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-komunita:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy .pa-navbar .pa-nav-dd__trigger.pa-nav-btn:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy .pa-navbar .pa-nav-dd__shell.pa-nav-btn:not(.is-active),
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-offline,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-offline-live,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-offline-ready {
    background: #dfe9e4 !important;
    border-color: #221e21 !important;
    color: #221e21 !important;
    -webkit-text-fill-color: #221e21 !important;
    box-shadow: 4px 4px 0 #221e21 !important;
    border-radius: 50px !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-pink.is-active,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-pink[aria-current="page"],
html.pa-page-materialy .pa-navbar .pa-nav-dd__trigger.pa-nav-btn.is-active,
html.pa-page-materialy .pa-navbar .pa-nav-dd__trigger.pa-nav-btn[aria-current="page"],
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-komunita.is-active,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-komunita[aria-current="page"] {
    background: #b5cdc0 !important;
    color: #221e21 !important;
    -webkit-text-fill-color: #221e21 !important;
    transform: none !important;
    box-shadow: 4px 4px 0 #221e21 !important;
    border-radius: 50px !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-pink:hover:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-komunita:hover:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy .pa-navbar .pa-nav-dd__trigger.pa-nav-btn:hover:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy .pa-navbar .pa-nav-dd__shell:hover:not(.is-active),
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-offline:hover,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-offline-live:hover,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-offline-ready:hover {
    background: #cddfd4 !important;
    color: #221e21 !important;
    -webkit-text-fill-color: #221e21 !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-login,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-register {
    background: var(--pa-plus-burgundy, #a85d72) !important;
    border-color: var(--pa-ink, #221e21) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 4px 4px 0 rgba(34, 30, 33, 0.9) !important;
    border-radius: 50px !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-login:hover,
html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-register:hover {
    background: #93495e !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-plus {
    background: #a85d72 !important;
    border-color: var(--pa-ink, #221e21) !important;
    color: #fff !important;
    box-shadow: 4px 4px 0 rgba(34, 30, 33, 0.9) !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-plus:hover {
    background: #93495e !important;
    color: #fff !important;
}

html.pa-page-materialy .pa-navbar .pa-nav-links > .pa-nav-btn-logged {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 38%, #fff) !important;
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 52%, var(--pa-ink, #221e21)) !important;
    color: var(--pa-ink, #221e21) !important;
}

html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-pink:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-komunita:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-dd__trigger.pa-nav-btn:not(.is-active):not([aria-current="page"]),
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-dd__shell.pa-nav-btn:not(.is-active),
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-offline,
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-offline-live,
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-offline-ready {
    background: #dfe9e4 !important;
    color: #221e21 !important;
    -webkit-text-fill-color: #221e21 !important;
}

html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-pink.is-active,
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-pink[aria-current="page"],
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-dd__trigger.pa-nav-btn.is-active,
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-dd__trigger.pa-nav-btn[aria-current="page"] {
    background: #b5cdc0 !important;
    color: #221e21 !important;
    -webkit-text-fill-color: #221e21 !important;
    transform: none !important;
}

html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-login,
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-register,
html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-plus {
    background: var(--pa-plus-burgundy, #a85d72) !important;
    color: #fdf8fa !important;
    -webkit-text-fill-color: #fdf8fa !important;
}

html.pa-page-materialy body.dark-mode .pa-navbar .pa-nav-links > .pa-nav-btn-logged {
    color: #fdf8fa !important;
    -webkit-text-fill-color: #fdf8fa !important;
}

html.pa-page-materialy #content-display,
html.pa-page-materialy .pa-reader,
html.pa-page-materialy .pa-reader__body,
html.pa-page-materialy .pa-reader__chrome,
html.pa-page-materialy .pa-materials-page,
html.pa-page-materialy .pa-reader__article {
    overflow-x: clip;
    overflow-y: visible;
    max-height: none;
    height: auto;
}

@supports not (overflow: clip) {
    html.pa-page-materialy #content-display,
    html.pa-page-materialy .pa-reader,
    html.pa-page-materialy .pa-reader__body,
    html.pa-page-materialy .pa-reader__chrome,
    html.pa-page-materialy .pa-materials-page,
    html.pa-page-materialy .pa-reader__article {
        overflow: visible;
        overflow-x: visible;
        overflow-y: visible;
    }
}

    /* Touch / mobil / tablet / iPad landscape: jeden document scroll */
@media (max-width: 1400px) {
    html.pa-page-materialy {
        overflow-x: clip !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pinch-zoom;
        scrollbar-gutter: auto !important;
    }

    /* Nikdy nenech body vytvořit druhý scrollport */
    html.pa-page-materialy body {
        overflow-x: clip !important;
        overflow-y: visible !important;
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: auto !important;
        touch-action: pan-y pinch-zoom;
    }

    @supports not (overflow: clip) {
        html.pa-page-materialy {
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }
        html.pa-page-materialy body {
            overflow-x: hidden !important;
            overflow-y: visible !important;
            height: auto !important;
            max-height: none !important;
        }
    }

    html.pa-page-materialy #psychaura-final-site,
    html.pa-page-materialy .pa-materials-page,
    html.pa-page-materialy .pa-reader,
    html.pa-page-materialy .pa-reader__chrome,
    html.pa-page-materialy .pa-reader__body,
    html.pa-page-materialy .pa-reader__article,
    html.pa-page-materialy #content-display,
    html.pa-page-materialy .pa-study-rich {
        overflow: visible !important;
        max-height: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        overscroll-behavior-y: auto;
        touch-action: pan-y pinch-zoom;
    }

    /* Jen VIDITELNÁ podkapitola — hidden/locked musí zůstat display:none */
    html.pa-page-materialy .pa-study-section:not([hidden]):not(.pa-study-section--locked) {
        overflow: visible !important;
        max-height: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        overscroll-behavior-y: auto;
        touch-action: pan-y pinch-zoom;
    }

    html.pa-page-materialy .pa-reader__article {
        overflow: visible !important;
    }

    html.pa-page-materialy #psychaura-final-site {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh;
        height: auto !important;
    }

    /* Horizontální pásy jen u okruhů/TOC — knihovna jde vertikálně */
    html.pa-page-materialy #psychaura-final-site .pa-reader__chapters,
    html.pa-page-materialy #psychaura-final-site .pa-reader__toc:not(.pa-reader__toc--sections) {
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: pan-y pinch-zoom;
    }
}

html.pa-page-materialy #section-jump.pa-reader__toc--sections,
html.pa-page-materialy .pa-reader-toc-drawer .pa-reader__toc--sections {
    max-height: none !important;
    overflow: visible !important;
}

#psychaura-final-site .pa-materials-page {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding: 0 0 clamp(2rem, 5vw, 3.5rem);
}

/* Pod Zpět/Další — žádná velká bílá díra; dock je fixed a překryje okraj */
html.pa-section-nav-visible #psychaura-final-site .pa-materials-page {
    padding-bottom: 0.5rem;
}

html.pa-section-nav-visible body.pa-study-dock-hidden #psychaura-final-site .pa-materials-page {
    padding-bottom: 0.35rem;
}

/* ---- Progress ---- */
#psychaura-final-site .pa-reading-progress-track {
    position: fixed;
    top: var(--reader-sticky);
    left: 0;
    right: 0;
    height: 2px;
    z-index: var(--reader-z-progress);
    background: transparent;
    pointer-events: none;
}

#psychaura-final-site .pa-reading-progress-bar {
    height: 100%;
    width: var(--pa-reading-progress, 0%);
    background: linear-gradient(90deg, var(--pa-accent-mint), var(--pa-accent-rose));
    transition: width 0.12s ease-out;
}

/* ---- Reader shell — plná šířka stránky ---- */
#psychaura-final-site .pa-reader {
    width: 100%;
    max-width: var(--reader-shell-max);
    margin: 0 auto;
    padding: 0 var(--reader-gutter);
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
}

/* Chrome — scrolluje s stránkou (sticky by blokovalo úvod s okruhy).
   Bez backdrop-filter: při scrollu na PC to třáslo právě tento bílý blok. */
#psychaura-final-site .pa-reader__chrome {
    position: relative;
    top: auto;
    z-index: var(--reader-z-chrome);
    pointer-events: auto;
    margin: 0 0 1rem;
    padding: 1.1rem 1.15rem 1rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 85%, #fff);
    border-radius: 24px;
    box-shadow:
        0 10px 30px rgba(28, 25, 23, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
    box-sizing: border-box;
    overflow-anchor: none;
}

#psychaura-final-site #section-jump,
#psychaura-final-site .pa-reader__chapters,
#psychaura-final-site .pa-reader__toc {
    overflow-anchor: none;
}

#psychaura-final-site .pa-reader__article .pa-study-rich {
    overflow-anchor: none;
}

#psychaura-final-site .pa-reader__chrome-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

#psychaura-final-site .pa-reader__label {
    margin: 0 0 0.85rem;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--reader-muted);
}

/* Studijní nástroje jen v režimu Hlavní dokument (okruhy) */
body:not(.pa-reader-chapters-tools) #reader-study-dock,
body:not(.pa-reader-chapters-tools) #reader-study-dock-tab,
body:not(.pa-reader-chapters-tools) #psychaura-final-site .pa-reading-progress-track,
body:not(.pa-reader-chapters-tools) #psychaura-final-site #sound-toggle {
    display: none !important;
}

/* Mobil — pilulka dole uprostřed (jako vpravo, jen jiná pozice; stav = atribut [hidden]) */
@media (max-width: 720px) {
    body.pa-reader-chapters-tools #reader-study-dock[hidden],
    body.pa-reader-chapters-tools.pa-study-dock-hidden #reader-study-dock[hidden] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock:not([hidden]) {
        display: block !important;
        visibility: visible !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock-tab[hidden] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock,
    body.pa-reader-chapters-tools #reader-study-dock-tab {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock-tab:not([hidden]) {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: fixed !important;
        bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 99950 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock-tab[data-pa-vv-pin='1']:not([hidden]),
    body.pa-reader-chapters-tools #reader-study-dock[data-pa-vv-pin='1']:not([hidden]) {
        bottom: auto !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock:not([hidden]) {
        display: block !important;
        position: fixed !important;
        bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
        z-index: 99950 !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock:not([hidden]) .pa-reader-study-dock__inner {
        pointer-events: auto !important;
    }

    body.pa-reader-chapters-tools #reader-study-dock .pa-reader-study-dock__sheet {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    body.pa-reader-chapters-tools.pa-reader-focus #reader-study-dock-tab:not([hidden]),
    body.pa-reader-chapters-tools.pa-reader-focus #reader-study-dock:not([hidden]) {
        opacity: 1 !important;
        transform: translateX(-50%) !important;
        pointer-events: auto !important;
    }

    body.pa-reader-chapters-tools.pa-reader-focus #reader-study-dock:not([hidden]) {
        pointer-events: none !important;
    }

    body.pa-reader-chapters-tools.pa-reader-focus #reader-study-dock:not([hidden]) .pa-reader-study-dock__inner {
        pointer-events: auto !important;
    }

    body:has(#pa-cookie-banner) #reader-study-dock,
    body:has(#pa-cookie-banner) #reader-study-dock-tab {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Studijní program (Bc / NMgr) — nahoře v čtečce */
#psychaura-final-site .pa-reader-program-nav {
    margin: 0 0 0.85rem;
}

#psychaura-final-site .pa-reader-program-nav[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader-program-nav__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 28rem;
}

#psychaura-final-site .pa-reader-program-nav__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3.25rem;
    padding: 0.45rem 0.6rem;
    border: 2px solid var(--pa-ink, #221e21);
    border-radius: 50px;
    background: #fff;
    font-family: var(--pa-font-ui);
    color: var(--pa-ink, #221e21);
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--pa-ink, #221e21);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#psychaura-final-site .pa-reader-program-nav__btn:hover:not(.is-active) {
    background: #f3f7f4;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-program-nav__btn.is-active {
    background: #dfe9e4;
    transform: translateY(-1px);
    box-shadow: 5px 5px 0 var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-program-nav__eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-ink, #221e21) 62%, #6b6560);
}

#psychaura-final-site .pa-reader-program-nav__label {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

#psychaura-final-site .pa-reader-chrome-nmgr[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader-szz-search {
    display: block;
    margin: 0 0 0.85rem;
}

#psychaura-final-site .pa-reader-szz-search__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--pa-ink, #221e21) 70%, #6b6560);
}

#psychaura-final-site .pa-reader-szz-search__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.95rem;
    border: 2px solid var(--pa-ink, #221e21);
    border-radius: 16px;
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 rgba(34, 30, 33, 0.18);
}

#psychaura-final-site .pa-reader-szz-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: min(52vh, 28rem);
    overflow: auto;
    padding-right: 0.15rem;
}

#psychaura-final-site .pa-reader-szz-item {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--pa-ink, #221e21);
    border-radius: 16px;
    background: #fff;
    text-align: left;
    font: inherit;
    color: var(--pa-ink, #221e21);
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(34, 30, 33, 0.16);
}

#psychaura-final-site .pa-reader-szz-item:hover,
#psychaura-final-site .pa-reader-szz-item.is-active {
    background: #dfe9e4;
}

#psychaura-final-site .pa-reader-szz-item.is-empty {
    opacity: 0.78;
}

#psychaura-final-site .pa-reader-szz-item__n {
    grid-row: 1 / span 2;
    align-self: center;
    font-weight: 900;
    font-size: 0.95rem;
}

#psychaura-final-site .pa-reader-szz-item__t {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

#psychaura-final-site .pa-reader-szz-item__meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--pa-ink, #221e21) 58%, #6b6560);
}

#psychaura-final-site .pa-reader-szz-toolbar {
    display: inline-flex;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.25rem;
    border: 2px solid var(--pa-ink, #221e21);
    border-radius: 999px;
    background: #dfe9e4;
    box-shadow: 3px 3px 0 var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-szz-toolbar__btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    background: transparent;
    color: var(--pa-ink, #221e21);
    cursor: pointer;
}

#psychaura-final-site .pa-reader-szz-toolbar__btn.is-active {
    background: #fff;
}

/* NMgr atelier: Bc chrome úplně pryč — nesmí se míchat s otázkami */
html.pa-program-nmgr #reader-mode-nav,
html.pa-program-nmgr #reader-chrome-chapters,
html.pa-program-nmgr #reader-chrome-library,
html.pa-program-nmgr #reader-library,
html.pa-program-nmgr #reader-download-strip,
html.pa-program-nmgr #reader-main-download-slot,
html.pa-program-nmgr #reader-pager,
html.pa-program-nmgr #chapter-grid,
html.pa-program-nmgr #toc-row,
html.pa-program-nmgr #section-jump,
html.pa-program-nmgr #pa-study-coach-panel,
html.pa-program-nmgr .pa-reading-progress-track {
    display: none !important;
    visibility: hidden !important;
}

html.pa-program-nmgr #reader-chrome-nmgr {
    display: block !important;
    visibility: visible !important;
}

html.pa-program-nmgr #reader-chrome-nmgr[hidden] {
    display: block !important;
}

#psychaura-final-site .pa-szz-q details.pa-click-expansion > summary {
    font-weight: 700;
}

#psychaura-final-site .pa-szz-q .pa-expansion-lead {
    margin: 0 0 0.75rem;
    font-size: 0.92em;
    color: color-mix(in srgb, var(--reader-ink, #1c1917) 72%, #6b6560);
}

#psychaura-final-site .pa-reader-szz-article,
#psychaura-final-site .pa-szz-q {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#psychaura-final-site .pa-szz-q .pa-study-rich {
    width: 100%;
    max-width: none;
}

/* NMgr používá stejnou typografii jako Bc pa-study-rich — nepřepisuj h2 na malé. */
#psychaura-final-site .pa-szz-q .pa-study-rich h2 {
    margin-top: 1.75rem;
}

#psychaura-final-site .pa-szz-q .pa-study-rich h3.pa-h3--topic {
    margin: 1.25rem 0 0.55rem;
}

#psychaura-final-site .pa-szz-q .pa-szz-line {
    margin: 0 0 0.55rem;
    line-height: var(--reader-lh, 1.82);
}

#psychaura-final-site .pa-szz-q .pa-szz-line--arrow,
#psychaura-final-site .pa-szz-q .pa-szz-line--def {
    margin: 0.15rem 0 0.45rem;
}

#psychaura-final-site .pa-szz-q .pa-szz-line--arrow strong,
#psychaura-final-site .pa-szz-q .pa-szz-line--def strong {
    font-weight: 800;
}

#psychaura-final-site .pa-szz-q .pa-szz-line--cont {
    margin: 0.1rem 0 0.55rem 0.85rem;
    color: color-mix(in srgb, var(--reader-ink, #1c1917) 92%, #6b6560);
}

#psychaura-final-site .pa-szz-q .pa-tip-box {
    margin: 1.15rem 0;
}

#psychaura-final-site .pa-explain-sec__list {
    margin: 0.35rem 0 0.55rem;
    padding-left: 1.15rem;
}

#psychaura-final-site .pa-explain-sec__list li {
    margin: 0.2rem 0;
    line-height: 1.45;
}

#psychaura-final-site .pa-explain-sec p {
    margin: 0 0 0.55rem;
    line-height: 1.5;
}

#psychaura-final-site .pa-explain-sec p:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-explain-sec strong {
    font-weight: 800;
    color: inherit;
}

#psychaura-final-site .pa-reader-szz-article__kicker {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-ink, #221e21) 62%, #6b6560);
}

#psychaura-final-site .pa-reader-szz-article__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
    line-height: 1.3;
}

#psychaura-final-site .pa-reader-szz-article__note {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--pa-ink, #221e21) 78%, #6b6560);
}

#psychaura-final-site .pa-reader-mode-nav {
    margin: 0 0 1.15rem;
    padding-bottom: 6px;
}

#psychaura-final-site .pa-reader-mode-nav__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0;
    border-radius: 0;
    --pa-reader-mode-track: #dfe9e4;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#psychaura-final-site .pa-reader-mode-nav__btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.85rem;
    padding: 0.5rem 0.45rem 0.48rem;
    border: 2px solid var(--pa-ink, #221e21);
    border-radius: 50px;
    background: #dfe9e4;
    font-family: var(--pa-font-ui);
    text-align: center;
    color: var(--pa-ink, #221e21);
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--pa-ink, #221e21);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#psychaura-final-site .pa-reader-mode-nav__eyebrow {
    font-size: clamp(0.58rem, 0.54rem + 0.2vw, 0.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-ink, #221e21) 62%, #6b6560);
}

#psychaura-final-site .pa-reader-mode-nav__label {
    font-size: clamp(0.76rem, 0.7rem + 0.35vw, 0.88rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-mode-nav__badge {
    display: none;
}

#psychaura-final-site .pa-reader-mode-nav__btn:hover:not(.is-active) {
    background: #cddfd4;
    border-color: var(--pa-ink, #221e21);
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-mode-nav__btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--pa-accent-rose) 55%, var(--pa-ink));
    outline-offset: 2px;
}

#psychaura-final-site .pa-reader-mode-nav__btn.is-active,
#psychaura-final-site .pa-reader-mode-nav__btn--featured.is-active,
#psychaura-final-site .pa-reader-mode-nav__btn--featured.is-featured-active {
    border-color: var(--pa-ink, #221e21);
    background: #dfe9e4;
    transform: translateY(-1px);
    box-shadow: 6px 6px 0 var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-mode-nav__btn.is-active .pa-reader-mode-nav__label,
#psychaura-final-site .pa-reader-mode-nav__btn--featured.is-active .pa-reader-mode-nav__label,
#psychaura-final-site .pa-reader-mode-nav__btn--featured.is-featured-active .pa-reader-mode-nav__label {
    color: var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-mode-nav__btn.is-active .pa-reader-mode-nav__eyebrow,
#psychaura-final-site .pa-reader-mode-nav__btn--featured.is-active .pa-reader-mode-nav__eyebrow,
#psychaura-final-site .pa-reader-mode-nav__btn--featured.is-featured-active .pa-reader-mode-nav__eyebrow {
    color: var(--pa-text-muted, #6b5f66);
}

#psychaura-final-site .pa-reader-mode-nav__btn--featured::after {
    display: none;
}

#psychaura-final-site .pa-reader-mode-nav__btn--pdf .pa-reader-mode-nav__label {
    font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.84rem);
}

#psychaura-final-site .pa-reader-mode-nav__btn--pdf.is-locked {
    opacity: 0.82;
    cursor: pointer;
}

#psychaura-final-site .pa-reader-mode-nav__btn--pdf.is-locked .pa-reader-mode-nav__lock-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    vertical-align: middle;
}

#psychaura-final-site .pa-reader-mode-nav__btn--pdf.is-locked .pa-reader-mode-nav__lock {
    width: 0.85rem;
    height: 0.85rem;
    fill: currentColor;
    opacity: 0.88;
}

#psychaura-final-site #reader-chrome.is-library-mode {
    /* Stejný chrome jako u okruhů — bez růžového „sticker“ rámu */
    border-color: inherit;
    box-shadow: inherit;
}

/* Stejný popisek jako u okruhů (mint/neutrál materiálů), bez šipky a bez růžové */
#psychaura-final-site .pa-reader-chrome-callout--library {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 2px solid color-mix(in srgb, var(--pa-ink) 18%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-bg-subtle) 55%, #fff);
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.45;
    text-transform: none;
    color: var(--reader-ink);
    box-shadow: none;
}

#psychaura-final-site .pa-reader-chrome-callout--library::before {
    content: none;
}

#psychaura-final-site .pa-reader-chrome-callout--chapters {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 2px solid color-mix(in srgb, var(--pa-ink) 18%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-bg-subtle) 55%, #fff);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-resume {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 2px solid color-mix(in srgb, var(--pa-accent-sky) 42%, var(--reader-rule));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pa-accent-sky) 16%, #fff) 0%,
        color-mix(in srgb, var(--pa-bg-subtle) 70%, #fff) 100%
    );
    box-shadow: 0 8px 22px color-mix(in srgb, var(--pa-ink) 8%, transparent);
}

#psychaura-final-site .pa-reader-resume[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader-resume__copy {
    display: grid;
    gap: 0.18rem;
    min-width: min(100%, 14rem);
}

#psychaura-final-site .pa-reader-resume__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-ink) 58%, var(--pa-accent-sky));
}

#psychaura-final-site .pa-reader-resume__title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-resume__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

#psychaura-final-site .pa-reader-resume__go,
#psychaura-final-site .pa-reader-resume__start {
    appearance: none;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#psychaura-final-site .pa-reader-resume__go {
    background: #dfe9e4;
    border-color: color-mix(in srgb, #dfe9e4 70%, var(--pa-ink));
    color: var(--pa-ink);
}

#psychaura-final-site .pa-reader-resume__go:hover {
    background: #cddfd4;
}

#psychaura-final-site .pa-reader-resume__start {
    background: transparent;
    border-color: color-mix(in srgb, var(--pa-ink) 22%, var(--reader-rule));
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-resume__start:hover {
    background: color-mix(in srgb, var(--pa-bg-subtle) 65%, #fff);
}

#psychaura-final-site .pa-reader-resume__go:focus-visible,
#psychaura-final-site .pa-reader-resume__start:focus-visible {
    outline: 2px solid var(--pa-accent-sky);
    outline-offset: 2px;
}

#psychaura-final-site .pa-reader-chrome-callout--pdf {
    display: block;
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--reader-muted);
}

#psychaura-final-site #reader-chrome-chapters[hidden],
#psychaura-final-site #reader-chrome-library[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader-chrome-library__grid {
    display: grid;
    gap: 1rem;
}

#psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-group__list {
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
    gap: 10px;
}

#psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

@media (max-width: 900px) {
    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }
}

#psychaura-final-site .pa-reader-mode-hint {
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
    text-align: center;
    border-radius: 20px;
    border: 2px dashed color-mix(in srgb, var(--pa-accent-sky) 45%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-sky) 10%, #fff);
}

#psychaura-final-site .pa-reader-mode-hint__kicker {
    margin: 0 0 0.35rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-mode-hint__title {
    margin: 0 0 0.45rem;
    font-family: var(--pa-font-reading, var(--pa-font-ui));
    font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem);
    font-weight: 700;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-mode-hint__text {
    margin: 0 auto;
    max-width: 34rem;
    font-family: var(--pa-font-ui);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-mode-hint__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

#psychaura-final-site .pa-reader-mode-hint__btn {
    min-height: 2.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 0;
    background: var(--pa-plus-burgundy, #6b2d3e);
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
}

#psychaura-final-site .pa-reader-mode-hint__btn:hover {
    filter: brightness(1.06);
}

#psychaura-final-site .pa-reader-mode-hint__btn:focus-visible {
    outline: 2px solid var(--pa-accent-mint);
    outline-offset: 2px;
}

#psychaura-final-site .pa-reader__library--legacy,
#psychaura-final-site #reader-library[hidden],
#psychaura-final-site .pa-reader__library[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader__chrome-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

#psychaura-final-site .pa-reader__brand-wrap {
    min-width: 0;
}

#psychaura-final-site .pa-reader__format-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.05);
    border: 1px solid color-mix(in srgb, var(--reader-rule) 92%, #fff);
}

#psychaura-final-site .pa-reader__format-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.45rem 0.95rem;
    font-family: var(--pa-font-ui);
    font-size: 0.79rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    color: var(--reader-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#psychaura-final-site .pa-reader__format-pill.is-active {
    color: var(--reader-ink);
    background: #fff;
    border-color: color-mix(in srgb, var(--reader-rule) 90%, #fff);
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.08);
}

#psychaura-final-site .pa-reader__format-pill--pdf {
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader__format-pill--pdf:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: color-mix(in srgb, var(--reader-rule) 88%, #fff);
}

#psychaura-final-site .pa-reader__format-pill:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--pa-accent-mint) 55%, #fff);
    outline-offset: 2px;
}

#psychaura-final-site .pa-reader__brand {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pa-ink);
}

#psychaura-final-site .pa-reader__progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    min-height: 2.15rem;
    padding: 0.3rem 0.65rem;
    font-family: var(--pa-font-ui);
    font-size: 0.74rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--reader-muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
    border-radius: 999px;
}

/* Chapter grid — vyplní šířku obrazovky */
#psychaura-final-site .pa-reader__chapters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 0.9rem;
    overscroll-behavior: contain;
}

#psychaura-final-site .pa-reader-chapter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    min-width: 0;
    padding: 10px 1.85rem 10px 14px;
    text-align: left;
    font-family: var(--pa-font-ui);
    color: var(--pa-text);
    background: #dfe9e4;
    border: 1px solid color-mix(in srgb, #dfe9e4 70%, var(--pa-ink, #221e21));
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#psychaura-final-site .pa-reader-chapter__n {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-chapter__t {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#psychaura-final-site .pa-reader-chapter:hover:not(.is-locked):not(.is-active):not([aria-selected="true"]),
#psychaura-final-site .pa-reader-chapter:focus-visible:not(.is-locked):not(.is-active):not([aria-selected="true"]) {
    background: #cddfd4;
    border-color: var(--pa-ink, #221e21);
    box-shadow: 6px 6px 0 var(--pa-ink, #221e21);
    transform: translateY(-3px);
}

#psychaura-final-site .pa-reader-chapter.is-active:not(.is-locked),
#psychaura-final-site .pa-reader-chapter[aria-selected="true"]:not(.is-locked) {
    background: #a85d72;
    border: 2px solid #221e21;
    color: #fdf8fa;
    box-shadow: 3px 3px 0 #221e21;
    z-index: 1;
}

#psychaura-final-site .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__n,
#psychaura-final-site .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__n,
#psychaura-final-site .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__t,
#psychaura-final-site .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__t {
    color: #fdf8fa;
}

#psychaura-final-site .pa-reader-chapter.is-locked.is-active,
#psychaura-final-site .pa-reader-chapter.is-locked[aria-selected="true"] {
    background: color-mix(in srgb, var(--reader-muted) 12%, #fff);
    border: 2px dashed color-mix(in srgb, var(--pa-plus-burgundy, #6b2d3c) 42%, var(--pa-ink, #221e21));
    color: var(--pa-ink, #221e21);
    box-shadow: 0 4px 12px rgba(107, 45, 60, 0.12);
    z-index: 1;
}

#psychaura-final-site .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__n,
#psychaura-final-site .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__n,
#psychaura-final-site .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__t,
#psychaura-final-site .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__t {
    color: var(--pa-ink, #221e21);
}

#psychaura-final-site .pa-reader-chapter:focus-visible {
    outline: 2px solid var(--pa-accent-rose);
    outline-offset: 2px;
}

#psychaura-final-site .pa-reader-chapter__lock {
    display: none;
    position: absolute;
    top: 0.42rem;
    right: 0.42rem;
    line-height: 0;
    pointer-events: none;
}

#psychaura-final-site .pa-reader-chapter.is-locked .pa-reader-chapter__lock {
    display: inline-flex;
}

#psychaura-final-site .pa-reader-chapter__lock-icon {
    width: 0.95rem;
    height: 0.95rem;
    fill: color-mix(in srgb, var(--reader-muted) 88%, var(--pa-ink));
}

#psychaura-final-site .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__lock-icon,
#psychaura-final-site .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__lock-icon {
    fill: #fdf8fa;
}

#psychaura-final-site .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__lock-icon,
#psychaura-final-site .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__lock-icon {
    fill: color-mix(in srgb, var(--pa-plus-burgundy, #6b2d3c) 72%, var(--pa-ink, #221e21));
}

#psychaura-final-site .pa-reader-chapter.is-locked {
    opacity: 0.88;
    cursor: pointer;
    pointer-events: auto;
}

#psychaura-final-site .pa-reader-chapter.is-locked:not(.is-active) {
    background: color-mix(in srgb, var(--reader-muted) 12%, #fff);
    border-style: dashed;
    border-color: color-mix(in srgb, var(--reader-muted) 45%, var(--reader-rule));
}

#psychaura-final-site .pa-reader-chapter.is-locked:not(.is-active):hover,
#psychaura-final-site .pa-reader-chapter.is-locked:not(.is-active):focus-visible {
    border-color: color-mix(in srgb, var(--pa-plus-burgundy, #6b2d3c) 40%, var(--pa-ink, #221e21));
    box-shadow: 0 8px 20px rgba(107, 45, 60, 0.16);
    transform: translateY(-2px);
}

#psychaura-final-site .pa-reader-paywall {
    --pa-paywall-burgundy: #a85d72;
    --pa-paywall-ink: #221e21;
    --pa-paywall-mint: #dfe9e4;
    --pa-paywall-mint-bg: #e8f5ee;
    --pa-paywall-cream: #fffaf2;
    --pa-paywall-body: #352f33;
    width: 100%;
    max-width: none;
    margin: 0.35rem 0 1.25rem;
    padding: clamp(1.35rem, 3vw, 2.35rem);
    border-radius: 34px;
    border: 2px solid #221e21;
    background: #e8f5ee;
    box-shadow: 6px 6px 0 rgba(34, 30, 33, 0.12);
    text-align: left;
    box-sizing: border-box;
}

#psychaura-final-site .pa-reader-paywall__hero {
    max-width: 42rem;
    margin: 0 0 1.25rem;
}

#psychaura-final-site .pa-reader-paywall__eyebrow {
    display: inline-block;
    width: fit-content;
    margin: 0 0 0.75rem;
    padding: 0.48rem 0.82rem;
    border: 2px solid rgba(168, 93, 114, 0.28);
    border-radius: 999px;
    background: #f8dce7;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a85d72;
}

#psychaura-final-site .pa-reader-paywall__title {
    margin: 0 0 0.75rem;
    font-family: var(--pa-font-ui);
    font-size: clamp(1.85rem, 1.15rem + 2vw, 2.65rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #221e21;
}

#psychaura-final-site .pa-reader-paywall__text {
    margin: 0;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    line-height: 1.55;
    color: #352f33;
}

#psychaura-final-site .pa-reader-paywall__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1rem 1.15rem;
    align-items: stretch;
}

#psychaura-final-site .pa-reader-paywall__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    margin-top: auto;
    padding: 0.65rem 1.05rem;
    border-radius: 999px;
    border: 2px solid #221e21;
    background: #a85d72;
    color: #fdf8fa;
    font-family: var(--pa-font-ui);
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 3px 3px 0 #221e21;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#psychaura-final-site .pa-reader-paywall__btn:hover {
    background: #965366;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #221e21;
}

#psychaura-final-site .pa-reader-paywall__btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #221e21;
}

#psychaura-final-site .pa-reader-paywall__btn--ghost {
    background: #fffcf8;
    color: #a85d72;
}

#psychaura-final-site .pa-reader-paywall__btn--ghost:hover {
    background: #dfe9e4;
}

/* TOC + tools */
#psychaura-final-site .pa-reader__sub {
    margin-bottom: 0.5rem;
}

#psychaura-final-site .pa-reader__sub[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader__sub-label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#psychaura-final-site .pa-toc-pill {
    padding: 6px 12px;
    font-family: var(--pa-font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--reader-muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--reader-rule);
    border-radius: 999px;
    cursor: pointer;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#psychaura-final-site .pa-reader__toc--sections {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
}

#psychaura-final-site .pa-reader__toc--sections .pa-toc-pill {
    width: 100%;
    border-radius: 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: left;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    touch-action: manipulation;
}

#psychaura-final-site .pa-toc-pill:hover,
#psychaura-final-site .pa-toc-pill.is-active {
    color: var(--reader-ink);
    background: #fff;
    border-color: color-mix(in srgb, var(--pa-accent-rose) 40%, var(--reader-rule));
}

/* ---- Reading paper ---- */
#psychaura-final-site .pa-reader__body {
    position: relative;
    z-index: 1;
    padding-bottom: 1.5rem;
}

#psychaura-final-site .pa-reader__library {
    margin: 0 0 1.25rem;
    border: 2px solid color-mix(in srgb, var(--reader-ink, #1c1917) 22%, var(--reader-rule) 55%);
    border-radius: 24px;
    background: color-mix(in srgb, var(--pa-accent-mint) 10%, var(--reader-chrome-bg));
    box-shadow:
        0 10px 28px rgba(28, 25, 23, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

/* Dřív sky gradient — na tabletu zbýval prázdný modrý pruh mezi Study Buddy a textem */
#psychaura-final-site .pa-reader__library::before {
    content: none;
    display: none;
}

#psychaura-final-site .pa-reader__library-head {
    padding: 0;
}

#psychaura-final-site .pa-reader__library-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 1rem 1.15rem 0.95rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--reader-ink, #1c1917);
}

#psychaura-final-site .pa-reader__library-toggle::before {
    content: '';
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.15rem;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    opacity: 0.9;
}

#psychaura-final-site .pa-reader__library-toggle[aria-expanded='true']::before {
    transform: rotate(45deg);
    margin-top: 0.15rem;
}

#psychaura-final-site .pa-reader__library-toggle:focus-visible {
    outline: 2px solid var(--pa-accent-rose);
    outline-offset: -2px;
}

#psychaura-final-site .pa-reader__library-title {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--reader-ink, #1c1917);
}

#psychaura-final-site .pa-reader__library-count {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--reader-ink, #1c1917);
    white-space: nowrap;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--reader-ink, #1c1917) 28%, var(--pa-accent-mint) 45%);
    background: #fff;
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
}

#psychaura-final-site .pa-reader__library-panel {
    padding: 0.35rem 1.1rem 1.2rem;
    border-top: 1px solid color-mix(in srgb, var(--reader-rule) 85%, #fff);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-mint) 8%, #fff) 0%,
            transparent 42%
        );
}

#psychaura-final-site .pa-reader__library-panel[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-reader__library-list {
    display: grid;
    gap: 1rem;
}

#psychaura-final-site .pa-reader-doc-group__title {
    margin: 0 0 0.45rem;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader__library .pa-reader-doc-group__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0 0.35rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--reader-ink, #1c1917);
    border-left: 4px solid var(--pa-accent-mint);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 10%, transparent);
}

#psychaura-final-site .pa-reader-doc-group__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, max-content));
    justify-content: flex-start;
}

#psychaura-final-site .pa-reader__library .pa-reader-doc-group__list {
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
    margin-bottom: 0.35rem;
}

#psychaura-final-site .pa-reader-doc-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

#psychaura-final-site .pa-reader-doc-link.pa-reader-doc-link--card {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--reader-ink, #1c1917) 10%, var(--reader-rule));
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.09);
    text-decoration: none;
    transition:
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#psychaura-final-site .pa-reader-doc-card__preview {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: #ebe6df;
    border: 0;
}

#psychaura-final-site .pa-reader-doc-card__preview.is-thumb-loading {
    background: linear-gradient(90deg, #ebe6df 0%, #f8f5ef 45%, #ebe6df 100%);
    background-size: 220% 100%;
    animation: pa-doc-thumb-shimmer 1.05s ease-in-out infinite;
}

@keyframes pa-doc-thumb-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

#psychaura-final-site .pa-reader-doc-card__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    vertical-align: top;
}

#psychaura-final-site .pa-reader-doc-card__shade {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    height: 42%;
    background: linear-gradient(180deg, transparent 0%, rgba(28, 25, 23, 0.14) 100%);
    pointer-events: none;
}

#psychaura-final-site .pa-reader-doc-card__preview--fallback {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--pa-accent-mint) 22%, #fff) 0%, #f8f6f2 48%, #fff 100%);
}

#psychaura-final-site .pa-reader-doc-card__preview--fallback[data-fallback-kind='glossary'] {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--pa-accent-sky) 24%, #fff) 0%, #f5f8fb 52%, #fff 100%);
}

#psychaura-final-site .pa-reader-doc-card__preview--fallback[data-fallback-kind='terms'] {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--pa-accent-rose) 22%, #fff) 0%, #faf5f7 52%, #fff 100%);
}

#psychaura-final-site .pa-reader-doc-card__preview--fallback[data-fallback-kind='extra'] {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--pa-plus-burgundy) 16%, #fff) 0%, #f7f4f5 52%, #fff 100%);
}

#psychaura-final-site .pa-reader-doc-card__preview--fallback::before {
    content: 'PDF';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: color-mix(in srgb, var(--reader-ink) 35%, var(--reader-muted));
}

#psychaura-final-site .pa-reader-doc-card__body {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    padding: 1.55rem 0.42rem 0.4rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.93) 36%, #fff 100%);
    pointer-events: none;
}

#psychaura-final-site .pa-reader-doc-link--card .pa-reader-chapter__n {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-doc-link--card .pa-reader-chapter__t {
    width: 100%;
    font-size: 0.74rem;
    line-height: 1.18;
    font-weight: 800;
    color: var(--reader-ink, #1c1917);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#psychaura-final-site .pa-reader-doc-link--card .pa-reader-chapter__sub {
    display: block;
    width: 100%;
    margin-top: 0.12rem;
    font-size: 0.62rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--reader-muted, #57534e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#psychaura-final-site .pa-reader-doc-card__lock {
    position: absolute;
    top: 0.38rem;
    right: 0.38rem;
    left: auto;
    z-index: 4;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.32rem 0.48rem 0.32rem 0.4rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--pa-plus-burgundy) 30%, #fff);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.18);
    transform: none;
    pointer-events: none;
}

#psychaura-final-site .pa-reader-doc-card__lock-svg {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    fill: var(--pa-plus-burgundy, #6b2d3c);
}

#psychaura-final-site .pa-reader-doc-card__lock-label {
    font-family: var(--pa-font-ui);
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pa-plus-burgundy, #6b2d3c);
}

#psychaura-final-site .pa-reader-doc-link.is-locked .pa-reader-doc-card__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(107, 45, 60, 0.06) 0%,
        rgba(107, 45, 60, 0.14) 100%
    );
    pointer-events: none;
}

#psychaura-final-site .pa-reader-doc-link.is-locked .pa-reader-doc-card__thumb {
    filter: brightness(0.94) saturate(0.92);
    transform: none;
}

#psychaura-final-site .pa-reader-doc-link.is-locked {
    border-color: color-mix(in srgb, var(--pa-plus-burgundy) 32%, var(--reader-rule));
    box-shadow: 0 6px 16px rgba(107, 45, 60, 0.14);
}

#psychaura-final-site .pa-reader-doc-link.is-locked .pa-reader-chapter__t {
    color: color-mix(in srgb, var(--reader-muted) 50%, var(--reader-ink));
}

#psychaura-final-site .pa-reader-doc-link--card:not(.is-locked):hover,
#psychaura-final-site .pa-reader-doc-link--card:not(.is-locked):focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-ink));
    box-shadow: 0 10px 24px rgba(28, 25, 23, 0.13);
    transform: translateY(-2px);
}

#psychaura-final-site .pa-reader-doc-link--card.is-locked:hover,
#psychaura-final-site .pa-reader-doc-link--card.is-locked:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--pa-plus-burgundy) 40%, var(--reader-ink));
    box-shadow: 0 8px 20px rgba(107, 45, 60, 0.16);
    transform: translateY(-1px);
}

#psychaura-final-site .pa-reader-doc-link--card.is-locked:hover .pa-reader-doc-card__lock,
#psychaura-final-site .pa-reader-doc-link--card.is-locked:focus-visible .pa-reader-doc-card__lock {
    transform: scale(1.04);
}

#psychaura-final-site .pa-reader-doc-link.is-unavailable,
#psychaura-final-site .pa-reader-doc-link.is-unavailable:disabled {
    color: color-mix(in srgb, var(--reader-muted) 78%, #fff);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

#psychaura-final-site .pa-reader__library .pa-reader-doc-link.is-locked {
    cursor: pointer;
}

#psychaura-final-site .pa-reader-pdf-viewer {
    display: grid;
    gap: 0;
}

#psychaura-final-site .pa-reader__article--pdf,
#psychaura-final-site .pa-reader__article--material {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
    background: transparent;
}

#psychaura-final-site #reader-chrome.is-material-open {
    border-color: color-mix(in srgb, var(--pa-accent-rose) 28%, var(--reader-rule));
    box-shadow:
        0 10px 30px rgba(28, 25, 23, 0.1),
        0 0 0 1px color-mix(in srgb, var(--pa-accent-rose) 18%, transparent) inset;
}

#psychaura-final-site #reader-chrome.is-material-open .pa-reader__brand {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    line-height: 1.25;
}

#psychaura-final-site .pa-material-reader {
    display: grid;
    gap: 0;
    border-radius: 24px;
    border: 2px solid color-mix(in srgb, var(--reader-ink, #1c1917) 14%, var(--pa-accent-mint) 45%);
    background: var(--reader-paper);
    box-shadow:
        0 12px 34px rgba(28, 25, 23, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

#psychaura-final-site .pa-material-reader::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--pa-accent-mint),
        color-mix(in srgb, var(--pa-accent-rose) 55%, var(--pa-accent-mint))
    );
}

#psychaura-final-site .pa-material-reader__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem 0.95rem;
    border-bottom: 1px solid var(--reader-rule);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-mint) 12%, #fff) 0%,
            #fff 72%
        );
}

#psychaura-final-site .pa-material-reader__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 16rem;
}

#psychaura-final-site .pa-material-reader__logo {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.12);
}

#psychaura-final-site .pa-material-reader__meta {
    min-width: 0;
}

#psychaura-final-site .pa-material-reader__kicker {
    margin: 0 0 0.2rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-material-reader__title {
    margin: 0;
    font-family: var(--pa-font-reading, var(--pa-font-ui));
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-material-reader__status {
    margin: 0.35rem 0 0;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-muted));
}

#psychaura-final-site .pa-material-reader__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#psychaura-final-site .pa-material-reader__zoom {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid var(--reader-rule);
    background: rgba(255, 255, 255, 0.82);
}

#psychaura-final-site .pa-material-reader__zoom-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--pa-font-ui);
    font-size: 1rem;
    font-weight: 800;
    color: var(--reader-ink);
    cursor: pointer;
    transition: background 0.15s ease;
}

#psychaura-final-site .pa-material-reader__zoom-btn:hover,
#psychaura-final-site .pa-material-reader__zoom-btn:focus-visible {
    background: #fff;
    outline: none;
}

#psychaura-final-site .pa-material-reader__zoom-value {
    min-width: 3.25rem;
    text-align: center;
    font-family: var(--pa-font-ui);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-material-reader__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--reader-ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#psychaura-final-site .pa-material-reader__btn.is-primary {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 18%, #fff);
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.08);
}

#psychaura-final-site .pa-material-reader__btn.is-primary:hover,
#psychaura-final-site .pa-material-reader__btn.is-primary:focus-visible {
    background: color-mix(in srgb, var(--pa-accent-mint) 26%, #fff);
    outline: none;
}

#psychaura-final-site .pa-material-reader__btn.is-download {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 16%, #fff);
    text-decoration: none;
    font-weight: 800;
}

#psychaura-final-site .pa-material-reader__btn.is-download:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 24%, #fff);
}

#psychaura-final-site .pa-material-reader__download-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 1.15rem 1.2rem;
    border-top: 2px solid color-mix(in srgb, var(--pa-accent-mint) 35%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 10%, #fff);
}

#psychaura-final-site .pa-material-reader__download-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 22%, #fff);
    font-family: var(--pa-font-ui);
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--reader-ink);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.1);
}

#psychaura-final-site .pa-material-reader__download-bar-btn:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 32%, #fff);
}

#psychaura-final-site .pa-material-reader__download-bar-note {
    margin: 0;
    max-width: 36rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-main-download-slot {
    margin: 0 0 0.75rem;
}

#psychaura-final-site .pa-reader-main-download-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 2px solid color-mix(in srgb, var(--pa-plus-burgundy) 28%, var(--reader-ink));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pa-plus-burgundy) 8%, #fff) 0%,
        #fff 72%
    );
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#psychaura-final-site .pa-reader-main-download-banner.is-locked {
    border-style: dashed;
    opacity: 0.92;
}

#psychaura-final-site .pa-reader-main-download-banner__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: min(100%, 14rem);
    flex: 1 1 12rem;
}

#psychaura-final-site .pa-reader-main-download-banner__text strong {
    font-family: var(--pa-font-ui);
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-main-download-banner__text span {
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-main-download-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
    flex: 1 1 11rem;
    max-width: 100%;
}

#psychaura-final-site .pa-reader-main-download-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 0;
    background: var(--pa-plus-burgundy, #6b2d3e);
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(107, 45, 62, 0.28);
}

#psychaura-final-site .pa-reader-main-download-banner__btn:hover {
    filter: brightness(1.06);
}

#psychaura-final-site .pa-reader-main-download-banner__btn--ghost {
    background: #fff;
    color: var(--pa-plus-burgundy, #6b2d3e);
    border: 2px solid color-mix(in srgb, var(--pa-plus-burgundy) 55%, var(--reader-ink));
    box-shadow: none;
}

#psychaura-final-site .pa-reader-library-hint {
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--pa-accent-mint) 14%, #fff);
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-doc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--reader-ink, #1c1917) 10%, var(--reader-rule));
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.09);
}

#psychaura-final-site .pa-reader-doc-card .pa-reader-doc-link--card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#psychaura-final-site .pa-reader-doc-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--reader-rule, #e7e5e4);
}

#psychaura-final-site .pa-reader-doc-card__btn {
    margin: 0;
    padding: 0.5rem 0.35rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--reader-ink);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#psychaura-final-site .pa-reader-doc-card__btn--open {
    border-right: 1px solid var(--reader-rule, #e7e5e4);
}

#psychaura-final-site .pa-reader-doc-card__btn--download {
    background: color-mix(in srgb, var(--pa-accent-mint) 16%, #fff);
    color: color-mix(in srgb, var(--reader-ink) 88%, #0d5c4a);
}

#psychaura-final-site .pa-reader-doc-card__btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--pa-accent-mint) 28%, #fff);
}

#psychaura-final-site .pa-reader-doc-card.is-locked .pa-reader-doc-card__btn--download,
#psychaura-final-site .pa-reader-doc-card.is-locked .pa-reader-doc-card__btn--open {
    opacity: 0.72;
}

#psychaura-final-site .pa-reader-download-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 2px dashed color-mix(in srgb, var(--pa-accent-mint) 42%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
}

#psychaura-final-site .pa-reader-download-strip__lead {
    margin: 0;
    flex: 0 0 auto;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-download-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0;
}

#psychaura-final-site .pa-reader-download-strip__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--reader-ink);
    text-decoration: none;
    cursor: pointer;
}

#psychaura-final-site .pa-reader-download-strip__btn--primary {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 24%, #fff);
    font-size: 0.86rem;
}

#psychaura-final-site .pa-reader-download-strip__btn--cta {
    border-color: var(--pa-plus-burgundy, #a85d72);
    background: color-mix(in srgb, var(--pa-plus-burgundy, #a85d72) 14%, #fff);
    color: var(--pa-plus-burgundy, #a85d72);
    font-weight: 850;
}

#psychaura-final-site .pa-reader-download-strip__btn:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 20%, #fff);
}

#psychaura-final-site .pa-reader-doc-item .pa-reader-doc-link--card {
    width: 100%;
}

#psychaura-final-site .pa-material-reader__menu {
    position: relative;
}

#psychaura-final-site .pa-material-reader__menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--reader-muted);
    cursor: pointer;
    list-style: none;
}

#psychaura-final-site .pa-material-reader__menu-trigger::-webkit-details-marker {
    display: none;
}

#psychaura-final-site .pa-material-reader__menu[open] .pa-material-reader__menu-trigger {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-rule));
    color: var(--reader-ink);
}

#psychaura-final-site .pa-material-reader__menu-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 4;
    display: grid;
    gap: 0.25rem;
    min-width: 11rem;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.14);
}

#psychaura-final-site .pa-material-reader__menu-link {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-family: var(--pa-font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--reader-ink);
    text-decoration: none;
}

#psychaura-final-site .pa-material-reader__menu-link:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
}

#psychaura-final-site .pa-material-reader__body {
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, color-mix(in srgb, var(--pa-accent-mint) 10%, transparent), transparent 55%),
        color-mix(in srgb, #f7f5f2 92%, var(--pa-accent-mint) 8%);
}

#psychaura-final-site .pa-material-reader__pages {
    padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(0.85rem, 2vw, 1.35rem) clamp(1.5rem, 3vw, 2.25rem);
}

#psychaura-final-site .pa-reader-pdf-viewer__bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--reader-rule);
    background: color-mix(in srgb, #fff 88%, var(--pa-accent-mint) 12%);
}

#psychaura-final-site .pa-reader-pdf-viewer__meta {
    min-width: 0;
}

#psychaura-final-site .pa-reader-pdf-viewer__eyebrow {
    margin: 0 0 0.22rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-pdf-viewer__title {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-pdf-viewer__status {
    margin: 0.28rem 0 0;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-pdf-viewer__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#psychaura-final-site .pa-reader-pdf-viewer__zoom {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid var(--reader-rule);
    background: rgba(255, 255, 255, 0.74);
}

#psychaura-final-site .pa-reader-pdf-viewer__zoom-btn {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--pa-font-ui);
    font-size: 1rem;
    font-weight: 800;
    color: var(--reader-ink);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

#psychaura-final-site .pa-reader-pdf-viewer__zoom-btn:hover,
#psychaura-final-site .pa-reader-pdf-viewer__zoom-btn:focus-visible {
    background: #fff;
    outline: none;
}

#psychaura-final-site .pa-reader-pdf-viewer__zoom-value {
    min-width: 3.5rem;
    text-align: center;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-pdf-viewer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--reader-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#psychaura-final-site .pa-reader-pdf-viewer__btn:hover {
    background: #fafaf9;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 36%, var(--reader-rule));
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06);
}

#psychaura-final-site .pa-reader-pdf-viewer__btn.is-download {
    background: color-mix(in srgb, var(--pa-accent-mint) 14%, #fff);
}

#psychaura-final-site .pa-material-reader--native-pdf .pa-material-reader__pages,
#psychaura-final-site .pa-material-reader__pages--native {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#psychaura-final-site .pa-material-reader--native-pdf {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#psychaura-final-site .pa-material-reader--native-pdf .pa-material-reader__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#psychaura-final-site .pa-material-reader--native-pdf .pa-material-reader__download-bar {
    display: none;
}

#psychaura-final-site .pa-material-reader--native-pdf .pa-reader-pdf-viewer__frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    border-top: 0;
}

#psychaura-final-site .pa-material-reader--native-pdf .pa-reader-pdf-viewer__frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #525252;
}

html.pa-pdf-native-open {
    overflow: hidden;
}

html.pa-pdf-native-open #psychaura-final-site .pa-reader__article--pdf,
html.pa-pdf-native-open #psychaura-final-site .pa-reader__article--material {
    overflow: hidden;
}

html.pa-pdf-native-open #psychaura-final-site .pa-material-reader--native-pdf {
    height: calc(100dvh - 6.5rem);
    max-height: calc(100dvh - 6.5rem);
}

#psychaura-final-site .pa-material-reader--canvas-pdf .pa-material-reader__body {
    overflow: visible;
}

#psychaura-final-site .pa-material-reader--canvas-pdf .pa-material-reader__pages {
    padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(0.85rem, 2vw, 1.35rem) clamp(1.5rem, 3vw, 2.25rem);
}

#psychaura-final-site .pa-reader-pdf-viewer__frame-wrap {
    background: color-mix(in srgb, #f7f5f2 90%, var(--pa-accent-mint) 10%);
    border-top: 1px solid var(--reader-rule);
}

#psychaura-final-site .pa-reader-pdf-pages {
    padding: clamp(18px, 3vw, 30px);
    display: grid;
    gap: 18px;
    justify-items: center;
    align-content: start;
}

#psychaura-final-site .pa-reader-pdf-viewer__frame {
    display: block;
    width: 100%;
    min-height: max(82vh, 900px);
    border: 0;
    background: #57534e;
}

#psychaura-final-site .pa-reader-pdf-page {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    justify-items: center;
}

#psychaura-final-site .pa-reader-pdf-page__surface {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 1.6vw, 16px);
    background: var(--reader-paper);
    border: 1px solid color-mix(in srgb, var(--reader-ink) 8%, var(--reader-rule));
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(28, 25, 23, 0.09);
    box-sizing: border-box;
}

#psychaura-final-site .pa-reader-pdf-page.is-pending .pa-reader-pdf-page__surface {
    width: min(100%, var(--pa-a4-screen-width, 794px));
    min-width: 0;
    aspect-ratio: var(--pa-pdf-aspect, 210 / 297);
    min-height: 0;
    position: relative;
}

#psychaura-final-site .pa-reader-pdf-page__cover-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.72;
    pointer-events: none;
}

#psychaura-final-site .pa-reader-pdf-page__canvas {
    display: block;
    width: auto;
    max-width: none;
    height: auto !important;
    border-radius: 2px;
    box-shadow: none;
    image-rendering: auto;
}

#psychaura-final-site .pa-material-reader .pa-reader-pdf-page__meta {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.22em;
    text-align: center;
    color: color-mix(in srgb, var(--reader-muted) 80%, var(--pa-accent-mint));
}

#psychaura-final-site .pa-reader-pdf-page__meta {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-pdf-page__placeholder {
    font-family: var(--pa-font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--reader-muted);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px #fffcf8, 0 1px 0 #fffcf8;
}

#psychaura-final-site .pa-reader-pdf-page__placeholder.is-error {
    color: #9f1239;
}

#psychaura-final-site .pa-reader__article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1rem, 2vw, 1.35rem) clamp(0.85rem, 2vw, 1.25rem);
    background: var(--reader-paper);
    border-radius: 12px;
    border: 1px solid var(--reader-rule);
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
    color: var(--reader-ink);
    box-sizing: border-box;
    overflow: visible;
}

#psychaura-final-site .pa-reader__article .pa-doc-header,
#psychaura-final-site .pa-reader__article .pa-study-rich {
    max-width: 100%;
}

#psychaura-final-site .pa-reader__loading {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.95rem;
    color: var(--reader-muted);
    text-align: center;
}

#psychaura-final-site .pa-reader__boot-loading {
    display: grid;
    gap: 0.85rem;
    padding: 0.35rem 0 0.15rem;
}

#psychaura-final-site .pa-reader__boot-loading-bar {
    display: block;
    width: min(12rem, 58%);
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--reader-muted) 16%, #fff) 0%,
        color-mix(in srgb, var(--reader-muted) 28%, #fff) 50%,
        color-mix(in srgb, var(--reader-muted) 16%, #fff) 100%
    );
    background-size: 200% 100%;
    animation: pa-reader-boot-shimmer 1.1s ease-in-out infinite;
}

#psychaura-final-site .pa-reader__boot-loading-text {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--reader-muted);
}

@keyframes pa-reader-boot-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

#psychaura-final-site .pa-reader__article.pa-material--visible {
    opacity: 1;
}

#psychaura-final-site .pa-reader__article.pa-article--busy {
    opacity: 1;
}

#psychaura-final-site .pa-doc-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--reader-rule);
}

#psychaura-final-site .pa-doc-header__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

#psychaura-final-site .pa-doc-header__titles {
    flex: 1 1 auto;
    min-width: 0;
}

#psychaura-final-site .pa-doc-header__actions {
    flex: 0 0 auto;
    padding-top: 0.15rem;
}

#psychaura-final-site .pa-doc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--pa-accent-mint) 48%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 22%, #fff);
    font-family: var(--pa-font-ui);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--reader-ink);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(28, 25, 23, 0.1);
}

#psychaura-final-site .pa-doc-download-btn:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 32%, #fff);
}

#psychaura-final-site .pa-doc-download-btn.is-locked {
    border-color: color-mix(in srgb, var(--pa-accent-rose, #a85d72) 40%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-rose, #a85d72) 10%, #fff);
    opacity: 0.92;
}

#psychaura-final-site .pa-doc-title {
    margin: 0 0 0.35rem;
    font-family: var(--pa-font-ui);
    font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #1c1917;
}

#psychaura-final-site .pa-doc-title__num {
    font-weight: 900;
    color: #1c1917;
}

#psychaura-final-site .pa-doc-meta {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-search {
    margin: 0 0 0.9rem;
    padding: 0.85rem 1rem 0.95rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 28%, var(--reader-rule));
    border-radius: 16px;
    background: color-mix(in srgb, var(--pa-accent-sky) 8%, #fff);
}

#psychaura-final-site .pa-reader-search__head {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

#psychaura-final-site .pa-reader-search__title {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-search__hint,
#psychaura-final-site .pa-reader-search__status {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-search__status {
    margin-top: 0.7rem;
}

#psychaura-final-site .pa-reader-search__status[data-tone="success"] {
    color: #0f766e;
}

#psychaura-final-site .pa-reader-search__status[data-tone="error"] {
    color: #9f1239;
}

#psychaura-final-site .pa-reader-search__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

#psychaura-final-site .pa-reader-search__input {
    flex: 1 1 18rem;
    min-width: min(100%, 14rem);
    min-height: 2.45rem;
    padding: 0.58rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    font-family: var(--pa-font-ui);
    font-size: 0.9rem;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-search__input:focus-visible {
    outline: 2px solid var(--pa-accent-rose);
    outline-offset: 1px;
    border-color: color-mix(in srgb, var(--pa-accent-rose) 40%, var(--reader-rule));
}

#psychaura-final-site .pa-reader-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--reader-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

#psychaura-final-site .pa-reader-search__btn:hover,
#psychaura-final-site .pa-reader-search__btn:focus-visible {
    outline: none;
    background: #fff;
    border-color: color-mix(in srgb, var(--pa-accent-sky) 50%, var(--reader-rule));
    box-shadow: 0 6px 16px rgba(28, 25, 23, 0.08);
    transform: translateY(-1px);
}

#psychaura-final-site .pa-reader-search__btn:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
    transform: none;
}

#psychaura-final-site .pa-reader-search__btn--ghost {
    background: transparent;
}

#psychaura-final-site .pa-reader-annotator {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 28%, var(--reader-rule));
    border-radius: 16px;
    background: color-mix(in srgb, var(--pa-accent-mint) 9%, #fff);
}

#psychaura-final-site .pa-reader-annotator__head {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

#psychaura-final-site .pa-reader-annotator__title {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-reader-annotator__hint,
#psychaura-final-site .pa-reader-annotator__status {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-annotator__status {
    margin-top: 0.7rem;
}

#psychaura-final-site .pa-reader-annotator__status[data-tone="success"] {
    color: #0f766e;
}

#psychaura-final-site .pa-reader-annotator__status[data-tone="error"] {
    color: #9f1239;
}

#psychaura-final-site .pa-reader-annotator__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

#psychaura-final-site .pa-reader-annotator__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--reader-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

#psychaura-final-site .pa-reader-annotator__btn:hover,
#psychaura-final-site .pa-reader-annotator__btn:focus-visible {
    outline: none;
    background: #fff;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-rule));
    box-shadow: 0 6px 16px rgba(28, 25, 23, 0.08);
    transform: translateY(-1px);
}

#psychaura-final-site .pa-reader-annotator__btn--remove {
    background: color-mix(in srgb, var(--pa-accent-rose) 10%, #fff);
}

#psychaura-final-site .pa-reader-annotator__btn--ghost {
    background: transparent;
}

#psychaura-final-site .pa-reader-annotator__swatch {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 25, 23, 0.14);
    flex-shrink: 0;
}

#psychaura-final-site .pa-reader-annotator__swatch--green,
#psychaura-final-site .pa-reader-annotator__swatch--mint {
    background: #b8dfc4;
}

#psychaura-final-site .pa-reader-annotator__swatch--pink,
#psychaura-final-site .pa-reader-annotator__swatch--rose {
    background: #e8b4c7;
}

#psychaura-final-site .pa-reader-annotator__swatch--burgundy,
#psychaura-final-site .pa-reader-annotator__swatch--sand {
    background: #ddb8c8;
}

#psychaura-final-site .pa-reader-annotator__swatch--blue,
#psychaura-final-site .pa-reader-annotator__swatch--sky {
    background: #a8d4e6;
}

#psychaura-final-site .pa-study-rich,
#psychaura-final-site .pa-study-section {
    -webkit-user-select: text;
    user-select: text;
}

#psychaura-final-site .pa-reader__article--loading .pa-study-rich {
    opacity: 0.72;
    transition: opacity 0.12s ease;
}

/* Jen display:none — height:0 + visibility hacks třásly scroll při přepínání podkapitol. */
#psychaura-final-site .pa-study-section[hidden],
#psychaura-final-site .pa-study-section.pa-study-section--locked,
html.pa-page-materialy #psychaura-final-site .pa-study-section[hidden],
html.pa-page-materialy #psychaura-final-site .pa-study-section.pa-study-section--locked {
    display: none !important;
}

/* Nativní zvýraznění (CSS Highlight API) — nemění velikost textu */
@supports (selector(::highlight(pa-uh-pink))) {
    ::highlight(pa-uh-green),
    ::highlight(pa-uh-mint) {
        background-color: var(--pa-highlight-green, #b8dfc4);
    }
    ::highlight(pa-uh-pink),
    ::highlight(pa-uh-rose) {
        background-color: var(--pa-highlight-pink, #e8b4c7);
    }
    ::highlight(pa-uh-burgundy),
    ::highlight(pa-uh-sand) {
        background-color: var(--pa-highlight-burgundy, #ddb8c8);
    }
    ::highlight(pa-uh-blue),
    ::highlight(pa-uh-sky) {
        background-color: var(--pa-highlight-blue, #a8d4e6);
    }
    ::highlight(pa-uh-custom) {
        background-color: var(--pa-user-highlight-custom, #c9b8e8);
    }
}

/* Obrázky mimo highlight — nikdy nepřebarvit fotky */
#psychaura-final-site .pa-figure img,
#psychaura-final-site .pa-s23-panel__fig img {
    isolation: isolate;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    background: transparent !important;
}

#psychaura-final-site .pa-user-highlight {
    /* Jen barva pozadí — žádný padding/margin/border, text se nesmí hýbat */
    display: inline !important;
    position: static !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    word-spacing: inherit !important;
    text-decoration: inherit !important;
    vertical-align: baseline !important;
    white-space: inherit !important;
    color: inherit !important;
    /* slice = nepřidává „rámečky“ po řádcích / u obrázků */
    box-decoration-break: slice;
    -webkit-box-decoration-break: slice;
    -webkit-touch-callout: default;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Prázdné spaný ze starších zvýraznění — schovat, ať nedělají proužky */
#psychaura-final-site .pa-user-highlight:empty {
    display: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#psychaura-final-site .pa-user-highlight--join-left,
#psychaura-final-site .pa-user-highlight--join-right,
#psychaura-final-site .pa-user-highlight--join-left.pa-user-highlight--join-right {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#psychaura-final-site .pa-user-highlight--green,
#psychaura-final-site .pa-user-highlight--mint {
    background-color: var(--pa-highlight-green, #b8dfc4);
}

#psychaura-final-site .pa-user-highlight--pink,
#psychaura-final-site .pa-user-highlight--rose {
    background-color: var(--pa-highlight-pink, #e8b4c7);
}

#psychaura-final-site .pa-user-highlight--burgundy,
#psychaura-final-site .pa-user-highlight--sand {
    background-color: var(--pa-highlight-burgundy, #ddb8c8);
}

#psychaura-final-site .pa-user-highlight--blue,
#psychaura-final-site .pa-user-highlight--sky {
    background-color: var(--pa-highlight-blue, #a8d4e6);
}

#psychaura-final-site .pa-user-highlight--custom {
    background-color: var(--pa-user-highlight-custom, #c9b8e8);
}

/* Plovoucí poznámky — bublina + kartička (Apple Books / Hypothesis) */
#psychaura-final-site .pa-user-notes-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: visible;
    pointer-events: none;
    z-index: 30;
    contain: layout;
}

/* Po refreshi / progressive: stránka nesmí vyrůst nad obsah (zelená díra pod footerem) */
html.pa-section-nav-visible #psychaura-final-site {
    min-height: 0 !important;
    height: auto !important;
}

html.pa-section-nav-visible #psychaura-final-site .pa-materials-page {
    flex: 0 1 auto;
}

html.pa-section-nav-visible #psychaura-final-site .pa-footer {
    flex: 0 0 auto;
    margin-top: 0.75rem;
    padding-top: 1.1rem;
    padding-bottom: 1.35rem;
}

#psychaura-final-site .pa-sticky-note {
    position: absolute;
    pointer-events: auto;
    box-sizing: border-box;
    max-width: calc(100vw - 1rem);
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__card {
    display: block !important;
}

#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__card,
#psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__card {
    display: flex;
}

#psychaura-final-site .pa-sticky-note__card {
    position: relative;
    display: none;
    flex-direction: column;
    min-width: 8rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 48%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 10%, var(--reader-paper, #fffef8));
    box-shadow: 0 4px 18px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 18%, rgba(28, 25, 23, 0.12));
    overflow: hidden;
}

#psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__card {
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 62%, var(--reader-rule));
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 32%, transparent),
        0 8px 24px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 16%, rgba(28, 25, 23, 0.12));
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__card {
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 34%, var(--reader-rule));
    border-left: 4px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 78%, #3d7a5c 22%);
    border-radius: 8px;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 17%, var(--reader-paper, #fffef8)) 0%,
        color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 7%, var(--reader-paper, #fffef8)) 100%
    );
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, transparent),
        0 4px 14px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 12%, rgba(28, 25, 23, 0.07));
    padding: 0;
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__card::before {
    content: 'Poznámka';
    display: block;
    padding: 0.22rem 0.55rem 0;
    font-family: var(--pa-font-ui);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: color-mix(in srgb, #3d7a5c 68%, var(--reader-muted));
    opacity: 0.9;
}

/* PC uložená poznámka — stabilní úchyt v layoutu, bez hover přepínání (flicker / mizení) */
#psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft):not(
        .pa-sticky-note--mobile-rail-item
    )
    .pa-sticky-note__card::before {
    display: none !important;
}

#psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft):not(
        .pa-sticky-note--mobile-rail-item
    )
    .pa-sticky-note__mob-grip {
    display: flex;
    position: relative;
    box-sizing: border-box;
    min-height: 1.85rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    padding-left: 0.55rem;
    padding-right: 2.35rem;
    border-bottom-width: 1px;
    transform: none;
    transition: none;
}

#psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft):not(
        .pa-sticky-note--mobile-rail-item
    )
    .pa-sticky-note__mob-grip-hint {
    margin-left: auto;
    opacity: 0.65;
}

#psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft):not(
        .pa-sticky-note--mobile-rail-item
    )
    .pa-sticky-note__edit-link {
    top: 0.28rem;
    right: 0.28rem;
    z-index: 4;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 7px;
    background: color-mix(in srgb, var(--reader-paper, #fffef8) 82%, var(--pa-accent-mint, #b8dfc4));
    color: color-mix(in srgb, #2f5f48 70%, var(--reader-ink));
    opacity: 0.72;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
}

@media (hover: hover) and (pointer: fine) {
    #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft):not(
            .pa-sticky-note--mobile-rail-item
        ):hover
        .pa-sticky-note__edit-link {
        opacity: 0.95;
    }

    #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft):not(
            .pa-sticky-note--mobile-rail-item
        )
        .pa-sticky-note__edit-icon {
        width: 0.85rem;
        height: 0.85rem;
    }
}
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__head,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__formatbar,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__footer,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__toolbar,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__resize {
    display: none !important;
}

#psychaura-final-site .pa-sticky-note--embedded.pa-sticky-note--mobile-float .pa-sticky-note__mob-grip,
#psychaura-final-site .pa-sticky-note--embedded.pa-sticky-note--mobile-float .pa-sticky-note__resize {
    display: flex !important;
}

#psychaura-final-site .pa-sticky-note__mob-grip {
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.38rem 0.55rem;
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 24%, var(--reader-paper, #fffef8));
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 32%, var(--reader-rule));
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

#psychaura-final-site .pa-sticky-note--mobile-float .pa-sticky-note__mob-grip {
    display: flex;
}

#psychaura-final-site .pa-sticky-note--dragging .pa-sticky-note__mob-grip,
#psychaura-final-site .pa-sticky-note--dragging .pa-sticky-note__head {
    cursor: grabbing;
}

#psychaura-final-site .pa-sticky-note__mob-grip-label {
    font-family: var(--pa-font-ui);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, #2f5f48 72%, var(--reader-ink));
}

#psychaura-final-site .pa-sticky-note__mob-grip-hint {
    margin-left: auto;
    font-family: var(--pa-font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, #3d7a5c 55%, var(--reader-muted));
    opacity: 0.8;
}

#psychaura-final-site .pa-sticky-note--mobile-float.pa-sticky-note--embedded .pa-sticky-note__card {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 22px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 18%, rgba(28, 25, 23, 0.14));
}

#psychaura-final-site .pa-sticky-note--mobile-float.pa-sticky-note--embedded .pa-sticky-note__body {
    flex: 1 1 auto;
    min-height: 2.5rem;
    max-height: none;
    overflow: auto;
    padding: 0.45rem 0.55rem 0.5rem;
    cursor: pointer;
}

#psychaura-final-site .pa-sticky-note--mobile-float .pa-sticky-note__resize {
    display: block !important;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    opacity: 0.75;
    touch-action: none;
}

#psychaura-final-site .pa-sticky-note--mobile-float .pa-sticky-note__card--sized .pa-sticky-note__body {
    min-height: 0;
    overflow: auto;
}

body.pa-sticky-note-drag-active {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
}

html.pa-page-materialy body.pa-sticky-note-drag-active {
    overflow-anchor: none;
}

#psychaura-final-site .pa-sticky-note--mobile-float.pa-sticky-note--embedded .pa-sticky-note__card::before {
    display: none;
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__body {
    padding: 0.15rem 0.6rem 0.38rem 0.5rem;
    font-size: 0.855rem;
    line-height: 1.48;
    min-height: 0;
    max-height: none;
    color: color-mix(in srgb, #2f5f48 18%, var(--reader-ink));
    cursor: pointer;
    user-select: text;
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__body ul,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__body ol {
    margin: 0.12em 0 0.28em;
    padding-left: 1.05rem;
}

#psychaura-final-site .pa-sticky-note--embedded:hover .pa-sticky-note__card,
#psychaura-final-site .pa-sticky-note--embedded:focus-within .pa-sticky-note__card {
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 34%, transparent),
        0 6px 18px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 16%, rgba(28, 25, 23, 0.09));
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-link {
    color: color-mix(in srgb, #3d7a5c 55%, var(--reader-muted));
}

#psychaura-final-site .pa-sticky-note__edit-link {
    display: none;
    position: absolute;
    top: 0.1rem;
    right: 0.12rem;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--reader-muted);
    cursor: pointer;
    opacity: 0.32;
    transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

#psychaura-final-site .pa-sticky-note__edit-icon {
    width: 0.62rem;
    height: 0.62rem;
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-link {
    display: inline-flex;
}

#psychaura-final-site .pa-sticky-note--embedded:hover .pa-sticky-note__edit-link,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-link:focus-visible,
#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-link:active {
    opacity: 0.95;
    color: var(--reader-ink);
    background: color-mix(in srgb, var(--reader-ink) 6%, var(--reader-paper));
}

#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__edit-link {
    display: none !important;
}

#psychaura-final-site .pa-sticky-note__head,
#psychaura-final-site .pa-sticky-note__formatbar,
#psychaura-final-site .pa-sticky-note__footer,
#psychaura-final-site .pa-sticky-note__toolbar {
    display: none;
}

#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__head,
#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__formatbar,
#psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__head,
#psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__formatbar {
    display: flex;
}

#psychaura-final-site .pa-sticky-note--dragging .pa-sticky-note__head {
    cursor: grabbing;
}

#psychaura-final-site .pa-sticky-note__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0.4rem 0.5rem 0.38rem;
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 22%, var(--reader-paper, #fffef8));
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 32%, var(--reader-rule));
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    flex-shrink: 0;
}

#psychaura-final-site .pa-sticky-note__head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
}

#psychaura-final-site .pa-sticky-note__formatbar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0.32rem 0.45rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 24%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 8%, #fff);
    flex-shrink: 0;
}

#psychaura-final-site .pa-sticky-note__footer {
    display: none !important;
}

/* Editor: celá poznámka jako po uložení — ne malý box se scrollem uvnitř */
#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__card:not(.pa-sticky-note__card--sized),
#psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__card:not(.pa-sticky-note__card--sized) {
    height: auto !important;
    max-height: none;
    overflow: visible;
}

#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__body,
#psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__body {
    flex: 0 1 auto;
    min-height: 5.5rem;
    max-height: none !important;
    overflow: visible;
    margin: 0;
    padding: 0.55rem 0.6rem;
    background: #fff;
    border: none;
    border-radius: 0;
}

#psychaura-final-site .pa-sticky-note__toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 1.35rem;
}

#psychaura-final-site .pa-sticky-note__toolbar-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}

#psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__resize {
    display: block;
}

#psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__body:empty::before {
    content: none;
}

#psychaura-final-site .pa-sticky-note__label {
    font-family: var(--pa-font-ui);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: color-mix(in srgb, #2f5f48 72%, var(--reader-ink));
}

#psychaura-final-site .pa-sticky-note__tools {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.12rem;
    width: 100%;
    padding: 0;
}

#psychaura-final-site .pa-sticky-note__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.35rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 70%, transparent);
    border-radius: 5px;
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    color: color-mix(in srgb, #2f5f48 55%, var(--reader-muted));
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

#psychaura-final-site .pa-sticky-note__formatbar .pa-sticky-note__tool {
    box-shadow: 0 1px 0 color-mix(in srgb, var(--reader-ink) 4%, transparent);
}

#psychaura-final-site .pa-sticky-note__tool:hover {
    background: color-mix(in srgb, var(--reader-ink) 6%, transparent);
    color: var(--reader-ink);
}

#psychaura-final-site .pa-sticky-note__tool--toggle.is-on {
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 58%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, var(--reader-paper));
    color: color-mix(in srgb, #2f5f48 75%, var(--reader-ink));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 35%, transparent);
}

#psychaura-final-site .pa-sticky-note__tool-letter {
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1;
}

#psychaura-final-site .pa-sticky-note__tool-icon {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

#psychaura-final-site .pa-sticky-note__tool-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#psychaura-final-site .pa-sticky-note__tool--save {
    width: auto;
    min-width: 3.5rem;
    min-height: 1.65rem;
    padding: 0 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: color-mix(in srgb, #234a39 88%, var(--reader-ink));
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 58%, #3d7a5c 20%);
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 32%, #fff);
}

#psychaura-final-site .pa-sticky-note__tool--save-head {
    border-radius: 5px;
}

#psychaura-final-site .pa-sticky-note__tool--save:hover {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 38%, var(--reader-paper));
    color: color-mix(in srgb, #234a39 85%, var(--reader-ink));
}

#psychaura-final-site .pa-sticky-note__tool--del {
    min-width: 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    border-color: transparent;
    background: transparent;
}

#psychaura-final-site .pa-sticky-note__tool--del:hover {
    border-color: color-mix(in srgb, #9f1239 25%, transparent);
    background: color-mix(in srgb, #fecaca 35%, transparent);
    color: #9f1239;
}

#psychaura-final-site .pa-sticky-note__card--sized {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#psychaura-final-site .pa-sticky-note__card--sized .pa-sticky-note__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

#psychaura-final-site .pa-sticky-note__body {
    flex: 1 1 auto;
    min-height: 4.5rem;
    max-height: min(72vh, 28rem);
    padding: 0.5rem 0.55rem 0.6rem;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--reader-ink);
    overflow: auto;
    outline: none;
    word-break: break-word;
}

#psychaura-final-site .pa-sticky-note__body p {
    margin: 0 0 0.35em;
}

#psychaura-final-site .pa-sticky-note__body ul,
#psychaura-final-site .pa-sticky-note__body ol {
    margin: 0.2em 0 0.45em;
    padding-left: 1.2rem;
}

#psychaura-final-site .pa-sticky-note__body li {
    margin: 0.12em 0;
}

#psychaura-final-site .pa-sticky-note__body blockquote {
    margin: 0.25em 0;
    padding-left: 0.65rem;
    border-left: 2px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, var(--reader-rule));
    color: color-mix(in srgb, #2f5f48 22%, var(--reader-ink));
}

#psychaura-final-site .pa-sticky-note__body:empty::before {
    content: 'Napiš poznámku…';
    color: var(--reader-muted);
    opacity: 0.6;
}

#psychaura-final-site .pa-sticky-note__resize {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    opacity: 0.55;
    touch-action: none;
    background: linear-gradient(
        135deg,
        transparent 44%,
        color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 72%, #2f5f48) 44%
    );
    border-radius: 0 0 8px 0;
    z-index: 2;
}

#psychaura-final-site .pa-sticky-note__resize:hover {
    opacity: 0.8;
}

body.pa-note-placement-active #psychaura-final-site .pa-reader__article,
body.pa-note-placement-active #psychaura-final-site #content-display {
    cursor: crosshair !important;
}

/* Mobil — nikdy desktopový editor kartičky, jen spodní panel */
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing:not(.pa-sticky-note--sheet-only),
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--draft:not(.pa-sticky-note--sheet-only) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__card,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__card {
    display: none !important;
}

#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__edit-link,
#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__head,
#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__formatbar,
#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__footer,
#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__toolbar,
#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__resize {
    display: none !important;
}

#psychaura-final-site .pa-sticky-note--readonly .pa-sticky-note__card {
    cursor: default;
}

/* Mobil — poznámky jako přehledný pás karet nahoře v kapitole (PC i mobil) */
#psychaura-final-site .pa-user-notes-layer--mobile-rail {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 0;
    height: auto !important;
    pointer-events: auto;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.15rem 0.75rem 0.35rem;
    box-sizing: border-box;
}

#psychaura-final-site .pa-user-notes-layer--mobile-rail--empty {
    display: none !important;
    margin: 0;
    padding: 0;
}

#psychaura-final-site .pa-user-notes-layer--mobile-rail::before {
    content: 'Tvoje poznámky';
    display: block;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, #3d7a5c 70%, var(--reader-muted));
    padding: 0.35rem 0.15rem 0.15rem;
}

#psychaura-final-site .pa-sticky-note--mobile-rail-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
}

#psychaura-final-site .pa-sticky-note--mobile-rail-item .pa-sticky-note__mob-grip,
#psychaura-final-site .pa-sticky-note--mobile-rail-item .pa-sticky-note__resize {
    display: none !important;
}

#psychaura-final-site .pa-sticky-note--mobile-rail-item .pa-sticky-note__card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    border-left: 4px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 85%, #3d7a5c);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 14%, rgba(28, 25, 23, 0.1));
}

#psychaura-final-site .pa-sticky-note--mobile-rail-item .pa-sticky-note__card::before {
    display: block;
    opacity: 1;
}

#psychaura-final-site .pa-sticky-note--mobile-rail-item .pa-sticky-note__edit-link {
    display: inline-flex !important;
    opacity: 0.85;
}

/* Mobil — poznámka se neukládá jako plovoucí kartička přes text */
#psychaura-final-site .pa-sticky-note--sheet-only {
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Mobilní telefon — plovoucí kartičky přes text; tablety (bez pa-touch-notes) = jako PC */
html.pa-touch-notes #psychaura-final-site .pa-sticky-note:not(.pa-sticky-note--mobile-float) {
    max-width: none;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: auto !important;
    transform: none !important;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--mobile-float {
    max-width: calc(100vw - 1.5rem);
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--mobile-float .pa-sticky-note__body {
    touch-action: manipulation;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing:not(.pa-sticky-note--sheet-only),
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--draft:not(.pa-sticky-note--sheet-only) {
    display: none !important;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__head,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__formatbar,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__footer,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__toolbar {
    display: none !important;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--mobile-float) .pa-sticky-note__card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--mobile-float) .pa-sticky-note__body {
    font-size: 0.92rem;
    line-height: 1.52;
    padding: 0.2rem 2.5rem 0.55rem 0.6rem;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-link {
    width: 2.25rem;
    height: 2.25rem;
    top: 0.28rem;
    right: 0.28rem;
    opacity: 0.72;
    border-radius: 8px;
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 22%, var(--reader-paper));
    color: color-mix(in srgb, #3d7a5c 70%, var(--reader-ink));
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--embedded:active .pa-sticky-note__edit-link,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-link:focus-visible {
    opacity: 1;
}

/* Tablet — úchyt + tužka vedle sebe, bez překryvu (vždy viditelné) */
html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft) .pa-sticky-note__mob-grip {
    display: flex !important;
    max-height: none;
    min-height: 2.35rem;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    padding-right: 2.6rem;
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
    padding-left: 0.65rem;
    border-bottom-width: 1px;
    border-bottom-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 32%, var(--reader-rule));
}

html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft) .pa-sticky-note__card::before {
    display: none;
}

html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--embedded:not(.pa-sticky-note--editing):not(.pa-sticky-note--draft) .pa-sticky-note__edit-link {
    top: 0.42rem;
    right: 0.4rem;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    opacity: 0.88;
    pointer-events: auto;
    background: color-mix(in srgb, var(--reader-paper, #fffef8) 78%, var(--pa-accent-mint, #b8dfc4));
}

html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__edit-icon {
    width: 0.95rem;
    height: 0.95rem;
}

html.pa-tablet-notes #psychaura-final-site .pa-sticky-note__resize {
    width: 1.35rem;
    height: 1.35rem;
    opacity: 0.75;
}

html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__head,
html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__head {
    min-height: 2.55rem;
    touch-action: none;
}

html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--dragging,
html.pa-tablet-notes #psychaura-final-site .pa-sticky-note--resizing {
    touch-action: none;
}

html.pa-coarse-pointer #psychaura-final-site .pa-sticky-note--embedded .pa-sticky-note__body {
    touch-action: manipulation;
}

html.pa-coarse-pointer #psychaura-final-site .pa-sticky-note__mob-grip,
html.pa-coarse-pointer #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__head,
html.pa-coarse-pointer #psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__head {
    touch-action: none;
}

/* Dotyková zařízení — nikdy neukazovat desktopový editor kartičky */
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing:not(.pa-sticky-note--sheet-only),
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--draft:not(.pa-sticky-note--sheet-only),
html.pa-touch-notes #psychaura-final-site .pa-sticky-note__toolbar,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note__formatbar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.pa-touch-notes #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__toolbar,
html.pa-touch-notes #psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__toolbar {
    display: none !important;
}

/* Mobilní editor poznámek — nativní <dialog> + spodní panel */
dialog.pa-note-mobile-editor,
dialog#pa-note-mobile-editor,
.pa-note-mobile-editor {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    border: none;
    padding: 0;
    margin: 0 !important;
    max-width: 100vw;
    width: 100%;
    max-height: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    box-sizing: border-box;
}

dialog.pa-note-mobile-editor::backdrop {
    background: rgba(28, 25, 23, 0.48);
}

dialog.pa-note-mobile-editor:not([open]),
.pa-note-mobile-editor[hidden],
.pa-note-mobile-editor.pa-note-mobile-editor--closed {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

dialog.pa-note-mobile-editor[open],
dialog#pa-note-mobile-editor[open],
.pa-note-mobile-editor.pa-note-mobile-editor--open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end !important;
    pointer-events: auto !important;
}

.pa-note-mobile-editor.pa-note-mobile-editor--open .pa-note-mobile-editor__backdrop {
    animation: pa-note-mobile-fade-in 0.22s ease-out both;
}

.pa-note-mobile-editor.pa-note-mobile-editor--open .pa-note-mobile-editor__panel {
    animation: pa-note-mobile-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pa-note-mobile-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pa-note-mobile-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pa-note-mobile-editor__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.48);
    cursor: pointer;
}

.pa-note-mobile-editor__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(92vh, 40rem);
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 42%, var(--reader-rule, #e7e5e4));
    border-bottom: none;
    border-top: 4px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 82%, #3d7a5c);
    background: var(--reader-paper, #fffef8);
    box-shadow: 0 -16px 40px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 16%, rgba(28, 25, 23, 0.24));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    touch-action: manipulation;
}

.pa-note-mobile-editor__head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem 0.45rem;
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 20%, var(--reader-paper, #fffef8));
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, var(--reader-rule));
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
}

.pa-note-mobile-editor__head-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.pa-note-mobile-editor__title {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, #3d7a5c 75%, var(--reader-ink, #1c1917));
}

.pa-note-mobile-editor__ver {
    font-family: var(--pa-font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, #3d7a5c 55%, var(--reader-muted));
    opacity: 0.9;
}

.pa-note-mobile-editor__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 12;
    width: 2.85rem;
    height: 2.85rem;
    min-width: 2.85rem;
    min-height: 2.85rem;
    margin: 0;
    padding: 0;
    border: 2px solid color-mix(in srgb, var(--reader-paper) 88%, #3d7a5c);
    border-radius: 50%;
    background: color-mix(in srgb, #3d7a5c 88%, #1c1917);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 700;
    color: #fffef8;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.22);
}

.pa-note-mobile-editor__fab-close {
    display: none !important;
}

.pa-note-mobile-editor__input-wrap {
    flex: 1 1 auto;
    min-height: 8rem;
    padding: 0.55rem 0.85rem 0.35rem;
    overflow: hidden;
}

.pa-note-mobile-editor__textarea {
    display: block;
    width: 100%;
    min-height: 8rem;
    max-height: min(42vh, 16rem);
    margin: 0;
    padding: 0.8rem 0.85rem;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 36%, var(--reader-rule));
    border-radius: 12px;
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--reader-ink);
    outline: none;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}

.pa-note-mobile-editor__body {
    min-height: 9rem;
    max-height: min(50vh, 20rem);
    margin: 0.55rem 0.85rem 0;
    padding: 0.75rem 0.85rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 36%, var(--reader-rule));
    border-radius: 12px;
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--reader-ink);
    outline: none;
    word-break: break-word;
    -webkit-user-select: text;
    user-select: text;
}

.pa-note-mobile-editor__chrome {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 14%, var(--reader-paper, #fffef8));
    box-sizing: border-box;
    text-align: center;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.pa-note-mobile-editor__tools-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.15rem 0;
    gap: 0.45rem;
    box-sizing: border-box;
}

.pa-note-mobile-editor__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 24%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 12%, var(--reader-paper, #fffef8));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
}

.pa-note-mobile-editor__tools-label {
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: var(--pa-font-ui);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: color-mix(in srgb, #3d7a5c 60%, var(--reader-muted));
}

.pa-note-mobile-editor__tools-center {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.pa-note-mobile-editor__tools {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.2rem 0.25rem;
    box-sizing: border-box;
}

.pa-note-mobile-editor:not(.pa-note-mobile-editor--closed) {
    display: flex !important;
}

html.pa-touch-notes .pa-note-mobile-editor:not(.pa-note-mobile-editor--closed),
html.pa-touch-notes #pa-note-mobile-editor:not(.pa-note-mobile-editor--closed) {
    display: flex !important;
}

.pa-note-mobile-editor__tool {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--reader-rule);
    border-radius: 11px;
    background: #fff;
    font-weight: 800;
    font-size: 1rem;
    color: var(--reader-ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pa-note-mobile-editor__tool.is-on {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, var(--reader-rule));
    color: color-mix(in srgb, #2f5f48 80%, var(--reader-ink));
}

.pa-note-mobile-editor__body ul,
.pa-note-mobile-editor__body ol {
    margin: 0.2em 0 0.45em;
    padding-left: 1.25rem;
}

.pa-note-mobile-editor__body li {
    margin: 0.14em 0;
}

.pa-note-mobile-editor__body:empty::before {
    content: attr(data-placeholder);
    color: var(--reader-muted);
    opacity: 0.65;
}

.pa-note-mobile-editor__actions,
.pa-note-mobile-editor__footer .pa-note-mobile-editor__secondary {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pa-note-mobile-editor__secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
}

.pa-note-mobile-editor__btn {
    min-height: 2.85rem;
    border-radius: 12px;
    border: 1px solid var(--reader-rule);
    font-family: var(--pa-font-ui);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pa-note-mobile-editor__btn--ghost {
    background: #fff;
    color: var(--reader-muted);
}

.pa-note-mobile-editor__btn--del {
    background: color-mix(in srgb, #fecaca 40%, #fff);
    color: #9f1239;
    border-color: color-mix(in srgb, #9f1239 25%, var(--reader-rule));
}

.pa-note-mobile-editor__primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 22rem;
    margin: 0.45rem auto 0;
}

.pa-note-mobile-editor__btn--ghost {
    background: color-mix(in srgb, var(--reader-ink) 5%, var(--reader-paper));
    border: 1px solid var(--reader-rule);
    color: var(--reader-ink);
    font-weight: 700;
}

#pa-note-mobile-save-btn,
.pa-note-mobile-editor__btn--save {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    background: color-mix(in srgb, var(--pa-accent-mint) 42%, #fff);
    color: color-mix(in srgb, #234a39 90%, var(--reader-ink));
    border-color: color-mix(in srgb, var(--pa-accent-mint) 62%, #3d7a5c);
    min-height: 3.25rem;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--pa-accent-mint) 22%, rgba(28, 25, 23, 0.12));
}

body.pa-note-mobile-editor-open,
html.pa-note-mobile-editor-open {
    /* scroll lock řeší JS (position:fixed), ne overflow — na iOS jinak nejdou dotyky */
}

#pa-note-mobile-editor,
#pa-note-mobile-editor * {
    touch-action: manipulation;
}

#pa-note-mobile-editor.pa-note-mobile-editor--open {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

body.pa-note-mobile-editor-open #reader-study-dock,
body.pa-note-mobile-editor-open #reader-study-dock-tab {
    opacity: 0;
    pointer-events: none;
}

body.dark-mode .pa-note-mobile-editor__panel,
html.pa-dark-pending .pa-note-mobile-editor__panel {
    background: var(--reader-paper);
    border-color: var(--reader-rule);
}

body.dark-mode .pa-note-mobile-editor__body,
html.pa-dark-pending .pa-note-mobile-editor__body {
    background: color-mix(in srgb, var(--reader-paper) 92%, #000);
    border-color: var(--reader-rule);
    color: var(--reader-ink);
}

body.dark-mode #psychaura-final-site .pa-sticky-note__card,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note__card {
    background: var(--reader-paper);
    border-color: var(--reader-rule);
}

body.dark-mode #psychaura-final-site .pa-sticky-note__head,
body.dark-mode #psychaura-final-site .pa-sticky-note__formatbar,
body.dark-mode #psychaura-final-site .pa-sticky-note__footer,
body.dark-mode #psychaura-final-site .pa-sticky-note__toolbar,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note__head,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note__formatbar,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note__footer,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note__toolbar {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 12%, var(--reader-paper));
}

body.dark-mode #psychaura-final-site .pa-sticky-note__formatbar .pa-sticky-note__tool,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note__formatbar .pa-sticky-note__tool {
    background: color-mix(in srgb, var(--reader-paper) 92%, #000);
    border-color: var(--reader-rule);
}

body.dark-mode #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__body,
body.dark-mode #psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__body,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note--editing .pa-sticky-note__body,
html.pa-dark-pending #psychaura-final-site .pa-sticky-note--draft .pa-sticky-note__body {
    background: color-mix(in srgb, var(--reader-paper) 94%, #000);
}

/* Legacy inline poznámky (staré) */
#psychaura-final-site .pa-user-note-wrap {
    display: inline;
    vertical-align: baseline;
    position: relative;
    white-space: normal;
}

#psychaura-final-site .pa-user-note-wrap--pin {
    margin: 0 0.06rem;
}

#psychaura-final-site .pa-user-note-wrap--open {
    margin: 0 0.2rem;
}

#psychaura-final-site .pa-user-note-inline {
    display: inline-block;
    max-width: min(22rem, 92vw);
    margin: 0 0.15rem 0 0;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    font-family: var(--pa-font-ui);
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--reader-ink);
    background: color-mix(in srgb, var(--pa-accent-mint) 16%, #fff);
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 42%, var(--reader-rule));
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.08);
    cursor: pointer;
    vertical-align: baseline;
    text-align: left;
    word-break: break-word;
}

#psychaura-final-site .pa-user-note-wrap--open .pa-user-note-marker {
    width: 1rem;
    height: 1rem;
    margin: 0 0 0 0.1rem;
    vertical-align: middle;
    opacity: 0.85;
}

#psychaura-final-site .pa-user-note-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: baseline;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pa-accent-sky) 22%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa-accent-sky) 45%, transparent);
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

#psychaura-final-site .pa-user-note-marker__icon {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    background: color-mix(in srgb, var(--pa-accent-sky) 70%, var(--reader-ink));
    transform: rotate(12deg);
}

#psychaura-final-site .pa-user-note-marker--filled {
    background: color-mix(in srgb, var(--pa-accent-rose) 24%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa-accent-rose) 48%, transparent);
}

#psychaura-final-site .pa-user-note-marker--filled .pa-user-note-marker__icon {
    background: color-mix(in srgb, var(--pa-accent-rose) 75%, var(--reader-ink));
}

#psychaura-final-site .pa-user-note-marker:hover,
#psychaura-final-site .pa-user-note-marker:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--pa-accent-sky) 55%, transparent);
    outline-offset: 2px;
}

#reader-study-dock .pa-reader-study-dock__chip--note {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

#reader-study-dock .pa-reader-study-dock__chip--note.is-active {
    background: color-mix(in srgb, var(--pa-accent-sky) 28%, #fff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--pa-accent-sky) 55%, transparent);
}

body.pa-note-placement-active #psychaura-final-site .pa-reader__article,
body.pa-note-placement-active #psychaura-final-site .pa-reader__article.pa-note-placement-active {
    cursor: crosshair;
}

body.pa-note-placement-active #psychaura-final-site .pa-user-note-marker {
    pointer-events: none;
    opacity: 0.45;
}

#psychaura-final-site .pa-user-note-anchor-pending {
    display: inline;
    position: relative;
    vertical-align: baseline;
    width: 0;
    overflow: visible;
}

#psychaura-final-site .pa-user-note-anchor-pending::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pa-accent-sky) 75%, var(--reader-ink));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--pa-accent-sky) 35%, #fff);
    vertical-align: -0.1em;
    animation: pa-note-pending-pulse 1s ease-in-out infinite;
}

@keyframes pa-note-pending-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.75;
    }
}

.pa-user-note-popover {
    position: fixed;
    z-index: 100010;
    max-width: calc(100vw - 1rem);
    box-sizing: border-box;
    pointer-events: auto;
}

.pa-user-note-popover[hidden] {
    display: none !important;
}

.pa-user-note-popover__panel {
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 26rem);
    background: var(--reader-paper, #fff);
    color: var(--reader-ink, #1c1917);
    border: 1px solid var(--reader-rule, #e7e5e4);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(28, 25, 23, 0.18);
    padding: 0.65rem 0.75rem 0.65rem;
    overflow: hidden;
}

.pa-user-note-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.pa-user-note-popover__eyebrow {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--reader-muted);
}

.pa-user-note-popover__close {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--reader-muted);
    padding: 0.15rem 0.35rem;
}

.pa-user-note-popover__display {
    margin: 0 0 0.5rem;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pa-user-note-popover__display-legend {
    font-family: var(--pa-font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--reader-muted);
    margin: 0 0 0.15rem;
    padding: 0;
}

.pa-user-note-popover__display-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--reader-ink);
    cursor: pointer;
}

.pa-user-note-popover__display-opt input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pa-user-note-popover__input {
    width: 100%;
    min-height: 4rem;
    max-height: 9rem;
    flex: 1 1 auto;
    resize: vertical;
    box-sizing: border-box;
    border: 1px solid var(--reader-rule);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-family: var(--pa-font-reading, Georgia, serif);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--reader-ink);
    background: #fff;
    margin-bottom: 0.45rem;
}

.pa-user-note-popover__actions {
    display: flex;
    flex-shrink: 0;
    justify-content: stretch;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.45rem;
    border-top: 1px solid var(--reader-rule);
    background: var(--reader-paper, #fff);
}

.pa-user-note-popover__btn {
    border: 1px solid var(--reader-rule);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    min-height: 2.75rem;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    background: color-mix(in srgb, var(--pa-accent-mint) 18%, #fff);
}

#pa-user-note-popover-save {
    flex: 1 1 auto;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 38%, #fff);
    color: var(--reader-ink);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.pa-user-note-popover__btn--ghost {
    background: #fff;
    color: #9f1239;
    border-color: color-mix(in srgb, #9f1239 35%, var(--reader-rule));
    margin-right: auto;
}

body.dark-mode .pa-user-note-popover__panel,
html.pa-dark-pending .pa-user-note-popover__panel {
    background: var(--reader-paper, #252229);
    border-color: var(--reader-rule, rgba(255, 255, 255, 0.12));
}

body.dark-mode .pa-user-note-popover__input,
html.pa-dark-pending .pa-user-note-popover__input {
    background: color-mix(in srgb, var(--reader-paper) 92%, #000);
    color: var(--reader-ink);
    border-color: var(--reader-rule);
}

body.dark-mode #psychaura-final-site .pa-user-note-inline,
html.pa-dark-pending #psychaura-final-site .pa-user-note-inline {
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, var(--reader-paper));
    border-color: var(--reader-rule);
    color: var(--reader-ink);
}

/* Studijní lišta — kompaktní pilulka dole */
#psychaura-final-site .pa-reader__article {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

body.pa-study-dock-hidden #psychaura-final-site .pa-reader__article {
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
}

html.pa-page-materialy {
    --pa-safe-bottom: env(safe-area-inset-bottom, 0px);
}

#reader-study-dock {
    position: fixed;
    left: 50%;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 99985;
    width: min(96vw, 28rem);
    pointer-events: none;
}

/* visualViewport pin — při swipe/rubber-band na tabletu neskáče výš */
#reader-study-dock[data-pa-vv-pin='1'],
#reader-study-dock-tab[data-pa-vv-pin='1'] {
    bottom: auto !important;
}

.pa-ink-tray[data-pa-vv-pin='1']:not(.pa-ink-tray--free) {
    bottom: auto !important;
    left: 50%;
    transform: translateX(-50%);
}

#reader-study-dock .pa-reader-study-dock__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

#reader-study-dock .pa-reader-study-dock__inner [hidden] {
    display: none !important;
}

#reader-study-dock .pa-reader-study-dock__sheet {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%);
    z-index: 30;
    width: min(96vw, 15.5rem);
    padding: 0.45rem 0.5rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.14);
    pointer-events: auto;
}

#reader-study-dock.pa-reader-study-dock--open .pa-reader-study-dock__bar {
    pointer-events: auto;
}

#reader-study-dock.pa-reader-study-dock--open .pa-reader-study-dock__sheet {
    pointer-events: auto;
}

#reader-study-dock .pa-reader-study-dock__menu-btn--close {
    margin-top: 0.15rem;
    font-weight: 600;
}

#reader-study-dock .pa-reader-study-dock__chip--danger {
    color: #9a3b4a;
}

#reader-study-dock .pa-reader-study-dock__chip--undo:disabled {
    opacity: 0.35;
}

#reader-study-dock .pa-reader-study-dock__sheet-panel {
    display: grid;
    gap: 0.3rem;
}

#reader-study-dock .pa-reader-study-dock__palette-list {
    display: grid;
    gap: 0.28rem;
}

#reader-study-dock .pa-reader-study-dock__palette-row {
    display: grid;
    grid-template-columns: 1.1rem 1fr auto;
    align-items: center;
    gap: 0.4rem;
}

#reader-study-dock .pa-reader-study-dock__palette-swatch {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 25, 23, 0.14);
}

#reader-study-dock .pa-reader-study-dock__palette-label {
    font-family: var(--pa-font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--reader-ink);
}

#reader-study-dock .pa-reader-study-dock__palette-edit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    min-width: 3.4rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--reader-muted);
    font-family: var(--pa-font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
}

#reader-study-dock .pa-reader-study-dock__palette-edit span {
    pointer-events: none;
}

#reader-study-dock .pa-reader-study-dock__palette-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

#reader-study-dock .pa-reader-study-dock__bar--search {
    width: min(96vw, 26rem);
    padding: 0.28rem 0.32rem 0.28rem 0.45rem;
    gap: 0;
}

#psychaura-final-site .pa-reader-search--dock,
#reader-study-dock .pa-reader-search--dock {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
}

#psychaura-final-site .pa-reader-search--dock .pa-reader-search__bar,
#reader-study-dock .pa-reader-search--dock .pa-reader-search__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.18rem;
    width: 100%;
}

#reader-study-dock .pa-reader-search__glyph {
    flex: 0 0 auto;
    width: 1.35rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--reader-muted);
    opacity: 0.75;
    pointer-events: none;
}

#psychaura-final-site .pa-reader-search--dock .pa-reader-search__input,
#reader-study-dock .pa-reader-search--dock .pa-reader-search__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.05rem;
    margin: 0;
    padding: 0.35rem 0.2rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 550;
    color: var(--reader-ink);
    -webkit-appearance: none;
    appearance: none;
}

#reader-study-dock .pa-reader-search--dock .pa-reader-search__input::placeholder {
    color: color-mix(in srgb, var(--reader-muted) 88%, transparent);
    font-weight: 500;
}

#reader-study-dock .pa-reader-search--dock .pa-reader-search__input::-webkit-search-decoration,
#reader-study-dock .pa-reader-search--dock .pa-reader-search__input::-webkit-search-cancel-button,
#reader-study-dock .pa-reader-search--dock .pa-reader-search__input::-webkit-search-results-button {
    display: none;
    -webkit-appearance: none;
}

#reader-study-dock .pa-reader-search__count {
    flex: 0 0 auto;
    min-width: 2.1rem;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--reader-rule) 55%, transparent);
    font-family: var(--pa-font-ui);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    color: var(--reader-muted);
    text-align: center;
    white-space: nowrap;
}

#reader-study-dock .pa-reader-search__count[data-tone="success"] {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 42%, #fff);
    color: var(--reader-ink);
}

#reader-study-dock .pa-reader-search__count[data-tone="error"] {
    background: color-mix(in srgb, #9f1239 14%, #fff);
    color: #9f1239;
}

#reader-study-dock .pa-reader-search__count[hidden] {
    display: none !important;
}

#reader-study-dock .pa-reader-search__nav {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--pa-font-ui);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1;
    color: var(--reader-ink);
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#reader-study-dock .pa-reader-search__nav:hover:not(:disabled),
#reader-study-dock .pa-reader-search__nav:focus-visible:not(:disabled) {
    outline: none;
    background: color-mix(in srgb, var(--reader-rule) 55%, transparent);
}

#reader-study-dock .pa-reader-search__nav:disabled {
    opacity: 0.28;
    cursor: default;
}

#reader-study-dock .pa-reader-search__nav--clear {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--reader-muted);
}

#reader-study-dock .pa-reader-search__nav[hidden] {
    display: none !important;
}

body.dark-mode #reader-study-dock .pa-reader-search__count {
    background: rgba(255, 255, 255, 0.08);
    color: #bdb7b0;
}

body.dark-mode #reader-study-dock .pa-reader-search__count[data-tone="success"] {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, rgba(38, 34, 40, 0.97));
    color: #f5f2ef;
}

body.dark-mode #reader-study-dock .pa-reader-search__count[data-tone="error"] {
    background: rgba(159, 18, 57, 0.22);
    color: #f5c2ce;
}

body.dark-mode #reader-study-dock .pa-reader-search__nav:hover:not(:disabled),
body.dark-mode #reader-study-dock .pa-reader-search__nav:focus-visible:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

#reader-study-dock .pa-reader-study-dock__sheet-title {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--reader-muted);
    text-align: center;
}

#reader-study-dock .pa-reader-study-dock__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--reader-ink);
    font-family: var(--pa-font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

#reader-study-dock .pa-reader-study-dock__menu-btn--ghost {
    background: transparent;
}

#reader-study-dock .pa-reader-study-dock__bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    padding: 0.38rem 0.45rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--reader-ink) 14%, var(--reader-rule));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 26px rgba(28, 25, 23, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#reader-study-dock .pa-reader-study-dock__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--reader-ink);
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

#reader-study-dock .pa-reader-study-dock__colors {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0 0.1rem;
}

#reader-study-dock .pa-reader-study-dock__color-hint {
    display: none !important;
}

body.pa-ink-mode #reader-study-dock .pa-reader-study-dock__colors--ink {
    padding: 0.12rem 0.28rem;
    border-radius: 999px;
    background: rgba(184, 223, 196, 0.28);
}

body.dark-mode.pa-ink-mode #reader-study-dock .pa-reader-study-dock__colors--ink {
    background: rgba(184, 223, 196, 0.14);
}

#reader-study-dock .pa-reader-study-dock__color {
    position: relative;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 2px solid rgba(28, 25, 23, 0.12);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.12s ease;
    overflow: hidden;
}

#reader-study-dock .pa-reader-study-dock__color-edit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    border-radius: inherit;
    -webkit-appearance: none;
    appearance: none;
    /* 1× = barva; po 1. klepnutí (.is-picking-color) 2. klepnutí trefí tento input */
    pointer-events: none;
}

#reader-study-dock .pa-reader-study-dock__color.is-picking-color .pa-reader-study-dock__color-edit {
    pointer-events: auto !important;
    opacity: 0.02;
    z-index: 40;
}

#reader-study-dock .pa-reader-study-dock__color:hover,
#reader-study-dock .pa-reader-study-dock__color:focus-visible {
    transform: scale(1.1);
    outline: none;
}

#reader-study-dock .pa-reader-study-dock__color--active {
    transform: scale(1.08);
    box-shadow:
        0 0 0 2px var(--reader-bg, #fff),
        0 0 0 4px color-mix(in srgb, var(--reader-accent, #5f7a68) 72%, #1c1917);
}

#reader-study-dock .pa-reader-study-dock__color--green { background-color: var(--pa-highlight-green, #b8dfc4); }
#reader-study-dock .pa-reader-study-dock__color--pink { background-color: var(--pa-highlight-pink, #e8b4c7); }
#reader-study-dock .pa-reader-study-dock__color--burgundy { background-color: var(--pa-highlight-burgundy, #ddb8c8); }
#reader-study-dock .pa-reader-study-dock__color--blue { background-color: var(--pa-highlight-blue, #a8d4e6); }

#reader-study-dock .pa-reader-study-dock__sheet--help {
    width: min(96vw, 22rem);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#reader-study-dock .pa-reader-study-dock__help-block {
    margin: 0 0 0.45rem;
}

#reader-study-dock .pa-reader-study-dock__help-h {
    margin: 0 0 0.2rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#reader-study-dock .pa-reader-study-dock__help-list {
    margin: 0;
    padding: 0 0 0 0.95rem;
    font-family: var(--pa-font-ui);
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--reader-ink);
}

#reader-study-dock .pa-reader-study-dock__help-list li {
    margin: 0 0 0.22rem;
}

#reader-study-dock .pa-reader-study-dock__help-list kbd {
    display: inline-block;
    padding: 0.05rem 0.28rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    border-radius: 5px;
    background: color-mix(in srgb, var(--reader-paper, #fff) 88%, var(--reader-rule));
    font-family: var(--pa-font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

#reader-study-dock .pa-reader-study-dock__help-note {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--reader-muted);
}

#reader-study-dock .pa-reader-study-dock__status {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    transform: translateX(-50%);
    z-index: 80;
    width: max-content;
    max-width: min(92vw, 18rem);
    margin: 0;
    padding: 0.4rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    border-radius: 10px;
    background: #fffefb;
    box-shadow: 0 6px 16px rgba(28, 25, 23, 0.12);
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
    color: var(--reader-muted);
    white-space: normal;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}

#reader-study-dock .pa-reader-study-dock__status[data-has-undo='1'] {
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

#reader-study-dock .pa-reader-study-dock__undo-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-rule));
    border-radius: 999px;
    background: color-mix(in srgb, var(--pa-accent-mint) 18%, #fff);
    font-family: var(--pa-font-ui);
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--reader-ink);
    cursor: pointer;
    pointer-events: auto;
}

#reader-study-dock .pa-reader-study-dock__undo-btn:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 32%, #fff);
}

#reader-study-dock .pa-reader-study-dock__chip--history {
    font-size: 1.05rem;
    line-height: 1;
    min-width: 2rem;
    font-weight: 700;
}

#reader-study-dock .pa-reader-study-dock__chip--history:disabled {
    opacity: 0.32;
    cursor: default;
}

body.pa-ink-mode #reader-study-dock .pa-reader-study-dock__chip--history {
    display: none !important;
}

#reader-study-dock .pa-reader-study-dock__menu-btn--undo {
    display: none !important;
}

#reader-study-dock .pa-reader-study-dock__menu-btn--undo:not([hidden]):not(:disabled):hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 32%, #fff);
}

#reader-study-dock .pa-reader-study-dock__status[hidden] {
    display: none !important;
}

#reader-study-dock .pa-reader-study-dock__status[data-tone="success"] {
    color: color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-ink));
}

#reader-study-dock .pa-reader-study-dock__status[data-tone="error"] {
    color: color-mix(in srgb, var(--pa-accent-rose) 55%, var(--reader-ink));
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-reader__article {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }

    body.pa-reader-focus #psychaura-final-site .pa-reader__article {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }

    /* Telefon: lišta se nesmí „rozpadnout“ / prosvítat obsah skrz */
    #reader-study-dock {
        width: calc(100vw - 0.7rem);
        max-width: none;
        left: 50%;
        bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
        padding: 0;
        box-sizing: border-box;
    }

    #reader-study-dock .pa-reader-study-dock__inner {
        width: 100%;
        max-width: 100%;
    }

    #reader-study-dock .pa-reader-study-dock__bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        gap: 0.2rem;
        padding: 0.3rem 0.38rem;
        border-radius: 18px;
        background: #fffefb;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        box-shadow: 0 8px 22px rgba(28, 25, 23, 0.16);
    }

    #reader-study-dock .pa-reader-study-dock__bar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    #reader-study-dock .pa-reader-study-dock__chip {
        flex: 0 0 auto;
        min-width: 2.05rem;
        min-height: 2.05rem;
        padding: 0.22rem 0.32rem;
        font-size: 0.84rem;
    }

    #reader-study-dock .pa-reader-study-dock__colors {
        flex: 0 0 auto;
        gap: 0.18rem;
    }

    #reader-study-dock .pa-reader-study-dock__color {
        width: 1.78rem;
        height: 1.78rem;
        border-width: 2px;
        flex-shrink: 0;
        overflow: hidden;
    }

    /* Poznámka / ink → v ⋯ menu (na telefonu se jinak lišta trhá) */
    #reader-study-dock .pa-reader-study-dock__chip--note,
    #reader-study-dock .pa-reader-study-dock__chip--ink {
        display: none !important;
    }

    #reader-study-dock .pa-reader-study-dock__menu-btn {
        min-height: 2.55rem;
        font-size: 0.88rem;
    }

    #reader-study-dock .pa-reader-study-dock__status {
        white-space: normal;
        max-width: 92vw;
        line-height: 1.35;
        font-size: 0.72rem;
        text-wrap: balance;
    }

    #reader-study-dock .pa-reader-study-dock__sheet {
        width: min(94vw, 17rem);
        max-height: min(52vh, 20rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #reader-study-dock .pa-reader-study-dock__sheet--help {
        width: min(94vw, 22rem);
        max-height: min(62vh, 26rem);
    }

    /* Ink tray na telefonu schovat — Pencil patří na tablet */
    html.pa-touch-notes #pa-ink-tray {
        display: none !important;
    }
}

#reader-study-dock-tab {
    position: fixed;
    left: 50%;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 99986;
    min-height: 2rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--reader-ink) 14%, var(--reader-rule));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 18px rgba(28, 25, 23, 0.12);
    font-family: var(--pa-font-ui);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--reader-ink);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#psychaura-final-site mark.pa-search-hit,
#psychaura-final-site .pa-search-hit {
    padding: 0 0.08em;
    border-radius: 0.22em;
    background-color: color-mix(in srgb, var(--pa-accent-sky, #a8d4e6) 48%, #fff);
    color: inherit;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

#psychaura-final-site mark.pa-search-hit.is-active,
#psychaura-final-site .pa-search-hit.is-active {
    background-color: color-mix(in srgb, var(--pa-accent-mint, #bfe8d2) 62%, #fff);
    color: #1c1917;
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pa-accent-mint, #7dbca4) 55%, transparent);
    outline: 2px solid color-mix(in srgb, var(--pa-accent-mint, #7dbca4) 35%, transparent);
    outline-offset: 1px;
}

/* Prose */
#psychaura-final-site .pa-study-rich {
    font-family: var(--pa-font-reading);
    font-size: var(--reader-body);
    line-height: var(--reader-lh);
    color: var(--reader-ink);
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Hierarchie: h2 podkapitola | h3 téma / autor | h4 detail */
#psychaura-final-site .pa-study-rich h2,
#psychaura-final-site .pa-study-section > h2 {
    margin: 0 0 0.85rem;
    padding: 0 0 0.55rem;
    border: none;
    border-bottom: 3px solid color-mix(in srgb, var(--pa-accent-mint) 65%, var(--reader-rule));
    font-family: var(--pa-font-ui);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: var(--reader-ink);
    scroll-margin-top: calc(var(--reader-sticky) + 140px);
}

#psychaura-final-site .pa-study-rich > h2:first-child {
    margin-top: 0;
}

/* Úvod k okruhu — nad 1.1, stejný styl jako pa-study-lead */
#psychaura-final-site .pa-study-section > .pa-okruh-intro {
    margin-bottom: 1.35rem;
}

#psychaura-final-site .pa-okruh-intro {
        display: block;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem 0.85rem 0.95rem;
    border: none;
    border-left: 4px solid var(--pa-accent-mint);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 11%, #fff);
    box-sizing: border-box;
}

#psychaura-final-site .pa-okruh-intro .pa-h3--topic {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

#psychaura-final-site .pa-okruh-intro__bib {
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style: disc;
}

#psychaura-final-site .pa-okruh-intro__bib li {
    margin-bottom: 0.35rem;
    font-family: var(--pa-font-reading);
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-okruh-intro__bib li:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-okruh-intro__bib cite {
    font-style: normal;
    font-weight: 700;
    color: color-mix(in srgb, var(--pa-accent-rose) 55%, var(--reader-ink));
}

#psychaura-final-site .pa-okruh-intro--library {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#psychaura-final-site .pa-okruh-intro--library > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0;
    padding: 0.4rem 0.65rem 0.4rem 0.85rem;
    cursor: pointer;
    list-style: none;
    border-left: 4px solid var(--pa-accent-mint);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 11%, #fff);
}

#psychaura-final-site .pa-okruh-intro--library > summary::-webkit-details-marker {
    display: none;
}

#psychaura-final-site .pa-okruh-intro--library > summary::marker {
    content: "";
}

#psychaura-final-site .pa-okruh-intro__summary-main {
    display: block;
    min-width: 0;
}

#psychaura-final-site .pa-okruh-intro__title {
    font-family: var(--pa-font-ui);
    font-size: clamp(1.12rem, 1rem + 0.35vw, 1.32rem);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--pa-accent-mint) 25%, var(--reader-ink));
}

#psychaura-final-site .pa-okruh-intro__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(34, 30, 33, 0.08);
    box-shadow: none;
    flex-shrink: 0;
}

#psychaura-final-site .pa-okruh-intro__toggle::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-ink));
    border-bottom: 2px solid color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-ink));
    transform: rotate(45deg) translate(-1px, -1px);
    transform-origin: center;
    transition: transform 180ms ease;
}

#psychaura-final-site .pa-okruh-intro--library[open] .pa-okruh-intro__toggle::before {
    transform: rotate(225deg) translate(-1px, -1px);
}

#psychaura-final-site .pa-okruh-intro__panel {
    padding: 0.5rem 0 0.05rem 0.95rem;
    background: transparent;
}

#psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib {
    margin: 0;
    padding: 0;
    list-style: none;
}

#psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib li {
    position: static;
    margin: 0;
    padding: 0.28rem 0;
    background: none;
    border: 0;
    box-shadow: none;
    line-height: 1.62;
}

#psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib li::before {
    content: none !important;
    display: none !important;
}

#psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib li + li {
    border-top: 1px solid rgba(34, 30, 33, 0.08);
    padding-top: 0.5rem;
    margin-top: 0.1rem;
}

#psychaura-final-site .pa-okruh-intro__lead {
    margin: 0.15rem 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--reader-muted, #6b6560);
}

#psychaura-final-site .pa-okruh-intro__group {
    margin: 0.85rem 0 0.15rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 22%, var(--reader-ink, #1c1917));
}

#psychaura-final-site .pa-okruh-intro__group:first-child {
    margin-top: 0.15rem;
}

@media (max-width: 720px) {
    #psychaura-final-site .pa-okruh-intro--library > summary {
        padding: 0.4rem 0.58rem 0.4rem 0.74rem;
    }

    #psychaura-final-site .pa-okruh-intro__panel {
        padding: 0.45rem 0 0.05rem 0.82rem;
    }
}

#psychaura-final-site .pa-study-rich h3.pa-h3--topic,
#psychaura-final-site .pa-study-section h3.pa-h3--topic {
    margin: 1.5rem 0 0.55rem;
    padding: 0.4rem 0.65rem 0.4rem 0.85rem;
    border: none;
    border-left: 4px solid var(--pa-accent-mint);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 11%, #fff);
    font-family: var(--pa-font-ui);
    font-size: clamp(1.12rem, 1rem + 0.35vw, 1.32rem);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--pa-accent-mint) 25%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich h3:not(.pa-h3--person):not(.pa-h3--topic) {
    margin: 1.35rem 0 0.5rem;
    padding: 0.35rem 0 0.35rem 0.85rem;
    border-left: 4px solid var(--pa-accent-mint);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 9%, #fff);
    font-family: var(--pa-font-ui);
    font-size: clamp(1.12rem, 1rem + 0.35vw, 1.3rem);
    font-weight: 800;
    line-height: 1.32;
    color: var(--reader-ink);
}

#psychaura-final-site .pa-study-rich h3 + p,
#psychaura-final-site .pa-study-rich h4 + p,
#psychaura-final-site .pa-person-sheet__main h4:first-child {
    margin-top: 0.4rem;
}

#psychaura-final-site .pa-study-rich h3.pa-h3--topic + ul,
#psychaura-final-site .pa-study-rich h3.pa-h3--topic + ol {
    margin-bottom: 1.1rem;
}

/* Auto-seznamy a štítky pojmů (okruhy 2–12 bez <ul> v datech) */
#psychaura-final-site .pa-prose-list {
    margin: 0.4rem 0 var(--reader-gap);
    padding: 0;
    list-style: none;
}

#psychaura-final-site .pa-prose-list > li {
    position: relative;
    margin: 0 0 0.55rem;
    padding: 0 0 0 1.45rem;
    line-height: inherit;
}

#psychaura-final-site .pa-prose-list > li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-ink));
}

#psychaura-final-site .pa-prose-list--terms > li {
    margin-bottom: 0.7rem;
    padding-left: 1.35rem;
}

#psychaura-final-site .pa-prose-li-term__label {
    font-family: var(--pa-font-ui);
    font-size: clamp(0.98rem, 0.92rem + 0.15vw, 1.05rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--reader-ink);
    margin-bottom: 0.2rem;
}

#psychaura-final-site .pa-prose-li-term__body {
    font-size: 0.98em;
    line-height: inherit;
    color: color-mix(in srgb, var(--reader-ink) 92%, var(--reader-muted));
    margin: 0 0 0.25rem;
    padding-left: 0.15rem;
}

#psychaura-final-site .pa-prose-li-term__body:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-study-rich p.pa-prose-label {
    margin: 0.75rem 0 0.2rem;
    padding: 0.12rem 0 0.12rem 0.6rem;
    border-left: 3px solid color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-rule));
    font-family: var(--pa-font-ui);
    font-size: clamp(1rem, 0.94rem + 0.2vw, 1.08rem);
    font-weight: 800;
    line-height: 1.35;
}

#psychaura-final-site .pa-study-rich h4,
#psychaura-final-site .pa-person-sheet__main h4 {
    position: relative;
    margin: 1.1rem 0 0.45rem;
    padding: 0.15rem 0 0.15rem var(--pa-subhead-inset);
    border: none;
    font-family: var(--pa-font-ui);
    font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem);
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: 0.02em;
    text-transform: none;
    color: color-mix(in srgb, var(--pa-accent-sky) 30%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich h4::before,
#psychaura-final-site .pa-person-sheet__main h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12rem;
    bottom: 0.12rem;
    width: 3px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--pa-accent-sky) 55%, var(--reader-rule));
}

/* Text pod h4 — stejný levý okraj jako nadpis */
#psychaura-final-site .pa-person-sheet__main > h4 ~ :is(p, ul, ol, .pa-study-table-wrap, .pa-tip-box) {
    padding-left: var(--pa-subhead-inset);
    box-sizing: border-box;
}

#psychaura-final-site .pa-person-sheet__main > h4 ~ blockquote {
    margin-left: var(--pa-subhead-inset);
    box-sizing: border-box;
}

#psychaura-final-site .pa-media-flow__body h3:first-child {
    margin-top: 0;
}

#psychaura-final-site .pa-study-rich p {
    margin: 0 0 var(--reader-gap);
    text-wrap: pretty;
    hyphens: manual;
    hyphenate-limit-chars: 6 5 3;
    orphans: 2;
    widows: 2;
    overflow-wrap: break-word;
    word-break: normal;
}

#psychaura-final-site .pa-study-rich strong,
#psychaura-final-site .pa-study-rich b {
    font-weight: 650;
    color: var(--reader-ink);
}

/* Seznamy — přes celou šířku (nikdy vedle obrázku), hierarchie jako ve skriptu */
#psychaura-final-site .pa-study-rich ul,
#psychaura-final-site .pa-study-rich ol {
    margin: 0.45rem 0 var(--reader-gap);
    padding: 0;
    list-style: none;
    clear: none;
    max-width: none;
}

#psychaura-final-site .pa-study-rich > h2 + .pa-media-flow,
#psychaura-final-site .pa-study-section > h2 + .pa-media-flow {
    margin-top: 0.25rem;
}

#psychaura-final-site .pa-study-rich h3 + ul,
#psychaura-final-site .pa-study-rich h3 + ol,
#psychaura-final-site .pa-study-rich h4 + ul,
#psychaura-final-site .pa-study-rich h4 + ol {
    margin-top: 0.4rem;
}

#psychaura-final-site .pa-study-rich ul > li,
#psychaura-final-site .pa-study-rich ol > li {
    position: relative;
    margin: 0 0 0.55rem;
    padding: 0 0 0 1.45rem;
    hyphens: none;
    -webkit-hyphens: none;
    text-wrap: pretty;
    orphans: 2;
    widows: 2;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: inherit;
}

#psychaura-final-site .pa-study-rich ul > li:last-child,
#psychaura-final-site .pa-study-rich ol > li:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-study-rich ul > li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-ink));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa-accent-mint) 25%, transparent);
}

#psychaura-final-site .pa-study-rich ol {
    counter-reset: pa-study-ol;
}

#psychaura-final-site .pa-study-rich ol > li {
    counter-increment: pa-study-ol;
    padding-left: 1.85rem;
}

#psychaura-final-site .pa-study-rich ol > li::before {
    content: counter(pa-study-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    min-width: 1.35rem;
    font-family: var(--pa-font-ui);
    font-size: 0.94em;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: inherit;
    color: color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich ul ul,
#psychaura-final-site .pa-study-rich ol ol,
#psychaura-final-site .pa-study-rich ul ol,
#psychaura-final-site .pa-study-rich ol ul {
    margin: 0.5rem 0 0.15rem;
    padding-left: 0.15rem;
}

#psychaura-final-site .pa-study-rich ul ul > li {
    padding-left: 1.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.98em;
    color: color-mix(in srgb, var(--reader-ink) 92%, var(--reader-muted));
}

#psychaura-final-site .pa-study-rich ul ul > li::before {
    content: "–";
    left: 0.05rem;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: var(--pa-font-ui);
    font-weight: 700;
    font-size: 0.95em;
    line-height: inherit;
    color: color-mix(in srgb, var(--pa-accent-rose) 40%, var(--reader-muted));
}

#psychaura-final-site .pa-study-rich ul ul ul > li {
    padding-left: 1.15rem;
    margin-bottom: 0.35rem;
    font-size: 0.96em;
}

#psychaura-final-site .pa-study-rich ul ul ul > li::before {
    content: "·";
    font-size: 1.1em;
    font-weight: 900;
    color: color-mix(in srgb, var(--reader-muted) 70%, var(--reader-ink));
}

#psychaura-final-site .pa-tip-box ul,
#psychaura-final-site .pa-tip-box ol {
    margin-bottom: 0;
}

#psychaura-final-site .pa-tip-box ul.pa-tip-list {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

#psychaura-final-site .pa-tip-box ul.pa-tip-list > li {
    position: relative;
    margin: 0 0 0.38rem;
    padding: 0;
    line-height: 1.55;
}

#psychaura-final-site .pa-tip-box ul.pa-tip-list > li::before {
    content: none !important;
    display: none !important;
}

#psychaura-final-site .pa-tip-box ul.pa-tip-list > li:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-tip-box li {
    line-height: 1.65;
}

/* Studijní tabulka — Obecná/Vývojová: podle obsahu; Dějiny: viz [data-pa-chapter="1"] */
#psychaura-final-site .pa-study-table-wrap {
    display: block;
    max-width: 100%;
    margin: 0.35rem 0 0.55rem;
    clear: both;
    border: 1px solid var(--reader-rule);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04);
    box-sizing: border-box;
}

#psychaura-final-site .pa-study-rich:not([data-pa-chapter="1"]) .pa-study-table-wrap {
    width: fit-content;
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-study-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

#psychaura-final-site .pa-study-table {
    width: auto;
    max-width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.92em;
    line-height: 1.45;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#psychaura-final-site .pa-study-table th,
#psychaura-final-site .pa-study-table td {
    padding: 0.45rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid color-mix(in srgb, var(--reader-rule) 80%, transparent);
}

#psychaura-final-site .pa-study-table th {
    font-family: var(--pa-font-ui);
    font-weight: 800;
    font-size: 0.78em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--reader-ink) 75%, var(--reader-muted));
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
}

#psychaura-final-site .pa-study-table tr:last-child td {
    border-bottom: none;
}

#psychaura-final-site .pa-study-table td:first-child,
#psychaura-final-site .pa-study-table th:first-child {
    font-weight: 650;
    color: color-mix(in srgb, var(--pa-accent-mint) 35%, var(--reader-ink));
    width: auto;
    white-space: normal;
    word-wrap: break-word;
    padding-right: 1.1rem;
}

#psychaura-final-site .pa-study-table th:first-child {
    font-weight: 800;
    color: color-mix(in srgb, var(--reader-ink) 75%, var(--reader-muted));
}

#psychaura-final-site .pa-study-table td:last-child,
#psychaura-final-site .pa-study-table th:last-child {
    width: auto;
    max-width: none;
    white-space: normal;
}

#psychaura-final-site .pa-study-table th:nth-child(2),
#psychaura-final-site .pa-study-table td:nth-child(2) {
    width: auto;
    white-space: normal;
}

#psychaura-final-site .pa-study-table th:nth-child(3),
#psychaura-final-site .pa-study-table td:nth-child(3) {
    width: auto;
    white-space: normal;
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-study-table td:first-child,
    #psychaura-final-site .pa-study-table th:first-child {
        white-space: normal;
        min-width: 5.5rem;
    }
}

/* Krokový flow (fáze spánku, procesy) — šipky dolů */
#psychaura-final-site .pa-flow-steps {
    margin: 0.45rem 0 var(--reader-gap);
    padding: 0.65rem 0.75rem 0.5rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 35%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-sky) 6%, #fff);
    clear: both;
}

#psychaura-final-site .pa-flow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem 0.75rem;
    align-items: start;
    padding: 0.35rem 0;
    position: relative;
}

#psychaura-final-site .pa-flow-step:not(:last-child) {
    padding-bottom: 0.65rem;
    margin-bottom: 0.15rem;
}

#psychaura-final-site .pa-flow-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 0.72rem;
    bottom: -0.05rem;
    font-family: var(--pa-font-ui);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--pa-accent-rose) 55%, var(--reader-muted));
    pointer-events: none;
}

#psychaura-final-site .pa-flow-step__n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: color-mix(in srgb, var(--pa-accent-mint) 75%, var(--reader-ink));
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.12);
}

#psychaura-final-site .pa-flow-step__body {
    padding-top: 0.1rem;
    text-wrap: pretty;
}

#psychaura-final-site .pa-flow-step__body strong {
    display: block;
    margin-bottom: 0.15rem;
    font-family: var(--pa-font-ui);
    font-size: 0.95em;
}

/* ── Studijní UI: šipky, mapy, karty ── */
#psychaura-final-site .pa-process-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.2rem;
    margin: 0.55rem 0 var(--reader-gap);
    padding: 0.65rem 0.8rem;
    clear: both;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 35%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 8%, #fff);
}

#psychaura-final-site .pa-process-line__step {
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 30%, var(--reader-rule));
    background: #fff;
    font-size: 0.88em;
    font-weight: 650;
    line-height: 1.35;
    text-wrap: pretty;
}

#psychaura-final-site .pa-process-line__step strong {
    display: block;
    margin-bottom: 0.14rem;
    font-family: var(--pa-font-ui);
    font-size: 0.96em;
}

#psychaura-final-site .pa-process-line__step span {
    display: block;
    font-size: 0.95em;
    font-weight: 500;
}

#psychaura-final-site .pa-process-line__arrow {
    flex-shrink: 0;
    font-family: var(--pa-font-ui);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    color: color-mix(in srgb, var(--pa-accent-rose) 65%, var(--reader-ink));
}

#psychaura-final-site .pa-dash-map {
    margin: 0.55rem 0 var(--reader-gap);
    padding: 0.85rem 0.9rem 0.75rem;
    clear: both;
    border-radius: 14px;
    border: 2px dashed color-mix(in srgb, var(--pa-accent-sky) 45%, var(--reader-rule));
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--pa-accent-sky) 14%, transparent), transparent 55%),
        color-mix(in srgb, var(--pa-accent-sky) 5%, #fff);
}

#psychaura-final-site .pa-dash-map__title {
    margin: 0 0 0.65rem;
    text-align: center;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--reader-ink) 70%, var(--reader-muted));
}

#psychaura-final-site .pa-dash-map__hub {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0.75rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-family: var(--pa-font-ui);
    font-weight: 800;
    font-size: 0.95em;
    text-align: center;
    color: var(--reader-ink);
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-rule));
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
}

#psychaura-final-site .pa-dash-map__ring {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: 0.45rem;
}

#psychaura-final-site .pa-dash-map__node {
    position: relative;
    padding: 0.42rem 0.45rem;
    text-align: center;
    font-size: 0.84em;
    font-weight: 650;
    line-height: 1.35;
    color: color-mix(in srgb, var(--reader-ink) 90%, var(--reader-muted));
    background: #fff;
    border-radius: 8px;
    border: 1.5px dashed color-mix(in srgb, var(--pa-accent-rose) 35%, var(--reader-rule));
}

#psychaura-final-site .pa-dash-map__node::after {
    content: "┈";
    position: absolute;
    top: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: -0.12em;
    color: color-mix(in srgb, var(--pa-accent-sky) 55%, var(--reader-muted));
    pointer-events: none;
}

#psychaura-final-site .pa-stage-map {
    --pa-stage-accent: var(--pa-accent-mint);
    margin: 0.55rem 0 var(--reader-gap);
    padding: 0.9rem 0.95rem;
    clear: both;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--pa-stage-accent) 35%, var(--reader-rule));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--pa-stage-accent) 10%, #fff), #fff 62%),
        #fff;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-stage-map--sky {
    --pa-stage-accent: var(--pa-accent-sky);
}

#psychaura-final-site .pa-stage-map--rose {
    --pa-stage-accent: var(--pa-accent-rose);
}

#psychaura-final-site .pa-stage-map__eyebrow {
    margin: 0 0 0.7rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-stage-accent) 52%, var(--reader-ink));
}

#psychaura-final-site .pa-stage-map__layout {
    display: grid;
    grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: center;
}

#psychaura-final-site .pa-stage-map__media {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 12rem;
    padding: 0.55rem 0.65rem 0.35rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--pa-stage-accent) 22%, var(--reader-rule));
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--pa-stage-accent) 13%, transparent), transparent 58%),
        #fff;
    overflow: hidden;
}

#psychaura-final-site .pa-stage-map__media::after {
    content: "→";
    position: absolute;
    right: -0.78rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--pa-font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--pa-stage-accent) 60%, var(--reader-ink));
}

#psychaura-final-site .pa-stage-map__media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(240px, 30vh);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 5px 10px rgba(28, 25, 23, 0.08));
}

#psychaura-final-site .pa-stage-map__badge {
    display: grid;
    gap: 0.32rem;
    justify-items: center;
    width: min(100%, 10rem);
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--pa-stage-accent) 24%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-stage-accent) 10%, #fff);
    text-align: center;
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-stage-map__badge strong {
    display: block;
    font-family: var(--pa-font-ui);
    font-size: 0.92rem;
    color: color-mix(in srgb, var(--pa-stage-accent) 52%, var(--reader-ink));
}

#psychaura-final-site .pa-stage-map__badge span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--reader-ink) 86%, var(--reader-muted));
}

#psychaura-final-site .pa-stage-map__nodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.55rem;
}

#psychaura-final-site .pa-stage-map__node {
    position: relative;
    padding: 0.62rem 0.72rem 0.58rem 1.45rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--pa-stage-accent) 26%, var(--reader-rule));
    background: #fff;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04);
    font-size: 0.89em;
    line-height: 1.45;
    text-wrap: pretty;
}

#psychaura-final-site .pa-stage-map__node::before {
    content: "→";
    position: absolute;
    left: 0.5rem;
    top: 0.62rem;
    font-family: var(--pa-font-ui);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--pa-stage-accent) 62%, var(--reader-ink));
}

#psychaura-final-site .pa-stage-map__node strong {
    display: block;
    margin-bottom: 0.18rem;
    font-family: var(--pa-font-ui);
    font-size: 0.92em;
    color: color-mix(in srgb, var(--pa-stage-accent) 48%, var(--reader-ink));
}

#psychaura-final-site .pa-stage-map__node span {
    display: block;
}

#psychaura-final-site .pa-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.5rem;
    margin: 0.55rem 0 var(--reader-gap);
    clear: both;
}

#psychaura-final-site .pa-card-grid__item {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04);
    font-size: 0.9em;
    line-height: 1.45;
    text-wrap: pretty;
}

#psychaura-final-site .pa-card-grid__item strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--pa-font-ui);
    font-size: 0.92em;
    color: color-mix(in srgb, var(--pa-accent-mint) 40%, var(--reader-ink));
}

#psychaura-final-site .pa-versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.55rem;
    align-items: stretch;
    margin: 0.55rem 0 var(--reader-gap);
    clear: both;
}

#psychaura-final-site .pa-versus__col {
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--reader-rule);
    background: #fff;
    font-size: 0.9em;
    line-height: 1.45;
}

#psychaura-final-site .pa-versus__col--a {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 8%, #fff);
}

#psychaura-final-site .pa-versus__col--b {
    border-color: color-mix(in srgb, var(--pa-accent-rose) 40%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-rose) 8%, #fff);
}

#psychaura-final-site .pa-versus__col strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--pa-font-ui);
}

#psychaura-final-site .pa-versus__sep {
    align-self: center;
    font-family: var(--pa-font-ui);
    font-weight: 800;
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--pa-accent-rose) 55%, var(--reader-muted));
}

#psychaura-final-site .pa-link-chain {
    margin: 0.55rem 0 var(--reader-gap);
    padding: 0.15rem 0 0.15rem 0.9rem;
    clear: both;
    border-left: 2px dashed color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-rule));
}

#psychaura-final-site .pa-link-chain__item {
    position: relative;
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.55rem 0.4rem 0.65rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--pa-accent-mint) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 25%, var(--reader-rule));
    font-size: 0.9em;
    line-height: 1.45;
}

#psychaura-final-site .pa-link-chain__item::before {
    content: "";
    position: absolute;
    left: -1.08rem;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-ink));
    box-shadow: 0 0 0 2px #fff;
}

#psychaura-final-site .pa-link-chain__item:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-callout {
    margin: 0.55rem 0 var(--reader-gap);
    padding: 0.65rem 0.85rem;
    clear: both;
    border-radius: 0 10px 10px 0;
    font-size: 0.92em;
    line-height: 1.5;
    text-wrap: pretty;
}

#psychaura-final-site .pa-callout strong {
    font-family: var(--pa-font-ui);
}

#psychaura-final-site .pa-callout--mint {
    border-left: 4px solid color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-mint) 10%, #fff);
}

#psychaura-final-site .pa-callout--sky {
    border-left: 4px solid color-mix(in srgb, var(--pa-accent-sky) 70%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-sky) 10%, #fff);
}

#psychaura-final-site .pa-callout--rose {
    border-left: 4px solid color-mix(in srgb, var(--pa-accent-rose) 65%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-rose) 10%, #fff);
}

#psychaura-final-site .pa-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.45rem 0 var(--reader-gap);
    clear: both;
}

#psychaura-final-site .pa-badge {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-family: var(--pa-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--reader-ink) 85%, var(--reader-muted));
    background: color-mix(in srgb, var(--pa-accent-rose) 35%, #fff);
    border: 1px solid color-mix(in srgb, var(--pa-accent-rose) 55%, var(--reader-rule));
}

/* Jemné zvýraznění */
#psychaura-final-site .pa-key-author {
    font-weight: 600;
    color: #8a4a5c;
}

#psychaura-final-site .pa-key-term {
    font-weight: 600;
    color: color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-ink));
}

#psychaura-final-site .pa-key-emphasis {
    font-weight: 650;
}

/* Obrázky — text vedle obrázku + viditelný popisek a citace na klik */
#psychaura-final-site .pa-study-rich::after {
    content: "";
    display: table;
    clear: both;
}

#psychaura-final-site .pa-study-section > h2 {
    clear: both;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure {
    box-sizing: border-box;
}

/* Obrázky — text obtéká zleva nebo zprava (střídání) */
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right {
    float: right;
    clear: none;
    margin: 0 0.35rem 0.85rem 1.15rem;
    shape-outside: margin-box;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left {
    float: left;
    clear: none;
    margin: 0 1rem 0.5rem 0;
    shape-outside: margin-box;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left:not(.pa-figure--portrait):not(.pa-figure--lead):not(.pa-figure--diagram) {
    width: clamp(12rem, 28vw, 17rem);
    max-width: 34%;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--block {
    float: none;
    clear: both;
    width: min(100%, 26rem);
    max-width: 100%;
    margin: 0.85rem auto 1.1rem;
    text-align: center;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--block .pa-figcaption {
    align-items: center;
}

/* Ilustrovaný blok — text vlevo přes šířku, obrázek vpravo v mřížce */
#psychaura-final-site .pa-illustrated-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(15rem, 30%);
    gap: 1rem 1.35rem;
    align-items: start;
    margin: 0.45rem 0 1.35rem;
    clear: both;
}

#psychaura-final-site .pa-illustrated-block__body {
    grid-column: 1;
    min-width: 0;
}

#psychaura-final-site .pa-illustrated-block .pa-figure--illustration {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: sticky;
    top: calc(var(--reader-sticky) + 0.75rem);
}

#psychaura-final-site .pa-illustrated-block .pa-figure--illustration img {
    width: 100%;
    max-height: min(420px, 52vh);
    object-fit: contain;
}

#psychaura-final-site .pa-illustrated-block .pa-figure--illustration .pa-figcaption {
    align-items: center;
}

#psychaura-final-site .pa-topic-block__body > .pa-study-table-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

#psychaura-final-site .pa-illustrated-block__body .pa-study-table-wrap {
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-illustrated-block__body .pa-tip-box {
    max-width: 100%;
    clear: both;
}

#psychaura-final-site .pa-illustrated-block__body > ul,
#psychaura-final-site .pa-illustrated-block__body > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

#psychaura-final-site .pa-topic-block__body > .pa-illustrated-block {
    margin: 0;
}

/* Tabulka uvnitř položky seznamu — šířka podle obsahu */
#psychaura-final-site .pa-study-rich li > .pa-study-table-wrap,
#psychaura-final-site .pa-topic-block__body li > .pa-study-table-wrap,
#psychaura-final-site .pa-illustrated-block__body li > .pa-study-table-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    clear: both;
    margin: 0.5rem 0 0.75rem;
    box-sizing: border-box;
}

@media (max-width: 820px) {
    #psychaura-final-site .pa-illustrated-block {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-illustrated-block .pa-figure--illustration {
        grid-column: 1;
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0 0 0.85rem;
    }
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--diagram {
    width: clamp(14rem, 38vw, 24rem);
    max-width: min(24rem, 52%);
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right:not(.pa-figure--portrait):not(.pa-figure--lead):not(.pa-figure--diagram) {
    width: clamp(12rem, 28vw, 17rem);
    max-width: 34%;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--portrait,
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--lead {
    width: auto;
    max-width: 46%;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure img {
    display: block;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--reader-rule);
    box-shadow: 0 1px 6px rgba(28, 25, 23, 0.06);
    background: #fff;
    cursor: default;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right:not(.pa-figure--chart),
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left:not(.pa-figure--chart) {
    position: relative;
    z-index: 3;
    isolation: isolate;
    overflow: hidden;
    border-radius: 10px;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--portrait img,
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--lead img {
    width: auto;
    max-width: min(15rem, 36vw);
    max-height: min(280px, 34vh);
    object-fit: unset;
    object-position: top;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--diagram img,
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right:not(.pa-figure--portrait):not(.pa-figure--lead) img,
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left:not(.pa-figure--portrait):not(.pa-figure--lead) img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--diagram img {
    max-height: min(420px, 50vh);
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right:not(.pa-figure--portrait):not(.pa-figure--lead):not(.pa-figure--diagram) img,
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left:not(.pa-figure--portrait):not(.pa-figure--lead):not(.pa-figure--diagram) img {
    max-height: min(320px, 38vh);
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left .pa-figcaption {
    align-items: flex-start;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figcaption {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0.2rem;
    padding: 0;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figcaption-trigger {
    appearance: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--pa-font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--reader-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    opacity: 0.55;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figcaption-trigger:hover,
:is(#psychaura-final-site .pa-reader__article) .pa-figure--caption-open .pa-figcaption-trigger {
    opacity: 1;
    color: var(--reader-ink);
}

:is(#psychaura-final-site .pa-reader__article) .pa-figcaption-detail {
    margin-top: 0.2rem;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--pa-accent-sky) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 35%, var(--reader-rule));
    font-family: var(--pa-font-ui);
    font-size: 0.62rem;
    line-height: 1.4;
    color: var(--reader-ink);
}

:is(#psychaura-final-site .pa-reader__article) .pa-figcaption-detail a {
    color: inherit;
    word-break: break-word;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figcaption-detail[hidden] {
    display: none !important;
}

/* Telefon landscape: také stack na šířku (ne maličké 44% karty) */
@media (max-width: 720px) and (orientation: landscape) {
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--diagram,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--portrait,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--lead {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: min(100%, 22rem) !important;
        margin: 0.4rem auto 0.65rem !important;
        text-align: center !important;
        shape-outside: none !important;
    }

    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--right img,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--left img,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--diagram img,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--portrait img,
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--lead img {
        width: auto;
        max-width: 100%;
        max-height: min(42vh, 220px);
        margin: 0 auto;
        object-fit: contain;
        object-position: top center;
    }

    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--block {
        width: min(100%, 22rem);
        max-width: min(100%, 22rem);
        margin: 0.45rem auto 0.65rem;
        text-align: center;
    }

    #psychaura-final-site .pa-card-grid {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-versus {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-versus__sep {
        text-align: center;
        padding: 0.15rem 0;
    }
}

/* Úvod podkapitoly — stejný zelený rámeček jako u témat (h3), jeden celek */
#psychaura-final-site .pa-study-lead {
    display: block;
    margin: 0.65rem 0 1.25rem;
    padding: 0.75rem 1rem 0.85rem 0.95rem;
    border: none;
    border-left: 4px solid var(--pa-accent-mint);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 11%, #fff);
    box-sizing: border-box;
}

#psychaura-final-site .pa-study-section > .pa-study-lead + h3.pa-h3--topic,
#psychaura-final-site .pa-study-rich > .pa-study-lead + h3.pa-h3--topic {
    margin-top: 1.15rem;
}

#psychaura-final-site .pa-study-lead::after {
    content: "";
    display: table;
    clear: both;
}

#psychaura-final-site .pa-study-lead > p {
    margin: 0 0 0.45rem;
}

#psychaura-final-site .pa-study-lead > .pa-tip-box {
    clear: none;
    display: block;
    width: fit-content;
    max-width: calc(100% - 19rem);
    margin: 0.4rem 0 0;
    background: color-mix(in srgb, var(--pa-accent-sky) 18%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-sky) 38%, var(--reader-rule));
}

#psychaura-final-site .pa-study-lead .pa-figure.pa-figure--lead {
    width: auto;
    max-width: var(--pa-float-gutter);
    margin-top: 0;
    padding: 0.2rem;
    background: #fff;
}

/* Tematický blok (nadpis + text + seznam v jednom rámečku) */
#psychaura-final-site .pa-topic-block {
    margin: 1.25rem 0 1.45rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 28%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff);
    overflow: visible;
    box-shadow: 0 1px 6px rgba(28, 25, 23, 0.04);
}

/* Autor z h4 uvnitř tématu — stejná růžová hlavička jako Wundt */
#psychaura-final-site .pa-topic-block__body > .pa-person-sheet--inline {
    margin: 0.85rem 0;
}

#psychaura-final-site .pa-topic-block__body > .pa-person-sheet--inline:first-child {
    margin-top: 0.2rem;
}

#psychaura-final-site .pa-topic-block__body > .pa-person-sheet--inline:last-child {
    margin-bottom: 0.15rem;
}

#psychaura-final-site .pa-person-sheet > h4.pa-h4--person {
    margin: 0;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-rose) 22%, var(--reader-rule));
    border-radius: 12px 12px 0 0;
    background: color-mix(in srgb, var(--pa-accent-rose) 14%, #fff);
    font-family: var(--pa-font-display, var(--pa-font-ui));
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.22rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: color-mix(in srgb, var(--pa-accent-rose) 35%, var(--reader-ink));
}

#psychaura-final-site .pa-person-sheet > h4.pa-h4--person::before {
    content: none;
    display: none;
}

#psychaura-final-site .pa-person-sheet--inline .pa-person-sheet__body {
    padding: 0.85rem 1.05rem 1.1rem;
}

#psychaura-final-site .pa-topic-block__body > .pa-study-table-wrap {
    width: 100%;
    max-width: 100%;
}

#psychaura-final-site .pa-topic-block > h3.pa-h3--topic {
    margin: 0;
    padding: 0.55rem 1rem;
    border: none;
    border-left: none;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint) 22%, var(--reader-rule));
    border-radius: 12px 12px 0 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
}

#psychaura-final-site .pa-topic-block__body {
    display: block;
    padding: 0.9rem 1.15rem 1.1rem 1rem;
    line-height: var(--reader-lh);
    --pa-float-gutter: min(20rem, 42%);
}

#psychaura-final-site .pa-topic-block__body::after {
    content: "";
    display: table;
    clear: both;
}

#psychaura-final-site .pa-topic-block__body > p:first-child {
    margin-top: 0;
}

#psychaura-final-site .pa-topic-block__body > ul,
#psychaura-final-site .pa-topic-block__body > ol {
    margin: 0.5rem 0 0;
}


/* Tabulky v tematických blocích — končí u posledního slova (ne prázdný okraj) */
#psychaura-final-site .pa-study-rich:not([data-pa-chapter="1"]) .pa-study-table-wrap,
#psychaura-final-site .pa-topic-block__body .pa-study-table-wrap,
#psychaura-final-site .pa-reader__article:not(:has(.pa-study-rich[data-pa-chapter="1"])) > .pa-study-table-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    clear: both;
    box-sizing: border-box;
}

/* Více tabulek za sebou — těsně pod sebou, bez velké mezery */
#psychaura-final-site .pa-study-table-wrap + .pa-study-table-wrap,
#psychaura-final-site .pa-topic-media-row + .pa-study-table-wrap {
    margin-top: 0.3rem;
}

#psychaura-final-site .pa-topic-block__body > h4 + .pa-study-table-wrap {
    margin-top: 0.25rem;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--block + h4 {
    margin-top: 0.65rem;
}

/* 2.1 Vlastnosti pozornosti: menší ilustrace vpravo, text i tabulka obtékají */
#psychaura-final-site .pa-topic-block__body--intro-fig-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8.5rem, min(11rem, 30vw));
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0.3rem;
    align-items: start;
}

#psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-figure--intro-table {
    grid-column: 2;
    grid-row: 1 / span 2;
    float: none !important;
    clear: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.25rem;
    align-self: start;
    justify-self: end;
    background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff);
}

#psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-figure--intro-table img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(150px, 21vh);
    height: auto;
    object-fit: contain;
    object-position: top;
}

#psychaura-final-site .pa-topic-block__body--intro-fig-table > p {
    grid-column: 1;
    grid-row: 1;
    clear: none;
    margin: 0 0 0.2rem;
}

#psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-study-table-wrap {
    grid-column: 1;
    grid-row: 2;
    clear: none !important;
    width: fit-content !important;
    max-width: 100%;
    margin: 0;
}

#psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-tip-box {
    grid-column: 1 / -1;
    clear: both;
    margin-top: 0.35rem;
}

/* Malý diagram u tabulky (intero / exteroreceptory) */
#psychaura-final-site .pa-topic-block__body > .pa-figure--compact {
    float: right;
    clear: none;
    width: auto;
    max-width: min(10.5rem, 32%);
    margin: 0 0 0.35rem 0.75rem;
    padding: 0.2rem;
    background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff);
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--compact img {
    width: auto;
    max-width: min(10rem, 100%);
    max-height: min(108px, 16vh);
    height: auto;
    object-fit: contain;
    object-position: top;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--compact-sm {
    max-width: min(7.75rem, 26%);
    margin: 0 0 0.3rem 0.55rem;
    padding: 0.15rem;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--compact-sm img {
    max-width: min(7.25rem, 100%);
    max-height: min(88px, 13vh);
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--compact .pa-figcaption {
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 0.12rem;
}

#psychaura-final-site .pa-topic-block__body > p + .pa-figure--compact ~ :is(h4, ul, ol) {
    clear: none;
    max-width: calc(100% - min(8.25rem, 28%) - 0.65rem);
}

#psychaura-final-site .pa-topic-block__body > p + .pa-figure--compact ~ .pa-study-table-wrap {
    clear: both;
    margin-top: 0.35rem;
    max-width: 100%;
}

/* ===== 2.3 Senzorické procesy — unified visual system ===== */
#psychaura-final-site .pa-study-section:has(.pa-s23) > h3 {
    margin: 1.35rem 0 0.55rem;
    padding-bottom: 0.42rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint) 28%, var(--reader-rule));
    font-family: var(--pa-font-ui, system-ui, sans-serif);
    font-size: 1.02em;
    letter-spacing: 0.01em;
}

#psychaura-final-site .pa-study-section:has(.pa-s23) > h3:first-of-type {
    margin-top: 0.9rem;
}

#psychaura-final-site .pa-s23 {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.15rem 0 0.5rem;
    padding: 0.8rem 0.9rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 82%, transparent);
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        #fff 0%,
        color-mix(in srgb, var(--pa-accent-mint) 4%, #fff) 100%
    );
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.03);
}

#psychaura-final-site .pa-s23-lead {
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-left: 3px solid color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-rule));
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 9%, #fff);
    font-size: 0.98em;
    line-height: 1.55;
}

#psychaura-final-site .pa-s23-outro {
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--pa-accent-sky) 9%, #fff);
    border: 1px solid color-mix(in srgb, var(--reader-rule) 80%, transparent);
    font-size: 0.96em;
    line-height: 1.55;
}

#psychaura-final-site .pa-s23-panel {
    display: flow-root;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#psychaura-final-site .pa-s23-panel + .pa-s23-panel {
    padding-top: 0.55rem;
    border-top: 1px solid color-mix(in srgb, var(--reader-rule) 82%, transparent);
}

#psychaura-final-site .pa-s23-panel--full,
#psychaura-final-site .pa-s23-panel--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem 0.85rem;
    align-items: start;
}

#psychaura-final-site .pa-s23-panel--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#psychaura-final-site .pa-s23-panel__body,
#psychaura-final-site .pa-s23-panel__col {
    min-width: 0;
}

#psychaura-final-site .pa-s23-heading {
    margin: 0 0 0.55rem;
    font-family: var(--pa-font-ui, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-accent-mint) 42%, var(--reader-ink));
}

#psychaura-final-site .pa-s23-panel__body > .pa-s23-heading:not(:first-child),
#psychaura-final-site .pa-s23-panel__col > .pa-s23-heading:not(:first-child) {
    margin-top: 0.75rem;
}

#psychaura-final-site .pa-s23-panel__body > ul,
#psychaura-final-site .pa-s23-panel__col > ul {
    margin: 0.15rem 0 0;
    padding-left: 1.15rem;
}

#psychaura-final-site .pa-s23-panel__body ul ul {
    margin-top: 0.25rem;
}

#psychaura-final-site .pa-s23-panel .pa-study-table-wrap {
    margin: 0;
    clear: none;
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-s23-panel .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}

#psychaura-final-site .pa-s23-panel__col .pa-study-table-wrap + .pa-s23-heading {
    margin-top: 0.65rem;
}

#psychaura-final-site .pa-s23-panel__fig {
    float: none !important;
    clear: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.55rem 0.6rem 0.5rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 70%, transparent);
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.03);
}

#psychaura-final-site .pa-s23-panel__fig img {
    display: block;
    width: 100%;
    max-height: min(260px, 34vh);
    object-fit: contain;
    object-position: center;
}

#psychaura-final-site .pa-s23-panel__fig .pa-figcaption {
    margin-top: 0.4rem;
    font-size: 0.74rem;
    line-height: 1.35;
    text-align: center;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-s23 {
    --pa-s23-float: min(18rem, 38%);
    --pa-s23-gap: 1rem;
}

#psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__fig {
    position: static !important;
    float: right !important;
    width: auto;
    max-width: var(--pa-s23-float);
    margin: 0 0 0.65rem var(--pa-s23-gap);
}

#psychaura-final-site .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__fig {
    float: left !important;
    margin: 0 var(--pa-s23-gap) 0.65rem 0;
}

#psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box) {
    max-width: calc(100% - var(--pa-s23-float) - var(--pa-s23-gap));
    box-sizing: border-box;
}

#psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__body > .pa-study-table-wrap {
    display: block;
    width: fit-content;
    max-width: calc(100% - var(--pa-s23-float) - var(--pa-s23-gap));
}

#psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}

#psychaura-final-site .pa-s23-fig--prahy-law,
#psychaura-final-site .pa-s23-fig--prahy-audio,
#psychaura-final-site .pa-s23-fig--receptory {
    justify-self: center;
    align-self: center;
    margin: 0 !important;
}

#psychaura-final-site .pa-s23-fig--prahy-law {
    width: 100%;
}

#psychaura-final-site .pa-s23-fig--prahy-law img {
    max-height: min(420px, 52vh);
}

#psychaura-final-site .pa-s23-fig--prahy-audio {
    width: min(100%, 14rem);
}

#psychaura-final-site .pa-s23-fig--prahy-audio img {
    max-height: min(260px, 34vh);
    object-position: center;
}

#psychaura-final-site .pa-s23-fig--receptory {
    width: min(100%, 16rem);
}

#psychaura-final-site .pa-s23-fig--receptory img {
    max-height: min(360px, 46vh);
}

#psychaura-final-site .pa-s23-fig--sluch img {
    max-height: min(420px, 50vh);
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law),
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio),
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) {
    display: block;
    align-items: start;
    --pa-s23-gap: 0.55rem;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    grid-template-areas:
        "heading fig"
        "table table";
    gap: 0.25rem 0.8rem;
    align-items: start;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) {
    --pa-s23-float: 14rem;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) {
    --pa-s23-float: 16rem;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__fig,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) > .pa-s23-panel__fig,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) > .pa-s23-panel__fig {
    float: right !important;
    position: static !important;
    width: var(--pa-s23-float) !important;
    max-width: var(--pa-s23-float);
    align-self: start;
    margin: 0 0 0.55rem var(--pa-s23-gap) !important;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__fig {
    float: none !important;
    grid-area: fig;
    width: 24rem !important;
    max-width: 100%;
    justify-self: end;
    margin: 0 !important;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) > .pa-s23-panel__body,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) > .pa-s23-panel__body {
    min-width: 0;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body {
    display: contents;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body > .pa-s23-heading {
    grid-area: heading;
    align-self: center;
    margin: 0;
    max-width: 100%;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body > .pa-study-table-wrap {
    grid-area: table;
    width: 100%;
    max-width: 100%;
    margin-top: 0.15rem;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) .pa-study-table {
    width: 100%;
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box) {
    max-width: calc(100% - var(--pa-s23-float) - var(--pa-s23-gap));
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body > .pa-study-table-wrap,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) > .pa-s23-panel__body > .pa-study-table-wrap,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) > .pa-s23-panel__body > .pa-study-table-wrap {
    display: block;
    width: fit-content;
    max-width: calc(100% - var(--pa-s23-float) - var(--pa-s23-gap));
}

#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) .pa-study-table,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) .pa-study-table,
#psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}

#psychaura-final-site .pa-s23-panel--prahy-law {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 0.35rem 0.8rem;
    align-items: stretch;
}

#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body {
    display: block;
    min-width: 0;
}

#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__fig {
    float: none !important;
    position: static !important;
    grid-column: 2;
    width: 24rem !important;
    max-width: 100%;
    justify-self: end;
    align-self: end;
    margin: 0 !important;
}

#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > .pa-s23-heading,
#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > .pa-study-table-wrap,
#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > .pa-tip-box,
#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > p,
#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > ul,
#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > ol {
    max-width: 100% !important;
}

#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > .pa-s23-heading {
    margin: 0 0 0.35rem;
}

#psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__body > .pa-study-table-wrap {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

#psychaura-final-site .pa-s23-panel--prahy-law .pa-study-table {
    width: 100% !important;
}

#psychaura-final-site .pa-s23-panel--prahy-law .pa-s23-fig--prahy-law {
    width: 100%;
}

#psychaura-final-site .pa-s23-panel--prahy-law .pa-s23-fig--prahy-law img {
    max-height: min(440px, 56vh);
    object-position: right bottom;
}

@media (min-width: 721px) {
    #psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) .pa-s23-panel__fig {
        position: static;
        top: auto;
    }
}

@media (max-width: 720px) {
    #psychaura-final-site .pa-s23 {
        padding: 0.75rem 0.75rem 0.8rem;
    }

    #psychaura-final-site .pa-s23-panel,
    #psychaura-final-site .pa-s23-panel--split {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
    }

    #psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) .pa-s23-panel__fig {
        order: -1;
    }

    #psychaura-final-site .pa-s23-panel__fig img {
        max-height: min(220px, 32vh);
    }

    #psychaura-final-site .pa-stage-map__layout {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-stage-map__media {
        min-height: 0;
        padding-bottom: 0.2rem;
    }

    #psychaura-final-site .pa-stage-map__media::after {
        display: none;
    }

    #psychaura-final-site .pa-stage-map__nodes {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-s23-fig--prahy-law,
    #psychaura-final-site .pa-s23-fig--prahy-audio,
    #psychaura-final-site .pa-s23-fig--receptory {
        width: min(100%, 17rem);
    }

    #psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__fig {
        float: none !important;
        width: min(100%, 18rem);
        max-width: min(100%, 18rem);
        margin: 0 auto 0.6rem !important;
    }

    #psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box) {
        max-width: 100%;
    }

    #psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) > .pa-s23-panel__body > .pa-study-table-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    #psychaura-final-site .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split) .pa-study-table {
        width: 100%;
    }

    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law),
    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio),
    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) {
        display: block;
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__body {
        display: block;
    }

    #psychaura-final-site .pa-s23-panel--prahy-law {
        display: block;
    }

    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-law) > .pa-s23-panel__fig,
    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--prahy-audio) > .pa-s23-panel__fig,
    #psychaura-final-site .pa-s23-panel:has(> .pa-s23-fig--receptory) > .pa-s23-panel__fig {
        width: min(100%, 18rem) !important;
        max-width: min(100%, 18rem);
        margin: 0 auto 0.6rem !important;
    }

    #psychaura-final-site .pa-s23-panel--prahy-law > .pa-s23-panel__fig {
        width: min(100%, 18rem) !important;
        max-width: min(100%, 18rem);
        margin: 0 auto 0.6rem !important;
    }
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23 {
    --pa-s23-float: min(19.5rem, 40%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-bronfenbrenner-points {
    margin: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-bronfenbrenner-points > p {
    margin: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-bronfenbrenner-points > p + p {
    margin-top: 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-study-table-wrap {
    display: inline-block;
    width: auto !important;
    max-width: 100% !important;
    vertical-align: top;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-study-table {
    display: inline-table;
    width: auto !important;
    max-width: none;
    table-layout: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(10rem, 18vw, 12.5rem);
    grid-template-areas: "body fig";
    gap: 0.35rem 1rem;
    align-items: start;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
    grid-template-columns: clamp(10rem, 18vw, 12.5rem) minmax(0, 1fr);
    grid-template-areas: "fig body";
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__fig {
    grid-area: fig;
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body {
    grid-area: body;
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box) {
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body > .pa-study-table-wrap {
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) .pa-study-table {
    width: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel--full:has(.pa-stage-map) > .pa-s23-panel__body > .pa-study-table-wrap {
    width: fit-content;
    max-width: min(100%, 46rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel--full:has(.pa-stage-map) .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel--full > .pa-s23-panel__body > .pa-process-line {
    display: inline-flex;
    width: fit-content;
    max-width: min(100%, 44rem);
    box-sizing: border-box;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) {
    grid-template-columns: minmax(0, max-content) 11.25rem;
    justify-content: start;
    column-gap: 0.85rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) > .pa-s23-panel__fig {
    width: 10.5rem;
    max-width: 10.5rem;
    justify-self: start;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) > .pa-s23-panel__body {
    width: fit-content;
    max-width: min(100%, 39rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) > .pa-s23-panel__body > .pa-study-table-wrap {
    width: fit-content;
    max-width: min(100%, 37rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) .pa-study-table {
    width: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-life-span-silhouette"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(10rem, 16vw, 14rem);
    grid-template-areas: "body fig";
    column-gap: 1.05rem;
    align-items: start;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-life-span-silhouette"]) > .pa-s23-panel__fig {
    grid-area: fig;
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    justify-self: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-life-span-silhouette"]) > .pa-s23-panel__body {
    grid-area: body;
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-life-span-silhouette"]) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box) {
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > h3.pa-h3--topic {
    margin: 0;
    padding: 0.62rem 1rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 28%, var(--reader-rule));
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
    font-family: var(--pa-font-ui, system-ui, sans-serif);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > .pa-topic-block__body {
    padding: 0;
    background: transparent;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > .pa-topic-block__body > .pa-s23 {
    margin-top: 0;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel__fig img {
    max-height: min(320px, 42vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel__fig.pa-figure--bw img {
    filter: grayscale(100%) contrast(1.04);
}

@media (max-width: 720px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-study-table-wrap {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-study-table {
        display: table;
        width: 100% !important;
        max-width: 100% !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel > .pa-s23-panel__body > .pa-study-table-wrap {
        width: 100%;
        max-width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel .pa-study-table {
        width: 100%;
        max-width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > h3.pa-h3--topic {
        padding: 0.58rem 0.8rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__fig,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body {
        grid-column: auto;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) {
        justify-content: stretch;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) > .pa-s23-panel__fig {
        width: min(100%, 10.5rem);
        max-width: min(100%, 10.5rem);
        justify-self: center;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) > .pa-s23-panel__body,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) > .pa-s23-panel__body > .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-piaget-portrait"]) .pa-study-table {
        width: 100%;
        max-width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel:has(> .pa-s23-panel__fig img[src*="chap3-life-span-silhouette"]) > .pa-s23-panel__fig {
        width: min(100%, 14rem);
        max-width: min(100%, 14rem);
        justify-self: center;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-s23-panel__fig img {
        max-height: min(240px, 34vh);
    }
}

/* Socialni psychologie - stejna barevnost jako zbytek webu */
#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-okruh-intro--social {
    border-left-color: var(--pa-accent-mint);
    background: color-mix(in srgb, var(--pa-accent-mint) 11%, #fff);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-okruh-intro--social .pa-h3--topic {
    background: transparent;
    border-left-color: transparent;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 26%, var(--reader-rule));
    background: #fff;
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block > h3.pa-h3--topic {
    padding: 0.55rem 1rem;
    border-bottom-color: color-mix(in srgb, var(--pa-accent-mint) 22%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
    color: var(--reader-ink);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body {
    --pa-float-gutter: min(18rem, 38%);
    padding-right: 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > p:first-child {
    font-size: 1.01em;
    color: color-mix(in srgb, var(--reader-ink) 92%, var(--reader-muted));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > h4 {
    margin: 0.8rem 0 0.46rem;
    font-family: var(--pa-font-ui, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--reader-ink) 82%, var(--reader-muted));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-detail-block + .pa-detail-block {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint) 18%, var(--reader-rule));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-detail-block > :first-child {
    margin-top: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-detail-block > h4 {
    margin-top: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-detail-block > figure.pa-figure--diagram,
#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-detail-block > figure.pa-figure--chart {
    width: min(100%, 26rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--diagram,
#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--chart {
    width: min(100%, 28rem);
    margin: 0.45rem auto 0.9rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--diagram img,
#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--chart img {
    width: auto;
    max-width: 100%;
    max-height: min(320px, 40vh);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-study-table-wrap {
    margin-top: 0.55rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-prose-list > li::before {
    background: color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > h3.pa-h3--topic {
    margin: 0;
    padding: 0.62rem 1rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 28%, var(--reader-rule));
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
    font-family: var(--pa-font-ui, system-ui, sans-serif);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > .pa-topic-block__body {
    padding: 0;
    background: transparent;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > .pa-topic-block__body > .pa-s23 {
    margin-top: 0;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23 {
    --pa-s23-float: min(19.5rem, 40%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float {
    display: flow-root;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float > .pa-s23-panel__fig[data-social-name="image86.png"] {
    float: right !important;
    clear: none !important;
    width: clamp(11.5rem, 22vw, 14rem) !important;
    max-width: 44% !important;
    margin: 0.2rem 0 0.8rem 1.15rem !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float > .pa-s23-panel__fig[data-social-name="image86.png"] img {
    width: 100%;
    max-height: min(290px, 36vh);
    object-fit: contain;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-compact > .pa-s23-panel__fig[data-social-name="image99.jpeg"] {
    float: right !important;
    clear: none !important;
    width: clamp(9.5rem, 18vw, 11rem) !important;
    max-width: 38% !important;
    margin: 0.15rem 0 0.7rem 1rem !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-compact > .pa-s23-panel__fig[data-social-name="image99.jpeg"] img {
    width: 100%;
    max-height: min(220px, 28vh);
    object-fit: contain;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-portrait {
    gap: 0.12rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-portrait > .pa-s23-panel__fig[data-social-name="image87.png"] {
    float: right !important;
    clear: none !important;
    width: clamp(9.6rem, 16.5vw, 10.8rem) !important;
    max-width: 36% !important;
    margin: 0.15rem 0 0.25rem 0.95rem !important;
    padding: 0.34rem 0.38rem 0.32rem !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-portrait > .pa-s23-panel__fig[data-social-name="image87.png"] img {
    width: 100%;
    max-height: min(188px, 23vh);
    object-fit: cover;
    object-position: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-portrait > .pa-s23-lead {
    margin-bottom: 0 !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float > .pa-s23-panel {
    clear: none;
    max-width: calc(100% - clamp(12.4rem, 23vw, 15.2rem));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-compact > .pa-s23-panel {
    max-width: calc(100% - clamp(10.4rem, 19vw, 12.2rem));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > :is(.pa-flow-steps, .pa-card-grid, .pa-process-line, .pa-stage-map, .pa-callout) {
    max-width: min(100%, 46rem);
    margin: 0.5rem 0 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > .pa-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block--social-thinkers .pa-detail-block + .pa-detail-block {
    margin-top: 0.75rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block--social-thinkers .pa-detail-block > h4 {
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block--social-thinkers .pa-stage-map {
    max-width: min(100%, 52rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block--social-thinkers .pa-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.6rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block--social-thinkers .pa-card-grid__item {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-sky) 7%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-mint) 5%, #fff) 100%
        );
    border-color: color-mix(in srgb, var(--pa-accent-sky) 22%, var(--reader-rule));
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block--social-thinkers .pa-callout {
    max-width: min(100%, 50rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(10rem, 18vw, 12.5rem);
    grid-template-areas: "body fig";
    gap: 0.35rem 1rem;
    align-items: start;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
    grid-template-columns: clamp(10rem, 18vw, 12.5rem) minmax(0, 1fr);
    grid-template-areas: "fig body";
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig img[src*="image91.jpeg"]) {
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 25vw, 18.5rem);
    gap: 0.45rem 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-inline-figure {
    display: flow-root;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-inline-figure > .pa-s23-panel__body > .pa-s23-panel__fig {
    float: right !important;
    clear: none !important;
    width: clamp(9.5rem, 17vw, 11.25rem) !important;
    max-width: 42% !important;
    margin: 0.1rem 0 0.55rem 1rem !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-inline-figure > .pa-s23-panel__body::after {
    content: "";
    display: table;
    clear: both;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-inline-figure > .pa-s23-panel__body > :is(p, ul, ol, h4) {
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-inline-figure > .pa-s23-panel__body > .pa-s23-panel__fig img {
    max-height: min(220px, 30vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig img[src*="image91.jpeg"]) {
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 25vw, 18.5rem);
    grid-template-areas: "body fig";
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__fig {
    grid-area: fig;
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body {
    grid-area: body;
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box, .pa-flow-steps, .pa-card-grid, .pa-process-line, .pa-callout, .pa-stage-map) {
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body > .pa-study-table-wrap {
    width: 100%;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) .pa-study-table {
    width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel__fig img {
    max-height: min(320px, 42vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--media-full > .pa-s23-panel__body {
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--media-full > .pa-s23-panel__fig {
    width: min(100%, 34rem);
    max-width: 100%;
    margin: 0.45rem auto 0 !important;
    justify-self: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--media-full > .pa-s23-panel__fig img {
    width: 100%;
    max-height: min(440px, 54vh);
    object-fit: contain;
    object-position: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--media-full:has(> .pa-s23-panel__fig img[src*="image86.png"]) > .pa-s23-panel__fig {
    width: min(100%, 22rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--media-full:has(> .pa-s23-panel__fig img[src*="image91.jpeg"]) > .pa-s23-panel__fig {
    width: min(100%, 30rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 28vw, 20rem);
    grid-template-areas: "body fig";
    gap: 0.55rem 1.25rem;
    align-items: center;
    padding-top: 0.35rem;
    padding-bottom: 0.1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--reader-rule) 82%, transparent);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening > .pa-s23-panel__body {
    grid-area: body;
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening > .pa-s23-panel__body > p:first-child {
    margin-top: 0;
    font-size: 1.03em;
    color: color-mix(in srgb, var(--reader-ink) 92%, var(--reader-muted));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening > .pa-s23-panel__fig {
    grid-area: fig;
    width: min(100%, 20rem);
    max-width: min(100%, 20rem);
    margin: 0 0 0 auto;
    padding: 0.45rem;
    justify-self: end;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening > .pa-s23-panel__fig img {
    width: 100%;
    max-height: min(340px, 42vh);
    object-fit: contain;
    object-position: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel__fig.pa-figure--bw img {
    filter: grayscale(100%) contrast(1.08) brightness(1.03);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel__fig.pa-figure--bw {
    background: #fff;
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--chart {
        width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > h3.pa-h3--topic {
        padding: 0.58rem 0.8rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__fig,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body {
        grid-column: auto;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel__fig img {
        max-height: min(240px, 34vh);
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-inline-figure > .pa-s23-panel__body > .pa-s23-panel__fig {
        float: none;
        width: min(100%, 11rem);
        max-width: 100%;
        margin: 0.2rem auto 0.7rem !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float > .pa-s23-panel__fig[data-social-name="image86.png"] {
        float: none !important;
        width: min(100%, 14rem) !important;
        max-width: 100% !important;
        margin: 0.2rem auto 0.8rem !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-compact > .pa-s23-panel__fig[data-social-name="image99.jpeg"] {
        float: none !important;
        width: min(100%, 11rem) !important;
        max-width: 100% !important;
        margin: 0.2rem auto 0.75rem !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float-portrait > .pa-s23-panel__fig[data-social-name="image87.png"] {
        float: none !important;
        width: min(100%, 10.8rem) !important;
        max-width: 100% !important;
        margin: 0.2rem auto 0.65rem !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23--social-lead-float > .pa-s23-panel {
        max-width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening {
        grid-template-columns: 1fr;
        grid-template-areas:
            "fig"
            "body";
        gap: 0.4rem 0.8rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel--social-opening > .pa-s23-panel__fig {
        width: min(100%, 17rem);
        margin: 0 auto;
        justify-self: center;
    }
}

/* Psychologie osobnosti - vizualne sjednocena s vyvojovkou */
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-okruh-intro--personality {
    border-left-color: color-mix(in srgb, var(--pa-accent-rose) 68%, var(--reader-rule));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--pa-accent-rose) 10%, #fff), #fff);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-okruh-intro--personality .pa-h3--topic {
    border-left-color: color-mix(in srgb, var(--pa-accent-rose) 74%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-rose) 14%, #fff);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-lead {
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 70%, var(--reader-rule));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--pa-accent-mint) 10%, #fff), #fff);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.7rem 0 1.15rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure {
    float: none !important;
    clear: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.3rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 28%, var(--reader-rule));
    border-radius: 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--pa-accent-sky) 10%, #fff), #fff);
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.05);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure.is-primary {
    grid-column: span 2;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: #fff;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure.is-primary img {
    aspect-ratio: 1.85 / 1;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 34%, var(--reader-rule));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-mint) 7%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-sky) 4%, #fff) 100%
        );
    box-shadow: 0 10px 24px rgba(28, 25, 23, 0.05);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block > h3.pa-h3--topic {
    padding: 0.64rem 1rem;
    border-bottom-color: color-mix(in srgb, var(--pa-accent-mint) 34%, var(--reader-rule));
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--pa-accent-mint) 17%, #fff),
            color-mix(in srgb, var(--pa-accent-sky) 10%, #fff)
        );
    color: color-mix(in srgb, var(--pa-accent-mint) 42%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body {
    --pa-float-gutter: min(18rem, 38%);
    padding-right: 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > p:first-child {
    font-size: 1.01em;
    color: color-mix(in srgb, var(--reader-ink) 92%, var(--reader-muted));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > h4 {
    margin: 0.8rem 0 0.5rem;
    font-family: var(--pa-font-ui, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--pa-accent-mint) 42%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--diagram,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--chart {
    float: none;
    width: min(100%, 30rem);
    max-width: 100%;
    margin: 0.45rem auto 0.9rem;
    padding: 0.3rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 28%, var(--reader-rule));
    border-radius: 14px;
    background: color-mix(in srgb, var(--pa-accent-sky) 7%, #fff);
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--diagram img,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--chart img {
    width: 100%;
    max-height: min(280px, 36vh);
    object-fit: contain;
    object-position: center;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > .pa-study-table-wrap {
    width: fit-content;
    max-width: min(100%, 46rem);
    margin-top: 0.45rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table-wrap--cattell {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0.5rem 0 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    font-size: 0.94rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell th:first-child,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell td:first-child {
    width: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell th:nth-child(2),
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell td:nth-child(2),
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell th:nth-child(3),
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-table--cattell td:nth-child(3) {
    width: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row:has(.pa-figure--chart) {
    grid-template-columns: minmax(10.5rem, 12.5rem) minmax(0, max-content);
    gap: 0.75rem 1rem;
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row--with-heading {
    grid-template-columns: minmax(11rem, 13rem) minmax(0, max-content);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row .pa-figure {
    width: 100%;
    max-width: 12.5rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row .pa-figure img {
    max-height: min(220px, 30vh);
    object-fit: contain;
    object-position: center top;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > :is(.pa-flow-steps, .pa-card-grid, .pa-process-line) {
    max-width: min(100%, 46rem);
    margin: 0.5rem 0 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > .pa-flow-steps {
    padding-top: 0.05rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > .pa-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-study-lead .pa-figure--lead {
    max-width: min(22rem, 38%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > h3.pa-h3--topic {
    margin: 0;
    padding: 0.62rem 1rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 28%, var(--reader-rule));
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--pa-accent-mint) 18%, #fff),
            color-mix(in srgb, var(--pa-accent-rose) 10%, #fff)
        );
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > .pa-topic-block__body {
    padding: 0;
    background: transparent;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) > .pa-topic-block__body > .pa-s23 {
    margin-top: 0;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 24%, var(--reader-rule));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-mint) 6%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-sky) 6%, #fff) 100%
        );
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.045);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel__body > .pa-s23-heading {
    color: color-mix(in srgb, var(--pa-accent-mint) 46%, var(--reader-ink));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--personality:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
    display: grid;
    gap: 0.8rem 1rem;
    align-items: start;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--personality:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__fig {
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--personality:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body {
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--personality:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) > .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box, .pa-flow-steps, .pa-card-grid, .pa-process-line, .pa-callout) {
    max-width: 100%;
    box-sizing: border-box;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--freud-structure,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--kretschmer-compare {
    grid-template-columns: minmax(0, 1fr) clamp(11.75rem, 20vw, 14rem);
    grid-template-areas: "body fig";
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--eysenck-wheel,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--fromm-portrait {
    grid-template-columns: clamp(11.25rem, 19vw, 13.75rem) minmax(0, 1fr);
    grid-template-areas: "fig body";
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--freud-structure > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--kretschmer-compare > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--eysenck-wheel > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--fromm-portrait > .pa-s23-panel__fig {
    grid-area: fig;
    align-self: start;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--freud-structure > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--kretschmer-compare > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--eysenck-wheel > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--fromm-portrait > .pa-s23-panel__body {
    grid-area: body;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--freud-structure > .pa-s23-panel__fig {
    max-width: 13rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--freud-structure > .pa-s23-panel__fig img {
    max-height: min(360px, 50vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--kretschmer-compare > .pa-s23-panel__fig {
    width: min(100%, 18rem) !important;
    max-width: min(100%, 18rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--kretschmer-compare {
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 26vw, 18rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--kretschmer-compare > .pa-s23-panel__fig img {
    filter: grayscale(100%) contrast(1.04) brightness(1.01);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--eysenck-wheel > .pa-s23-panel__fig {
    max-width: 13.5rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--fromm-portrait > .pa-s23-panel__fig {
    max-width: 12.25rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--sheldon-focus,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cloninger-map,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--borderline-map,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cattell-focus {
    grid-template-columns: 1fr;
    grid-template-areas:
        "fig"
        "body";
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--sheldon-focus > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cloninger-map > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--borderline-map > .pa-s23-panel__fig,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cattell-focus > .pa-s23-panel__fig {
    grid-area: fig;
    justify-self: center;
    margin-bottom: 0.2rem !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--sheldon-focus > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cloninger-map > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--borderline-map > .pa-s23-panel__body,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cattell-focus > .pa-s23-panel__body {
    grid-area: body;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus > .pa-s23-panel__fig {
    width: min(100%, 15rem) !important;
    max-width: min(100%, 15rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus > .pa-s23-panel__fig img {
    max-height: min(380px, 50vh) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus > .pa-s23-panel__fig {
    width: min(100%, 25rem) !important;
    max-width: min(100%, 25rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus > .pa-s23-panel__fig img {
    max-height: min(300px, 40vh) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--sheldon-focus > .pa-s23-panel__fig {
    width: min(100%, 18rem) !important;
    max-width: min(100%, 18rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cloninger-map > .pa-s23-panel__fig {
    width: min(100%, 29rem) !important;
    max-width: min(100%, 29rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cloninger-map > .pa-s23-panel__fig img {
    max-height: min(360px, 48vh) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--borderline-map > .pa-s23-panel__fig {
    width: min(100%, 19rem) !important;
    max-width: min(100%, 19rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cattell-focus > .pa-s23-panel__fig {
    width: min(100%, 32rem) !important;
    max-width: min(100%, 32rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--cattell-focus > .pa-s23-panel__fig img {
    max-height: min(720px, 78vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus > .pa-s23-panel__body > .pa-s23-heading,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus > .pa-s23-panel__body > .pa-s23-heading,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--sheldon-focus > .pa-s23-panel__body > .pa-s23-heading {
    text-align: center;
    margin-top: 0.1rem;
    padding-left: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--jung-focus > .pa-s23-panel__body > .pa-s23-heading::before,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--lewin-focus > .pa-s23-panel__body > .pa-s23-heading::before,
#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--sheldon-focus > .pa-s23-panel__body > .pa-s23-heading::before {
    display: none;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel__fig img {
    max-height: min(320px, 40vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel__fig.pa-figure--bw img {
    filter: grayscale(100%) contrast(1.06) brightness(1.01);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-prose-list > li::before {
    background: color-mix(in srgb, var(--pa-accent-rose) 68%, var(--reader-ink));
}

@media (max-width: 900px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure.is-primary {
        grid-column: auto;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure img,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-social-gallery .pa-figure.is-primary img {
        aspect-ratio: 1.4 / 1;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row:has(.pa-figure--chart),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row--with-heading {
        grid-template-columns: 1fr;
        width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-media-row .pa-figure {
        width: 100%;
        max-width: 100%;
        margin: 0 0 0.85rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-s23-panel--reverse:not(.pa-s23-panel--full):not(.pa-s23-panel--split):has(> .pa-s23-panel__fig) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "fig"
            "body";
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--chart,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > .pa-study-table-wrap {
        width: 100%;
        max-width: 100%;
    }
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-okruh-intro--library {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 34%, var(--reader-rule));
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--pa-accent-mint) 14%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-sky) 10%, #fff) 100%
        );
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 26%, var(--reader-rule));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-mint) 5%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-sky) 4%, #fff) 100%
        );
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block > h3.pa-h3--topic {
    margin: 0;
    padding: 0.68rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint) 24%, var(--reader-rule));
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--pa-accent-mint) 16%, #fff),
            color-mix(in srgb, var(--pa-accent-sky) 10%, #fff)
        );
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > :is(.pa-card-grid, .pa-process-line, .pa-callout, .pa-study-table-wrap) {
    max-width: min(100%, 52rem);
    margin: 0.5rem 0 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-study-table-wrap,
#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body .pa-study-table-wrap--biology {
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    font-size: 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > p:first-child {
    max-width: min(100%, 56rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block {
    margin: 0.6rem 0 0;
    padding: 0.05rem 0 0 0.95rem;
    border-left: 1px solid color-mix(in srgb, var(--pa-accent-sky) 26%, var(--reader-rule));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block + .pa-detail-block {
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint) 16%, transparent);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block > :first-child,
#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block > h4 {
    margin-top: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block > :is(p, ul, ol, .pa-study-table-wrap, .pa-callout, .pa-process-line, .pa-card-grid) {
    margin-left: 0.45rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block > :is(ul, ol) > li {
    padding-left: 1.75rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > .pa-detail-block > :is(ul, ol) > li::before {
    left: 0.3rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-study-section__nav {
    margin-top: 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-okruh-intro--library {
    border-color: color-mix(in srgb, var(--pa-accent-sky) 28%, var(--reader-rule));
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--pa-accent-sky) 12%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-mint) 8%, #fff) 100%
        );
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block {
    border-color: color-mix(in srgb, var(--pa-accent-sky) 24%, var(--reader-rule));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-sky) 4%, #fff) 0%,
            color-mix(in srgb, var(--pa-accent-mint) 3%, #fff) 100%
        );
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block > h3.pa-h3--topic {
    margin: 0;
    padding: 0.68rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-sky) 22%, var(--reader-rule));
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--pa-accent-sky) 14%, #fff),
            color-mix(in srgb, var(--pa-accent-mint) 9%, #fff)
        );
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > :is(.pa-card-grid, .pa-process-line, .pa-callout, .pa-study-table-wrap, .pa-prose-list) {
    max-width: min(100%, 54rem);
    margin: 0.5rem 0 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-study-table-wrap,
#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body .pa-study-table-wrap--biohuman {
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    font-size: 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > p:first-child,
#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-study-section > .pa-study-lead {
    max-width: min(100%, 56rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block {
    margin: 0.65rem 0 0;
    padding: 0.05rem 0 0 1rem;
    border-left: 1px solid color-mix(in srgb, var(--pa-accent-sky) 24%, var(--reader-rule));
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block + .pa-detail-block {
    margin-top: 0.85rem;
    padding-top: 0.72rem;
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint) 16%, transparent);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block > :first-child,
#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block > h4 {
    margin-top: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block > :is(p, ul, ol, .pa-study-table-wrap, .pa-callout, .pa-process-line, .pa-card-grid, .pa-prose-list) {
    margin-left: 0.42rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block > :is(ul, ol) > li {
    padding-left: 1.75rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-topic-block__body > .pa-detail-block > :is(ul, ol) > li::before {
    left: 0.3rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="12"] .pa-study-section__nav {
    margin-top: 1rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] h2 + p {
    max-width: min(100%, 54rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-cluster {
    max-width: min(100%, 56rem);
    margin: 0.4rem 0 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-cluster > p {
    max-width: min(100%, 54rem);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-discipline {
    margin: 0.7rem 0 0;
    padding: 0.8rem 0.9rem 0.95rem;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 18%, var(--reader-rule));
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--pa-accent-mint) 5%, #fff) 0%,
            #fff 100%
        );
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-discipline > h3 {
    margin: 0 0 0.55rem;
    font-size: 0.86rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-discipline > .pa-study-table-wrap {
    width: fit-content;
    max-width: 100%;
    margin: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-discipline .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    font-size: 0.95rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-discipline--closing > p {
    margin: 0;
}

@media (max-width: 720px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body > :is(.pa-card-grid, .pa-process-line, .pa-callout, .pa-study-table-wrap) {
        max-width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="8"] .pa-topic-block__body .pa-study-table {
        font-size: 0.9rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-cluster,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="11"] h2 + p {
        max-width: 100%;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="11"] .pa-app-discipline {
        padding: 0.75rem 0.75rem 0.85rem;
    }
}

#psychaura-final-site .pa-topic-block__body > p + .pa-figure--compact + .pa-study-table-wrap {
    clear: none;
    width: fit-content;
    max-width: calc(100% - min(10.5rem, 32%) - 0.85rem);
    margin-top: 0.2rem;
}

/* Kompaktní diagram + tabulka vedle sebe bez mezery u pravého okraje */
#psychaura-final-site .pa-topic-media-row:has(> .pa-figure--compact) {
    grid-template-columns: max-content minmax(8.5rem, max-content);
    gap: 0.55rem 0.75rem;
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-topic-media-row .pa-figure--compact img {
    max-height: min(120px, 18vh);
    width: auto;
    max-width: min(11rem, 100%);
    object-fit: contain;
    object-position: top left;
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-topic-block__body--intro-fig-table {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    #psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-figure--intro-table {
        grid-column: 1;
        grid-row: auto;
        max-width: min(14rem, 100%);
        margin: 0 auto 0.45rem;
        justify-self: center;
    }

    #psychaura-final-site .pa-topic-block__body--intro-fig-table > p,
    #psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-study-table-wrap {
        grid-column: 1;
        grid-row: auto;
        max-width: 100%;
    }

    #psychaura-final-site .pa-topic-block__body--intro-fig-table > .pa-study-table-wrap {
        clear: both;
    }
}

#psychaura-final-site .pa-topic-block__body > p + .pa-study-table-wrap {
    margin-top: 0.55rem;
    margin-bottom: 0.75rem;
}

/* Tabulka vedle float portrétu — jen v kartě osobnosti / sekci s fotem vpravo */
#psychaura-final-site .pa-topic-block__body:has(> .pa-figure--right.pa-figure--portrait) .pa-study-table-wrap,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
    clear: none;
    width: auto;
    max-width: calc(100% - var(--pa-float-gutter) - var(--pa-float-gap));
    margin-top: 0.35rem;
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-topic-block__body .pa-study-table-wrap,
    #psychaura-final-site .pa-person-sheet__main .pa-study-table-wrap {
        max-width: 100%;
        clear: both;
    }
}

/* Karta osobnosti — jméno nahoře, text + foto v mřížce */
#psychaura-final-site .pa-person-sheet {
    margin: 1.35rem 0 1.6rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-rose) 28%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-rose) 5%, #fff);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-person-sheet > h3.pa-h3--person {
    margin: 0;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-rose) 22%, var(--reader-rule));
    border-radius: 12px 12px 0 0;
    background: color-mix(in srgb, var(--pa-accent-rose) 14%, #fff);
    font-size: clamp(1.15rem, 1.02rem + 0.4vw, 1.35rem);
    color: color-mix(in srgb, var(--pa-accent-rose) 35%, var(--reader-ink));
}

#psychaura-final-site .pa-person-sheet__body {
        display: block;
    padding: 1.1rem 1.2rem 1.45rem;
}

#psychaura-final-site .pa-person-sheet__main {
    min-width: 0;
    padding: 0.2rem 0 0.2rem 0.85rem;
    border-left: 2px solid color-mix(in srgb, var(--pa-accent-mint) 40%, var(--reader-rule));
    line-height: var(--reader-lh);
}

#psychaura-final-site .pa-person-sheet__main::after {
    content: "";
    display: table;
    clear: both;
}

/* Biografie — nadpis těsně k textu, mezi podsekcemi větší oddech */
#psychaura-final-site .pa-person-sheet__main > h4 {
    margin: 0;
    clear: none;
}

#psychaura-final-site .pa-person-sheet__main > h4 + p,
#psychaura-final-site .pa-person-sheet__main > h4 + ul,
#psychaura-final-site .pa-person-sheet__main > h4 + ol {
    margin-top: 0.55rem;
}

#psychaura-final-site .pa-person-sheet__main > p + h4,
#psychaura-final-site .pa-person-sheet__main > ul + h4,
#psychaura-final-site .pa-person-sheet__main > ol + h4,
#psychaura-final-site .pa-person-sheet__main > blockquote + h4,
#psychaura-final-site .pa-person-sheet__main > .pa-study-table-wrap + h4,
#psychaura-final-site .pa-person-sheet__main > .pa-tip-box + h4 {
    margin-top: 1.35rem;
    padding-top: 1.05rem;
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint) 24%, var(--reader-rule));
}

/* Oddělovač podsekce jen v textovém sloupci — ne přes floatované obrázky */
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > p + h4,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > ul + h4,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > ol + h4,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > blockquote + h4,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > .pa-study-table-wrap + h4,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > .pa-tip-box + h4 {
    max-width: calc(100% - var(--pa-float-gutter) - var(--pa-float-gap));
    border-top: none;
    padding-top: 1.05rem;
}

#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > p + h4::after,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > ul + h4::after,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > ol + h4::after,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > blockquote + h4::after,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > .pa-study-table-wrap + h4::after,
#psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > .pa-tip-box + h4::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: color-mix(in srgb, var(--pa-accent-mint) 24%, var(--reader-rule));
}

#psychaura-final-site .pa-person-sheet__main > p,
#psychaura-final-site .pa-person-sheet__main > ul,
#psychaura-final-site .pa-person-sheet__main > ol {
    margin: 0 0 0.75rem;
    clear: none;
    line-height: var(--reader-lh);
}

#psychaura-final-site .pa-person-sheet__main > p + p {
    margin-top: 0.55rem;
}

#psychaura-final-site .pa-person-sheet__main > ul > li,
#psychaura-final-site .pa-person-sheet__main > ol > li {
    margin-bottom: 0.5rem;
}

#psychaura-final-site .pa-person-sheet__main > ul > li:last-child,
#psychaura-final-site .pa-person-sheet__main > ol > li:last-child {
    margin-bottom: 0;
}

/* Float v kartě — nad oddělovači, bílé pozadí, ořez rohů */
#psychaura-final-site .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart) {
    width: auto;
    max-width: var(--pa-float-gutter);
    margin: 0 0 0.55rem var(--pa-float-gap);
    padding: 0.25rem;
    background: color-mix(in srgb, var(--pa-accent-rose) 5%, #fff);
}

#psychaura-final-site .pa-person-sheet__main > .pa-figure--portrait {
    max-width: min(15rem, 40%);
}

#psychaura-final-site .pa-person-sheet__main > .pa-figure--portrait img {
    max-height: min(11rem, 26vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-person-sheet__main > .pa-figure--chart:has(img[src*="image70"]) {
    float: left;
    clear: none;
    width: auto;
    max-width: min(15rem, 36%);
    margin: 0.2rem 1rem 0.6rem 0;
    padding: 0.25rem;
    background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-person-sheet__main > .pa-figure--chart:has(img[src*="image70"]) img {
    width: auto;
    max-width: min(14.5rem, 100%);
    max-height: min(320px, 38vh);
    object-fit: contain;
    object-position: top left;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-person-sheet__main:has(> .pa-figure--chart img[src*="image70"]) > :is(ul, ol, h4, .pa-study-table-wrap, .pa-tip-box, blockquote) {
    max-width: calc(100% - min(15rem, 36%) - 1rem);
    box-sizing: border-box;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--right:not(.pa-figure--chart),
#psychaura-final-site .pa-topic-block__body > .pa-figure--left:not(.pa-figure--chart) {
    width: auto;
    max-width: var(--pa-float-gutter);
    margin: 0 0.35rem 0.85rem 1.15rem;
    padding: 0.35rem;
    background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff);
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--left:not(.pa-figure--chart) {
    margin: 0 1.15rem 0.85rem 0;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--diagram:not(.pa-figure--block):not(.pa-topic-media-row .pa-figure):not(.pa-figure--intro-table) {
    width: clamp(14rem, 44%, 24rem);
    max-width: min(24rem, 50%);
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--diagram:not(.pa-figure--block):not(.pa-topic-media-row .pa-figure):not(.pa-figure--intro-table) img {
    max-height: min(420px, 50vh);
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--diagram.pa-figure--block:not(.pa-topic-media-row .pa-figure) {
    float: none;
    clear: both;
    width: min(100%, 28rem);
    max-width: 100%;
    margin: 0.65rem auto 0.85rem;
    text-align: center;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--diagram.pa-figure--block:not(.pa-topic-media-row .pa-figure) img {
    width: auto;
    max-width: 100%;
    max-height: min(420px, 50vh);
    object-fit: contain;
    margin: 0 auto;
}

/* Tabulka + ilustrace — mřížka; tabulka jen podle obsahu */
#psychaura-final-site .pa-topic-media-row {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(15rem, 34%);
    gap: 1rem 1.35rem;
    align-items: start;
    margin: 0.35rem 0 0.55rem;
    clear: both;
}

#psychaura-final-site .pa-topic-media-row:has(.pa-figure--chart) {
    grid-template-columns: minmax(0, max-content) minmax(17rem, 40%);
}

/* Diagram vlevo, h4 + tabulka vpravo (tabulka pod nadpisem) */
#psychaura-final-site .pa-topic-media-row--with-heading {
    grid-template-columns: minmax(13rem, 36%) minmax(0, max-content);
}

#psychaura-final-site .pa-topic-media-row__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

#psychaura-final-site .pa-topic-media-row__content > h4 {
    margin: 0;
    width: 100%;
}

#psychaura-final-site .pa-topic-media-row__content > h4:not(:first-child) {
    margin-top: 0.75rem;
}

#psychaura-final-site .pa-topic-media-row__content > ul,
#psychaura-final-site .pa-topic-media-row__content > ol {
    margin: 0.25rem 0 0.35rem;
}

#psychaura-final-site .pa-topic-media-row__content > .pa-study-table-wrap {
    margin: 0.2rem 0 0;
}

/* Vlevo: obrázek + nadpis tabulky + tabulka; vpravo: text/seznam */
#psychaura-final-site .pa-topic-media-row--table-under-fig {
    grid-template-columns: minmax(13rem, 38%) minmax(0, 1fr);
}

#psychaura-final-site .pa-topic-media-row__visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

#psychaura-final-site .pa-topic-media-row__visual > h4 {
    margin: 0.15rem 0 0;
    width: 100%;
}

#psychaura-final-site .pa-topic-media-row__visual > .pa-study-table-wrap {
    margin: 0;
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--block.pa-figure--diagram {
    float: none;
    clear: both;
    width: min(100%, 26rem);
    max-width: 100%;
    margin: 0.45rem auto 0.55rem;
    text-align: center;
}

#psychaura-final-site .pa-topic-block__body > .pa-figure--block.pa-figure--diagram img {
    max-height: min(440px, 52vh);
}

#psychaura-final-site .pa-topic-media-row .pa-study-table-wrap {
    margin: 0;
    max-width: 100%;
    width: fit-content;
}

#psychaura-final-site .pa-topic-media-row .pa-figure {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.35rem;
    background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff);
    box-sizing: border-box;
}

#psychaura-final-site .pa-topic-media-row .pa-figure img {
    width: 100%;
    max-width: 100%;
    max-height: min(380px, 48vh);
    object-fit: contain;
}

/* 2.4 Vnímání - obrázky mají podpírat výklad, ne ho přebíjet */
#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row {
    gap: 1rem 1.6rem;
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row:not(.pa-topic-media-row--with-heading) {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 29%);
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row--with-heading {
    grid-template-columns: minmax(12.5rem, 29%) minmax(0, 1fr);
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row--table-under-fig {
    grid-template-columns: minmax(13rem, 30%) minmax(0, 1fr);
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row .pa-figure {
    width: min(100%, 20rem) !important;
    justify-self: center;
    padding: 0.5rem;
    border-radius: 16px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pa-accent-mint) 8%, #fff), #fff);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row .pa-figure.pa-figure--chart {
    width: min(100%, 21.5rem) !important;
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row .pa-figure img {
    max-height: min(320px, 38vh);
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row .pa-figure.pa-figure--chart img {
    max-height: min(270px, 32vh);
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-block__body > .pa-figure--block.pa-figure--diagram {
    width: min(100%, 21rem);
    margin-top: 0.35rem;
}

#psychaura-final-site .pa-study-section--vnimani .pa-topic-block__body > .pa-figure--block.pa-figure--diagram img {
    max-height: min(290px, 35vh);
}

@media (max-width: 820px) {
    #psychaura-final-site .pa-topic-media-row {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-topic-media-row .pa-figure {
        width: 100%;
        max-width: 100%;
        margin: 0 0 0.85rem !important;
    }

    #psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row .pa-figure,
    #psychaura-final-site .pa-study-section--vnimani .pa-topic-media-row .pa-figure.pa-figure--chart {
        width: 100% !important;
        max-width: 100% !important;
    }
}

#psychaura-final-site .pa-study-rich blockquote,
#psychaura-final-site .pa-person-sheet__main blockquote,
#psychaura-final-site .pa-topic-block__body blockquote {
    margin: 0.55rem 0 0.45rem;
    padding: 0.7rem 0.9rem 0.7rem 1rem;
    border: none;
    border-left: 3px solid color-mix(in srgb, var(--pa-accent-sky) 52%, var(--reader-rule));
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--pa-accent-sky) 10%, #fff);
    font-size: 0.96em;
    font-style: italic;
    line-height: 1.55;
    color: color-mix(in srgb, var(--reader-ink) 88%, var(--reader-muted));
    clear: both;
}

/* Graf u podkapitoly — menší, text obtéká */
#psychaura-final-site .pa-person-sheet__main > .pa-figure--diagram {
    width: clamp(9.5rem, 28%, 14rem);
    max-width: var(--pa-float-gutter);
    margin-top: 0.05rem;
}

#psychaura-final-site .pa-person-sheet__main .pa-figure--diagram img {
    max-height: min(210px, 28vh);
}

/* Schéma / model — vlevo pod nadpisem, větší, čitelné */
:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--chart {
    float: none;
    clear: none;
    width: min(100%, 36rem);
    max-width: 100%;
    margin: 0.4rem 0 0.55rem;
    shape-outside: none;
}

:is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--chart img {
        width: 100%;
    max-width: 100%;
    max-height: min(420px, 52vh);
    object-fit: contain;
    object-position: left top;
}

#psychaura-final-site .pa-person-sheet__main .pa-detail-block .pa-figure--chart,
#psychaura-final-site .pa-person-sheet__main .pa-figure--chart {
        width: 100%;
    max-width: calc(58% - 0.5rem);
    margin: 0.35rem 0 0.5rem;
}

@media (max-width: 640px) {
    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--chart {
        clear: both;
        width: min(100%, 36rem);
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-person-sheet__main > .pa-figure--chart:has(img[src*="image70"]) {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0.75rem 0 1rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-person-sheet__main:has(> .pa-figure--chart img[src*="image70"]) > :is(ul, ol, h4, .pa-study-table-wrap, .pa-tip-box, blockquote) {
        max-width: 100%;
    }
}

#psychaura-final-site .pa-person-sheet__main .pa-detail-block > h4 + .pa-figure--diagram,
#psychaura-final-site .pa-person-sheet__main > h4 + .pa-figure--diagram {
    margin-top: 0.15rem;
}

#psychaura-final-site .pa-person-sheet__main .pa-tip-box {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0 0.65rem;
    box-sizing: border-box;
}

#psychaura-final-site .pa-detail-block:has(.pa-figure--diagram) .pa-tip-box {
    max-width: min(28rem, calc(56% - 0.75rem));
    box-sizing: border-box;
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-detail-block:has(.pa-figure--diagram) .pa-tip-box {
    max-width: 100%;
        clear: both;
    }
}

/* Pomůcky — kompaktní, barvy PsychAura (mint / sky / rose) */
#psychaura-final-site .pa-tip-box {
    box-sizing: border-box;
    width: auto;
    max-width: min(100%, 26rem);
    margin: 0.75rem 0;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    clear: none;
    background: color-mix(in srgb, var(--pa-accent-sky) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 42%, var(--reader-rule));
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04);
}

#psychaura-final-site .pa-tip-box.pa-tip-box--brand .pa-tip-box-title {
    color: color-mix(in srgb, var(--pa-accent-mint) 40%, var(--reader-ink));
}

#psychaura-final-site .pa-tip-box-title {
    font-family: var(--pa-font-ui);
    font-size: clamp(0.78rem, 0.72rem + 0.15vw, 0.88rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.4rem;
    color: color-mix(in srgb, var(--pa-accent-sky) 35%, var(--reader-ink));
}

#psychaura-final-site .pa-tip-box p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.58;
}

#psychaura-final-site .pa-tip-box strong {
    color: color-mix(in srgb, var(--pa-accent-rose) 55%, var(--reader-ink));
    font-weight: 800;
}

/* Rozklikávací rozšíření u tématu (study + explain) */
html.pa-page-materialy #psychaura-final-site details.pa-click-expansion,
html.pa-page-materialy #psychaura-final-site details.pa-deep-box,
html.pa-page-materialy #psychaura-final-site details.pa-exam-check--collapse,
html.pa-page-materialy #psychaura-final-site details.pa-okruh-intro {
    overflow-anchor: none;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion {
    margin: 1rem 0 1.25rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 38%, var(--reader-rule, rgba(28, 25, 23, 0.1)));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 10%, #fff);
    line-height: 1.58;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 1rem;
    font-weight: 800;
    font-size: 0.92rem;
    pointer-events: auto;
    user-select: none;
    scroll-margin: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion > summary::-webkit-details-marker {
    display: none;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion > summary::after {
    content: "";
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion[open] > summary::after {
    content: "";
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion > summary strong {
    color: color-mix(in srgb, var(--pa-accent-mint, #2d6a4f) 78%, var(--reader-text, #1c1917));
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion:not([open]) {
    border-style: dashed;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion:not([open]) > summary {
    margin: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion > div {
    padding: 0 1rem 0.85rem;
    font-size: 0.94rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 34%, var(--reader-rule, rgba(28, 25, 23, 0.12)));
    background: #fff;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 10%, transparent);
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel--lead {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 7%, #fff);
    border-style: dashed;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel--trap {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-deep-box__title {
    margin: 0 0 0.5rem;
    padding: 0 0 0.42rem;
    border-top: none;
    border-bottom: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 38%, var(--reader-rule));
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--pa-accent-mint, #2d6a4f) 72%, var(--reader-text, #1c1917));
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-deep-box__title {
    margin-top: 0.15rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-deep-box__title:not(:first-child) {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px dashed color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 35%, var(--reader-rule));
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-card-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-card-grid__item {
    padding: 0.48rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px dashed color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, var(--reader-rule));
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-card-grid__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-card-grid__item:first-child {
    padding-top: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-card-grid__item {
    padding: 0.65rem 0.75rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-versus {
    margin: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-versus {
    margin-bottom: 0.35rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-trap {
    margin: 0.55rem 0 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-trap {
    margin-top: 0.65rem;
    margin-bottom: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel > p {
    margin: 0;
    line-height: 1.55;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-body > p {
    margin: 0.45rem 0 0.55rem;
    line-height: 1.55;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-body > p:first-child {
    margin-top: 0.15rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-expansion-note,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-expansion-lead,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-note,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-lead {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 0.92em;
    line-height: 1.52;
    background: transparent;
    color: inherit;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-note {
    border: 1px dashed color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 40%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 6%, #fff);
    color: var(--reader-muted);
    margin: 0.55rem 0 0.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-lead {
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 35%, var(--reader-rule));
    background: #fff;
    margin: 0.55rem 0 0.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-study-table-wrap,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-expansion-list {
    margin: 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-panel .pa-expansion-list {
    padding-left: 1rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-study-table--compact {
    font-size: 0.88em;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-study-table--compact th,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-study-table--compact td {
    padding: 0.45rem 0.55rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-list {
    margin: 0.4rem 0 0.55rem;
    padding-left: 1.15rem;
    font-size: 0.92em;
    line-height: 1.5;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-list li {
    margin: 0.28rem 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-expansion-list li strong {
    color: var(--reader-text, #1c1917);
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-mini-table,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-study-table-wrap .pa-study-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.35rem 0 0.5rem;
    font-size: 0.88em;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-mini-table th,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-mini-table td,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-study-table-wrap .pa-study-table th,
#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-study-table-wrap .pa-study-table td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--reader-ink, #1c1917) 10%, transparent);
    text-align: left;
    vertical-align: top;
}

#psychaura-final-site .pa-reader-paywall__sections {
    margin: 0;
    padding: clamp(0.95rem, 1.5vw, 1.2rem);
    border-radius: 24px;
    border: 2px solid #221e21;
    background: #fffaf2;
    text-align: left;
    box-shadow: 4px 4px 0 rgba(34, 30, 33, 0.12);
}

#psychaura-final-site .pa-reader-paywall__sections-title {
    margin: 0 0 0.7rem;
    font-family: var(--pa-font-ui);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a85d72;
}

#psychaura-final-site .pa-reader-paywall__sections-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

#psychaura-final-site .pa-reader-paywall__sections-item {
    position: relative;
    padding: 0.62rem 0.8rem;
    border-radius: 16px;
    border: 2px solid #221e21;
    background: #dfe9e4;
    box-shadow: 2px 2px 0 rgba(34, 30, 33, 0.1);
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.42;
    color: #352f33;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#psychaura-final-site .pa-reader-paywall__sections-item:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(34, 30, 33, 0.14);
}

#psychaura-final-site .pa-reader-paywall__sections-item::before {
    content: none;
}

#psychaura-final-site .pa-reader-paywall__sections-name {
    font-weight: 800;
    color: #221e21;
}

#psychaura-final-site .pa-reader-paywall__sections-blurb {
    font-weight: 500;
    color: #352f33;
}

#psychaura-final-site .pa-reader-paywall__sections-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #352f33;
}

#psychaura-final-site .pa-reader-paywall__offers {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

#psychaura-final-site .pa-reader-paywall__offer {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: clamp(0.95rem, 1.5vw, 1.2rem);
    border-radius: 24px;
    border: 2px solid #221e21;
    background: #fffaf2;
    box-shadow: 4px 4px 0 rgba(34, 30, 33, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#psychaura-final-site .pa-reader-paywall__offer:hover {
    transform: translateY(-3px);
    box-shadow: 6px 7px 0 rgba(34, 30, 33, 0.16);
}

#psychaura-final-site .pa-reader-paywall__offer--featured {
    background: #dfe9e4;
}

#psychaura-final-site .pa-reader-paywall__offer--accent {
    background: #a85d72;
    color: #fffaf2;
}

#psychaura-final-site .pa-reader-paywall__offer-badge {
    display: inline-block;
    width: fit-content;
    margin: 0 0 0.15rem;
    padding: 0.28rem 0.62rem;
    border: 2px solid rgba(168, 93, 114, 0.32);
    border-radius: 999px;
    background: #fffaf2;
    font-family: var(--pa-font-ui);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a85d72;
}

#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-badge {
    background: rgba(255, 250, 242, 0.14);
    border-color: rgba(255, 250, 242, 0.35);
    color: #fffaf2;
}

#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-title,
#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-price,
#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-period,
#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-points li {
    color: #fffaf2;
}

#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-eur {
    color: #f8dce7;
}

#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__offer-points li::before {
    background: #fffaf2;
}

#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__btn--ghost {
    background: #fffaf2;
    color: #a85d72;
    border-color: #221e21;
}

#psychaura-final-site .pa-reader-paywall__offer--accent .pa-reader-paywall__btn--ghost:hover {
    background: #f8dce7;
    color: #221e21;
}

#psychaura-final-site .pa-reader-paywall__offer-title {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #221e21;
}

#psychaura-final-site .pa-reader-paywall__offer-price {
    margin: 0.2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    font-family: var(--pa-font-ui);
    font-size: clamp(1.55rem, 1.2rem + 1vw, 1.95rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #221e21;
}

#psychaura-final-site .pa-reader-paywall__offer-eur {
    font-size: 0.48em;
    font-weight: 800;
    color: #a85d72;
}

#psychaura-final-site .pa-reader-paywall__offer-period {
    margin: 0;
    font-family: var(--pa-font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #352f33;
}

#psychaura-final-site .pa-reader-paywall__offer-points {
    margin: 0.45rem 0 0.85rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.28rem;
}

#psychaura-final-site .pa-reader-paywall__offer-points li {
    position: relative;
    padding-left: 0.85rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #352f33;
}

#psychaura-final-site .pa-reader-paywall__offer-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 1px;
    background: #a85d72;
}

#psychaura-final-site .pa-reader-paywall__legal {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #352f33;
}

@media (max-width: 860px) {
    #psychaura-final-site .pa-reader-paywall__grid {
        grid-template-columns: 1fr;
    }
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall {
    background: linear-gradient(165deg, rgba(168, 93, 114, 0.22) 0%, #1f2328 42%, #1a1d22 100%);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__title,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__offer-title,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__offer-price {
    color: #f4efe8;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__text,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__sections-note,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__legal,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__offer-period {
    color: rgba(244, 239, 232, 0.72);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__sections {
    background: rgba(255, 250, 242, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__offer {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__sections-item {
    background: rgba(223, 233, 228, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ebe8e4;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__sections-name {
    color: #f4efe8;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__sections-blurb {
    color: rgba(244, 239, 232, 0.72);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__offer--featured {
    background: rgba(223, 233, 228, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__offer--accent {
    background: rgba(168, 93, 114, 0.42);
    border-color: rgba(255, 250, 242, 0.28);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-reader-paywall__btn--ghost {
    background: transparent;
    color: #f0c4d0;
}

#psychaura-final-site .pa-section-footer {
    margin: 1.1rem 0 1.35rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    clear: both;
    overflow: visible;
    max-height: none;
}

html.pa-page-materialy #psychaura-final-site .pa-topic-block,
html.pa-page-materialy #psychaura-final-site .pa-topic-block__body,
html.pa-page-materialy #psychaura-final-site .pa-section-footer,
html.pa-page-materialy #psychaura-final-site details.pa-exam-check,
html.pa-page-materialy #psychaura-final-site .pa-reader__article,
html.pa-page-materialy #psychaura-final-site .pa-study-rich,
html.pa-page-materialy #psychaura-final-site .pa-study-section {
    overflow: visible !important;
    max-height: none !important;
}

#psychaura-final-site .pa-section-footer > .pa-exam-check {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse {
    margin: 1rem 0 1.25rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--reader-ink, #1c1917) 12%, var(--reader-rule, rgba(28, 25, 23, 0.1)));
    background: color-mix(in srgb, var(--pa-bg-subtle, #f3eee8) 72%, #fff);
    line-height: 1.58;
    clear: both;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse:not([open]) {
    border-style: dashed;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 1rem;
    font-weight: 800;
    font-size: 0.92rem;
    pointer-events: auto;
    user-select: none;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse > summary::-webkit-details-marker {
    display: none;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse > summary::before {
    content: '▸ ';
    opacity: 0.55;
    font-size: 0.9em;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse[open] > summary::before {
    content: '▾ ';
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse > summary strong {
    color: var(--reader-ink, #1c1917);
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse > .pa-exam-check__body {
    padding: 0 1rem 0.85rem;
    font-size: 0.94rem;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse .pa-exam-check__subtitle {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse ul {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse li + li {
    margin-top: 0.35rem;
}

#psychaura-final-site details.pa-exam-check.pa-exam-check--collapse .pa-exam-check__body > p {
    margin: 0.65rem 0 0;
    line-height: 1.55;
}

#psychaura-final-site .pa-section-footer > details.pa-exam-check.pa-exam-check--collapse {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

#psychaura-final-site .pa-section-footer > details.pa-deep-box.pa-click-expansion {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

#psychaura-final-site .pa-person-sheet__main > details.pa-deep-box.pa-click-expansion {
    margin-top: 0.65rem;
    margin-bottom: 0.15rem;
    clear: both;
    width: 100%;
}

#psychaura-final-site .pa-person-sheet__main > .pa-tip-box + details.pa-deep-box.pa-click-expansion {
    margin-top: 1rem;
    margin-bottom: 0;
}

#psychaura-final-site .pa-exam-check + details.pa-deep-box.pa-click-expansion {
    margin-top: 0.85rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-add {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 32%, var(--reader-rule, rgba(28, 25, 23, 0.1)));
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-add > summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.15rem 0;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-add > summary::-webkit-details-marker {
    display: none;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-list {
    margin-top: 0.55rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-list li {
    margin: 0.55rem 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-q {
    margin: 0 0 0.2rem;
}

#psychaura-final-site details.pa-deep-box.pa-click-expansion .pa-coverage-e {
    margin: 0;
    font-size: 0.92em;
    opacity: 0.92;
}

#psychaura-final-site .pa-study-section > h2 {
    clear: both;
}

/* Postupné čtení podle podkapitol (8.1, 8.2, …) */
#psychaura-final-site .pa-study-section {
    margin: 0;
    padding: 0;
}

#psychaura-final-site .pa-study-section--locked {
    display: none !important;
}

#psychaura-final-site .pa-study-section__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.85rem 0 0.15rem;
    padding: 0.65rem 0 0.1rem;
    border-top: 1px solid var(--reader-rule);
    clear: both;
}

#psychaura-final-site .pa-study-section__nav:has(.pa-study-continue-btn--next):not(:has(.pa-study-continue-btn--back)) {
    justify-content: flex-end;
}

#psychaura-final-site .pa-study-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.72rem 1.15rem;
    font-family: var(--pa-font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--reader-ink);
    background: #fff;
    border: 1px solid var(--reader-rule);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(28, 25, 23, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

#psychaura-final-site .pa-study-continue-btn:hover {
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.08);
}

#psychaura-final-site .pa-study-continue-btn--back {
    color: color-mix(in srgb, var(--pa-accent-sky, #7eb8d4) 75%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-sky, #b8d9eb) 28%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-sky, #7eb8d4) 38%, var(--pa-login-fill, #dfe9e4) 42%);
}

#psychaura-final-site .pa-study-continue-btn--back:hover {
    background: color-mix(in srgb, var(--pa-accent-sky, #b8d9eb) 42%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-sky, #7eb8d4) 48%, var(--pa-login-fill, #dfe9e4) 50%);
}

#psychaura-final-site .pa-study-continue-btn--next {
    margin-left: auto;
    color: color-mix(in srgb, var(--pa-plus-burgundy, #a85d72) 70%, var(--reader-ink));
    background: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 26%, #fff);
    border-color: color-mix(in srgb, var(--pa-plus-burgundy, #a85d72) 32%, var(--pa-accent-rose) 48%);
}

#psychaura-final-site .pa-study-continue-btn--next:hover {
    background: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 40%, #fff);
    border-color: color-mix(in srgb, var(--pa-plus-burgundy, #a85d72) 42%, var(--pa-accent-rose) 55%);
}

#psychaura-final-site .pa-study-continue-btn--okruh {
    font-weight: 800;
}

#psychaura-final-site .pa-study-continue-btn--hint {
    animation: pa-continue-pulse 0.55s ease-in-out 2;
}

@keyframes pa-continue-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pa-accent-rose) 45%, transparent); }
}

/* Postupné čtení — jedna spodní lišta (← / →), žádné duplicitní tlačítka v textu */
#psychaura-final-site .pa-study-rich--progressive .pa-study-section__nav,
#psychaura-final-site .pa-study-section__nav--chapter-end {
    display: none !important;
}

body.pa-reader-site-mode--library #psychaura-final-site .pa-mobile-section-nav,
body.pa-reader-site-mode--main #psychaura-final-site .pa-mobile-section-nav,
#psychaura-final-site .pa-reader__article--material ~ .pa-mobile-section-nav,
#psychaura-final-site .pa-reader__article--pdf ~ .pa-mobile-section-nav {
    display: none !important;
}

body.pa-reader-site-mode--library #psychaura-final-site .pa-reader__pager,
body.pa-reader-site-mode--main #psychaura-final-site .pa-reader__pager,
#psychaura-final-site .pa-reader__article--material ~ .pa-reader__pager,
#psychaura-final-site .pa-reader__article--pdf ~ .pa-reader__pager {
    display: none !important;
}

html.pa-section-nav-visible #psychaura-final-site .pa-reader__pager,
#psychaura-final-site .pa-reader__article:has(.pa-study-rich--progressive) + .pa-reader__pager {
    display: none !important;
}

/* Navigace podkapitol — pod článkem (ne uvnitř), ať ji nepřekryje ink */
#psychaura-final-site .pa-mobile-section-nav {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 40;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    max-width: none;
    margin: 0.65rem 0 0;
    padding: 0.55rem clamp(0.65rem, 3vw, 1rem);
    box-sizing: border-box;
    border: 2px solid #221e21;
    background: #fffcf8;
    box-shadow: 3px 3px 0 #221e21;
    border-radius: 14px;
    pointer-events: auto;
    touch-action: manipulation;
}

/* Těsně u spodku karty — rezervu pro dock dej mimo bílou plochu */
html.pa-section-nav-visible #psychaura-final-site .pa-mobile-section-nav {
    margin-bottom: 0.25rem;
}

html.pa-section-nav-visible #psychaura-final-site .pa-reader__body {
    padding-bottom: 0.25rem;
}

html.pa-section-nav-visible #psychaura-final-site .pa-reader__article {
    padding-bottom: 0.35rem;
}

/* Místo pro plovoucí Nástroje — pod navigací, ne dvojitá bílá mezera */
html.pa-section-nav-visible #psychaura-final-site .pa-reader {
    padding-bottom: 0;
}

html.pa-section-nav-visible body.pa-study-dock-hidden #psychaura-final-site .pa-reader {
    padding-bottom: 0;
}

#psychaura-final-site .pa-mobile-section-nav[hidden] {
    display: none !important;
}

#psychaura-final-site .pa-mobile-section-nav__btn {
    flex: 1 1 42%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.85rem;
    padding: 0.55rem 0.7rem;
    border: 2px solid #221e21;
    border-radius: 12px;
    background: #fff;
    font-family: var(--pa-font-ui);
    font-size: 0.84rem;
    font-weight: 800;
    color: #221e21;
    cursor: pointer;
    box-shadow: 2px 2px 0 #221e21;
    pointer-events: auto;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
}

#psychaura-final-site .pa-mobile-section-nav__btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

#psychaura-final-site .pa-mobile-section-nav__btn--prev:not(:disabled) {
    background: #dfe9e4;
    border-color: #221e21;
    color: #221e21;
}

#psychaura-final-site .pa-mobile-section-nav__btn--next:not(:disabled) {
    background: #dfe9e4;
    border-color: #221e21;
    color: #221e21;
}

#psychaura-final-site .pa-mobile-section-nav__btn--okruh:not(:disabled) {
    background: #a85d72;
    border-color: #221e21;
    color: #fdf8fa;
}

#psychaura-final-site .pa-mobile-section-nav__pos {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 0.25rem;
    font-family: var(--pa-font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pa-ink, #221e21);
    white-space: nowrap;
}

#psychaura-final-site .pa-mobile-section-nav__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 11rem;
}

#psychaura-final-site .pa-mobile-section-nav__icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
}

@media (min-width: 721px) {
    #psychaura-final-site .pa-mobile-section-nav__label {
        max-width: 14rem;
    }
}

/* Pager */
#psychaura-final-site .pa-reader__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: 1.25rem 0 0;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

#psychaura-final-site .pa-reader__pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--pa-font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--reader-ink);
    background: #fff;
    border: 1px solid var(--reader-rule);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

#psychaura-final-site .pa-reader__pager-label {
    white-space: nowrap;
}

#psychaura-final-site .pa-reader__pager-icon {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pa-accent-mint) 16%, #fff);
    border: 1px solid color-mix(in srgb, var(--pa-accent-mint) 34%, var(--reader-rule));
    color: color-mix(in srgb, var(--pa-accent-mint) 54%, var(--reader-ink));
    font-size: 0.98rem;
    line-height: 1;
    flex: 0 0 auto;
}

#psychaura-final-site #pager-prev {
    background: color-mix(in srgb, var(--pa-accent-sky) 12%, #fff);
}

#psychaura-final-site #pager-next {
    background: color-mix(in srgb, var(--pa-accent-rose) 12%, #fff);
}

#psychaura-final-site #pager-prev .pa-reader__pager-icon {
    background: color-mix(in srgb, var(--pa-accent-sky) 18%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-sky) 42%, var(--reader-rule));
    color: color-mix(in srgb, var(--pa-accent-sky) 62%, var(--reader-ink));
}

#psychaura-final-site #pager-next .pa-reader__pager-icon {
    background: color-mix(in srgb, var(--pa-accent-rose) 18%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-rose) 42%, var(--reader-rule));
    color: color-mix(in srgb, var(--pa-accent-rose) 68%, var(--reader-ink));
}

#psychaura-final-site .pa-reader__pager-btn:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, var(--reader-rule));
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
}

#psychaura-final-site .pa-reader__pager-btn:hover:not(:disabled) .pa-reader__pager-icon {
    background: color-mix(in srgb, var(--pa-accent-mint) 24%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-mint) 48%, var(--reader-rule));
}

#psychaura-final-site .pa-reader__pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#psychaura-final-site .pa-reader__pager-pos {
    font-family: var(--pa-font-ui);
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--reader-muted);
}

/* Reading modes */
body.reader-mode-normal #psychaura-final-site .pa-study-rich {
    --reader-body: 1.125rem;
    --reader-lh: 1.78;
    --reader-gap: 0.85rem;
}

body.reader-mode-comfortable #psychaura-final-site .pa-study-rich {
    --reader-body: 1.2rem;
    --reader-lh: 1.85;
    --reader-gap: 1rem;
}

body.reader-mode-compact #psychaura-final-site .pa-study-rich {
    --reader-body: 1.02rem;
    --reader-lh: 1.68;
    --reader-gap: 0.7rem;
}

/* Zen */
body.zen-mode #psychaura-final-site .pa-reader__pager {
    display: none !important;
}

#psychaura-final-site .pa-error-state {
    padding: 2rem;
    text-align: center;
    font-family: var(--pa-font-ui);
    color: var(--reader-muted);
}

/* Dark */
body.dark-mode #psychaura-final-site .pa-reader__chrome {
    background: #1e1c20;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter {
    background: #dfe9e4;
    color: #221e21;
    border-color: color-mix(in srgb, #dfe9e4 70%, #221e21);
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter__n,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter__n {
    color: color-mix(in srgb, #221e21 62%, #6b6560);
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter__t {
    color: #221e21;
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter:hover:not(.is-active):not([aria-selected="true"]),
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter:hover:not(.is-active):not([aria-selected="true"]),
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter:focus-visible:not(.is-active):not([aria-selected="true"]),
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter:focus-visible:not(.is-active):not([aria-selected="true"]) {
    background: #cddfd4;
    border-color: #221e21;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-active:not(.is-locked),
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter[aria-selected="true"]:not(.is-locked),
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-active:not(.is-locked),
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter[aria-selected="true"]:not(.is-locked) {
    background: #a85d72;
    border: 2px solid #fdf8fa;
    color: #fdf8fa;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__n,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__n,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__t,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__n,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__n,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-active:not(.is-locked) .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter[aria-selected="true"]:not(.is-locked) .pa-reader-chapter__t {
    color: #fdf8fa;
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked.is-active,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked[aria-selected="true"],
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked.is-active,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed color-mix(in srgb, #a85d72 45%, #fdf8fa);
    color: #f5f0ea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__n,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__n,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__t,
body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__n,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__n,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked.is-active .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked[aria-selected="true"] .pa-reader-chapter__t {
    color: #f5f0ea;
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked:not(.is-active),
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked:not(.is-active) {
    background: rgba(255, 255, 255, 0.05);
    color: #9a948d;
}

body.dark-mode #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked:not(.is-active) .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__chapters .pa-reader-chapter.is-locked:not(.is-active) .pa-reader-chapter__t {
    color: #9a948d;
}

body.dark-mode #psychaura-final-site .pa-reader-chapter__lock-icon,
html.pa-dark-pending #psychaura-final-site .pa-reader-chapter__lock-icon {
    fill: #bdb7b0;
}

body.dark-mode #psychaura-final-site .pa-reader__article {
    background: #2a272b;
    color: #ebe8e4;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-group__title,
body.dark-mode #psychaura-final-site .pa-reader-doc-link,
body.dark-mode #psychaura-final-site .pa-reader__progress,
body.dark-mode #psychaura-final-site .pa-reader__library-summary-title,
body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__eyebrow,
body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__status,
body.dark-mode #psychaura-final-site .pa-reader-pdf-page__meta,
body.dark-mode #psychaura-final-site .pa-reader-pdf-page__placeholder,
body.dark-mode #psychaura-final-site .pa-reader__format-pill {
    color: #bdb7b0;
}

body.dark-mode #psychaura-final-site .pa-reader__library {
    background: rgba(32, 29, 34, 0.92);
    border-color: color-mix(in srgb, var(--pa-accent-mint) 45%, rgba(255, 255, 255, 0.22));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.dark-mode #psychaura-final-site .pa-reader__library-toggle,
body.dark-mode #psychaura-final-site .pa-reader__library-title {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader__library-count {
    color: #1c1917;
    background: #fff;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, #f5f2ef 30%);
}

body.dark-mode #psychaura-final-site .pa-reader-annotator {
    background: rgba(40, 36, 42, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-hero-tools-tip {
    background: rgba(38, 47, 43, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    color: #bdb7b0;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__sheet,
body.dark-mode #reader-study-dock .pa-reader-study-dock__bar,
body.dark-mode #reader-study-dock-tab {
    background: rgba(38, 34, 40, 0.97);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    color: #f5f2ef;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__status {
    background: rgba(38, 34, 40, 0.97);
    border-color: rgba(255, 255, 255, 0.14);
    color: #bdb7b0;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__help-list,
body.dark-mode #reader-study-dock .pa-reader-study-dock__help-note {
    color: #e8e4df;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__help-h {
    color: #bdb7b0;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__help-list kbd {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f5f2ef;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f2ef;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__color {
    border-color: rgba(255, 255, 255, 0.16);
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__menu-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f2ef;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__menu-btn--ghost {
    background: transparent;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__sheet-title,
body.dark-mode #reader-study-dock .pa-reader-study-dock__palette-label {
    color: #f5f2ef;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__palette-edit {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #bdb7b0;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__palette-input {
    background: transparent;
}

body.dark-mode #reader-study-dock .pa-reader-study-dock__palette-swatch {
    border-color: rgba(255, 255, 255, 0.16);
}

body.dark-mode #psychaura-final-site .pa-reader-search {
    background: rgba(34, 37, 44, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-search__title {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-search__input,
body.dark-mode #psychaura-final-site .pa-reader-search__btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-search__btn:hover,
body.dark-mode #psychaura-final-site .pa-reader-search__btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-search__btn--ghost {
    background: transparent;
}

body.dark-mode #psychaura-final-site .pa-reader-search__status[data-tone="success"] {
    color: #85bfa3;
}

body.dark-mode #psychaura-final-site .pa-reader-search__status[data-tone="error"] {
    color: #f9a8c4;
}

body.dark-mode #psychaura-final-site .pa-reader-annotator__title {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-annotator__btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-annotator__btn:hover,
body.dark-mode #psychaura-final-site .pa-reader-annotator__btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-annotator__btn--ghost {
    background: transparent;
}

body.dark-mode #psychaura-final-site .pa-reader-annotator__status[data-tone="success"] {
    color: #85bfa3;
}

body.dark-mode #psychaura-final-site .pa-reader-annotator__status[data-tone="error"] {
    color: #f9a8c4;
}

body.dark-mode #psychaura-final-site .pa-reader-tool,
html.pa-dark-pending #psychaura-final-site .pa-reader-tool {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(40, 36, 42, 0.94);
}

body.dark-mode #psychaura-final-site .pa-reader-tool__summary,
html.pa-dark-pending #psychaura-final-site .pa-reader-tool__summary {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-tool__summary::after,
html.pa-dark-pending #psychaura-final-site .pa-reader-tool__summary::after {
    color: #bdb7b0;
}

body.dark-mode #psychaura-final-site .pa-reader-tool__body .pa-reader-search,
body.dark-mode #psychaura-final-site .pa-reader-tool__body .pa-reader-annotator,
html.pa-dark-pending #psychaura-final-site .pa-reader-tool__body .pa-reader-search,
html.pa-dark-pending #psychaura-final-site .pa-reader-tool__body .pa-reader-annotator {
    background: transparent;
}

html.pa-dark-pending #psychaura-final-site {
    --reader-paper: #252229;
    --reader-ink: #ebe8e4;
    --reader-muted: #c7c0b8;
    --reader-rule: rgba(255, 255, 255, 0.12);
    --reader-chrome-bg: rgba(30, 28, 32, 0.92);
}

html.pa-dark-pending #psychaura-final-site .pa-reader__chrome,
html.pa-dark-pending #psychaura-final-site .pa-reader__library,
html.pa-dark-pending #psychaura-final-site .pa-reader__article {
    background: #1e1c20;
    color: #ebe8e4;
    border-color: rgba(255, 255, 255, 0.1);
}

html.pa-dark-pending #content-display {
    color: #ebe8e4;
}

body.dark-mode #content-display {
    color: var(--reader-ink);
}

body.dark-mode #psychaura-final-site mark.pa-search-hit,
body.dark-mode #psychaura-final-site .pa-search-hit {
    background-color: color-mix(in srgb, var(--pa-accent-sky) 28%, transparent);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site mark.pa-search-hit.is-active,
body.dark-mode #psychaura-final-site .pa-search-hit.is-active {
    background-color: rgba(125, 188, 164, 0.34);
    color: #f5f2ef;
    box-shadow: 0 0 0 1px rgba(125, 188, 164, 0.42);
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__title,
body.dark-mode #psychaura-final-site .pa-reader__format-pill--pdf {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader__format-switch {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader__format-pill.is-active {
    color: #f5f2ef;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-reader__library-panel,
body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__bar {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link:hover,
body.dark-mode #psychaura-final-site .pa-reader-doc-link:focus-visible {
    color: #f5f2ef;
    background: rgba(255, 255, 255, 0.07);
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__zoom {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__zoom-btn:hover,
body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__zoom-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link {
    background: rgba(42, 39, 46, 0.98);
    border-color: color-mix(in srgb, var(--pa-accent-mint) 32%, rgba(255, 255, 255, 0.14));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__preview {
    background: #2a272b;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__thumb {
    opacity: 0.94;
    filter: brightness(0.96) contrast(1.04);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link .pa-reader-chapter__t {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link .pa-reader-chapter__n {
    color: #bdb7b0;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__body {
    background: linear-gradient(180deg, rgba(42, 39, 46, 0.98) 0%, rgba(36, 33, 38, 0.98) 100%);
}

body.dark-mode #psychaura-final-site .pa-reader__library .pa-reader-doc-group__title {
    color: #f5f2ef;
    background: color-mix(in srgb, var(--pa-accent-mint) 14%, transparent);
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__title {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__track,
html.pa-dark-pending #psychaura-final-site .pa-reader-mode-nav__track {
    --pa-reader-mode-track: #dfe9e4;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__eyebrow,
html.pa-dark-pending #psychaura-final-site .pa-reader-mode-nav__eyebrow {
    color: color-mix(in srgb, #221e21 62%, #6b6560);
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn:hover:not(.is-active),
html.pa-dark-pending #psychaura-final-site .pa-reader-mode-nav__btn:hover:not(.is-active) {
    background: #cddfd4;
    border-color: var(--pa-ink, #221e21);
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--pa-ink, #221e21);
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn {
    background: #dfe9e4;
    border-color: var(--pa-ink, #221e21);
    box-shadow: 4px 4px 0 var(--pa-ink, #221e21);
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__label {
    color: #221e21;
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn.is-active,
body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn--featured.is-active,
body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn--featured.is-featured-active {
    background: #dfe9e4;
    border-color: var(--pa-ink, #221e21);
    transform: translateY(-1px);
    box-shadow: 6px 6px 0 var(--pa-ink, #221e21);
}

body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn.is-active .pa-reader-mode-nav__label,
body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn--featured.is-active .pa-reader-mode-nav__label,
body.dark-mode #psychaura-final-site .pa-reader-mode-nav__btn--featured.is-featured-active .pa-reader-mode-nav__label {
    color: #221e21;
}

body.dark-mode #psychaura-final-site .pa-reader-chrome-callout--chapters {
    background: color-mix(in srgb, var(--pa-accent-mint) 14%, rgba(255, 255, 255, 0.05));
    border-color: color-mix(in srgb, var(--pa-accent-mint) 35%, rgba(255, 255, 255, 0.12));
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-resume {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pa-accent-mint) 18%, rgba(255, 255, 255, 0.06)) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: color-mix(in srgb, var(--pa-accent-mint) 38%, rgba(255, 255, 255, 0.12));
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-reader-resume__eyebrow {
    color: color-mix(in srgb, var(--pa-accent-mint) 72%, #f5f2ef);
}

body.dark-mode #psychaura-final-site .pa-reader-resume__title {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-resume__start {
    border-color: rgba(255, 255, 255, 0.18);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-mode-hint,
html.pa-dark-pending #psychaura-final-site .pa-reader-mode-hint {
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, rgba(255, 255, 255, 0.04));
    border-color: color-mix(in srgb, var(--pa-accent-mint) 35%, rgba(255, 255, 255, 0.12));
}

body.dark-mode #psychaura-final-site .pa-reader-mode-hint__title,
body.dark-mode #psychaura-final-site .pa-reader-mode-hint__text,
html.pa-dark-pending #psychaura-final-site .pa-reader-mode-hint__title,
html.pa-dark-pending #psychaura-final-site .pa-reader-mode-hint__text {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-download-strip,
html.pa-dark-pending #psychaura-final-site .pa-reader-download-strip {
    background: color-mix(in srgb, var(--pa-accent-mint) 14%, rgba(255, 255, 255, 0.05));
    border-color: color-mix(in srgb, var(--pa-accent-mint) 35%, rgba(255, 255, 255, 0.12));
}

body.dark-mode #psychaura-final-site .pa-reader-download-strip__lead,
html.pa-dark-pending #psychaura-final-site .pa-reader-download-strip__lead {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-download-strip__btn,
html.pa-dark-pending #psychaura-final-site .pa-reader-download-strip__btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-download-strip__btn--primary,
html.pa-dark-pending #psychaura-final-site .pa-reader-download-strip__btn--primary {
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, rgba(255, 255, 255, 0.18));
    background: color-mix(in srgb, var(--pa-accent-mint) 22%, rgba(255, 255, 255, 0.08));
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-download-strip__btn--cta,
html.pa-dark-pending #psychaura-final-site .pa-reader-download-strip__btn--cta {
    border-color: color-mix(in srgb, var(--pa-accent-rose, #a85d72) 45%, rgba(255, 255, 255, 0.18));
    background: color-mix(in srgb, var(--pa-accent-rose, #a85d72) 18%, rgba(255, 255, 255, 0.06));
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-download-strip__btn:hover,
html.pa-dark-pending #psychaura-final-site .pa-reader-download-strip__btn:hover {
    background: color-mix(in srgb, var(--pa-accent-mint) 24%, rgba(255, 255, 255, 0.1));
    color: #fff;
}

body.dark-mode #psychaura-final-site .pa-reader-main-download-banner,
html.pa-dark-pending #psychaura-final-site .pa-reader-main-download-banner {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pa-plus-burgundy) 16%, rgba(255, 255, 255, 0.06)) 0%,
        rgba(255, 255, 255, 0.04) 72%
    );
    border-color: color-mix(in srgb, var(--pa-plus-burgundy) 38%, rgba(255, 255, 255, 0.14));
}

body.dark-mode #psychaura-final-site .pa-reader-main-download-banner__text strong,
html.pa-dark-pending #psychaura-final-site .pa-reader-main-download-banner__text strong {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-main-download-banner__text span,
html.pa-dark-pending #psychaura-final-site .pa-reader-main-download-banner__text span {
    color: var(--reader-muted);
}

body.dark-mode #psychaura-final-site .pa-reader-library-hint,
html.pa-dark-pending #psychaura-final-site .pa-reader-library-hint {
    background: color-mix(in srgb, var(--pa-accent-mint) 14%, rgba(255, 255, 255, 0.05));
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-chrome-callout--library,
html.pa-dark-pending #psychaura-final-site .pa-reader-chrome-callout--library {
    background: color-mix(in srgb, var(--pa-bg-subtle) 40%, rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.14);
    color: #f5f2ef;
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-reader-chrome-callout--library::before,
html.pa-dark-pending #psychaura-final-site .pa-reader-chrome-callout--library::before {
    content: none;
}

@media (max-width: 720px) {
    #psychaura-final-site .pa-reader-mode-nav__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.28rem;
        padding: 0.28rem;
    }

    #psychaura-final-site .pa-reader-mode-nav__btn {
        min-height: 2.65rem;
        align-items: center;
        text-align: center;
        padding: 0.35rem 0.28rem;
    }

    #psychaura-final-site .pa-reader-mode-nav__eyebrow {
        display: none;
    }

    #psychaura-final-site .pa-reader-mode-nav__label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__lock {
    background: rgba(42, 39, 46, 0.96);
    border-color: color-mix(in srgb, var(--pa-accent-rose) 45%, rgba(255, 255, 255, 0.2));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__lock-svg {
    fill: #e8b4c0;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__lock-label {
    color: #e8b4c0;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link--card {
    background: rgba(38, 35, 40, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__preview {
    background: #2a272b;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__body {
    background: linear-gradient(180deg, transparent 0%, rgba(38, 35, 40, 0.94) 38%, rgba(30, 28, 32, 0.98) 100%);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link--card .pa-reader-chapter__t {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link--card .pa-reader-chapter__sub {
    color: rgba(245, 242, 239, 0.68);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link.is-locked .pa-reader-doc-card__preview::after {
    background: linear-gradient(
        180deg,
        rgba(107, 45, 60, 0.12) 0%,
        rgba(0, 0, 0, 0.22) 100%
    );
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link.is-locked .pa-reader-doc-card__thumb {
    filter: brightness(0.88) saturate(0.9);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card {
    background: rgba(38, 35, 40, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.dark-mode #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-group__title,
body.dark-mode #psychaura-final-site #reader-library-list .pa-reader-doc-group__title,
html.pa-dark-pending #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-group__title,
html.pa-dark-pending #psychaura-final-site #reader-library-list .pa-reader-doc-group__title {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__actions,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card__actions {
    border-top-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__btn,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card__btn {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__btn--open,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card__btn--open {
    border-right-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__btn--download,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card__btn--download {
    background: color-mix(in srgb, var(--pa-accent-mint) 28%, rgba(255, 255, 255, 0.1));
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__btn:hover:not(:disabled),
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card__btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--pa-accent-mint) 42%, rgba(255, 255, 255, 0.14));
    color: #fff;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card.is-locked .pa-reader-doc-card__btn--download,
body.dark-mode #psychaura-final-site .pa-reader-doc-card.is-locked .pa-reader-doc-card__btn--open,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card.is-locked .pa-reader-doc-card__btn--download,
html.pa-dark-pending #psychaura-final-site .pa-reader-doc-card.is-locked .pa-reader-doc-card__btn--open {
    opacity: 0.78;
    color: rgba(245, 242, 239, 0.72);
}

body.dark-mode #psychaura-final-site .pa-material-reader__btn.is-download {
    background: color-mix(in srgb, var(--pa-accent-mint) 18%, rgba(255, 255, 255, 0.06));
    border-color: color-mix(in srgb, var(--pa-accent-mint) 40%, rgba(255, 255, 255, 0.14));
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-card__preview--fallback::before {
    color: rgba(245, 242, 239, 0.45);
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link .pa-reader-chapter__n {
    color: #bdb7b0;
}

body.dark-mode #psychaura-final-site .pa-reader-doc-link.is-unavailable,
body.dark-mode #psychaura-final-site .pa-reader-doc-link.is-unavailable:disabled {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #7a746e;
}

body.dark-mode #psychaura-final-site .pa-reader__library .pa-reader-chapter.is-locked:not(.is-active),
html.pa-dark-pending #psychaura-final-site .pa-reader__library .pa-reader-chapter.is-locked:not(.is-active) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode #psychaura-final-site .pa-reader__library .pa-reader-chapter.is-locked:not(.is-active) .pa-reader-chapter__t,
html.pa-dark-pending #psychaura-final-site .pa-reader__library .pa-reader-chapter.is-locked:not(.is-active) .pa-reader-chapter__t {
    color: #9a948d;
}

body.dark-mode #psychaura-final-site .pa-reader__library-count {
    background: #fff;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 50%, #f5f2ef 30%);
    color: #1c1917;
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__btn.is-download {
    background: #5f4d88 !important;
    border-color: #7d6ca3 !important;
    color: #fdf8fa !important;
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__btn.is-download:hover {
    background: #6c5a97 !important;
    border-color: #8a79b3 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-viewer__frame-wrap {
    background: #1f1b22;
}

body.dark-mode #psychaura-final-site .pa-reader-pdf-page__surface {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-material-reader {
    background: rgba(30, 28, 32, 0.98);
    border-color: color-mix(in srgb, var(--pa-accent-mint) 28%, rgba(255, 255, 255, 0.12));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

body.dark-mode #psychaura-final-site .pa-material-reader__head {
    background: linear-gradient(180deg, rgba(125, 188, 164, 0.1) 0%, rgba(30, 28, 32, 0.98) 72%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-material-reader__title,
body.dark-mode #psychaura-final-site .pa-material-reader__kicker {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-material-reader__status {
    color: color-mix(in srgb, var(--pa-accent-mint) 65%, #c7c0b8);
}

body.dark-mode #psychaura-final-site .pa-material-reader__body {
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(125, 188, 164, 0.08), transparent 55%),
        #1f1b22;
}

body.dark-mode #psychaura-final-site .pa-material-reader__zoom,
body.dark-mode #psychaura-final-site .pa-material-reader__btn,
body.dark-mode #psychaura-final-site .pa-material-reader__menu-trigger {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-material-reader__btn.is-primary {
    background: color-mix(in srgb, var(--pa-accent-mint) 22%, rgba(255, 255, 255, 0.06));
    border-color: color-mix(in srgb, var(--pa-accent-mint) 45%, rgba(255, 255, 255, 0.14));
}

body.dark-mode #psychaura-final-site .pa-material-reader__menu-panel {
    background: rgba(37, 34, 40, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

body.dark-mode #psychaura-final-site .pa-material-reader__menu-link {
    color: #f5f2ef;
}

body.dark-mode #psychaura-final-site .pa-material-reader__menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader__article--material {
    background: transparent;
}

body.dark-mode #psychaura-final-site .pa-reader__progress {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-reader__format-pill--pdf:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body.dark-mode #psychaura-final-site .pa-study-rich,
body.dark-mode #psychaura-final-site .pa-doc-title {
    color: #ebe8e4;
}

body.dark-mode #psychaura-final-site {
    --reader-paper: #252229;
    --reader-ink: #ebe8e4;
    --reader-muted: #c7c0b8;
    --reader-rule: rgba(255, 255, 255, 0.12);
    --reader-chrome-bg: rgba(30, 28, 32, 0.92);
    --pa-materialy-dark-surface: #2b2830;
    --pa-materialy-dark-surface-soft: #26232a;
    --pa-materialy-dark-surface-mint: #253029;
    --pa-materialy-dark-surface-sky: #28313a;
    --pa-materialy-dark-surface-rose: #33262f;
}

body.dark-mode #psychaura-final-site .pa-reader__brand,
body.dark-mode #psychaura-final-site .pa-reader__label,
body.dark-mode #psychaura-final-site .pa-reader__sub-label,
body.dark-mode #psychaura-final-site .pa-doc-meta,
body.dark-mode #psychaura-final-site .pa-reader-search__hint,
body.dark-mode #psychaura-final-site .pa-reader-search__status,
body.dark-mode #psychaura-final-site .pa-reader-annotator__hint,
body.dark-mode #psychaura-final-site .pa-reader-annotator__status,
body.dark-mode #psychaura-final-site .pa-figcaption-trigger,
body.dark-mode #psychaura-final-site .pa-figcaption-detail a {
    color: var(--reader-muted);
}

body.dark-mode #psychaura-final-site .pa-toc-pill {
    color: var(--reader-muted);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode #psychaura-final-site .pa-toc-pill:hover,
body.dark-mode #psychaura-final-site .pa-toc-pill.is-active {
    color: var(--reader-ink);
    background: rgba(255, 255, 255, 0.11);
    border-color: color-mix(in srgb, var(--pa-accent-rose) 42%, rgba(255, 255, 255, 0.16));
}

body.dark-mode #psychaura-final-site .pa-study-rich h3.pa-h3--topic,
body.dark-mode #psychaura-final-site .pa-study-section h3.pa-h3--topic,
body.dark-mode #psychaura-final-site .pa-study-rich h3:not(.pa-h3--person):not(.pa-h3--topic),
body.dark-mode #psychaura-final-site .pa-study-rich h4,
body.dark-mode #psychaura-final-site .pa-person-sheet__main h4 {
    color: var(--reader-ink);
}

body.dark-mode #psychaura-final-site .pa-study-rich h3.pa-h3--topic,
body.dark-mode #psychaura-final-site .pa-study-section h3.pa-h3--topic {
    background: rgba(79, 99, 87, 0.34);
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 72%, rgba(255, 255, 255, 0.18));
}

body.dark-mode #psychaura-final-site .pa-study-rich h3:not(.pa-h3--person):not(.pa-h3--topic) {
    background: rgba(70, 84, 76, 0.28);
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 62%, rgba(255, 255, 255, 0.18));
}

body.dark-mode #psychaura-final-site .pa-study-rich h4::before,
body.dark-mode #psychaura-final-site .pa-person-sheet__main h4::before {
    background: color-mix(in srgb, var(--pa-accent-sky) 64%, rgba(255, 255, 255, 0.16));
}

body.dark-mode #psychaura-final-site .pa-study-rich h4,
body.dark-mode #psychaura-final-site .pa-person-sheet__main h4 {
    color: color-mix(in srgb, var(--pa-accent-sky) 56%, #f3f6fb);
}

body.dark-mode #psychaura-final-site .pa-study-lead,
body.dark-mode #psychaura-final-site .pa-okruh-intro__panel,
body.dark-mode #psychaura-final-site .pa-tip-box,
body.dark-mode #psychaura-final-site .pa-flow-steps,
body.dark-mode #psychaura-final-site .pa-process-line,
body.dark-mode #psychaura-final-site .pa-dash-map,
body.dark-mode #psychaura-final-site .pa-stage-map,
body.dark-mode #psychaura-final-site .pa-card-grid__item,
body.dark-mode #psychaura-final-site .pa-versus__col,
body.dark-mode #psychaura-final-site .pa-link-chain__item,
body.dark-mode #psychaura-final-site .pa-figcaption-detail,
body.dark-mode #psychaura-final-site .pa-process-line__step,
body.dark-mode #psychaura-final-site .pa-dash-map__hub,
body.dark-mode #psychaura-final-site .pa-dash-map__node,
body.dark-mode #psychaura-final-site .pa-stage-map__media,
body.dark-mode #psychaura-final-site .pa-stage-map__badge,
body.dark-mode #psychaura-final-site .pa-stage-map__node,
body.dark-mode #psychaura-final-site .pa-badge {
    color: var(--reader-ink);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-study-lead,
body.dark-mode #psychaura-final-site .pa-okruh-intro__panel,
body.dark-mode #psychaura-final-site .pa-tip-box {
    background: rgba(42, 48, 54, 0.92);
}

body.dark-mode #psychaura-final-site .pa-study-rich .pa-s23 {
    background: var(--pa-materialy-dark-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich .pa-s23-panel,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-s23-panel__body,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-s23-panel__col,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-topic-block,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-topic-block__body,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-detail-block,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-illustrated-block,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-person-sheet,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-person-sheet__main {
    color: var(--reader-ink) !important;
}

body.dark-mode #psychaura-final-site .pa-tip-box-title,
body.dark-mode #psychaura-final-site .pa-study-lead strong,
body.dark-mode #psychaura-final-site .pa-process-line__step strong,
body.dark-mode #psychaura-final-site .pa-card-grid__item strong,
body.dark-mode #psychaura-final-site .pa-stage-map__badge strong,
body.dark-mode #psychaura-final-site .pa-stage-map__node strong,
body.dark-mode #psychaura-final-site .pa-study-rich strong,
body.dark-mode #psychaura-final-site .pa-study-rich b {
    color: #f7f3ef;
}

body.dark-mode #psychaura-final-site .pa-tip-box.pa-tip-box--brand,
body.dark-mode #psychaura-final-site .pa-flow-steps,
body.dark-mode #psychaura-final-site .pa-dash-map,
body.dark-mode #psychaura-final-site .pa-stage-map--sky,
body.dark-mode #psychaura-final-site .pa-callout--sky {
    background: rgba(40, 52, 63, 0.92);
}

body.dark-mode #psychaura-final-site .pa-process-line,
body.dark-mode #psychaura-final-site .pa-stage-map,
body.dark-mode #psychaura-final-site .pa-card-grid__item,
body.dark-mode #psychaura-final-site .pa-link-chain__item,
body.dark-mode #psychaura-final-site .pa-callout--mint {
    background: rgba(38, 47, 43, 0.94);
}

body.dark-mode #psychaura-final-site .pa-versus__col--b,
body.dark-mode #psychaura-final-site .pa-stage-map--rose,
body.dark-mode #psychaura-final-site .pa-callout--rose {
    background: rgba(60, 45, 54, 0.94);
}

body.dark-mode #psychaura-final-site .pa-versus__col--a {
    background: rgba(38, 47, 43, 0.94);
}

body.dark-mode #psychaura-final-site .pa-badge {
    background: color-mix(in srgb, var(--pa-accent-rose) 18%, rgba(255, 255, 255, 0.04));
    border-color: color-mix(in srgb, var(--pa-accent-rose) 46%, rgba(255, 255, 255, 0.14));
}

body.dark-mode #psychaura-final-site .pa-dash-map__title,
body.dark-mode #psychaura-final-site .pa-stage-map__eyebrow,
body.dark-mode #psychaura-final-site .pa-stage-map__badge span,
body.dark-mode #psychaura-final-site .pa-dash-map__node,
body.dark-mode #psychaura-final-site .pa-link-chain__item,
body.dark-mode #psychaura-final-site .pa-callout,
body.dark-mode #psychaura-final-site .pa-badge,
body.dark-mode #psychaura-final-site .pa-study-table th,
body.dark-mode #psychaura-final-site .pa-study-table td {
    color: var(--reader-ink);
}

body.dark-mode #psychaura-final-site .pa-study-table-wrap {
    background: rgba(33, 31, 37, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-study-table th,
body.dark-mode #psychaura-final-site .pa-study-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #psychaura-final-site .pa-study-table th {
    background: rgba(90, 100, 94, 0.52);
    color: #f4f0ec;
}

body.dark-mode #psychaura-final-site .pa-s23-lead,
body.dark-mode #psychaura-final-site .pa-s23-outro {
    color: var(--reader-ink);
    background: rgba(39, 43, 49, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode #psychaura-final-site .pa-s23-lead {
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 68%, rgba(255, 255, 255, 0.16));
}

body.dark-mode #psychaura-final-site .pa-s23-outro {
    border: 1px solid color-mix(in srgb, var(--pa-accent-sky) 30%, rgba(255, 255, 255, 0.12));
}

body.dark-mode #psychaura-final-site .pa-s23-heading {
    color: color-mix(in srgb, var(--pa-accent-sky) 62%, #eef5ff);
}

body.dark-mode #psychaura-final-site .pa-s23-panel__fig {
    background: rgba(34, 37, 44, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.dark-mode #psychaura-final-site .pa-s23-panel__fig img,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-figure img {
    background: transparent;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-s23-panel__fig.pa-figure--bw {
    background: rgba(34, 37, 44, 0.96);
}

body.dark-mode #psychaura-final-site .pa-study-rich .pa-figure.pa-figure--bw img,
body.dark-mode #psychaura-final-site .pa-study-rich .pa-s23-panel__fig.pa-figure--bw img {
    filter: grayscale(100%) invert(1) contrast(1.08) !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich :is(
    .pa-study-lead,
    .pa-okruh-intro__panel,
    .pa-tip-box,
    .pa-flow-steps,
    .pa-process-line,
    .pa-dash-map,
    .pa-stage-map,
    .pa-card-grid__item,
    .pa-versus__col,
    .pa-link-chain__item,
    .pa-callout,
    .pa-study-table-wrap,
    .pa-s23,
    .pa-s23-lead,
    .pa-s23-outro,
    .pa-s23-panel__fig,
    .pa-process-line__step,
    .pa-dash-map__hub,
    .pa-dash-map__node,
    .pa-stage-map__media,
    .pa-stage-map__badge,
    .pa-stage-map__node
) {
    background-image: none !important;
    color: var(--reader-ink) !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] :is(
    .pa-person-sheet,
    .pa-person-sheet__body,
    .pa-person-sheet__main,
    .pa-dejiny-aside,
    .pa-dejiny-flow,
    .pa-study-lead,
    .pa-study-table-wrap,
    .pa-tip-box,
    blockquote,
    .pa-detail-block
) {
    background: var(--pa-materialy-dark-surface) !important;
    color: var(--reader-ink) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet > h3.pa-h3--person {
    background: var(--pa-materialy-dark-surface-rose) !important;
    color: #f3e5ea !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main {
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 58%, rgba(255, 255, 255, 0.12)) !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] :is(
    .pa-figure--dejiny,
    .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    .pa-study-lead > .pa-figure--lead,
    .pa-person-sheet__main > .pa-figure--diagram,
    .pa-person-sheet__main .pa-figure--chart
) {
    background: var(--pa-materialy-dark-surface-soft) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] :is(
    .pa-figure--dejiny img,
    .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart) img,
    .pa-study-lead > .pa-figure--lead img,
    .pa-person-sheet__main > .pa-figure--diagram img,
    .pa-person-sheet__main .pa-figure--chart img
) {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > h4,
body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > h4,
body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside > h4,
body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside > h3.pa-h3--topic:first-child {
    color: #d9ecdf !important;
}

body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > :is(p, ul, ol, li, blockquote),
body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside > :is(p, ul, ol, li),
body.dark-mode #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-flow > :is(p, ul, ol, li) {
    color: var(--reader-ink) !important;
}

body.dark-mode #psychaura-final-site .pa-study-table td:first-child,
body.dark-mode #psychaura-final-site .pa-study-table th:first-child {
    color: color-mix(in srgb, var(--pa-accent-mint) 52%, #f3f7f2);
}

body.dark-mode #psychaura-final-site .pa-study-table tr:last-child td {
    border-bottom-color: transparent;
}

body.dark-mode #psychaura-final-site .pa-figure img {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode #psychaura-final-site .pa-figcaption-detail {
    background: rgba(37, 49, 60, 0.94);
    border-color: color-mix(in srgb, var(--pa-accent-sky) 30%, rgba(255, 255, 255, 0.1));
}

body.dark-mode #psychaura-final-site .pa-process-line__arrow,
body.dark-mode #psychaura-final-site .pa-stage-map__media::after,
body.dark-mode #psychaura-final-site .pa-stage-map__node::before,
body.dark-mode #psychaura-final-site .pa-versus__sep,
body.dark-mode #psychaura-final-site .pa-link-chain__item::before,
body.dark-mode #psychaura-final-site .pa-dash-map__node::after {
    color: color-mix(in srgb, var(--pa-accent-rose) 62%, #f2d6df);
}

body.dark-mode #psychaura-final-site .pa-link-chain__item::before {
    background: color-mix(in srgb, var(--pa-accent-mint) 68%, #d8efe2);
    box-shadow: 0 0 0 2px #1d2026;
}

body.dark-mode #psychaura-final-site .pa-key-author {
    color: #f0adc3;
}

body.dark-mode #psychaura-final-site .pa-key-term {
    color: #9ee0ba;
}

@media (min-width: 1200px) {
    #psychaura-final-site .pa-reader__chapters {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 640px) {
    #psychaura-final-site .pa-reader__chrome {
        padding: 0.85rem 0.8rem 0.8rem;
        border-radius: 18px;
    }

    #psychaura-final-site .pa-reader__chapters {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: pan-x pan-y;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
        margin-bottom: 0.55rem;
    }

    #psychaura-final-site .pa-reader-chapter {
        flex: 0 0 auto;
        min-width: 9.5rem;
        max-width: 12.5rem;
        scroll-snap-align: start;
    }

    #psychaura-final-site .pa-reader__library {
        border-radius: 20px;
    }

    #psychaura-final-site .pa-reader__library-head,
    #psychaura-final-site .pa-reader-pdf-viewer__bar,
    #psychaura-final-site .pa-material-reader__head {
        flex-direction: column;
        align-items: flex-start;
    }

    #psychaura-final-site .pa-material-reader__toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    #psychaura-final-site .pa-reader__library .pa-reader-doc-group__list {
        grid-template-columns: 1fr;
    }

    #psychaura-final-site .pa-reader-pdf-viewer__actions {
        width: 100%;
        justify-content: flex-start;
    }

    #psychaura-final-site .pa-reader-pdf-pages {
        padding: 12px;
        gap: 12px;
    }

    #psychaura-final-site .pa-reader-pdf-page__surface {
        padding: 10px;
        border-radius: 18px;
    }

    #psychaura-final-site .pa-reader-pdf-viewer__frame {
        min-height: 78vh;
    }

    #psychaura-final-site .pa-reader__pager-btn span:not([aria-hidden]) {
        max-width: 28vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    #psychaura-final-site .pa-reader__article.pa-material--visible,
    #psychaura-final-site .pa-reading-progress-bar,
    #psychaura-final-site .pa-reader__boot-loading-bar {
        animation: none;
        transition: none;
    }
}

/* =============================================================================
   Kap. 1 — Dějiny psychologie (izolovaný layout, neměnit z kap. 2+)
   ============================================================================= */
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] {
    --pa-dejiny-float: min(18rem, 38%);
    --pa-float-gutter: min(20rem, 42%);
    --pa-float-gap: 1rem;
}

/* Tematický podblok — jen seskupení, bez druhého rámečku (h3 má vlastní lištu) */
#psychaura-final-site .pa-dejiny-flow {
    margin: 0.85rem 0 1.1rem;
}

#psychaura-final-site .pa-dejiny-flow::after {
    content: "";
    display: table;
    clear: both;
}

#psychaura-final-site .pa-dejiny-flow > h3.pa-h3--topic:first-child {
    margin-top: 0;
}

#psychaura-final-site .pa-dejiny-flow > p,
#psychaura-final-site .pa-dejiny-flow > ul,
#psychaura-final-site .pa-dejiny-flow > ol {
    margin: 0 0 0.75rem;
    clear: none;
}

#psychaura-final-site .pa-dejiny-flow > h4 {
    margin: 0.95rem 0 0.35rem;
    clear: none;
}

/* Podblok h3/h4 + ilustrace — float jen uvnitř, text obtéká */
#psychaura-final-site .pa-dejiny-aside {
    display: flow-root;
    margin: 0 0 0.85rem;
}

#psychaura-final-site .pa-dejiny-aside:last-child {
    margin-bottom: 0;
}

#psychaura-final-site .pa-dejiny-aside > h3.pa-h3--topic:first-child,
#psychaura-final-site .pa-dejiny-aside > h4:first-child {
    margin-top: 0;
}

#psychaura-final-site .pa-dejiny-aside > p + h4 {
    margin-top: 0.65rem;
}

#psychaura-final-site .pa-dejiny-aside > h4 + .pa-study-table-wrap {
    margin-top: 0.35rem;
}

#psychaura-final-site .pa-dejiny-aside > p,
#psychaura-final-site .pa-dejiny-aside > ul,
#psychaura-final-site .pa-dejiny-aside > ol,
#psychaura-final-site .pa-dejiny-aside > .pa-tip-box,
#psychaura-final-site .pa-dejiny-aside > .pa-study-table-wrap,
#psychaura-final-site .pa-dejiny-flow > p,
#psychaura-final-site .pa-dejiny-flow > ul,
#psychaura-final-site .pa-dejiny-flow > ol {
    clear: none;
}

/* Foto / schéma — vpravo, text obtéká; nad linkami tabulek */
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-lead > .pa-figure--lead {
    position: relative;
    z-index: 2;
    isolation: isolate;
    float: right;
    clear: none;
    width: auto;
    margin: 0 0 0.65rem 1rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--pa-accent-rose) 14%, var(--reader-rule));
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.05);
    box-sizing: border-box;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny {
    background: color-mix(in srgb, var(--pa-accent-rose) 4%, #fff);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny.pa-figure--portrait {
    max-width: var(--pa-dejiny-float);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny.pa-figure--portrait img {
    width: auto;
    max-width: min(15rem, 36vw);
    max-height: min(280px, 34vh);
    height: auto;
    object-fit: contain;
    object-position: top;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny.pa-figure--diagram {
    max-width: min(22rem, 48%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny.pa-figure--diagram img {
        width: 100%;
    max-height: min(340px, 42vh);
    object-fit: contain;
}

/* h4 + schéma na úrovni sekce (Konfliktní model, Turing…) */
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > h4 {
    margin: 1.1rem 0 0.4rem;
    clear: none;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > h4 + p,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > h4 + ul,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > h4 + ol {
    clear: none;
    margin-top: 0.45rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Text a tabulky nezasahují pod float — linky nejdou přes obrázky */
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap) {
    max-width: calc(100% - var(--pa-dejiny-float) - 1rem);
    box-sizing: border-box;
}

/* Tabulky v person sheet — obtékají portrét, ne plná šířka přes foto */
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-study-table-wrap {
    clear: none;
    width: fit-content !important;
    max-width: min(100%, 52rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
    max-width: calc(100% - var(--pa-dejiny-float) - 1rem) !important;
}

/* Tabulky v aside obtékají float */
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table-wrap {
        display: block !important;
    width: fit-content !important;
    max-width: calc(100% - var(--pa-dejiny-float) - 1rem) !important;
    clear: none !important;
    margin: 0.55rem 0 0.85rem;
    box-sizing: border-box;
    }

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-table-wrap {
        display: block !important;
    width: fit-content !important;
    max-width: min(100%, 52rem) !important;
    margin: 0.55rem 0 0.85rem;
    box-sizing: border-box;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table-wrap + .pa-study-table-wrap {
    margin-top: 0.35rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-study-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-study-table td:first-child,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-study-table th:first-child {
    width: 32%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > p,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > ul,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > ol {
    clear: none;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-study-table-wrap:last-child {
    clear: both;
    max-width: min(100%, 52rem) !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside > .pa-tip-box,
#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section > .pa-tip-box {
    clear: none;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-lead > .pa-tip-box {
    max-width: calc(100% - var(--pa-float-gutter) - var(--pa-float-gap));
}

/* Kap. 1 na šířku (úzký landscape) — skromný stack, ne obří fotky; výška řeší portrait wrap výše */
@media (max-width: 900px) and (orientation: landscape) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] {
        --pa-dejiny-float: 0px;
        --pa-float-gutter: 0px;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
        max-width: 100% !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-lead > .pa-figure--lead,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-figure--chart {
        float: none;
        clear: both;
        width: auto;
        max-width: min(14rem, 46%);
        margin: 0.4rem auto 0.65rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny img,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure img {
        max-height: min(180px, 42vh);
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 720px) and (orientation: landscape) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-lead > .pa-figure--lead,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main .pa-figure--chart {
        float: none;
        max-width: min(12rem, 42%);
        margin: 0.35rem auto 0.55rem;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-figure--dejiny img,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main > .pa-figure img {
        margin: 0 auto;
        max-height: min(160px, 40vh);
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-study-section:has(> .pa-figure--dejiny) > :is(p, ul, ol, h4, .pa-study-table-wrap, .pa-tip-box),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap),
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-dejiny-aside .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
        max-width: 100% !important;
    }
}

/* Klinicka psychologie - individualni ladeni obrazku */
#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure.pa-figure--diagram {
    max-width: min(20rem, 44%);
}

/* MKN box + ilustrace v úvodu sekce — vedle sebe, bez floatu přes titulek */
#psychaura-final-site .pa-study-lead--with-mkn {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(11.5rem, 28%);
    gap: 0.75rem 1.1rem;
    align-items: start;
    margin: 0.35rem 0 0.85rem;
    clear: both;
}

#psychaura-final-site .pa-study-lead--with-mkn > .pa-mkn-box,
#psychaura-final-site .pa-study-lead--with-mkn > .pa-deep-box.pa-mkn-box {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    min-width: 0;
}

#psychaura-final-site .pa-study-lead--with-mkn > .pa-figure--mkn-side {
    grid-column: 2;
    grid-row: 1;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.15rem 0 0 !important;
    padding: 0.25rem;
    background: transparent;
    justify-self: stretch;
}

#psychaura-final-site .pa-study-lead--with-mkn > .pa-figure--mkn-side img {
    width: 100%;
    max-width: 100%;
    max-height: min(200px, 28vh);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#psychaura-final-site .pa-study-lead--with-mkn > .pa-figure--mkn-side .pa-figcaption {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.35rem;
    opacity: 0.78;
}

#psychaura-final-site .pa-study-lead--with-mkn > :not(.pa-mkn-box):not(.pa-deep-box):not(.pa-figure--mkn-side) {
    grid-column: 1 / -1;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12.25rem;
    gap: 0.85rem 1.2rem;
    align-items: start;
    margin: 0.35rem 0 0.55rem;
    clear: both;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__text {
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__text > p {
    margin: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__text > h3 {
    margin-top: 0.55rem;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h3:not(.pa-h3--person) {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__text > .pa-study-table-wrap {
    margin: 0.65rem 0 0;
    clear: none;
    width: fit-content;
    max-width: 100%;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__visual {
    min-width: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__visual > .pa-figure {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure.pa-figure--diagram img {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image126.jpeg"]) {
    width: min(15rem, 38%);
    max-width: min(15rem, 38%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image130.png"]) {
    width: min(12.25rem, 30%);
    max-width: min(12.25rem, 30%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image133.png"]) {
    width: min(14rem, 34%);
    max-width: min(14rem, 34%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image146.jpeg"]) {
    width: min(14.5rem, 35%);
    max-width: min(14.5rem, 35%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image146.jpeg"]) img {
    filter: grayscale(100%) contrast(1.04);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image154.jpeg"]) {
    width: min(11.5rem, 28%);
    max-width: min(11.5rem, 28%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image156.png"]) {
    width: min(16rem, 40%);
    max-width: min(16rem, 40%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image157.png"]) {
    width: min(14rem, 34%);
    max-width: min(14rem, 34%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image158.jpeg"]) {
    width: min(12.5rem, 30%);
    max-width: min(12.5rem, 30%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image159.png"]) {
    width: min(11rem, 27%);
    max-width: min(11rem, 27%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image160.png"]) {
    width: min(14rem, 34%);
    max-width: min(14rem, 34%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image161.png"]) {
    width: min(14.5rem, 35%);
    max-width: min(14.5rem, 35%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image162.jpeg"]) {
    width: min(12.5rem, 30%);
    max-width: min(12.5rem, 30%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image162.jpeg"]) img {
    filter: grayscale(100%) contrast(1.03);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image164.jpeg"]) {
    width: min(12rem, 29%);
    max-width: min(12rem, 29%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image166.png"]) {
    width: min(13.5rem, 33%);
    max-width: min(13.5rem, 33%);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image154.jpeg"]) img,
#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image159.png"]) img,
#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image164.jpeg"]) img {
    max-height: min(220px, 30vh);
}

#psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure:has(> img[src*="image159.png"]) img {
    max-height: none;
}

@media (min-width: 721px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p + h3,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p + .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p + h3 + .pa-study-table-wrap {
        max-width: calc(100% - 16rem);
        box-sizing: border-box;
        clear: none;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p + h3 {
        margin-top: 0.6rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p + .pa-study-table-wrap,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right + p + h3 + .pa-study-table-wrap {
        margin-top: 0.35rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right:has(> img[src*="image126.jpeg"]) + p {
        max-width: calc(100% - 19.25rem);
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right:has(> img[src*="image126.jpeg"]) + p + .pa-study-table-wrap {
        max-width: calc(100% - 17.5rem);
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] h2 + .pa-figure--right:has(> img[src*="image130.png"]) + p {
        max-width: calc(100% - 15rem);
    }
}

@media (max-width: 720px) {
    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    #psychaura-final-site .pa-study-lead--with-mkn {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    #psychaura-final-site .pa-study-lead--with-mkn > .pa-mkn-box,
    #psychaura-final-site .pa-study-lead--with-mkn > .pa-deep-box.pa-mkn-box,
    #psychaura-final-site .pa-study-lead--with-mkn > .pa-figure--mkn-side {
        grid-column: 1;
        grid-row: auto;
    }

    #psychaura-final-site .pa-study-lead--with-mkn > .pa-figure--mkn-side {
        max-width: min(14rem, 70%);
        margin: 0 auto !important;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-clinical-intro-row__visual {
        max-width: min(18rem, 100%);
        margin: 0 auto;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure.pa-figure--diagram {
        float: none;
        width: min(18rem, 100%) !important;
        max-width: min(18rem, 100%) !important;
        margin: 0.55rem auto 0.8rem;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="6"] .pa-figure.pa-figure--diagram img {
        margin: 0 auto;
        max-height: min(260px, 34vh);
    }
}

/* =============================================================================
   Mobilní čtečka — stejný design jako PC, hutnější výška, layout ne rozpadlý
   ============================================================================= */
@media (max-width: 720px) {
    /* Přepínač režimů viditelný, ale NE sticky — sticky dělá „dvojí scroll“ úvod vs obsah */
    #psychaura-final-site .pa-reader-mode-nav {
        display: block !important;
        margin: 0 0 0.65rem !important;
        position: relative;
        top: auto;
        z-index: auto;
    }

    /* Všechny skupiny pod sebou (žádný horizontální pás u pojmů atd.) */
    #psychaura-final-site .pa-reader-chrome-library__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        align-items: stretch;
    }

    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group,
    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group:nth-child(n + 3) {
        grid-column: auto;
    }

    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group .pa-reader-doc-group__list,
    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group:nth-child(-n + 2) .pa-reader-doc-group__list,
    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group:nth-child(n + 3) .pa-reader-doc-group__list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        overflow: visible !important;
        flex-wrap: unset;
        scroll-snap-type: none;
        padding-bottom: 0 !important;
    }

    /* Lichá poslední karta: stejná šířka jako ostatní, vycentrovaná (bez prázdné díry vlevo/vpravo) */
    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group .pa-reader-doc-group__list > .pa-reader-doc-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        justify-self: center;
    }

    #psychaura-final-site .pa-reader-chrome-library__grid > .pa-reader-doc-group:nth-child(n + 3) .pa-reader-doc-item {
        flex: none;
        width: auto;
        max-width: none;
        scroll-snap-align: none;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-group__title {
        font-size: 0.78rem;
        line-height: 1.3;
        hyphens: auto;
        margin-bottom: 0.45rem;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-link.pa-reader-doc-link--card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card__preview {
        aspect-ratio: 210 / 297;
        contain: none;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card__shade {
        display: none;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card__body {
        position: static;
        background: #fff;
        padding: 0.42rem 0.48rem 0.38rem;
        pointer-events: none;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-link--card .pa-reader-chapter__t {
        font-size: 0.8rem;
        line-height: 1.28;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-link--card .pa-reader-chapter__sub {
        font-size: 0.72rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card__btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.35rem;
        min-height: 2.5rem;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-item,
    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-card,
    #psychaura-final-site .pa-reader-chrome-library .pa-reader-doc-link.pa-reader-doc-link--card {
        min-width: 0;
        max-width: 100%;
    }

    #psychaura-final-site .pa-reader-doc-card__thumb {
        max-width: 100%;
        max-height: 100%;
    }

    #psychaura-final-site .pa-material-reader--mobile-pdf .pa-material-reader__head {
        padding: 0.65rem 0.75rem;
        gap: 0.45rem;
    }

    #psychaura-final-site .pa-material-reader--mobile-pdf .pa-material-reader__title {
        font-size: 1rem;
        line-height: 1.25;
    }

    #psychaura-final-site .pa-material-reader--mobile-pdf .pa-material-reader__logo {
        width: 32px;
        height: 32px;
    }

    #psychaura-final-site .pa-material-reader--canvas-pdf .pa-reader-pdf-pages {
        padding: 0.45rem 0.35rem 1rem;
        gap: 12px;
    }

    #psychaura-final-site .pa-material-reader--mobile-pdf .pa-reader-pdf-page__surface {
        width: 100% !important;
        max-width: 100%;
        padding: 4px;
    }

    #psychaura-final-site .pa-material-reader--mobile-pdf .pa-reader-pdf-page__canvas {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }

    #psychaura-final-site .pa-material-reader--mobile-pdf .pa-reader-pdf-page.is-pending .pa-reader-pdf-page__surface {
        width: 100% !important;
    }

    html.pa-pdf-native-open #psychaura-final-site #content-display.pa-reader__article--material {
        min-height: calc(100dvh - 6rem);
    }

    html.pa-pdf-native-open #psychaura-final-site .pa-material-reader--native-pdf {
        min-height: calc(100dvh - 7rem);
        max-height: none;
        height: auto;
    }

    #psychaura-final-site .pa-material-reader--native-pdf .pa-reader-pdf-viewer__frame {
        min-height: 72vh;
        height: 72vh;
    }

    #psychaura-final-site .pa-reader-library-hint {
        font-size: 0.78rem;
        line-height: 1.45;
        margin-bottom: 0.65rem;
    }

    #psychaura-final-site .pa-reader-download-strip {
        margin: 0 0 0.65rem;
        padding: 0.75rem 0.85rem;
    }

    #psychaura-final-site .pa-reader-download-strip__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #psychaura-final-site .pa-reader-download-strip__btn {
        width: 100%;
        min-height: 2.5rem;
    }

    #psychaura-final-site .pa-reader-main-download-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    #psychaura-final-site .pa-reader-main-download-banner__btn {
        width: 100%;
        text-align: center;
    }

    html.pa-page-materialy {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    #psychaura-final-site .pa-reader {
        padding-left: max(0.45rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.45rem, env(safe-area-inset-right, 0px));
    }

    #psychaura-final-site .pa-reader__chrome {
        margin-bottom: 0.45rem;
    }

    #psychaura-final-site .pa-reader__toc:not(.pa-reader__toc--sections) {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: pan-x pan-y;
        padding-bottom: 2px;
    }

    #psychaura-final-site .pa-reader__toc--sections,
    html.pa-page-materialy #section-jump.pa-reader__toc--sections {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        max-height: none;
        overflow: visible;
        -webkit-overflow-scrolling: auto;
        padding-bottom: 0;
    }

    #psychaura-final-site .pa-reader__toc--sections .pa-toc-pill {
        position: relative;
        z-index: 1;
        pointer-events: auto;
        touch-action: manipulation;
    }

    #psychaura-final-site .pa-reader__article {
        padding: 0.55rem 0.62rem 0.95rem;
        border-radius: 12px;
        box-shadow: none;
        border: none;
    }

    html.pa-page-materialy #psychaura-final-site #content-display,
    html.pa-page-materialy #psychaura-final-site .pa-reader__body {
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html.pa-page-materialy #psychaura-final-site .pa-reader__article {
        overflow-x: clip;
        overflow-y: visible;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 8rem;
    }

    #psychaura-final-site .pa-study-rich,
    #psychaura-final-site .pa-study-section {
        min-width: 0;
        max-width: 100%;
    }

    #psychaura-final-site .pa-person-sheet__body {
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }

    #psychaura-final-site .pa-person-sheet__main {
        max-width: 100%;
        overflow-x: hidden;
    }

    #psychaura-final-site .pa-person-sheet__main > .pa-figure--diagram,
    #psychaura-final-site .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    #psychaura-final-site .pa-person-sheet__main > .pa-figure--left {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 0.65rem !important;
        box-sizing: border-box;
    }

    #psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap, blockquote),
    #psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--diagram) > :is(p, ul, ol, h4, .pa-study-table-wrap, blockquote),
    #psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
        max-width: 100% !important;
    }

    #psychaura-final-site .pa-person-sheet__main .pa-tip-box {
        width: 100% !important;
        max-width: 100% !important;
        clear: both;
    }

    #psychaura-final-site .pa-study-rich[data-pa-chapter="3"] .pa-topic-block:has(> .pa-topic-block__body > .pa-s23) {
        overflow: hidden;
        max-width: 100%;
    }

    #psychaura-final-site .pa-reader__article .pa-study-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Jeden výchozí mobilní vzhled — přepíše uložené reader-mode-* z PC */
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich,
    html.pa-mobile-read body.reader-mode-normal #psychaura-final-site .pa-reader__article .pa-study-rich,
    html.pa-mobile-read body.reader-mode-comfortable #psychaura-final-site .pa-reader__article .pa-study-rich,
    html.pa-mobile-read body.reader-mode-compact #psychaura-final-site .pa-reader__article .pa-study-rich {
        --reader-body: 0.9375rem;
        --reader-lh: 1.58;
        --reader-gap: 0.4rem;
        --pa-subhead-inset: 0;
        --pa-float-gutter: 0px;
        --pa-dejiny-float: 0px;
    }

    html.pa-mobile-read #psychaura-final-site .pa-doc-header {
        margin-bottom: 0.42rem;
        padding-bottom: 0.32rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-doc-title {
        font-size: clamp(1.2rem, 1.06rem + 1.4vw, 1.45rem);
        line-height: 1.22;
    }

    html.pa-mobile-read #psychaura-final-site .pa-study-section {
        margin-bottom: 0.55rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-section > h2 {
        margin-bottom: 0.32rem;
        padding-bottom: 0.28rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich h3.pa-h3--topic,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-section h3.pa-h3--topic {
        margin: 0.62rem 0 0.28rem;
        padding: 0.22rem 0.48rem 0.22rem 0.62rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich h3:not(.pa-h3--person):not(.pa-h3--topic) {
        margin: 0.58rem 0 0.26rem;
        padding: 0.2rem 0 0.2rem 0.62rem;
    }

    /* Modrý pruh u h4 — stejný vizuál, bez extra odsazení textu pod ním */
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich h4,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-person-sheet__main h4,
    #psychaura-final-site .pa-reader__article .pa-study-rich h4,
    #psychaura-final-site .pa-reader__article .pa-person-sheet__main h4 {
        margin: 0.48rem 0 0.22rem;
        padding-left: 0.5rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > h4 ~ :is(p, ul, ol, .pa-study-table-wrap, .pa-tip-box),
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > h4 ~ blockquote {
        padding-left: 0;
        margin-left: 0;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich ul > li,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich ol > li,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-prose-list > li {
        margin-bottom: 0.28rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich ul,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-rich ol {
        margin-top: 0.18rem;
        margin-bottom: 0.36rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-person-sheet {
        margin: 0.52rem 0 0.62rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-person-sheet > h3.pa-h3--person {
        padding: 0.38rem 0.62rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__body {
        padding: 0.48rem 0.58rem 0.62rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > h4 + p,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > h4 + ul,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > h4 + ol {
        margin-top: 0.38rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > p + h4,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > ul + h4,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > ol + h4,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > blockquote + h4,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > .pa-study-table-wrap + h4,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > .pa-tip-box + h4 {
        margin-top: 0.52rem;
        padding-top: 0.38rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-tip-box {
        padding: 0.46rem 0.55rem !important;
        margin-top: 0.32rem;
        margin-bottom: 0.32rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-study-lead {
        margin-bottom: 0.4rem;
        padding: 0.42rem 0.55rem;
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich :is(
        p,
        ul,
        ol,
        blockquote,
        .pa-tip-box,
        .pa-okruh-intro,
        .pa-study-lead,
        .pa-dejiny-flow > :is(p, ul, ol, h4),
        .pa-dejiny-aside > :is(p, ul, ol, h4, .pa-tip-box),
        .pa-study-section > :is(p, ul, ol, h4, .pa-tip-box),
        .pa-person-sheet__main > :is(p, ul, ol, h4, blockquote, .pa-tip-box),
        .pa-topic-block__body > :is(p, ul, ol, h4, .pa-tip-box),
        .pa-s23-panel__body > :is(p, ul, ol, h4, .pa-tip-box)
    ) {
        max-width: 100% !important;
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich .pa-study-table-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich .pa-study-table {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1em;
    }

    #psychaura-final-site .pa-reader-tool {
        margin: 0 0 0.85rem;
        border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
        border-radius: 16px;
        background: color-mix(in srgb, var(--pa-accent-sky) 6%, #fff);
        overflow: hidden;
    }

    #psychaura-final-site .pa-reader-tool__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.8rem 0.95rem;
        font-family: var(--pa-font-ui);
        font-size: 0.92rem;
        font-weight: 800;
        color: var(--reader-ink);
        cursor: pointer;
        list-style: none;
    }

    #psychaura-final-site .pa-reader-tool__summary::-webkit-details-marker {
        display: none;
    }

    #psychaura-final-site .pa-reader-tool__summary::after {
        content: "▾";
        font-size: 0.85rem;
        color: var(--reader-muted);
        transition: transform 0.15s ease;
    }

    #psychaura-final-site .pa-reader-tool[open] > .pa-reader-tool__summary::after {
        transform: rotate(180deg);
    }

    #psychaura-final-site .pa-reader-tool__body {
        padding: 0 0.95rem 0.95rem;
    }

    #psychaura-final-site .pa-reader-tool__body .pa-reader-search,
    #psychaura-final-site .pa-reader-tool__body .pa-reader-annotator {
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    #psychaura-final-site .pa-reader-tool__body .pa-reader-search__head,
    #psychaura-final-site .pa-reader-tool__body .pa-reader-annotator__head {
        margin-top: 0.15rem;
    }

    #psychaura-final-site .pa-reader-search__bar,
    #psychaura-final-site .pa-reader-annotator__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #psychaura-final-site .pa-reader-search__input,
    #psychaura-final-site .pa-reader-search__btn,
    #psychaura-final-site .pa-reader-annotator__btn {
        width: 100%;
    }
}

@media (max-width: 720px) and (min-width: 480px) {
    #psychaura-final-site .pa-reader__article {
        padding-left: 0.88rem;
        padding-right: 0.88rem;
    }
}

@media (min-width: 721px) {
    #psychaura-final-site .pa-reader-tool {
        margin: 0 0 0.65rem;
        border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
        border-radius: 14px;
        background: color-mix(in srgb, var(--pa-accent-sky) 5%, #fff);
        overflow: hidden;
    }

    #psychaura-final-site .pa-reader-tool__summary {
        display: flex;
    }

    #psychaura-final-site .pa-reader-tool__body {
        padding: 0 0.95rem 0.95rem;
    }
}

/* Mobile hardening: no narrow columns for tables/tips/text */
@media (max-width: 720px) {
    #psychaura-final-site .pa-reader__article .pa-study-rich :is(
        p,
        ul,
        ol,
        h4,
        blockquote,
        .pa-tip-box,
        .pa-study-table-wrap,
        .pa-s23-panel__body > p,
        .pa-s23-panel__body > ul,
        .pa-s23-panel__body > ol,
        .pa-s23-panel__body > h4,
        .pa-s23-panel__body > .pa-tip-box,
        .pa-s23-panel__body > .pa-study-table-wrap,
        .pa-topic-block__body > p,
        .pa-topic-block__body > ul,
        .pa-topic-block__body > ol,
        .pa-topic-block__body > h4,
        .pa-topic-block__body > .pa-tip-box,
        .pa-topic-block__body > .pa-study-table-wrap,
        .pa-person-sheet__main > p,
        .pa-person-sheet__main > ul,
        .pa-person-sheet__main > ol,
        .pa-person-sheet__main > h4,
        .pa-person-sheet__main > .pa-tip-box,
        .pa-person-sheet__main > .pa-study-table-wrap
    ) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich .pa-study-table-wrap {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich .pa-study-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
        font-size: 0.95em !important;
    }

    #psychaura-final-site .pa-reader__article .pa-tip-box {
        display: block !important;
        padding: 0.58rem 0.68rem !important;
    }

    #psychaura-final-site .pa-reader__article .pa-study-rich :is(
        .pa-figure--right,
        .pa-figure--left,
        .pa-figure--diagram,
        .pa-figure--portrait,
        .pa-figure--lead,
        .pa-figure--chart,
        .pa-figure--block,
        .pa-figure--compact
    ) {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.75rem 0 1rem !important;
        text-align: left !important;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-figure--portrait img,
    html.pa-mobile-read #psychaura-final-site .pa-person-sheet__main > .pa-figure--portrait img {
        max-width: min(100%, 13.5rem);
        max-height: min(280px, 38vh);
        width: auto;
        margin: 0;
    }

    /* Stejné čištění i v mobilní čtečce (pa-mobile-read) */
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-figure,
    html.pa-mobile-read #psychaura-final-site .pa-study-rich .pa-figure,
    html.pa-mobile-read #psychaura-final-site .pa-topic-media-row .pa-figure,
    html.pa-mobile-read #psychaura-final-site .pa-s23-panel__fig {
        padding: 0.35rem !important;
        background: color-mix(in srgb, var(--pa-accent-mint) 5%, #fff) !important;
        border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, var(--pa-accent-mint) 12%) !important;
        box-shadow: 0 1px 6px rgba(28, 25, 23, 0.06) !important;
        border-radius: 12px !important;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-figure img,
    html.pa-mobile-read #psychaura-final-site .pa-study-rich .pa-figure img {
        background: #fff !important;
        border: 1px solid var(--reader-rule) !important;
        box-shadow: none !important;
        border-radius: 8px !important;
    }

    #psychaura-final-site .pa-reader-chapters-drawer {
        margin: 0 0 0.42rem;
        border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
        border-radius: 14px;
        background: color-mix(in srgb, var(--pa-accent-sky) 5%, #fff);
        overflow: hidden;
    }

    #psychaura-final-site .pa-reader-chapters-drawer__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.58rem 0.78rem;
        font-family: var(--pa-font-ui);
        font-size: 0.82rem;
        font-weight: 800;
        color: var(--reader-ink);
        cursor: pointer;
        list-style: none;
    }

    #psychaura-final-site .pa-reader-chapters-drawer__summary::-webkit-details-marker {
        display: none;
    }

    #psychaura-final-site .pa-reader-chapters-drawer__summary::after {
        content: "▾";
        font-size: 0.8rem;
        color: var(--reader-muted);
    }

    #psychaura-final-site .pa-reader-chapters-drawer[open] .pa-reader-chapters-drawer__summary::after {
        transform: rotate(180deg);
    }

    #psychaura-final-site .pa-reader-chapters-drawer .pa-reader__chapters {
        padding: 0 0.55rem 0.55rem;
        margin-bottom: 0;
    }
}

/* =============================================================================
   Mobilní čtení — jeden režim (bez A−/A+ a bez tlačítka „Čtení“)
   ============================================================================= */
#psychaura-final-site .pa-reader-mobile-tools,
#psychaura-final-site .pa-reader-text-size,
#psychaura-final-site .pa-reader-focus-btn {
    display: none !important;
}

#psychaura-final-site .pa-reader-text-size {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 90%, #fff);
    background: color-mix(in srgb, var(--pa-accent-sky) 8%, #fff);
}

#psychaura-final-site .pa-reader-text-size__btn,
#psychaura-final-site .pa-reader-focus-btn {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0 0.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    color: var(--reader-ink);
    cursor: pointer;
}

#psychaura-final-site .pa-reader-text-size__btn.is-active {
    background: #fff;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 45%, var(--reader-rule));
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
}

#psychaura-final-site .pa-reader-focus-btn {
    padding: 0 0.7rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    border-color: color-mix(in srgb, var(--pa-accent-mint) 35%, var(--reader-rule));
    background: color-mix(in srgb, var(--pa-accent-mint) 12%, #fff);
}

#psychaura-final-site .pa-reader-focus-btn[aria-pressed="true"] {
    background: color-mix(in srgb, var(--pa-accent-mint) 28%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-mint) 55%, var(--reader-rule));
}

#psychaura-final-site .pa-reader-toc-drawer {
    margin: 0 0 0.55rem;
    border: 1px solid color-mix(in srgb, var(--reader-rule) 88%, #fff);
    border-radius: 14px;
    background: color-mix(in srgb, var(--pa-accent-sky) 5%, #fff);
    overflow: hidden;
}

#psychaura-final-site .pa-reader-toc-drawer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    font-family: var(--pa-font-ui);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--reader-ink);
    cursor: pointer;
    list-style: none;
}

#psychaura-final-site .pa-reader-toc-drawer__summary::-webkit-details-marker {
    display: none;
}

#psychaura-final-site .pa-reader-toc-drawer__summary::after {
    content: "▾";
    font-size: 0.8rem;
    color: var(--reader-muted);
}

#psychaura-final-site .pa-reader-toc-drawer[open] .pa-reader-toc-drawer__summary::after {
    transform: rotate(180deg);
}

#psychaura-final-site .pa-reader-toc-drawer .pa-reader__sub {
    margin: 0;
    padding: 0 0.75rem 0.75rem;
}

#psychaura-final-site .pa-reader-toc-drawer .pa-reader__toc--sections {
    max-height: none;
    overflow: visible;
}

@media (max-width: 720px) {
    /* Studijní lišta + záložka „Nástroje“ — dole uprostřed (podkapitoly jsou v textu) */
    body.pa-reader-chapters-tools #reader-study-dock,
    body.pa-reader-chapters-tools #reader-study-dock-tab {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    body.pa-reader-chapters-tools #reader-study-dock {
        width: min(96vw, 28rem);
        max-width: calc(100vw - 1.1rem);
    }

    body.pa-reader-chapters-tools #reader-study-dock .pa-reader-study-dock__sheet {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__chrome {
        padding: 0.48rem 0.58rem;
        margin-bottom: 0.42rem;
        border-radius: 14px;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__chrome-head {
        margin-bottom: 0.55rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__brand {
        font-size: 0.96rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article {
        padding: 0.55rem 0.62rem 0.95rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-doc-header {
        margin-bottom: 0.42rem;
        padding-bottom: 0.32rem;
    }

    html.pa-mobile-read #psychaura-final-site #reader-chrome-label {
        font-size: 0.82rem;
        margin-bottom: 0.35rem;
    }

    /* Plochý mobilní chrome jako na PC — bez rozbalovacích zásuvěk */
    html.pa-mobile-read-flat #psychaura-final-site .pa-reader-toc-drawer,
    html.pa-mobile-read-flat #psychaura-final-site .pa-reader-chapters-drawer {
        display: none !important;
    }

    html.pa-mobile-read-flat #psychaura-final-site #reader-chrome-chapters {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    html.pa-mobile-read-flat #psychaura-final-site #chapter-grid {
        order: 1;
    }

    html.pa-mobile-read-flat #psychaura-final-site #toc-row {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin: 0;
        padding: 0;
    }

    html.pa-mobile-read-flat #psychaura-final-site #toc-row .pa-reader__sub-label {
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--reader-muted);
    }

    /* Podkapitoly vodorovně — wrap dělal ~400px výšky a „zamkl“ cestu k textu */
    html.pa-mobile-read-flat #psychaura-final-site #section-jump.pa-reader__toc--sections {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.35rem;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        padding: 0 0 0.15rem;
        scrollbar-width: thin;
    }

    html.pa-mobile-read-flat #psychaura-final-site #section-jump.pa-reader__toc--sections > * {
        flex: 0 0 auto;
        max-width: 85%;
    }

    /* Ceník/PDF strip na mobilu zkrátit — jinak žere lištu před textem */
    html.pa-mobile-read #psychaura-final-site #reader-download-strip {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.55rem 0.65rem;
    }

    html.pa-mobile-read #psychaura-final-site #reader-download-strip .pa-reader-download-strip__lead {
        font-size: 0.72rem;
        line-height: 1.35;
        margin: 0 0 0.05rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    html.pa-mobile-read #psychaura-final-site #reader-download-strip .pa-reader-download-strip__actions {
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: 0;
    }

    html.pa-mobile-read #psychaura-final-site #reader-download-strip .pa-reader-download-strip__btn {
        min-height: 2.25rem;
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    /* Jistota: materiály vždy scrollují stránkou (žádný zaseknutý body / dvojitý scroll) */
    html.pa-page-materialy.pa-mobile-read {
        position: static !important;
        overflow-x: clip !important;
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
        touch-action: pan-y pinch-zoom;
        scrollbar-gutter: auto !important;
    }

    html.pa-page-materialy.pa-mobile-read body {
        position: static !important;
        overflow-x: clip !important;
        overflow-y: visible !important;
        height: auto !important;
        max-height: none !important;
        -webkit-overflow-scrolling: auto !important;
        touch-action: pan-y pinch-zoom;
    }

    @supports not (overflow: clip) {
        html.pa-page-materialy.pa-mobile-read {
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }
        html.pa-page-materialy.pa-mobile-read body {
            overflow-x: hidden !important;
            overflow-y: visible !important;
            height: auto !important;
            max-height: none !important;
        }
    }

    html.pa-mobile-read-flat #psychaura-final-site #pa-study-coach-panel {
        order: 3;
        margin-top: 0.1rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__chapters {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.38rem !important;
        overflow: visible !important;
        flex-wrap: unset !important;
        scroll-snap-type: none !important;
        padding-bottom: 0;
        margin-bottom: 0.42rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader-chapter {
        flex: unset !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: unset !important;
        padding: 0.42rem 0.34rem;
        min-height: 2.75rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader-chapter__n {
        font-size: 0.62rem;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader-chapter__t {
        font-size: 0.74rem;
        line-height: 1.28;
        -webkit-line-clamp: 3;
    }

    html.pa-mobile-read:not(.pa-mobile-read-flat) #psychaura-final-site .pa-reader-toc-drawer .pa-reader__toc--sections {
        max-height: none;
        overflow: visible;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__toc {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        overflow: visible;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-s23,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-s23-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-s23-panel__fig,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-s23-panel__body {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-topic-block,
    html.pa-mobile-read #psychaura-final-site .pa-reader__article .pa-person-sheet {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.pa-reader-focus #psychaura-final-site .pa-reader-mode-nav,
    body.pa-reader-focus #psychaura-final-site #reader-chrome-label,
    body.pa-reader-focus #psychaura-final-site #reader-chrome-chapters,
    body.pa-reader-focus #psychaura-final-site #reader-chrome-library,
    body.pa-reader-focus #psychaura-final-site .pa-reader__brand-wrap {
        display: none !important;
    }

    body.pa-reader-focus #psychaura-final-site #reader-chrome {
        padding: 0.45rem 0.65rem;
        margin-bottom: 0.35rem;
        border-radius: 14px;
    }

    body.pa-reader-focus #psychaura-final-site .pa-reader__chrome-head {
        margin-bottom: 0;
        width: 100%;
        justify-content: flex-end;
    }

    body.pa-reader-focus #psychaura-final-site .pa-reader__article {
        padding: 0.85rem 0.78rem 2.5rem;
    }

    body.pa-reader-focus #psychaura-final-site .pa-doc-header {
        margin-bottom: 0.55rem;
        padding-bottom: 0.45rem;
    }

    body.pa-reader-focus #psychaura-final-site .pa-doc-title {
        font-size: clamp(1.2rem, 1.05rem + 1.5vw, 1.45rem);
    }

    body.pa-reader-focus #reader-study-dock,
    body.pa-reader-focus #reader-study-dock-tab {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 120%);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    body.pa-reader-focus #reader-study-dock-tab:not([hidden]),
    body.pa-reader-focus #reader-study-dock:not([hidden]) {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) !important;
    }

    body.pa-reader-focus #reader-study-dock:not([hidden]) {
        pointer-events: none !important;
    }

    body.pa-reader-focus #reader-study-dock:not([hidden]) .pa-reader-study-dock__inner {
        pointer-events: auto !important;
    }

    body.pa-reader-focus #reader-study-dock-tab:not([hidden]) {
        pointer-events: auto !important;
    }

    body.pa-reader-focus:not(.pa-study-dock-hidden) #psychaura-final-site .pa-reader__article {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }

    #psychaura-final-site .pa-reader-pdf-pages {
        padding: 6px;
        gap: 8px;
    }

    #psychaura-final-site .pa-reader-pdf-page__surface {
        padding: 6px;
        border-radius: 12px;
    }

    /* Spodní lišta podkapitol — styly globálně výše u .pa-mobile-section-nav */
}

body.dark-mode #psychaura-final-site .pa-reader-text-size {
    background: color-mix(in srgb, var(--pa-accent-sky) 10%, rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode #psychaura-final-site .pa-reader-text-size__btn.is-active {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode #psychaura-final-site .pa-reader-focus-btn {
    background: color-mix(in srgb, var(--pa-accent-mint) 18%, rgba(255, 255, 255, 0.06));
}

body.dark-mode #psychaura-final-site .pa-reader-toc-drawer {
    background: color-mix(in srgb, var(--pa-accent-sky) 8%, rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   Dark mode — studijní obsah (musí být na konci, přebíjí světlé #fff mixy)
   ============================================================================= */
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site {
    --reader-paper: #252229;
    --reader-ink: #ebe8e4;
    --reader-muted: #c7c0b8;
    --reader-rule: rgba(255, 255, 255, 0.12);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-rich h2,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-section > h2 {
    color: #f4f0ec;
    border-bottom-color: color-mix(in srgb, var(--pa-accent-mint) 52%, rgba(255, 255, 255, 0.16));
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro--library > summary {
    background: rgba(38, 47, 43, 0.94) !important;
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 62%, rgba(255, 255, 255, 0.18)) !important;
    box-shadow: none !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro__title,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro .pa-h3--topic {
    color: #d9ecdf !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro__toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro__toggle::before {
    border-right-color: color-mix(in srgb, var(--pa-accent-mint) 58%, #f3f7f2);
    border-bottom-color: color-mix(in srgb, var(--pa-accent-mint) 58%, #f3f7f2);
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro__bib li,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib li {
    color: var(--reader-ink) !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro__bib cite,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib cite {
    color: #f0adc3 !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-okruh-intro--library .pa-okruh-intro__bib li + li {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-rich h3.pa-h3--topic,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-section h3.pa-h3--topic,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-rich h3:not(.pa-h3--person):not(.pa-h3--topic) {
    color: #d9ecdf !important;
    background: rgba(79, 99, 87, 0.38) !important;
    border-left-color: color-mix(in srgb, var(--pa-accent-mint) 68%, rgba(255, 255, 255, 0.18)) !important;
    box-shadow: none !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-tip-box {
    background: rgba(40, 52, 63, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    color: var(--reader-ink) !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-tip-box-title {
    color: color-mix(in srgb, var(--pa-accent-sky) 48%, #f3f6fb) !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-tip-box p {
    color: var(--reader-ink) !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-tip-box strong {
    color: #f0adc3 !important;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-rich strong,
:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-rich b {
    color: #f7f3ef;
}

:is(body.dark-mode, html.pa-dark-pending) #psychaura-final-site .pa-study-rich[data-pa-chapter="1"] :is(
    .pa-figure--dejiny,
    .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    .pa-study-lead > .pa-figure--lead
) {
    background: var(--pa-materialy-dark-surface-soft, #26232a) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

/* Vlastní zvýraznění — paleta uživatele (obě témata) */
#psychaura-final-site span.pa-user-highlight--green,
#psychaura-final-site span.pa-user-highlight--mint {
    background-color: var(--pa-highlight-green, #b8dfc4) !important;
}
#psychaura-final-site span.pa-user-highlight--pink,
#psychaura-final-site span.pa-user-highlight--rose {
    background-color: var(--pa-highlight-pink, #e8b4c7) !important;
}
#psychaura-final-site span.pa-user-highlight--burgundy,
#psychaura-final-site span.pa-user-highlight--sand {
    background-color: var(--pa-highlight-burgundy, #ddb8c8) !important;
}
#psychaura-final-site span.pa-user-highlight--blue,
#psychaura-final-site span.pa-user-highlight--sky {
    background-color: var(--pa-highlight-blue, #a8d4e6) !important;
}
#psychaura-final-site span.pa-user-highlight--custom {
    background-color: var(--pa-user-highlight-custom, #c9b8e8) !important;
}
#psychaura-final-site span.pa-user-highlight--join-left,
#psychaura-final-site span.pa-user-highlight--join-right {
    box-shadow: none !important;
}

/* Mobil — sjednocené zobrazení obrázků (plná šířka sloupce, vlevo, stejný rámeček jako PC) */
@media (max-width: 720px) {
    #psychaura-final-site .pa-person-sheet__main > .pa-figure--right:not(.pa-figure--chart),
    #psychaura-final-site .pa-person-sheet__main > .pa-figure--portrait,
    #psychaura-final-site .pa-person-sheet__main > .pa-figure--diagram,
    #psychaura-final-site .pa-person-sheet__main .pa-figure--chart,
    #psychaura-final-site .pa-topic-block__body > .pa-figure--right:not(.pa-figure--chart),
    #psychaura-final-site .pa-topic-block__body > .pa-figure--left:not(.pa-figure--chart),
    #psychaura-final-site .pa-topic-block__body > .pa-figure--diagram,
    #psychaura-final-site .pa-study-lead .pa-figure.pa-figure--lead,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="4"] .pa-topic-block__body > figure.pa-figure--chart,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--diagram,
    #psychaura-final-site .pa-study-rich[data-pa-chapter="5"] .pa-topic-block__body > figure.pa-figure--chart {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.75rem 0 1rem !important;
        text-align: left !important;
    }

    #psychaura-final-site .pa-person-sheet__main > .pa-figure--portrait,
    #psychaura-final-site .pa-study-lead .pa-figure.pa-figure--lead {
        width: auto !important;
        max-width: min(100%, 13.5rem) !important;
    }

    #psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--chart img[src*="image70"]) > :is(ul, ol, h4, .pa-study-table-wrap, .pa-tip-box, blockquote),
    #psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) > :is(p, ul, ol, h4, .pa-study-table-wrap),
    #psychaura-final-site .pa-topic-block__body:has(> .pa-figure--right.pa-figure--portrait) .pa-study-table-wrap,
    #psychaura-final-site .pa-person-sheet__main:has(> .pa-figure--right:not(.pa-figure--chart)) .pa-study-table-wrap {
        max-width: 100% !important;
    }

    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--chart {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.75rem 0 1rem !important;
    }

    :is(#psychaura-final-site .pa-reader__article) .pa-figure.pa-figure--chart img {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(440px, 56vh) !important;
        object-fit: contain !important;
        object-position: left top !important;
    }

    #psychaura-final-site .pa-person-sheet__main .pa-figure--chart,
    #psychaura-final-site .pa-person-sheet__main .pa-detail-block .pa-figure--chart {
        max-width: 100% !important;
        width: 100% !important;
    }

    #psychaura-final-site .pa-social-gallery .pa-figure,
    #psychaura-final-site .pa-social-gallery .pa-figure.is-primary {
        width: 100%;
        max-width: 100%;
    }

    body.dark-mode #psychaura-final-site .pa-reader__article .pa-figure,
    body.dark-mode #psychaura-final-site .pa-study-rich .pa-figure,
    body.dark-mode #psychaura-final-site .pa-s23-panel__fig {
        background: #26232a !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    body.dark-mode #psychaura-final-site .pa-reader__article .pa-figure img,
    body.dark-mode #psychaura-final-site .pa-study-rich .pa-figure img,
    body.dark-mode #psychaura-final-site .pa-s23-panel__fig img {
        background: #2b2830 !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ===== Tablet ink (GoodNotes-style) ===== */
#psychaura-final-site .pa-ink-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 0;
    height: auto;
    pointer-events: none;
    z-index: 25;
    overflow: visible;
    /* Nesmí roztahovat scroll stránky pod konec textu */
    contain: layout;
}

#psychaura-final-site .pa-ink-svg {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    /* Šířku/výšku nastavuje JS v px (= viewBox) — 100% + none = střely do stran */
    width: auto;
    height: auto;
    max-width: none;
    overflow: visible;
    pointer-events: none;
}

#psychaura-final-site .pa-ink-hit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    touch-action: pan-y pinch-zoom;
    background: transparent;
}

/*
  Ink ON: hit chytá tužku. Idle pan-y = scroll prstem.
  Drawing: touch-action none — žádný scroll/klepání během tahu.
*/
#psychaura-final-site .pa-ink-layer--active .pa-ink-hit {
    pointer-events: auto;
    touch-action: pan-y pinch-zoom;
}

#psychaura-final-site .pa-ink-layer--active.pa-ink-layer--finger .pa-ink-hit {
    pointer-events: auto;
    touch-action: none;
}

#psychaura-final-site .pa-ink-layer--active.pa-ink-layer--drawing .pa-ink-hit {
    pointer-events: auto !important;
    touch-action: none !important;
}

#psychaura-final-site .pa-ink-hit.pa-ink-hit--passthrough {
    pointer-events: none !important;
    touch-action: pan-y pinch-zoom !important;
}

body.pa-ink-mode,
body.pa-ink-mode #psychaura-final-site,
body.pa-ink-mode #psychaura-final-site .pa-reader__article,
body.pa-ink-mode #psychaura-final-site .pa-study-rich,
body.pa-ink-drawing {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Během tahu: žádný rubber-band / scroll jump */
body.pa-ink-drawing,
body.pa-ink-drawing #psychaura-final-site {
    overscroll-behavior: none !important;
}

body.pa-ink-drawing {
    caret-color: transparent !important;
}

body.pa-ink-mode #pa-ink-tray,
body.pa-ink-mode #pa-ink-tray * {
    -webkit-user-select: none !important;
    user-select: none !important;
}

body.pa-ink-mode #reader-dock-status {
    display: none !important;
}

#reader-study-dock .pa-reader-study-dock__chip--ink.is-active {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, #fff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, transparent);
}

.pa-ink-tray {
    position: fixed;
    left: 50%;
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    /* Nad chrome/dock (9998x), pod full-screen editory poznámek */
    z-index: 100050;
    /* Pozice = lišta; sheet je absolutní a lištu neposouvá */
    display: block;
    width: max-content;
    max-width: calc(100vw - 0.85rem);
    pointer-events: auto;
    touch-action: manipulation;
}

.pa-ink-tray.pa-ink-tray--sheet-open {
    z-index: 100060;
}

.pa-ink-tray.pa-ink-tray--free {
    left: auto;
    bottom: auto;
    transform: none;
}

.pa-ink-tray.pa-ink-tray--dragging {
    opacity: 0.92;
    z-index: 100070;
}

.pa-ink-tray.pa-ink-tray--dragging .pa-ink-tray__bar {
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 50%, transparent),
        0 16px 32px rgba(28, 25, 23, 0.18);
}

.pa-ink-tray[hidden] {
    display: none !important;
}

.pa-ink-tray--snap .pa-ink-tray__bar {
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, transparent),
        0 12px 28px rgba(28, 25, 23, 0.14);
}

.pa-ink-tray__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.38rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 25, 23, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.14);
}

.pa-ink-tray__grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 2.45rem;
    margin-right: 0.05rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: color-mix(in srgb, var(--pa-ink, #1c1917) 42%, #9a9590);
    cursor: grab;
    touch-action: none;
    flex: 0 0 auto;
}

.pa-ink-tray__grip svg {
    width: 0.95rem;
    height: 1.15rem;
    fill: currentColor;
}

.pa-ink-tray__grip:active,
.pa-ink-tray--dragging .pa-ink-tray__grip {
    cursor: grabbing;
    color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 35%, #1c1917);
}

.pa-ink-tray__sep {
    width: 1px;
    height: 1.4rem;
    margin: 0 0.18rem;
    background: rgba(28, 25, 23, 0.12);
}

.pa-ink-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    color: #5b5b5b;
}

.pa-ink-tool svg {
    width: 1.28rem;
    height: 1.28rem;
}

.pa-ink-tool--pen .pa-ink-ico__body {
    fill: var(--pa-accent-mint, #b8dfc4);
}

.pa-ink-tool--pen .pa-ink-ico__tip {
    fill: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, #1c1917);
}

.pa-ink-tool--hl .pa-ink-ico__hl {
    fill: var(--pa-accent-rose, #e8b4c7);
}

.pa-ink-tool--hl .pa-ink-ico__hl-cap {
    fill: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 70%, #1c1917);
}

.pa-ink-tool--hl .pa-ink-ico__hl-mark {
    stroke: var(--pa-accent-rose, #e8b4c7);
    stroke-width: 2.4;
    stroke-linecap: round;
    opacity: 0.7;
}

.pa-ink-tool--eraser .pa-ink-ico__eraser {
    fill: var(--pa-accent-lavender, #c9b8e8);
}

.pa-ink-tool--eraser .pa-ink-ico__eraser-top {
    fill: color-mix(in srgb, var(--pa-accent-lavender, #c9b8e8) 70%, #1c1917);
}

.pa-ink-tool--eraser .pa-ink-ico__eraser-band {
    fill: none;
    stroke: rgba(28, 25, 23, 0.25);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.pa-ink-tool--lasso {
    color: var(--pa-accent-sky, #a8d4e6);
}

.pa-ink-tool--lasso .pa-ink-ico__lasso {
    stroke: color-mix(in srgb, var(--pa-accent-sky, #a8d4e6) 45%, #1c1917);
}

.pa-ink-tool.is-active {
    background: rgba(28, 25, 23, 0.05);
    box-shadow: inset 0 0 0 1.5px rgba(28, 25, 23, 0.16);
}

.pa-ink-tool--pen.is-active {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 28%, #fff);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, transparent);
}

.pa-ink-tool--hl.is-active {
    background: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 28%, #fff);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 55%, transparent);
}

.pa-ink-tool--eraser.is-active {
    background: color-mix(in srgb, var(--pa-accent-lavender, #c9b8e8) 26%, #fff);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pa-accent-lavender, #c9b8e8) 55%, transparent);
}

.pa-ink-tool--lasso.is-active {
    background: color-mix(in srgb, var(--pa-accent-sky, #a8d4e6) 28%, #fff);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pa-accent-sky, #a8d4e6) 55%, transparent);
}

.pa-ink-tool--undo,
.pa-ink-tool--redo,
.pa-ink-tool--close {
    color: color-mix(in srgb, var(--pa-ink, #1c1917) 72%, #6b6560);
}

.pa-ink-tool:disabled {
    opacity: 0.3;
    cursor: default;
}

.pa-ink-sheet {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%);
    z-index: 1;
    width: min(20rem, calc(100vw - 1.2rem));
    padding: 0.85rem 0.9rem 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(28, 25, 23, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(28, 25, 23, 0.16);
    box-sizing: border-box;
}

.pa-ink-tray--sheet-below .pa-ink-sheet {
    bottom: auto;
    top: calc(100% + 0.45rem);
}

.pa-ink-sheet[hidden] {
    display: none !important;
}

.pa-ink-sheet__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 750;
    color: #1c1917;
    letter-spacing: -0.01em;
}

.pa-ink-sheet__label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(28, 25, 23, 0.48);
}

.pa-ink-sheet__sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.pa-ink-sheet__stroke {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.45rem;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 12px;
    background: #fafaf8;
    cursor: pointer;
}

.pa-ink-sheet__stroke.is-active {
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 65%, transparent);
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 18%, #fff);
}

.pa-ink-sheet__stroke--hl.is-active {
    border-color: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 65%, transparent);
    background: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 20%, #fff);
}

.pa-ink-sheet__stroke-line {
    display: block;
    width: 100%;
    height: var(--ink-w, 3px);
    border-radius: 999px;
    background: var(--ink-c, #b8dfc4);
    opacity: 0.92;
}

.pa-ink-sheet__stroke--hl .pa-ink-sheet__stroke-line {
    opacity: 0.55;
    border-radius: 4px;
}

.pa-ink-sheet__pen-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.pa-ink-sheet__pen-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-height: 4.1rem;
    padding: 0.55rem 0.4rem;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 14px;
    background: #fafaf8;
    color: #1c1917;
    cursor: pointer;
}

.pa-ink-sheet__pen-mode svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 45%, #1c1917);
}

.pa-ink-sheet__pen-mode span {
    font-size: 0.78rem;
    font-weight: 750;
}

.pa-ink-sheet__pen-mode.is-active {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 22%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 58%, transparent);
}

.pa-ink-sheet__check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    font-weight: 650;
    color: #1c1917;
    cursor: pointer;
}

.pa-ink-sheet__check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--pa-accent-mint, #b8dfc4);
}

.pa-ink-sheet__seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.pa-ink-sheet__row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.pa-ink-sheet__seg-btn {
    min-height: 2.3rem;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 999px;
    background: #fafaf8;
    color: #1c1917;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.pa-ink-sheet__seg-btn.is-active {
    background: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 22%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-mint, #b8dfc4) 55%, transparent);
}

.pa-ink-sheet__seg-btn--danger {
    background: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 22%, #fff);
    border-color: color-mix(in srgb, var(--pa-accent-rose, #e8b4c7) 55%, transparent);
}

.pa-ink-sheet__seg-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.pa-ink-sheet__eraser {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3.4rem;
    padding: 0.45rem 0.3rem;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 12px;
    background: #fafaf8;
    cursor: pointer;
}

.pa-ink-sheet__eraser.is-active {
    border-color: color-mix(in srgb, var(--pa-accent-lavender, #c9b8e8) 60%, transparent);
    background: color-mix(in srgb, var(--pa-accent-lavender, #c9b8e8) 20%, #fff);
}

.pa-ink-sheet__eraser-cap {
    width: calc(var(--er, 18px) * 1.15);
    height: var(--er, 18px);
    border-radius: 5px 5px 4px 4px;
    background: linear-gradient(180deg, #e8d9f5 0%, var(--pa-accent-lavender, #c9b8e8) 58%, #b39fd6 100%);
    box-shadow: inset 0 -2px 0 rgba(28, 25, 23, 0.1);
}

.pa-ink-sheet__eraser-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(28, 25, 23, 0.55);
}

.pa-ink-sheet__hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(28, 25, 23, 0.48);
}

.pa-ink-selection-box {
    stroke: color-mix(in srgb, var(--pa-accent-sky, #a8d4e6) 40%, #1c1917) !important;
    fill: color-mix(in srgb, var(--pa-accent-sky, #a8d4e6) 16%, transparent) !important;
}

body.dark-mode .pa-ink-tray__bar,
body.dark-mode .pa-ink-sheet {
    background: rgba(42, 38, 46, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pa-ink-sheet__title,
body.dark-mode .pa-ink-sheet__seg-btn,
body.dark-mode .pa-ink-sheet__pen-mode,
body.dark-mode .pa-ink-sheet__check,
body.dark-mode .pa-ink-tool--undo,
body.dark-mode .pa-ink-tool--redo,
body.dark-mode .pa-ink-tool--close {
    color: #f5f2ea;
}

body.dark-mode .pa-ink-sheet__stroke,
body.dark-mode .pa-ink-sheet__eraser,
body.dark-mode .pa-ink-sheet__seg-btn,
body.dark-mode .pa-ink-sheet__pen-mode {
    background: #332f38;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pa-ink-sheet__label,
body.dark-mode .pa-ink-sheet__hint,
body.dark-mode .pa-ink-sheet__eraser-name {
    color: rgba(245, 242, 234, 0.55);
}

body.dark-mode .pa-ink-tray__grip {
    color: rgba(245, 242, 234, 0.45);
}

@media (max-width: 720px) {
    .pa-ink-tray:not(.pa-ink-tray--free) {
        bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px));
    }
}

/* === PHONE FINAL — Xiaomi / úzký displej: čtečka nerozpadlá === */
@media (max-width: 430px) {
    #psychaura-final-site .pa-reader-mode-nav__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.22rem;
        padding: 0.22rem;
    }

    #psychaura-final-site .pa-reader-mode-nav__btn {
        min-height: 2.45rem;
        padding: 0.28rem 0.18rem;
    }

    #psychaura-final-site .pa-reader-mode-nav__label {
        font-size: 0.64rem;
        line-height: 1.15;
        letter-spacing: -0.01em;
    }

    #psychaura-final-site .pa-reader-doc-list,
    #psychaura-final-site .pa-reader-library-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    #psychaura-final-site .pa-s23-panel,
    #psychaura-final-site .pa-illustrated-block,
    #psychaura-final-site .pa-stage-map {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #psychaura-final-site table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
