.books-v1 {
    --books-peach: var(--library-accent);
    --books-peach-active: var(--library-active);
    --books-peach-muted: var(--library-muted);
    --books-peach-deep: var(--library-deep);
    --books-peach-line: var(--library-line);
    --books-peach-bg: rgba(var(--library-deep-rgb), .072);
    --books-blue: var(--v2-uhura);
    --books-blue-active: var(--v2-uhura-active);
    --books-blue-muted: var(--v2-uhura-muted);
    --books-blue-line: var(--v2-uhura-line);
    --system-marcel-color: var(--books-peach);
    --system-marcel-active: var(--books-peach-active);
    --system-marcel-muted: var(--books-peach-muted);
    --system-marcel-deep: var(--books-peach-deep);
}

.books-v1 .books-shell {
    width: min(900px, calc(100% - 24px));
}

.books-v1:not(.books-sector-v2) .books-system-header .legal-home-link {
    padding: 24px 30px 22px;
}

.books-v1:not(.books-sector-v2) .books-system-header .terminal-title {
    color: var(--legal-system-active);
    font-size: 1.28rem;
    text-shadow: 0 0 3px rgba(255, 208, 242, .5), 0 0 10px rgba(255, 79, 216, .26);
}

.books-v1 .books-overview {
    display: grid;
    gap: 14px;
}

.books-v1 .books-title-region {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 30px 2px;
}

.books-v1 .books-title-region h1 {
    margin: 0;
    color: var(--books-peach-active);
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: .075em;
    text-shadow: 0 0 5px rgba(var(--library-active-rgb), .29), 0 0 14px rgba(var(--library-deep-rgb), .2);
}

.books-v1 .books-sector-icon {
    position: relative;
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: var(--books-peach);
}

.books-v1 .books-sector-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    background-color: currentColor;
    mask: url("/images/ui/piktogramme/bibliothek.png") center / 110% auto no-repeat;
    -webkit-mask: url("/images/ui/piktogramme/bibliothek.png") center / 110% auto no-repeat;
}

.books-v1 .books-v2-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 28px 110px 26px 30px;
    border: 1px solid var(--books-peach-line);
    border-radius: 7px;
    background: radial-gradient(ellipse at 18% 0, rgba(var(--library-accent-rgb), .1), transparent 48%), var(--books-peach-bg);
    box-shadow: inset 0 0 38px rgba(var(--library-deep-rgb), .1);
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.books-v1 .books-v2-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 35%, var(--books-peach) 0, transparent 68%);
    opacity: .018;
}

.books-v1 .books-v2-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(var(--library-accent-rgb),.18) 12% 38%, transparent 38%) 0 25% / 100% 1px no-repeat,
        linear-gradient(90deg, transparent 0 54%, rgba(var(--library-accent-rgb),.13) 54% 82%, transparent 82%) 0 64% / 100% 1px no-repeat;
}

.books-v1 .books-v2-section > * {
    position: relative;
    z-index: 1;
}

.books-v1 .books-marcel-figure {
    position: absolute;
    z-index: 2;
    top: 30px;
    right: 30px;
    font-size: 1.12rem;
}

.books-v1 .books-closing-section .system-marcel-glyph::before {
    animation-delay: -27s;
}

.books-v1 .books-status-line,
.books-v1 .books-observation,
.books-v1 .books-closing-line {
    color: var(--books-peach);
    font-size: var(--font-system);
    line-height: 1.72;
    letter-spacing: .035em;
}

.books-v1 .books-status-pair {
    display: flex;
    gap: .55em;
    line-height: 1.9;
    letter-spacing: .025em;
    white-space: nowrap;
}

.books-v1 .books-status-pair strong {
    color: var(--books-peach-active);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(var(--library-accent-rgb), .26);
}

.books-v1 .books-status-value {
    display: inline-block;
}

.books-v1 .books-observation {
    margin-top: 12px;
    color: var(--books-peach-muted);
}

.books-v1 .books-edition-note {
    margin-top: 9px;
    color: var(--books-peach-muted);
    font-size: var(--font-meta);
    line-height: 1.65;
    letter-spacing: .045em;
}

.books-v1 .books-catalogue {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(var(--library-accent-rgb), .48);
    border-radius: 11px;
    background: rgba(12, 9, 12, .62);
}

.books-v1 .books-filter {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 18px;
    border: 1px solid rgba(var(--library-accent-rgb), .27);
    border-radius: 7px;
    background: rgba(var(--library-surface-rgb), .36);
}

.books-v1 .books-filter::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -42% -28%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 52% 68% at 20% 28%, rgba(var(--library-accent-rgb), .16), transparent 74%),
        radial-gradient(ellipse 62% 54% at 82% 64%, rgba(var(--library-highlight-rgb), .1), transparent 76%),
        radial-gradient(ellipse 46% 62% at 55% 90%, rgba(var(--library-deep-rgb), .2), transparent 78%);
    filter: blur(13px);
    opacity: .62;
    transform: translate3d(5%, -3%, 0) scale(1.02);
    animation: booksFilterSurfaceLight 63s ease-in-out -31s infinite alternate;
}

.books-v1 .books-filter > * {
    position: relative;
    z-index: 1;
}

.books-v1 .books-filter > summary {
    display: flex;
    padding: 15px 17px;
    color: var(--books-peach);
    font-size: var(--font-system);
    letter-spacing: .055em;
    cursor: pointer;
    list-style: none;
}

.books-v1 .books-filter > summary::-webkit-details-marker { display: none; }

.books-v1 .books-filter > summary > span {
    margin-right: .55em;
    color: var(--books-peach-active);
    transition: transform .3s ease;
}

.books-v1 .books-filter[open] > summary > span { transform: rotate(90deg); }

.books-v1 .books-filter:focus-within {
    border-color: rgba(var(--library-active-rgb), .58);
}

.books-v1 .books-filter > summary:focus-visible {
    outline: 1px solid var(--books-peach-active);
    outline-offset: 2px;
}

.books-v1 .books-filter-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
    max-height: 0;
    padding: 0 17px;
    overflow: hidden;
    border-top: 1px solid transparent;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .42s ease, padding .42s ease, border-color .24s ease, opacity .24s ease, transform .36s ease;
}

.books-v1 .books-filter[open] .books-filter-content {
    max-height: 480px;
    padding-block: 14px 18px;
    border-top-color: rgba(var(--library-accent-rgb), .16);
    opacity: 1;
    transform: translateY(0);
}

.books-v1 .books-filter label {
    display: grid;
    gap: 7px;
    color: var(--books-peach-muted);
    font-size: var(--font-meta);
    letter-spacing: .08em;
}

.books-v1 .books-filter select {
    width: 100%;
    min-width: 0;
    padding: 9px 30px 9px 10px;
    border: 1px solid rgba(var(--library-accent-rgb), .34);
    border-radius: 3px;
    background: rgba(var(--library-surface-rgb), .78);
    color: var(--books-peach-active);
    font: inherit;
    font-size: var(--font-system);
    letter-spacing: .025em;
}

.books-v1 .books-filter select:disabled {
    border-color: rgba(var(--library-accent-rgb), .18);
    color: rgba(var(--library-muted-rgb), .58);
}

.books-v1 .books-filter select:focus-visible {
    outline: 1px solid var(--books-peach-active);
    outline-offset: 2px;
}

.books-v1 .books-filter-reset {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(var(--library-accent-rgb), .38);
    border-radius: 3px;
    background: rgba(var(--library-surface-rgb), .5);
    color: var(--books-peach);
    font: inherit;
    font-size: var(--font-meta);
    letter-spacing: .055em;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.books-v1 .books-filter-reset:disabled {
    border-color: rgba(var(--library-accent-rgb), .16);
    color: rgba(var(--library-muted-rgb), .42);
    cursor: default;
}

.books-v1 .books-filter-reset:not(:disabled):focus-visible {
    border-color: var(--books-peach-active);
    outline: 1px solid var(--books-peach-active);
    outline-offset: 2px;
    color: var(--books-peach-active);
    box-shadow: 0 0 10px rgba(var(--library-accent-rgb), .16);
}

.books-v1 .books-catalogue-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.books-v1 .books-entry {
    margin: 0;
}

.books-v1 .books-entry-record {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 64px);
    width: 100%;
    max-width: none;
    padding: clamp(22px, 4vw, 38px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(var(--library-accent-rgb), .2);
    border-radius: 10px;
    background: rgba(8, 7, 9, .5);
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.books-v1 .books-entry-record::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -34% -26%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 58% 72% at 14% 24%, rgba(var(--library-accent-rgb), .17), transparent 72%),
        radial-gradient(ellipse 68% 56% at 88% 72%, rgba(var(--library-highlight-rgb), .105), transparent 75%),
        radial-gradient(ellipse 54% 70% at 48% 106%, rgba(var(--library-deep-rgb), .19), transparent 78%);
    filter: blur(16px);
    opacity: .66;
    transform: translate3d(-5%, 2%, 0) scale(1.02);
    animation: booksCardSurfaceLight 57s ease-in-out -7s infinite alternate;
    transition: opacity .24s ease;
}

.books-v1 .books-entry-record > * {
    position: relative;
    z-index: 1;
}

.books-v1 .books-entry:nth-child(3n + 2) .books-entry-record::before {
    animation-delay: -26s;
    animation-duration: 63s;
    animation-direction: alternate-reverse;
}

.books-v1 .books-entry:nth-child(3n) .books-entry-record::before {
    animation-delay: -41s;
    animation-duration: 69s;
}

.books-v1 .books-entry-record:hover::before,
.books-v1 .books-entry-record:focus-within::before {
    opacity: .82;
}

@keyframes booksCardSurfaceLight {
    0% { transform: translate3d(-5%, 2%, 0) scale(1.02); opacity: .58; }
    38% { transform: translate3d(5%, -4%, 0) scale(1.07); opacity: .76; }
    72% { transform: translate3d(-1%, 5%, 0) scale(.99); opacity: .64; }
    100% { transform: translate3d(6%, 1%, 0) scale(1.04); opacity: .72; }
}

@keyframes booksFilterSurfaceLight {
    0% { transform: translate3d(5%, -3%, 0) scale(1.02); opacity: .54; }
    42% { transform: translate3d(-5%, 4%, 0) scale(1.08); opacity: .73; }
    76% { transform: translate3d(3%, 6%, 0) scale(1); opacity: .6; }
    100% { transform: translate3d(-3%, -1%, 0) scale(1.05); opacity: .69; }
}

.books-v1 .books-entry-cover {
    width: 100%;
    max-width: 300px;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(var(--library-accent-rgb), .3);
    border-radius: 7px;
    background: #050508;
    box-shadow: 0 0 18px rgba(var(--library-deep-rgb), .13);
}

.books-v1 .books-entry-cover img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.books-v1 .books-entry-details {
    display: grid;
    gap: 18px;
    padding: 0;
    min-width: 0;
}

.books-v1 .books-entry-information {
    display: grid;
    align-content: center;
    gap: clamp(34px, 5vw, 52px);
    width: min(100%, 470px);
    min-width: 0;
}

.books-v1 .books-entry-author,
.books-v1 .books-entry-meta {
    color: var(--books-peach-muted);
    font-size: var(--font-meta);
    line-height: 1.55;
    letter-spacing: .09em;
}

.books-v1 .books-entry-details h3 {
    margin: 0;
    color: var(--library-reading);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: .055em;
    text-shadow: 0 0 4px rgba(var(--library-active-rgb), .17), 0 0 11px rgba(var(--library-deep-rgb), .17);
}

.books-v1 .books-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45em;
    font-size: var(--font-micro);
}

.books-v1 .books-entry-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 1.05em;
    color: rgba(var(--library-accent-rgb), .48);
}

.books-v1 .books-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
    width: min(100%, 330px);
}

.books-v1 .books-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--library-accent-rgb), .34);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(var(--library-surface-rgb), .8), rgba(10, 7, 9, .94));
    color: var(--books-peach-active);
    font-size: var(--font-system);
    letter-spacing: .065em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.books-v1 .books-action:not(.books-action-unavailable),
.books-v1 .books-filter-reset:not(:disabled),
.books-v1 .books-work-reader-entry a,
.books-v1 .books-work-parts li > a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.books-v1 .books-action:not(.books-action-unavailable)::before,
.books-v1 .books-filter-reset:not(:disabled)::before,
.books-v1 .books-work-reader-entry a::before,
.books-v1 .books-work-parts li > a::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -70% -48%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 66% at 22% 50%, rgba(var(--library-highlight-rgb), .18), transparent 74%),
        radial-gradient(ellipse 46% 72% at 78% 44%, rgba(var(--library-accent-rgb), .13), transparent 76%);
    opacity: .48;
    transform: translate3d(-10%, 0, 0) scale(1.02);
    animation: booksControlSurfaceLight 37s ease-in-out -5s infinite alternate;
    transition: opacity .18s ease, filter .18s ease;
}

.books-v1 .books-action-secondary::before { animation-delay: -21s; }
.books-v1 .books-filter-reset:not(:disabled)::before { animation-delay: -13s; animation-duration: 43s; }
.books-v1 .books-work-reader-entry a::before { animation-delay: -29s; animation-duration: 41s; }
.books-v1 .books-work-parts li:nth-child(3n + 2) > a::before { animation-delay: -17s; }
.books-v1 .books-work-parts li:nth-child(3n) > a::before { animation-delay: -31s; }

.books-v1 .books-action:not(.books-action-unavailable):hover::before,
.books-v1 .books-action:not(.books-action-unavailable):focus-visible::before,
.books-v1 .books-filter-reset:not(:disabled):hover::before,
.books-v1 .books-filter-reset:not(:disabled):focus-visible::before,
.books-v1 .books-work-reader-entry a:hover::before,
.books-v1 .books-work-reader-entry a:focus-visible::before,
.books-v1 .books-work-parts li > a:hover::before,
.books-v1 .books-work-parts li > a:focus-visible::before {
    opacity: .86;
    filter: brightness(1.16);
}

.books-v1 .books-action:not(.books-action-unavailable):active,
.books-v1 .books-filter-reset:not(:disabled):active,
.books-v1 .books-work-reader-entry a:active,
.books-v1 .books-work-parts li > a:active {
    border-color: var(--books-peach-active);
    box-shadow: inset 0 0 22px rgba(var(--library-accent-rgb), .16), 0 0 9px rgba(var(--library-deep-rgb), .2);
}

@keyframes booksControlSurfaceLight {
    0% { transform: translate3d(-10%, 1%, 0) scale(1.02); }
    45% { transform: translate3d(8%, -3%, 0) scale(1.08); }
    78% { transform: translate3d(1%, 4%, 0) scale(1); }
    100% { transform: translate3d(11%, 0, 0) scale(1.05); }
}

.books-v1 .books-action-primary {
    border-color: rgba(var(--library-active-rgb), .58);
    background: linear-gradient(180deg, rgba(var(--library-deep-rgb), .72), rgba(var(--library-surface-rgb), .94));
    color: var(--library-reading);
    text-shadow: 0 0 6px rgba(var(--library-active-rgb), .22);
}

.books-v1 .books-action-unavailable {
    color: var(--books-peach-muted);
    cursor: default;
    opacity: .6;
}

.books-v1 .books-action:hover,
.books-v1 .books-action:focus-visible {
    outline: none;
    border-color: rgba(var(--library-active-rgb), .84);
    color: var(--library-reading-active);
    box-shadow: inset 0 0 18px rgba(var(--library-accent-rgb), .08), 0 0 13px rgba(var(--library-deep-rgb), .2);
}

.books-v1 .books-empty {
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid rgba(var(--library-accent-rgb), .2);
    color: var(--books-peach-muted);
    font-size: var(--font-system);
    line-height: 1.65;
    letter-spacing: .045em;
}

.books-v1 .books-empty[hidden],
.books-v1 .books-entry[hidden] { display: none; }

.books-v1 .books-action:focus-visible {
    outline: 1px solid var(--books-peach-active);
    outline-offset: 3px;
}

.books-v1 .books-closing-section {
    padding-bottom: 24px;
}

.books-v1 .books-v2-footer {
    margin: 0;
    padding: 30px 0 0;
}

.books-v1 .books-v2-footer .footer-line {
    color: var(--legal-system-muted);
    opacity: .48;
}

.books-v1 .books-v2-footer a {
    color: var(--legal-system);
}

.books-v1 .books-v2-footer a:hover,
.books-v1 .books-v2-footer a:focus-visible {
    color: var(--legal-system-active);
    text-shadow: 0 0 3px rgba(255, 208, 242, .54), 0 0 10px rgba(255, 79, 216, .4);
}

@media (hover: hover) and (pointer: fine) {
    .books-v1 .books-v2-section:hover {
        border-color: rgba(var(--library-active-rgb), .72);
        box-shadow: inset 0 0 42px rgba(var(--library-deep-rgb), .12);
    }

    .books-v1 .books-entry-record:hover {
        border-color: rgba(var(--library-accent-rgb), .4);
        box-shadow: inset 0 0 30px rgba(var(--library-deep-rgb), .065);
    }

    .books-v1 .books-filter-reset:not(:disabled):hover {
        border-color: rgba(var(--library-active-rgb), .7);
        color: var(--books-peach-active);
        box-shadow: 0 0 10px rgba(var(--library-deep-rgb), .15);
    }
}

.books-v1 .books-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(34px, 7vw, 68px) 0 76px;
}

.books-v1 .books-work-title-region {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 30px 2px;
}

.books-v1 .books-work-title-region h1 {
    margin: 0;
    color: var(--books-peach-active);
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: .075em;
    text-shadow: 0 0 5px rgba(var(--library-active-rgb), .29), 0 0 14px rgba(var(--library-deep-rgb), .2);
}

.books-v1 .books-work-sector-label {
    margin-bottom: 3px;
    color: var(--books-peach-muted);
    font-size: var(--font-meta);
    letter-spacing: .1em;
}

.books-v1 .books-work-status {
    padding-top: 25px;
}

.books-v1 .books-work-kicker {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px;
    color: var(--books-peach-active);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .13em;
    text-shadow: 0 0 7px rgba(var(--library-accent-rgb), .24);
}

.books-v1 .books-work-status-line {
    width: fit-content;
    max-width: 100%;
    color: var(--books-peach);
    font-size: var(--font-system);
    line-height: 1.9;
    letter-spacing: .035em;
}

.books-v1 .books-work-report-body {
    margin: 0;
    padding: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.books-v1 .books-work-report-copy {
    width: 100%;
    margin-inline: auto;
    color: var(--legal-reading);
    font-size: 1rem;
    line-height: 1.82;
}

.books-v1 .books-work-author-portrait {
    float: right;
    width: min(27%, 180px);
    margin: 0 0 24px 30px;
}

.books-v1 .books-work-author-portrait img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.books-v1 .books-work-report-copy h2 {
    margin: 2.65em 0 1.05em;
    padding-top: 1.8em;
    border-top: 1px solid rgba(var(--library-accent-rgb), .17);
    color: var(--books-peach-active);
    font-size: .98rem;
    line-height: 1.5;
    letter-spacing: .12em;
    text-shadow: 0 0 7px rgba(var(--library-accent-rgb), .2);
}

.books-v1 .books-work-report-copy h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.books-v1 .books-work-report-copy p {
    margin: 0 0 1.35em;
    color: var(--legal-reading);
    text-shadow: 0 0 4px rgba(var(--library-active-rgb), .035);
}

.books-v1 .books-work-report-copy p:last-child {
    margin-bottom: 0;
}

.books-v1 .books-work-editorial-section {
    width: 100%;
}

.books-v1 .books-work-editorial-section + .books-work-editorial-section {
    margin-top: clamp(38px, 5vw, 52px);
    padding-top: clamp(30px, 4vw, 42px);
    border-top: 1px solid rgba(var(--library-accent-rgb), .2);
}

.books-v1 .books-work-editorial-section > h2,
.books-v1 .books-work-section-copy {
    width: 100%;
    margin-inline: auto;
}

.books-v1 .books-work-editorial-section h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    color: var(--books-peach-active);
    font-size: clamp(.9rem, 1.7vw, 1.04rem);
    letter-spacing: .14em;
}

.books-v1 .books-work-editorial-section h3 {
    margin: 0;
    color: var(--library-reading);
    font-size: clamp(1rem, 2.1vw, 1.24rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .085em;
    text-shadow: 0 0 6px rgba(var(--library-active-rgb), .15);
}

.books-v1 .books-work-editorial-section p {
    margin-bottom: 1.35em;
}

.books-v1 .books-work-factline {
    color: var(--books-peach-muted);
    font-size: var(--font-meta);
    line-height: 1.65;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.books-v1 .books-work-author-profile {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 52px);
}

.books-v1 .books-work-author-profile .books-work-author-portrait {
    float: none;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(var(--library-accent-rgb), .24);
    background: rgba(8, 7, 9, .44);
}

.books-v1 .books-work-author-profile .books-work-author-portrait img {
    width: 100%;
    height: auto;
    filter: none;
}

.books-v1 .books-work-author-copy {
    min-width: 0;
    max-width: 60ch;
}

.books-v1 .books-work-author-copy h2 {
    margin-bottom: 18px;
}

.books-v1 .books-work-author-copy h3,
.books-v1 .books-work-profile h3 {
    margin-bottom: 8px;
}

.books-v1 .books-work-author-copy .books-work-factline,
.books-v1 .books-work-profile .books-work-factline {
    margin: 0 0 23px;
}

.books-v1 .books-work-world > h2 {
    margin-bottom: 24px;
}

.books-v1 .books-work-profile > h2,
.books-v1 .books-work-further > h2,
.books-v1 .books-work-why > h2 {
    margin-bottom: 24px;
}

.books-v1 .books-work-profile .books-work-section-copy > p,
.books-v1 .books-work-why .books-work-section-copy > p {
    max-width: 68ch;
}

.books-v1 .books-work-context-list,
.books-v1 .books-work-reading-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 0;
}

.books-v1 .books-work-context-list > div,
.books-v1 .books-work-reading-list > div {
    min-width: 0;
    padding: 17px 0 18px;
    border-top: 1px solid rgba(var(--library-accent-rgb), .18);
}

.books-v1 .books-work-context-list dt,
.books-v1 .books-work-reading-list dt {
    margin-bottom: 9px;
    color: var(--books-peach-active);
    font-size: .82rem;
    line-height: 1.55;
    letter-spacing: .065em;
}

.books-v1 .books-work-context-list dt span,
.books-v1 .books-work-reading-list dt span {
    color: var(--books-peach-muted);
    font-size: .72rem;
}

.books-v1 .books-work-context-list dd,
.books-v1 .books-work-reading-list dd {
    margin: 0;
    color: rgba(var(--library-reading-rgb), .82);
    font-size: .92rem;
    line-height: 1.68;
}

.books-v1 .books-work-context-list dd p {
    margin: 0 0 .9em;
}

.books-v1 .books-work-context-list dd p:last-child {
    margin-bottom: 0;
}

.books-v1 .books-work-reader-entry,
.books-v1 .books-work-progress,
.books-v1 .books-work-parts {
    font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
}

.books-v1 .books-work-reader-entry {
    display: grid;
    min-height: 104px;
    padding: 24px;
    place-items: center;
    border: 1px solid rgba(var(--library-active-rgb), .58);
    border-radius: 7px;
    background: rgba(13, 9, 11, .62);
    box-sizing: border-box;
}

.books-v1 .books-work-reader-entry a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    border: 1px solid rgba(var(--library-active-rgb), .58);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(var(--library-deep-rgb), .56), rgba(var(--library-surface-rgb), .9));
    color: var(--library-reading);
    font-size: var(--font-meta);
    line-height: 1.45;
    letter-spacing: .075em;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(var(--library-active-rgb), .2);
}

.books-v1 .books-work-reader-entry a:hover,
.books-v1 .books-work-reader-entry a:focus-visible {
    border-color: var(--books-peach-active);
    outline: 1px solid var(--books-peach-active);
    outline-offset: 3px;
    color: var(--library-reading-active);
    box-shadow: inset 0 0 18px rgba(var(--library-accent-rgb), .08), 0 0 12px rgba(var(--library-deep-rgb), .2);
}

.books-v1 .books-work-reader-entry a::after {
    content: "\00a0→";
}

.books-v1 .books-work-progress {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 16px;
    border: 1px solid rgba(var(--library-accent-rgb), .22);
    box-sizing: border-box;
    color: var(--books-peach-muted);
    font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    font-size: var(--font-micro);
    letter-spacing: .07em;
}

.books-v1 .books-work-progress output {
    color: #e3e8e5;
    font: inherit;
    text-shadow: 0 0 6px rgba(var(--library-accent-rgb), .16);
}

.books-v1 .books-work-further .books-work-recommendation-title {
    margin: 34px 0 12px;
    color: var(--books-peach-active);
    font-size: .9rem;
}

.books-v1 .books-work-reading-heading {
    padding: 42px 30px 4px;
    border-top: 1px solid rgba(var(--library-accent-rgb), .2);
}

.books-v1 .books-work-reading-heading h2 {
    margin: 0;
    color: var(--books-peach-active);
    font-size: clamp(.92rem, 1.8vw, 1.08rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .14em;
    text-shadow: 0 0 7px rgba(var(--library-accent-rgb), .2);
}

.books-v1 .books-work-parts h2 {
    margin: 0;
    color: var(--books-peach);
    font-size: var(--font-meta);
    letter-spacing: .085em;
    text-shadow: 0 0 7px rgba(var(--library-accent-rgb), .2);
}

.books-v1 .books-work-parts a {
    color: var(--books-peach);
    text-decoration: none;
}

.books-v1 .books-work-parts ol {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.books-v1 .books-work-parts li > a,
.books-v1 .books-work-parts li > div {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(var(--library-accent-rgb), .25);
    box-sizing: border-box;
}

.books-v1 .books-work-original-entry li {
    display: flex;
    justify-content: center;
}

.books-v1 .books-work-parts.books-work-original-entry ol {
    grid-template-columns: minmax(0, 1fr);
}

.books-v1 .books-work-parts.books-work-original-entry li > a {
    min-height: 58px;
    padding-block: 8px;
}

.books-v1 .books-work-parts li > a {
    border-color: rgba(var(--library-accent-rgb), .42);
    background: rgba(var(--library-deep-rgb), .08);
}

.books-v1 .books-work-parts li > div {
    color: var(--books-peach-muted);
    opacity: .58;
}

.books-v1 .books-work-part-label {
    color: #e3e8e5;
    font-size: .86rem;
    letter-spacing: .08em;
}

.books-v1 .is-unavailable .books-work-part-label {
    color: var(--books-peach-muted);
}

.books-v1 .books-work-part-state {
    color: var(--books-peach-muted);
    font-size: var(--font-micro);
    letter-spacing: .055em;
    text-align: right;
}

@media (hover: hover) and (pointer: fine) {
    .books-v1 .books-work-parts li > a:hover {
        border-color: var(--books-peach-active);
        color: var(--books-peach-active);
        box-shadow: inset 0 0 18px rgba(var(--library-accent-rgb), .06), 0 0 10px rgba(var(--library-deep-rgb), .16);
    }
}

.books-v1 .books-work-parts a:focus-visible {
    border-color: var(--books-peach-active);
    outline: 1px solid var(--books-peach-active);
    outline-offset: 3px;
    box-shadow: 0 0 10px rgba(var(--library-accent-rgb), .18);
}

.books-v1 .books-work-footer-wrap {
    padding: 8px 30px 0;
}

.books-v1 .books-work-footer {
    margin: 0;
    padding-top: 28px;
}

.books-v1 .books-work-footer .footer-line {
    color: var(--legal-system-muted);
    opacity: .48;
}

.books-v1 .books-work-footer a {
    color: var(--legal-system);
}

.books-v1 .books-work-footer a:hover,
.books-v1 .books-work-footer a:focus-visible {
    color: var(--legal-system-active);
    text-shadow: 0 0 3px rgba(255, 208, 242, .54), 0 0 10px rgba(255, 79, 216, .4);
}

/* Eigenständige Werkseite: funktionale Module auf der globalen CRT-Fläche. */
.books-v1 .books-work {
    gap: 14px;
    padding-top: 0;
    padding-bottom: 76px;
}

.books-v1 .books-work-module {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding: clamp(26px, 4.5vw, 42px);
    border: 1px solid rgba(var(--library-accent-rgb), .38);
    border-radius: 7px;
    background:
        radial-gradient(ellipse at 18% 0, rgba(var(--library-accent-rgb), .075), transparent 52%),
        rgba(var(--library-surface-rgb), .26);
    box-sizing: border-box;
}

.books-v1 .books-work-module:not(.books-work-footer-wrap)::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -34% -24%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 62% 72% at 14% 24%, rgba(var(--library-accent-rgb), .16), transparent 74%),
        radial-gradient(ellipse 70% 58% at 88% 72%, rgba(var(--library-highlight-rgb), .095), transparent 76%),
        radial-gradient(ellipse 56% 68% at 48% 104%, rgba(var(--library-deep-rgb), .19), transparent 78%);
    filter: blur(17px);
    opacity: .6;
    transform: translate3d(-5%, 2%, 0) scale(1.02);
    animation: booksWorkSurfaceLight 67s ease-in-out -7s infinite alternate;
}

.books-v1 .books-work-module:not(.books-work-footer-wrap) > * {
    position: relative;
    z-index: 1;
}

.books-v1 .books-work-module.books-work-author-profile::before {
    animation-delay: -23s;
    animation-duration: 71s;
    animation-direction: alternate-reverse;
}

.books-v1 .books-work-module.books-work-profile::before {
    animation-delay: -41s;
    animation-duration: 73s;
}

.books-v1 .books-work-module.books-work-why::before {
    animation-delay: -13s;
    animation-duration: 79s;
    animation-direction: alternate-reverse;
}

.books-v1 .books-work-module.books-work-world::before {
    animation-delay: -52s;
    animation-duration: 71s;
}

.books-v1 .books-work-module.books-work-further::before {
    animation-delay: -31s;
    animation-duration: 83s;
    animation-direction: alternate-reverse;
}

.books-v1 .books-work-module.books-work-reading::before {
    animation-delay: -59s;
    animation-duration: 76s;
}

@keyframes booksWorkSurfaceLight {
    0% { transform: translate3d(-5%, 2%, 0) scale(1.02); opacity: .52; }
    36% { transform: translate3d(5%, -4%, 0) scale(1.07); opacity: .69; }
    71% { transform: translate3d(-1%, 5%, 0) scale(.99); opacity: .57; }
    100% { transform: translate3d(6%, 1%, 0) scale(1.04); opacity: .65; }
}

.books-v1 .books-work-identity {
    display: block;
}

.books-v1 .books-work-identity-copy {
    position: relative;
    min-width: 0;
    max-width: none;
    padding-right: 88px;
}

.books-v1 .books-work-marcel {
    position: absolute;
    top: 0;
    right: calc(30px - clamp(26px, 4.5vw, 42px));
}

.books-v1 .books-work-identity .books-work-sector-label {
    margin-bottom: 16px;
}

.books-v1 .books-work-identity .books-work-kicker {
    margin-bottom: 18px;
    color: var(--library-reading);
    font-size: clamp(1.65rem, 4vw, 2.3rem);
    line-height: 1.2;
}

.books-v1 .books-work-report-body {
    padding: 0;
    max-width: none;
}

.books-v1 .books-work-report-copy {
    display: grid;
    gap: 14px;
}

.books-v1 .books-work-editorial-section + .books-work-editorial-section {
    margin-top: 0;
    padding-top: clamp(26px, 4.5vw, 42px);
    border-top: 1px solid rgba(var(--library-accent-rgb), .38);
}

.books-v1 .books-work-editorial-section > h2,
.books-v1 .books-work-section-copy {
    max-width: none;
    margin-inline: 0;
}

.books-v1 .books-work-editorial-section h2 {
    margin-bottom: 24px;
}

.books-v1 .books-work-profile .books-work-section-copy > p,
.books-v1 .books-work-why .books-work-section-copy > p {
    max-width: none;
}

.books-v1 .books-work-author-profile {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 52px);
}

.books-v1 .books-work-author-profile .books-work-author-portrait {
    width: 100%;
    max-width: 220px;
    padding: 0;
}

.books-v1 .books-work-context-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
}

.books-v1 .books-work-reading-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.books-v1 .books-work-reading {
    display: grid;
    gap: 22px;
}

.books-v1 .books-work-reading-heading {
    padding: 0 0 8px;
    border-top: 0;
}

.books-v1 .books-work-reader-entry {
    min-height: 88px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.books-v1 .books-work-reader-entry a {
    width: 100%;
    min-height: 88px;
    box-sizing: border-box;
}

.books-v1 .books-work-parts h3 {
    margin: 0;
    color: var(--books-peach);
    font-size: var(--font-meta);
    font-weight: 400;
    letter-spacing: .085em;
}

.books-v1 .books-work-parts ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.books-v1 .books-work-parts li > a,
.books-v1 .books-work-parts li > div {
    min-height: 76px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.books-v1 .books-work-part-state {
    text-align: left;
}

.books-v1 .books-work-progress {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    margin-top: 4px;
}

.books-v1 .books-work-progress-scale {
    height: 7px;
    overflow: hidden;
    border: 1px solid rgba(83, 139, 255, .26);
    background: rgba(117, 200, 255, .12);
    box-shadow: inset 0 1px rgba(207, 234, 255, .08);
}

.books-v1 .books-work-progress-scale > span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #68e7ff 0%, #5796ff 38%, #a66cff 68%, #ff4fd8 100%);
    box-shadow: 0 0 5px rgba(104, 231, 255, .58), 0 0 12px rgba(166, 108, 255, .38), 0 0 18px rgba(255, 79, 216, .18);
}

.books-v1 .books-work-footer-wrap {
    padding: 28px 110px 24px 30px;
    border-color: var(--books-peach-line);
    background: radial-gradient(ellipse at 18% 0, rgba(var(--library-accent-rgb), .1), transparent 48%), var(--books-peach-bg);
    box-shadow: inset 0 0 38px rgba(var(--library-deep-rgb), .1);
}

.books-v1 .books-work-footer {
    padding-top: 0;
}

.books-v1 .book-reader {
    --book-reader-font-size: 18px;
    --book-reader-line-height: 1.78;
    --book-reader-paragraph-space: 1.4em;
    --book-reader-column-width: 880px;
    width: min(100%, calc(var(--book-reader-column-width) + 20px));
    margin: 0 auto;
    padding: clamp(34px, 7vw, 68px) 10px 80px;
}

/* Der Reader bleibt für den programmgesteuerten Lesefokus erreichbar,
   ist selbst aber kein sichtbares Steuerelement. */
.books-v1 .book-reader:focus {
    outline: none;
}

.books-v1 .book-reader-cover {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: #050508;
}

.books-v1 .book-reader-cover[hidden] {
    display: none;
}

.books-v1 .book-reader-cover-art {
    width: min(100vw, 66.6667dvh);
    height: min(100dvh, 150vw);
    aspect-ratio: 2 / 3;
}

.books-v1 .book-reader-cover-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.books-reader-cover-active {
    overflow: hidden;
}

.books-v1 .book-reader[data-reader-layout="compact"] {
    --book-reader-line-height: 1.58;
    --book-reader-paragraph-space: 1.05em;
    --book-reader-column-width: 880px;
}

.books-v1 .book-reader[data-reader-layout="generous"] {
    --book-reader-line-height: 1.96;
    --book-reader-paragraph-space: 1.7em;
    --book-reader-column-width: 840px;
}

.books-v1 .book-reader-heading {
    position: relative;
    display: grid;
    justify-items: start;
    margin: 0 0 clamp(46px, 8vw, 76px);
    padding: 4px 0 30px;
}

.books-v1 .book-reader-heading::after {
    content: "";
    width: min(100%, 680px);
    height: 1px;
    margin-top: 28px;
    background-image:
        linear-gradient(90deg, var(--books-blue-active), rgba(83, 139, 255, .36) 54%, transparent),
        linear-gradient(90deg, transparent 0 42%, rgba(104, 231, 255, .72) 50%, transparent 58%);
    background-size: 100% 100%, 260% 100%;
    background-position: 0 0, -100% 0;
    box-shadow: 0 0 8px rgba(87, 150, 255, .18);
    animation: readerHeaderLine 47s ease-in-out -23s infinite;
}

.books-v1 .book-reader-author,
.books-v1 .book-reader-meta,
.books-v1 .book-reader-notice,
.books-v1 .book-reader-end {
    font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    letter-spacing: .075em;
}

.books-v1 .book-reader-author {
    color: var(--books-blue-muted);
    font-size: var(--font-meta);
    line-height: 1.35;
    padding-left: 10px;
    border-left: 2px solid var(--books-blue);
    animation: readerHeaderAuthor 37s ease-in-out -9s infinite;
}

.books-v1 .book-reader-heading h1 {
    margin: 16px 0 10px;
    color: #edf6f5;
    font-size: clamp(1.7rem, 4.4vw, 2.55rem);
    line-height: 1.15;
    letter-spacing: .06em;
    text-shadow: 0 0 3px rgba(237, 246, 245, .22), 0 0 12px rgba(87, 150, 255, .24);
    animation: readerHeaderTitle 41s steps(1, end) -17s infinite;
}

.books-v1 .book-reader-meta {
    color: var(--books-blue);
    font-size: var(--font-meta);
    line-height: 1.6;
    letter-spacing: .1em;
    animation: readerHeaderMeta 53s ease-in-out -31s infinite;
}

@keyframes readerHeaderAuthor {
    0%, 91%, 100% { opacity: 1; transform: translateX(0); }
    92% { opacity: .82; transform: translateX(1px); }
    93% { opacity: 1; transform: translateX(0); }
}

@keyframes readerHeaderTitle {
    0%, 93%, 100% { transform: translateX(0); filter: none; }
    94% { transform: translateX(-1px); filter: brightness(1.04); }
    95% { transform: translateX(1px); filter: brightness(.98); }
    96% { transform: translateX(0); filter: none; }
}

@keyframes readerHeaderMeta {
    0%, 94%, 100% { opacity: 1; transform: translateY(0); }
    95% { opacity: .72; transform: translateY(1px); }
    96% { opacity: 1; transform: translateY(0); }
}

@keyframes readerHeaderLine {
    0%, 91%, 100% { background-position: 0 0, -100% 0; opacity: 1; }
    93% { background-position: 0 0, 100% 0; opacity: .94; }
    95% { background-position: 0 0, -100% 0; opacity: 1; }
}

.books-v1 .book-reader-parts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(83, 139, 255, .16);
    color: var(--books-blue-muted);
    font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    font-size: var(--font-micro);
    letter-spacing: .075em;
}

.books-v1 .book-reader-part {
    color: var(--books-blue-muted);
    padding: 3px 0;
    text-decoration: none;
}

.books-v1 .book-reader-part:focus-visible {
    color: var(--books-blue-active);
    outline: 1px solid var(--books-blue-active);
    outline-offset: 4px;
}

.books-v1 .book-reader-part + .book-reader-part::before {
    content: "·";
    margin-right: 8px;
    color: rgba(83, 139, 255, .38);
}

.books-v1 .book-reader-part.is-current {
    color: #d9e4e5;
    text-decoration: underline;
    text-decoration-color: var(--books-blue-active);
    text-underline-offset: 5px;
    text-shadow: 0 0 6px rgba(87, 150, 255, .2);
}

.books-v1 .book-reader-part.is-unavailable {
    opacity: .48;
}

.books-v1 .book-reader-notice {
    margin-top: 24px;
    color: var(--muted);
    font-size: var(--font-micro);
    line-height: 1.6;
}

.books-v1 .book-reader-copy {
    max-width: none;
    color: #e3e8e5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--book-reader-font-size);
    line-height: var(--book-reader-line-height);
    letter-spacing: .003em;
    text-shadow: 0 0 3px rgba(207, 234, 255, .075);
    text-wrap: pretty;
}

.books-v1 .book-reader-copy p {
    margin: 0 0 var(--book-reader-paragraph-space);
}

.books-v1 .book-reader-copy p:last-child {
    margin-bottom: 0;
}

.books-v1 .book-reader-end {
    margin-top: 68px;
    padding-top: 24px;
    border-top: 1px solid rgba(83, 139, 255, .2);
    color: var(--books-blue-muted);
    font-size: var(--font-meta);
    text-shadow: 0 0 6px rgba(87, 150, 255, .16);
}

.books-v1 .book-reader-next-part {
    display: grid;
    min-height: 48px;
    place-items: center;
    margin-top: 24px;
    padding: 10px 14px;
    border: 1px solid rgba(83, 139, 255, .42);
    color: var(--books-blue);
    font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
    font-size: var(--font-meta);
    letter-spacing: .065em;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(87, 150, 255, .18);
}

.books-v1 .book-reader-next-part:focus-visible {
    border-color: var(--books-blue-active);
    outline: 1px solid var(--books-blue-active);
    outline-offset: 3px;
}

.books-v1 .book-reader-resume {
    margin: 0 0 42px;
    padding: 16px;
    border: 1px solid rgba(83, 139, 255, .28);
    background: rgba(20, 29, 44, .24);
}

.books-v1 .book-reader-resume[hidden] {
    display: none;
}

.books-v1 .book-reader-resume button,
.books-v1 .book-reader-menu button,
.books-v1 .book-reader-books-link,
.books-v1 .book-reader-menu-toggle {
    border: 1px solid rgba(83, 139, 255, .42);
    border-radius: 3px;
    background: rgba(7, 12, 22, .94);
    color: var(--books-blue);
    font: inherit;
    letter-spacing: .065em;
    text-shadow: 0 0 6px rgba(87, 150, 255, .18);
}

.books-v1 .book-reader-resume button {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    font-size: var(--font-meta);
}

/* Bestehende Astronautenbar-Speicherbestätigung: Schreibimpuls + Häkchen. */
.books-v1 .book-reader-menu button.life-save-flash {
    position: relative;
    overflow: hidden;
}

.books-v1 .book-reader-menu button.life-save-flash::before {
    content: "";
    position: absolute;
    z-index: 20;
    top: 0;
    left: -20%;
    width: 18%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--books-blue-active) 32%, transparent),
        transparent
    );
    pointer-events: none;
    animation: lifeSaveWrite .62s steps(5, end) both;
}

.books-v1 .book-reader-menu button.life-save-flash::after {
    content: "✓";
    position: absolute;
    z-index: 21;
    top: 2px;
    right: 4px;
    color: var(--books-blue-active);
    font-size: .58rem;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 0 5px color-mix(in srgb, var(--books-blue-active) 35%, transparent);
    pointer-events: none;
    animation: lifeSaveCheck .95s ease-out both;
}

@keyframes lifeSaveWrite {
    0% { left: -20%; opacity: 0; }
    18% { opacity: .78; }
    72% { opacity: .5; }
    100% { left: 105%; opacity: 0; }
}

@keyframes lifeSaveCheck {
    0% { opacity: 0; transform: scale(.4); }
    18% { opacity: 1; transform: scale(1); }
    72% { opacity: 1; }
    100% { opacity: 0; transform: scale(.86); }
}

.books-v1 .book-reader-progress-line {
    position: fixed;
    z-index: 76;
    right: 0;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    height: 7px;
    pointer-events: none;
    background: rgba(117, 200, 255, .2);
    box-shadow: inset 0 1px rgba(207, 234, 255, .1);
}

.books-v1 .book-reader-progress-line span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #68e7ff 0%, #5796ff 38%, #a66cff 68%, #ff4fd8 100%);
    box-shadow: 0 0 5px rgba(104, 231, 255, .66), 0 0 12px rgba(166, 108, 255, .44), 0 0 18px rgba(255, 79, 216, .2);
}

.books-v1 .book-reader-dock {
    position: fixed;
    z-index: 77;
    right: max(12px, calc((100vw - 900px) / 2 + 12px));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(83, 139, 255, .24);
    border-radius: 4px;
    background: rgba(5, 8, 15, .9);
    box-shadow: 0 0 14px rgba(5, 8, 15, .72);
    backdrop-filter: blur(8px);
}

.books-v1 .book-reader-progress {
    min-width: 48px;
    color: var(--books-blue-muted);
    font-size: var(--font-micro);
    text-align: center;
    letter-spacing: .04em;
    text-shadow: 0 0 6px rgba(87, 150, 255, .2);
}

.books-v1 .book-reader-menu-toggle {
    min-height: 44px;
    padding: 8px 12px;
    font-size: var(--font-meta);
    border-color: rgba(117, 200, 255, .58);
    text-shadow: 0 0 7px rgba(117, 200, 255, .34);
    box-shadow: inset 0 0 12px rgba(87, 150, 255, .1), 0 0 10px rgba(87, 150, 255, .18), 0 0 18px rgba(87, 150, 255, .08);
    animation: booksReaderDockGlow 18s ease-in-out infinite;
}

@keyframes booksReaderDockGlow {
    0%, 100% { box-shadow: inset 0 0 12px rgba(87, 150, 255, .08), 0 0 8px rgba(87, 150, 255, .14), 0 0 16px rgba(87, 150, 255, .06); }
    50% { box-shadow: inset 0 0 15px rgba(87, 150, 255, .14), 0 0 13px rgba(117, 200, 255, .24), 0 0 24px rgba(87, 150, 255, .1); }
}

.books-v1 .book-reader-menu {
    position: fixed;
    inset: auto max(12px, calc((100vw - 900px) / 2 + 12px)) 74px auto;
    width: min(360px, calc(100vw - 24px));
    max-height: min(72vh, 660px);
    max-height: min(72dvh, 660px);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid rgba(117, 200, 255, .62);
    border-radius: 5px;
    background: rgba(6, 10, 18, .98);
    color: #e3e8e5;
    box-shadow: 0 0 30px rgba(0, 0, 0, .7), inset 0 0 30px rgba(55, 96, 236, .09), 0 0 18px rgba(87, 150, 255, .14);
}

.books-v1 .book-reader-menu::backdrop {
    background: rgba(1, 3, 8, .48);
}

.books-v1 .book-reader-menu-heading,
.books-v1 .book-reader-setting-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.books-v1 .book-reader-menu h2,
.books-v1 .book-reader-menu h3 {
    margin: 0;
    color: #edf6f5;
    font-size: var(--font-meta);
    letter-spacing: .085em;
    text-shadow: 0 0 7px rgba(87, 150, 255, .22);
}

.books-v1 .book-reader-menu-close,
.books-v1 .book-reader-setting-heading > button {
    min-height: 44px;
    padding: 7px 10px;
    font-size: var(--font-micro);
}

.books-v1 .book-reader-setting {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(83, 139, 255, .18);
}

.books-v1 .book-reader-stepper {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    margin-top: 12px;
}

.books-v1 .book-reader-stepper button {
    min-height: 44px;
    font-size: 1rem;
}

.books-v1 .book-reader-stepper output {
    display: grid;
    place-items: center;
    color: var(--books-blue-muted);
    font-size: var(--font-meta);
}

.books-v1 .book-reader-layout-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.books-v1 .book-reader-layout-options button {
    min-height: 44px;
    padding: 7px 5px;
    font-size: .65rem;
}

.books-v1 .book-reader-menu button[aria-pressed="true"] {
    border-color: var(--books-blue-active);
    background: rgba(83, 139, 255, .13);
    color: #edf6f5;
    box-shadow: inset 0 0 14px rgba(87, 150, 255, .08), 0 0 8px rgba(87, 150, 255, .16);
    text-shadow: 0 0 7px rgba(117, 200, 255, .28);
}

.books-v1 .book-reader-menu button:disabled {
    opacity: .38;
}

.books-v1 .book-reader-bookmarks-empty {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: var(--font-micro);
    line-height: 1.5;
}

.books-v1 .book-reader-bookmarks-empty[hidden] {
    display: none;
}

.books-v1 .book-reader-bookmark-list {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.books-v1 .book-reader-bookmark-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.books-v1 .book-reader-bookmark-jump {
    min-width: 0;
    min-height: 48px;
    padding: 9px 10px;
    text-align: left;
}

.books-v1 .book-reader-bookmark-excerpt,
.books-v1 .book-reader-bookmark-position {
    display: block;
}

.books-v1 .book-reader-bookmark-excerpt {
    overflow: hidden;
    color: #d9e4e5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .84rem;
    line-height: 1.4;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.books-v1 .book-reader-bookmark-position {
    margin-top: 4px;
    color: var(--books-blue-muted);
    font-size: var(--font-micro);
}

.books-v1 .book-reader-bookmark-remove {
    min-height: 48px;
    padding: 7px 8px;
    color: var(--muted);
    font-size: .62rem;
}

.books-v1 .book-reader-books-link {
    display: grid;
    width: 100%;
    min-height: 46px;
    place-items: center;
    margin-top: 20px;
    padding: 8px 12px;
    box-sizing: border-box;
    font-size: var(--font-meta);
    text-decoration: none;
}

.books-v1 .book-reader-storage-note,
.books-v1 .book-reader-status {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .62rem;
    line-height: 1.5;
    letter-spacing: .055em;
}

.books-v1 .book-reader-status:empty {
    display: none;
}

.books-v1 .book-reader-menu button:focus-visible,
.books-v1 .book-reader-books-link:focus-visible,
.books-v1 .book-reader-menu-toggle:focus-visible,
.books-v1 .book-reader-resume button:focus-visible {
    border-color: var(--books-blue-active);
    outline: 1px solid var(--books-blue-active);
    outline-offset: 2px;
    box-shadow: 0 0 9px rgba(87, 150, 255, .2);
    text-shadow: 0 0 6px rgba(117, 200, 255, .24);
}

@media (max-width: 600px) {
    .books-v1 .books-shell {
        width: min(900px, calc(100% - 20px));
    }

    .books-v1:not(.books-sector-v2) .books-system-header .legal-home-link {
        padding: 20px 14px 18px;
    }

    .books-v1:not(.books-sector-v2) .books-system-header .terminal-title {
        font-size: 1.08rem;
    }

    .books-v1 .books-overview {
        gap: 10px;
    }

    .books-v1 .books-title-region {
        gap: 10px;
        padding: 10px 14px 2px;
    }

    .books-v1 .books-sector-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .books-v1 .books-v2-section {
        padding: 24px 70px 22px 14px;
        border-color: rgba(var(--library-accent-rgb), .66);
        box-shadow: inset 0 0 24px rgba(var(--library-deep-rgb), .075);
    }

    .books-v1 .books-marcel-figure {
        top: 26px;
        right: 14px;
        font-size: .98rem;
    }

    .books-v1 .books-observation {
        margin-top: 14px;
        margin-right: -56px;
    }

    .books-v1 .books-status-pair {
        display: block;
        font-size: var(--font-meta);
        line-height: 1.65;
        white-space: normal;
    }

    .books-v1 .books-status-pair strong {
        display: block;
        margin-top: 1px;
    }

    .books-v1 .books-catalogue {
        padding: 14px;
        border-color: rgba(var(--library-accent-rgb), .6);
    }

    .books-v1 .books-catalogue-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .books-v1 .books-entry {
        grid-column: 1;
    }

    .books-v1 .books-filter {
        margin-bottom: 14px;
    }

    .books-v1 .books-filter > summary {
        padding: 14px;
    }

    .books-v1 .books-filter-content {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-inline: 14px;
    }

    .books-v1 .books-filter[open] .books-filter-content {
        max-height: none;
        padding-block: 13px 15px;
    }

    .books-v1 .books-entry-record {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: 0;
        padding: 20px 14px 16px;
        border-color: rgba(var(--library-accent-rgb), .3);
    }

    .books-v1 .books-entry-cover {
        width: min(100%, 280px);
        justify-self: center;
    }

    .books-v1 .books-entry-information {
        gap: 28px;
        width: 100%;
    }

    .books-v1 .books-entry-details h3 {
        font-size: 1.55rem;
    }

    .books-v1 .books-entry-meta {
        gap: .45em;
        line-height: 1.7;
    }

    .books-v1 .books-entry-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .books-v1 .books-action {
        min-height: 48px;
        padding-inline: 8px;
        font-size: .76rem;
    }

    .books-v1 .books-v2-footer {
        padding-top: 26px;
    }

    .books-v1 .books-work {
        width: 100%;
        padding: 0 0 62px;
    }

    .books-v1 .books-work-title-region {
        gap: 10px;
        padding: 10px 14px 2px;
    }

    .books-v1 .books-work-title-region h1 {
        font-size: 1.52rem;
    }

    .books-v1 .books-work-status-line {
        font-size: var(--font-meta);
        line-height: 1.85;
    }

    .books-v1 .books-work-module {
        padding: 24px 16px;
    }

    .books-v1 .books-work-identity {
        display: block;
    }

    .books-v1 .books-work-identity-copy {
        padding-right: 58px;
    }

    .books-v1 .books-work-marcel {
        right: -2px;
    }

    .books-v1 .books-work-report-body {
        padding: 0;
    }

    .books-v1 .books-work-report-copy {
        font-size: .96rem;
        line-height: 1.76;
    }

    .books-v1 .books-work-author-portrait {
        float: none;
        width: min(48%, 170px);
        margin: 0 auto 26px;
    }

    .books-v1 .books-work-author-profile {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .books-v1 .books-work-author-profile .books-work-author-portrait {
        width: min(100%, 230px);
        margin: 0 auto;
        padding: 0;
    }

    .books-v1 .books-work-context-list,
    .books-v1 .books-work-reading-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .books-v1 .books-work-reading-heading {
        padding: 0 0 4px;
    }

    .books-v1 .books-work-editorial-section + .books-work-editorial-section {
        margin-top: 0;
        padding-top: 24px;
    }

    .books-v1 .books-work-reader-entry {
        min-height: 92px;
        padding: 0;
    }

    .books-v1 .books-work-reader-entry a {
        width: 100%;
        min-height: 92px;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    .books-v1 .books-work-report-copy h2 {
        margin-top: 2.35em;
        padding-top: 1.55em;
    }

    .books-v1 .books-work-editorial-section h2 {
        margin-top: 0;
        padding-top: 0;
    }

    .books-v1 .books-work-parts li > a,
    .books-v1 .books-work-parts li > div {
        padding-inline: 14px;
    }

    .books-v1 .books-work-parts ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .books-v1 .books-work-progress {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .books-v1 .books-work-progress-scale {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .books-v1 .books-work-footer-wrap {
        padding: 24px 70px 22px 14px;
    }

    .books-v1 .book-reader {
        width: calc(100% - 28px);
        padding: 34px 0 64px;
    }

    .books-v1 .book-reader-heading {
        margin-bottom: 46px;
        padding-bottom: 26px;
    }

    .books-v1 .book-reader-heading h1 {
        font-size: 1.72rem;
    }

    .books-v1 .book-reader-heading::after {
        margin-top: 24px;
    }

    .books-v1 .book-reader-parts {
        margin-top: 20px;
        padding-top: 14px;
    }

    .books-v1 .book-reader-copy {
        text-shadow: 0 0 2px rgba(207, 234, 255, .055);
        text-wrap: wrap;
    }

    .books-v1 .book-reader-dock {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .books-v1 .book-reader-menu {
        inset: auto max(10px, env(safe-area-inset-right)) calc(68px + env(safe-area-inset-bottom)) auto;
        width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-height: 70vh;
        max-height: 70dvh;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .books-v1 .book-reader-author,
    .books-v1 .book-reader-heading h1,
    .books-v1 .book-reader-meta,
    .books-v1 .book-reader-heading::after {
        animation: none !important;
    }

    .books-v1 .books-entry-record,
    .books-v1 .books-action,
    .books-v1 .books-filter-content,
    .books-v1 .books-filter > summary > span,
    .books-v1 .books-filter-reset,
    .books-v1 .book-reader-menu button,
    .books-v1 .book-reader-menu-toggle {
        transition: none;
    }

    .books-v1 .books-entry-record::before,
    .books-v1 .books-filter::before,
    .books-v1 .books-work-module:not(.books-work-footer-wrap)::before,
    .books-v1 .books-action:not(.books-action-unavailable)::before,
    .books-v1 .books-filter-reset:not(:disabled)::before,
    .books-v1 .books-work-reader-entry a::before,
    .books-v1 .books-work-parts li > a::before {
        animation: none !important;
        transform: none;
    }

    .books-v1 .books-work-module:not(.books-work-footer-wrap)::before {
        opacity: .58;
    }

    .books-v1 .books-v2-section::before { opacity: .16; }
    .books-v1 .book-reader-menu-toggle {
        animation: none !important;
    }

    .books-v1 .book-reader-menu-toggle {
        box-shadow: inset 0 0 13px rgba(87, 150, 255, .12), 0 0 10px rgba(87, 150, 255, .2), 0 0 18px rgba(87, 150, 255, .08);
    }

    .books-v1 .book-reader-menu button.life-save-flash::before {
        display: none;
    }

    .books-v1 .book-reader-menu button.life-save-flash::after {
        animation: none;
        opacity: 1;
    }
}
