:root{color-scheme:light;--paper:#f8f4ec;--card:#fffdf8;--ink:#2b2521;--muted:#675c54;--edge:#d9cfc0;--red:#742e36;--red-dark:#5c2129;--wash:#eee5d7;--mark:#f7e4a1;--sans:"Segoe UI",system-ui,sans-serif;--book:Georgia,"Times New Roman",serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 var(--sans)}
h1,h2,p,blockquote{margin:0}h1,h2{font-family:var(--book);font-weight:400;line-height:1.1}
h1{font-size:clamp(2rem,5vw,3.9rem);letter-spacing:-.028em}h2{font-size:1.46rem}
button,input,textarea{font:inherit}button,input,textarea{border:1px solid var(--edge);border-radius:.45rem;color:var(--ink);background:var(--card)}
button{padding:.48rem .72rem;cursor:pointer;font-weight:600}button:hover{border-color:#a48a7a;background:var(--wash)}button:disabled{opacity:.55;cursor:default}
button.primary{background:var(--red);border-color:var(--red);color:#fff}button.primary:hover{background:var(--red-dark)}button.quiet{background:none;border-color:transparent;color:var(--red);padding:.35rem 0;text-align:left}button.quiet:hover{text-decoration:underline}
a{color:var(--red)}:focus-visible{outline:2px solid #a14644;outline-offset:3px}
label{font-weight:600;display:block;margin-bottom:.25rem}input,textarea{width:100%;padding:.6rem .7rem}textarea{resize:vertical}
.small{font-size:.84rem;color:var(--muted)}.eyebrow{color:var(--red);font-size:.82rem;font-weight:650;letter-spacing:.035em}
.skip{position:fixed;top:-4rem;left:1rem;z-index:20;background:var(--card);padding:.5rem}.skip:focus{top:.5rem}
.masthead{position:sticky;top:0;z-index:5;background:var(--card);border-bottom:1px solid var(--edge)}
.mast-inner{min-height:67px;max-width:1600px;margin:auto;padding:.57rem clamp(.85rem,3vw,2.4rem);display:flex;align-items:center;justify-content:space-between;gap:.65rem}
.series{font:1.42rem/1.12 var(--book)}.edition{font-size:.78rem;color:var(--muted);margin-top:.15rem}
.header-actions,.dialog-actions,.end-actions{display:flex;align-items:center;gap:.48rem;flex-wrap:wrap}
.header-actions .small{text-align:right}
progress{appearance:none;display:block;width:100%;height:3px;border:0;background:var(--wash)}progress::-webkit-progress-bar{background:var(--wash)}progress::-webkit-progress-value{background:var(--red)}progress::-moz-progress-bar{background:var(--red)}
.gate{max-width:1000px;margin:clamp(1.5rem,5vh,4rem) auto 2rem;padding:0 1.15rem}.intro{border-top:2px solid var(--red);padding:1.35rem 0 1.8rem}
.intro-line{max-width:530px;margin-top:.8rem;color:var(--muted)}
.gate-card{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;padding:clamp(1rem,3vw,1.65rem);border:1px solid var(--edge);border-radius:.7rem;background:var(--card)}
.gate-card form{display:grid;align-content:start;gap:.6rem}.gate-card h2{margin-bottom:.35rem}.gate-card label{margin:0}.gate-card button{justify-self:start;margin-top:.2rem}
.gate-card form+form{border-left:1px solid var(--edge);padding-left:1.4rem}.callout{border-left:3px solid var(--red);padding:.65rem .8rem;background:var(--wash);margin-bottom:1rem}
.layout{display:grid;grid-template-columns:minmax(155px,230px) minmax(0,690px) minmax(175px,245px);align-items:start;gap:clamp(1.15rem,3.4vw,3.7rem);max-width:1520px;margin:auto;padding:1.45rem clamp(.85rem,2.6vw,2.5rem) 4rem}
.left,.review{position:sticky;top:5.7rem;max-height:calc(100dvh - 7rem);overflow:auto;scrollbar-width:thin}
.left>button{display:block;margin-top:.35rem}.left summary,.review h2{margin-bottom:.5rem}.left summary{font-weight:650;cursor:pointer}
#chapters{display:grid;gap:.12rem}#chapters button{display:grid;grid-template-columns:minmax(2.55rem,max-content) minmax(0,1fr);gap:.32rem;text-align:left;font-size:.84rem;font-weight:400;padding:.35rem .38rem;border-color:transparent;background:none}
#chapters button:hover{background:var(--card)}#chapters button[aria-current="true"]{background:var(--wash);border-color:var(--edge);font-weight:650}#chapters span:first-child{color:var(--red);font-variant-numeric:tabular-nums}
.reading{min-width:0;scroll-margin-top:5.75rem}.reading h1{font-size:clamp(2.1rem,5vw,3.25rem);margin:.28rem 0 .55rem}
.reader-hint{padding-bottom:.75rem;border-bottom:1px solid var(--edge);margin-bottom:1.2rem}
.book{font:clamp(1.12rem,1.75vw,1.32rem)/1.73 var(--book);overflow-wrap:anywhere}
.book p{margin:0 0 1.08em;scroll-margin-top:6.15rem}.book p.date{color:var(--muted);font-style:italic;margin:1.4em 0 .7em}.book hr{border:0;margin:1.6em 0;text-align:center}.book hr::before{content:"⁂";color:var(--red)}.book .quoted{padding-left:1rem;border-left:1px solid var(--edge)}
.book mark{background:var(--mark);color:inherit;border-radius:.1rem}.book mark.commented{border-bottom:2px solid #a47730}.book mark:hover{background:#f6d775;cursor:pointer}
.review{border-top:1px solid var(--edge);padding-top:.75rem}.review button.quiet{font-size:.91rem}.review h2{font-size:1.28rem}
#notes{display:grid;gap:.45rem;margin-top:.6rem}
.annotation{display:block;text-align:left;width:100%;overflow-wrap:anywhere;font-size:.83rem;font-weight:400;padding:.58rem}.annotation q,.annotation span{display:block}.annotation q{font:1rem/1.32 var(--book)}.annotation span{color:var(--muted);margin-top:.25rem;white-space:pre-wrap}
.end-actions{margin:2rem 0;justify-content:space-between;border-top:1px solid var(--edge);padding-top:1.2rem}
.selection-actions{position:fixed;bottom:max(1rem,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:7;white-space:nowrap;background:var(--card);border:1px solid var(--edge);border-radius:.65rem;padding:.5rem;box-shadow:0 .35rem 1.5rem #47352729;display:flex;gap:.4rem}
dialog{width:min(calc(100% - 1.5rem),530px);color:var(--ink);background:var(--card);border:1px solid var(--edge);border-radius:.65rem;padding:1.3rem;box-shadow:0 .7rem 3rem #2b252134}
dialog::backdrop{background:#30251f70}dialog h2{margin-bottom:.7rem}dialog blockquote{font:1.04rem/1.45 var(--book);max-height:7rem;overflow:auto;background:var(--wash);padding:.6rem;margin-bottom:.75rem}
.dialog-actions{justify-content:flex-end;margin-top:.75rem}.dialog-actions .danger{margin-right:auto;color:var(--red)}.code{display:block;text-align:center;margin:1rem 0;font-size:2.05rem;font-weight:700;letter-spacing:.08em;font-variant-numeric:tabular-nums;user-select:all}
.author-page{max-width:960px;padding:2rem 1rem 4rem;margin:auto}.author-head{display:flex;align-items:end;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-bottom:1rem}
.author-reader{border:1px solid var(--edge);border-radius:.55rem;padding:.8rem;margin-top:.8rem;background:var(--card);overflow-wrap:anywhere}.author-reader>summary{cursor:pointer;font-weight:650}
.author-reader p,.author-reader h3{white-space:pre-wrap}.author-reader h3{font-size:1rem;margin:1rem 0 .2rem}.author-reader blockquote{font-family:var(--book);margin:.3rem 0}.author-note{border-top:1px solid var(--edge);padding:.55rem 0}
@media(max-width:1000px){.layout{grid-template-columns:155px minmax(0,1fr);gap:1.1rem}.review{grid-column:2;position:static;max-height:none}.review h2{display:inline;margin-right:1rem}}
@media(max-width:650px){.layout{display:block;padding-top:.75rem}.left{position:static;max-height:none;margin-bottom:1.25rem}.left details{background:var(--card);border:1px solid var(--edge);border-radius:.45rem;padding:.45rem .6rem}.left summary{margin:0}#chapters{max-height:12rem;overflow:auto;margin-top:.4rem}.left>button{display:inline-block;margin-right:.8rem;font-size:.8rem}.review{margin-bottom:2rem}.gate-card{grid-template-columns:1fr}.gate-card form+form{border:0;border-top:1px solid var(--edge);padding:1rem 0 0}.header-actions .small{max-width:118px;font-size:.72rem}.book{line-height:1.62}}

.shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin-bottom:1rem}
.volume{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;min-height:7.4rem;padding:.72rem .8rem;border:1px solid var(--edge);border-radius:.55rem;background:var(--card);text-align:left;font-weight:400}
.volume b{font:1.22rem/1.16 var(--book);overflow-wrap:anywhere}.volume .small{margin-top:auto}
button.volume[aria-pressed="true"]{border-color:var(--red);background:#f4e6db}.volume.planned{background:#f2ede4}
#author-volume{width:min(100%,28rem);font:inherit;color:var(--ink);padding:.52rem .65rem;border:1px solid var(--edge);border-radius:.45rem;background:var(--card);margin-bottom:.65rem}
@media(max-width:720px){.shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.volume{min-height:6.6rem}}
@media(max-width:365px){.volume b{font-size:1.05rem}}

.quick-guide{margin-bottom:1rem;padding:.85rem 1rem;background:var(--card);border:1px solid var(--edge);border-radius:.6rem}
.quick-guide h2{font-size:1.25rem;margin-bottom:.6rem}
.quick-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem 1.8rem;padding-left:1.4rem;margin:0;font-size:.9rem}
.quick-guide li::marker{font-weight:700;color:var(--red)}
.chapter-review{display:flex;align-items:center;justify-content:space-between;gap:.8rem 1.4rem;flex-wrap:wrap;background:var(--card);border:1px solid var(--edge);border-radius:.6rem;padding:1rem;margin-top:2rem}
.chapter-review h2{margin-bottom:.3rem}
#chapter-grade,.evaluation-filters select{width:100%;font:inherit;color:var(--ink);padding:.56rem .65rem;border:1px solid var(--edge);border-radius:.45rem;background:var(--card)}
#chapter-grade{margin-bottom:.85rem}
.evaluation{margin-top:1.25rem}
.evaluation h3{font:1.25rem/1.3 var(--book);margin:0 0 .6rem}
.evaluation-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:.65rem 0 1.25rem}
.evaluation-metric{background:var(--card);border:1px solid var(--edge);border-radius:.55rem;padding:.7rem .82rem}
.evaluation-metric dt{font-size:.79rem;color:var(--muted);overflow-wrap:anywhere}
.evaluation-metric dd{margin:.15rem 0 0;color:var(--red);font:1.8rem/1.1 var(--book);font-variant-numeric:tabular-nums}
.evaluation-chapters,.evaluation-feedback{border-top:1px solid var(--edge);padding-top:.85rem;margin-top:1.1rem}
.evaluation-chapters .small{margin-top:.45rem}
.table-scroll{overflow-x:auto;scrollbar-width:thin}
.table-scroll table{width:100%;min-width:35rem;border-collapse:collapse;font-size:.88rem;background:var(--card)}
.table-scroll th,.table-scroll td{padding:.42rem .55rem;border-bottom:1px solid var(--edge);text-align:right;vertical-align:middle}
.table-scroll th:first-child,.table-scroll td:first-child{text-align:left;width:45%}
.table-scroll th{color:var(--muted);font-size:.78rem;font-weight:650}
.table-scroll td{font-variant-numeric:tabular-nums}
.table-scroll td button{width:100%;font-size:inherit}
.evaluation-filters{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:.6rem;margin:.65rem 0}
.evaluation-filters>div{min-width:0}
.evaluation-filters label{font-size:.83rem}
.author-processing-filters{display:flex;flex-wrap:wrap;gap:.4rem}
.author-processing-filters button{font-size:.87rem}
.author-processing-filters button[aria-pressed="true"]{border-color:var(--red);background:#f4e6db;color:var(--red-dark)}
#author-processing-message:not(:empty){margin-top:.45rem}
.author-note-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.35rem .75rem}
.author-note-status{max-width:100%;font:inherit;font-size:.84rem;color:var(--ink);background:var(--card);
  border:1px solid var(--edge);border-radius:.45rem;padding:.36rem .5rem}
.author-note-status[data-status="reviewed"]{background:#f6ead6}
.author-note-status[data-status="transferred"]{background:#e5eee4}
.author-processing-error{color:var(--red-dark);margin-top:.3rem}
#author-matches{margin:.5rem 0}
.author-note .note-grade{margin:.25rem 0;font-weight:650;color:var(--red)}
@media(max-width:650px){.quick-guide ol{grid-template-columns:1fr;gap:.35rem}.evaluation-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.evaluation-filters{grid-template-columns:1fr 1fr}.evaluation-filters>div:last-child{grid-column:1/-1}}
@media(max-width:360px){.evaluation-filters{grid-template-columns:1fr}}

@media(max-width:650px){
  .table-scroll{overflow:visible}
  .table-scroll table{display:block;min-width:0;background:none}
  .table-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .table-scroll tbody{display:grid;gap:.6rem}
  .table-scroll tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.3rem .65rem .55rem;border:1px solid var(--edge);border-radius:.55rem;background:var(--card)}
  .table-scroll td{border:0;text-align:left;padding:.4rem .35rem;overflow-wrap:anywhere}
  .table-scroll td:first-child{grid-column:1/-1;width:auto;border-bottom:1px solid var(--edge);margin-bottom:.15rem}
  .table-scroll td[data-label]::before{content:attr(data-label);display:block;font-size:.76rem;color:var(--muted)}
}

.gate-lock{margin:.8rem 0 1rem}
#reader-password-dialog h2{margin-bottom:1rem}
#reader-password-status{margin-top:.5rem;color:var(--red)}
#reader-reauth{font-size:.82rem}
.read-toggle{display:flex;align-items:center;gap:.52rem;width:max-content;margin:.75rem 0 0;padding:.42rem .62rem;border:1px solid var(--edge);border-radius:.45rem;background:var(--paper);cursor:pointer}
.read-toggle input{width:1.1rem;height:1.1rem;margin:0;accent-color:var(--red);cursor:pointer}
.read-toggle:has(input:checked){background:var(--wash);border-color:#ac8d7c}
.evaluation-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
.table-scroll th:first-child,.table-scroll td:first-child{width:29%}
.reader-activity{margin:.45rem 0 .75rem;color:var(--muted);font-size:.85rem}
.reader-activity summary{cursor:pointer;color:var(--red)}
.reader-activity ul{margin:.35rem 0 0;padding-left:1.15rem}
.reader-activity li+li{margin-top:.2rem}
@media(max-width:650px){
  .evaluation-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-scroll th:first-child,.table-scroll td:first-child{width:auto}
}

.gate-card select,.reader-edition select,.author-selection select,#edition-compare-from{
  width:100%;font:inherit;color:var(--ink);padding:.55rem .65rem;border:1px solid var(--edge);
  border-radius:.45rem;background:var(--card)
}
.book-cover{width:min(100%,8.75rem);margin:0;align-self:start}
.cover-frame{position:relative;aspect-ratio:2/3;border-radius:.22rem .42rem .42rem .22rem;
  overflow:hidden;background:#381b23;box-shadow:0 .22rem .6rem #2b252125}
.cover-frame img{display:block;width:100%;height:100%;object-fit:contain}
.cover-draft{display:flex;height:100%;flex-direction:column;justify-content:center;
  gap:.68rem;padding:.7rem .65rem .7rem .9rem;color:#fff6e5;text-align:center;
  background:linear-gradient(90deg,#2d151d 0%,#54242e 7%,#2d1d25 100%)}
.cover-series{font-size:.64rem;font-weight:650;line-height:1.2;color:#f2cda1}
.cover-draft strong{font:1.13rem/1.07 var(--book);overflow-wrap:anywhere}
.cover-draft strong::before{content:"";display:block;width:1.2rem;height:1px;background:#ddb18e;margin:0 auto .7rem}
.book-cover figcaption{margin-top:.35rem;text-align:center}
@media(min-width:651px){
  .gate-card:has(.book-cover:not([hidden])){grid-template-columns:minmax(5.7rem,8.75rem) minmax(0,1fr) minmax(0,1fr)}
}
.reader-edition{margin-bottom:.8rem;padding-bottom:.75rem;border-bottom:1px solid var(--edge)}
.reader-edition label{font-size:.84rem}
.reader-edition button{display:block;margin-top:.18rem}
.author-selection{display:grid;grid-template-columns:minmax(0,28rem) minmax(0,12rem);gap:.75rem;margin-bottom:.65rem}
.author-selection #author-volume{width:100%;margin:0}
#edition-changes-dialog{width:min(calc(100% - 1.5rem),850px);max-height:calc(100dvh - 1.5rem)}
.change-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.7rem}
.change-heading h2{margin:0}
#edition-compare-from{max-width:18rem;margin-bottom:.7rem}
#edition-changes-list{display:grid;gap:.55rem;margin-top:.55rem}
.edition-change{background:var(--paper);border:1px solid var(--edge);border-radius:.45rem;padding:.55rem .7rem}
.edition-change summary{cursor:pointer;font-weight:650}
.edition-change-pairs{display:grid;gap:.55rem;margin-top:.55rem}
.edition-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.edition-side{padding:.5rem .65rem;border-radius:.35rem;min-width:0}
.edition-side p{margin-top:.35rem;white-space:pre-wrap;overflow-wrap:anywhere}
.edition-side.before{background:#f5e5e2}
.edition-side.after{background:#e5eee4}
.edition-side .small{font-weight:650}
@media(max-width:650px){
  .author-selection{grid-template-columns:1fr}
  .reader-edition{padding:.5rem .6rem;background:var(--card);border:1px solid var(--edge);border-radius:.45rem}
  .edition-pair{grid-template-columns:1fr}
}

/* Paragraph reactions leave the text and its selection offsets intact. */
.book{padding-inline-start:.9rem}
.reaction-paragraph{position:relative}
.paragraph-reaction{position:absolute;inset-block-start:.14rem;inset-inline-start:-1.72rem;
  width:1.62rem;min-height:1.62rem;padding:0;font-size:.85rem;line-height:1;background:var(--card);
  color:var(--red);opacity:0;user-select:none}
.paragraph-reaction.has-reaction,.paragraph-reaction:focus-visible,.reaction-paragraph:hover .paragraph-reaction{opacity:1}
.paragraph-reaction.has-reaction{background:var(--wash)}
.annotation .annotation-reaction{display:block;margin-bottom:.2rem;color:var(--red)}
.reaction-options{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;align-items:start}
.reaction-option{min-width:0}
.reaction-toggle{display:flex;align-items:center;gap:.48rem;min-height:2.6rem;margin:0;padding:.45rem .55rem;
  border:1px solid var(--edge);border-radius:.45rem;background:var(--paper);cursor:pointer}
.reaction-toggle:has(input:checked){border-color:var(--red);background:var(--wash)}
.reaction-toggle input{width:1.05rem;height:1.05rem;margin:0;accent-color:var(--red);flex:none}
.reaction-comment{margin-top:.35rem}
.reaction-comment textarea{min-height:3.4rem}
#reaction-error{color:var(--red);margin-top:.65rem}
@media(max-width:440px){
  .reaction-option:has(.reaction-comment:not([hidden])){grid-column:1/-1}
}

/* Chapter comparison */
.edition-spoiler-option{display:flex;align-items:flex-start;gap:.5rem;margin:.05rem 0 .65rem;font-size:.9rem;line-height:1.4}
.edition-spoiler-option input{width:auto;margin:.2rem 0 0;accent-color:var(--red);flex:none}
#edition-first-change{margin-bottom:.25rem}
#chapters .chapter-change-badge{grid-column:1/-1;justify-self:start;color:var(--red);background:var(--card);border:1px solid var(--edge);border-radius:1rem;padding:.05rem .4rem;font-size:.7rem;font-weight:600}
#text p[tabindex="-1"]:focus{outline:2px solid var(--red);outline-offset:.24rem;border-radius:.15rem}

#reader-settings-button{font-size:.85rem;white-space:nowrap}
.reader-settings-compact{display:none}
.reader-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.reader-settings-heading h2{margin:0}
.reader-settings-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem}
.reader-settings-controls select{
  width:100%;font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--edge);
  border-radius:.45rem;padding:.55rem .62rem
}
.reader-focus-option{display:flex;align-items:center;align-self:end;gap:.5rem;min-height:2.7rem;margin:0;cursor:pointer}
.reader-focus-option input{flex:0 0 1.1rem;width:1.1rem;height:1.1rem;margin:0;accent-color:var(--red)}
#reader[data-reader-font="small"] .book{font-size:1.05rem}
#reader[data-reader-font="large"] .book{font-size:1.42rem}
#reader[data-reader-font="extra-large"] .book{font-size:1.63rem}
#reader[data-reader-spacing="compact"] .book{line-height:1.45}
#reader[data-reader-spacing="relaxed"] .book{line-height:1.95}
#reader[data-reader-focus="true"]{grid-template-columns:minmax(0,48rem);justify-content:center}
#reader[data-reader-focus="true"]>aside{display:none}
body[data-reader-theme="dark"]{
  color-scheme:dark;--paper:#20191b;--card:#2c2326;--ink:#f2e7e3;--muted:#c8b6b4;
  --edge:#655354;--red:#f0a9b1;--wash:#3d2d30;--mark:#705127
}
body[data-reader-theme="dark"] :focus-visible{outline-color:#eeb1b8}
body[data-reader-theme="dark"] button.primary{background:#873846;border-color:#b86a76;color:#fff}
body[data-reader-theme="dark"] button.primary:hover{background:#a34756}
body[data-reader-theme="dark"] dialog::backdrop{background:#100b0dbf}
body[data-reader-theme="dark"] .book mark{color:#fff2d9}
body[data-reader-theme="dark"] .book mark.commented{border-bottom-color:#dcb66e}
body[data-reader-theme="dark"] .book mark:hover{background:#80602e}
body[data-reader-theme="dark"] .edition-side.before{background:#4a2e33}
body[data-reader-theme="dark"] .edition-side.after{background:#2b4037}
@media(max-width:650px){
  #reader-controls{justify-content:flex-end}
  #reader-settings-button,#reader-controls #save{padding:.44rem .55rem;font-size:.81rem}
}
@media(max-width:390px){
  .reader-settings-label{display:none}
  .reader-settings-compact{display:inline}
  .reader-settings-controls{grid-template-columns:1fr}
}

/* Andree Buchstudio: Leserantworten, Schnellreaktionen und drei Coveransichten. */
.author-page{max-width:1180px}
.author-reader{padding:1rem;margin-top:1rem}
.author-reader>summary{font-size:1.05rem;line-height:1.6}
.author-note{padding:1rem 0}
.author-note-heading>p{font-weight:650}
.reader-answer{border:1px solid #c2a58d;border-left:5px solid var(--red);border-radius:.5rem;background:#fff4df;padding:.85rem 1rem;margin:.65rem 0}
.answer-label{font-size:.78rem;font-weight:650;color:#704431;margin-bottom:.35rem}
.author-reader .answer-text{font-size:1.08rem;line-height:1.6;font-weight:750;color:#33251f;white-space:pre-wrap;overflow-wrap:anywhere}
.feedback-context{margin:.5rem 0;color:var(--muted);font-size:.91rem}
.feedback-context summary{cursor:pointer;font-weight:500}
.author-reader .feedback-context blockquote{font-size:1rem;line-height:1.55;padding:.6rem .9rem;border-left:2px solid var(--edge);max-height:18rem;overflow:auto}
.feedback-expand{display:flex;gap:.5rem;flex-wrap:wrap;margin:.7rem 0}
.feedback-expand button{font-size:.84rem}
.reaction-report,.cover-report{margin:1.1rem 0;padding-top:1rem;border-top:1px solid var(--edge)}
.reaction-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem;margin:.75rem 0 1.3rem}
.reaction-total{display:grid;gap:.25rem;text-align:left;padding:.8rem;border-left-width:4px}
.reaction-total strong{font-size:1.85rem;line-height:1.3}
.reaction-total>span:first-child{font-size:.95rem}
.reaction-badge{display:inline-block;margin:.4rem 0;padding:.35rem .7rem;font-size:1rem;font-weight:750;border:1px solid var(--edge);border-left:4px solid;border-radius:.4rem}
.reaction-spannend{border-left-color:#41735c;background:#edf5ee}
.reaction-unklar{border-left-color:#bb812a;background:#fff4de}
.reaction-zieht-sich{border-left-color:#9f5969;background:#f9ebef}
.reaction-tippfehler{border-left-color:#55748d;background:#edf3f9}
.reaction-sonstiges{border-left-color:#795b94;background:#f1edf7}
.reaction-breakdown{font-size:.73rem;line-height:1.45;min-width:7rem;margin-top:.25rem}
.evaluation-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
.cover-preview-section{grid-column:1/-1;border-bottom:1px solid var(--edge);padding-bottom:1.2rem}
.cover-preview-section>p{margin-top:.5rem}
.gate-card:has(.cover-preview-section){grid-template-columns:repeat(2,minmax(0,1fr))}
.cover-gallery{display:grid;grid-template-columns:1fr 1fr .8fr;gap:1rem;margin-top:.85rem;align-items:start}
.cover-preview{margin:0;min-width:0}
.cover-preview figcaption{font-weight:700;font-size:.95rem;margin-bottom:.5rem}
.cover-preview a{display:flex;align-items:center;justify-content:center;background:var(--wash);height:230px;padding:.5rem;border:1px solid var(--edge);border-radius:.4rem}
.cover-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.cover-preview>span{display:block;margin:.25rem 0 .6rem}
.cover-empty{display:grid;place-items:center;min-height:145px;text-align:center;font-size:.9rem;color:var(--muted);border:1px dashed var(--edge);border-radius:.45rem;background:var(--paper);padding:1rem}
.cover-summary,.cover-review-field{min-width:0;background:var(--card);border:1px solid var(--edge);border-radius:.55rem;padding:.8rem}
.cover-summary .cover-average{font-weight:750;margin-top:.65rem}
.author-note>.cover-preview{max-width:240px;margin:.7rem 0}
#cover-review-dialog{width:min(calc(100% - 1.5rem),1020px);max-height:calc(100dvh - 1.5rem)}
.cover-review-field select,.shelf-filter select{width:100%;padding:.6rem;font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--edge);border-radius:.45rem}
.cover-review-field label{font-size:.88rem;margin-top:.6rem}
.shelf-filter{max-width:24rem;margin-bottom:1rem}
#chapter-other,#overall-other{margin-bottom:.7rem}
#chapter-feedback+label,#overall+label{margin-top:.7rem}
.evaluation-feedback{scroll-margin-top:6rem}
@media(max-width:800px){.reaction-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.evaluation-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.evaluation-filters>div:last-child{grid-column:auto}}
@media(max-width:650px){.gate-card:has(.cover-preview-section){grid-template-columns:1fr}.cover-gallery{grid-template-columns:1fr}.cover-preview a{height:260px}.reaction-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.cover-empty{min-height:90px}.author-reader{padding:.7rem}.reader-answer{padding:.7rem}.author-reader .answer-text{font-size:1rem}.cover-preview-section{grid-column:auto}}
@media(max-width:360px){.evaluation-filters{grid-template-columns:1fr}}

/* Private recovery PIN remains visible in collapsed reader entries. */
.reader-pin-summary{display:inline-flex;align-items:center;gap:.42rem;margin:.15rem .4rem .15rem .65rem;padding:.22rem .55rem;border:1px solid var(--edge);border-radius:.4rem;background:var(--wash);color:var(--ink);white-space:nowrap;vertical-align:middle;font-size:.87rem}
.reader-pin-summary>span{font-size:.72rem;color:var(--muted)}
.reader-pin-number{font-variant-numeric:tabular-nums;letter-spacing:.04em;user-select:all}
.reader-pin-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin:.65rem 0}
.copy-reader-pin{font-size:.84rem}

/* Book tabs stay available in focused reading mode. */
.book-view-tabs{max-width:1520px;margin:auto;padding:0 clamp(.85rem,2.6vw,2.5rem) .55rem;display:flex;gap:.5rem}
.book-view-tabs button{font-size:.93rem;padding:.43rem .95rem;background:var(--paper)}
.book-view-tabs [aria-selected="true"]{background:var(--red);border-color:var(--red);color:var(--card)}
.reader-covers{max-width:1120px;margin:1.5rem auto 3rem;padding:0 clamp(1rem,3vw,2rem);scroll-margin-top:9rem}
.reader-covers h1{font-size:clamp(2rem,4vw,3rem);margin:.4rem 0 .7rem}
.cover-book-title{font-weight:650;margin-bottom:.7rem}
.reader-covers .cover-gallery{margin:1.2rem 0}
.reader-covers .cover-preview a{height:310px}
.cover-save-hint{margin-top:1rem}
body[data-reader-view] .reading,body[data-reader-view] .book p{scroll-margin-top:9rem}
body[data-reader-view] .left,body[data-reader-view] .review{top:8.5rem;max-height:calc(100dvh - 10rem)}
body[data-reader-theme="dark"] .book-view-tabs [aria-selected="true"]{background:#873846;color:#fff;border-color:#b86a76}
@media(max-width:1000px){body[data-reader-view] .review{max-height:none}}
@media(max-width:650px){body[data-reader-view] .left{max-height:none}.book-view-tabs{padding-bottom:.45rem}.reader-covers .cover-preview a{height:260px}}

/* Coverprüfung im geöffneten Buch und bewusstes Arbeiten mit älteren Fassungen */
.volume{flex-direction:row;align-items:flex-start;gap:.65rem}
.volume-description{display:flex;flex:1;min-width:0;flex-direction:column;gap:.35rem;align-self:stretch}
.volume-thumbnail{width:clamp(2.4rem,4.7vw,4rem);height:auto;max-height:6.3rem;object-fit:contain;border-radius:.15rem;flex-shrink:0}
.contents-cover-link{display:block;width:100%;text-align:left;font-size:.84rem;margin:.5rem 0;padding:.6rem;background:var(--card);border-color:var(--edge)}
.contents-cover-link[aria-current="true"]{font-weight:750;background:var(--wash);border-color:var(--red)}
.reader-covers{grid-column:2/-1;width:100%;max-width:none;margin:0;padding:0}
.cover-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.cover-field-full,.cover-summary-full{grid-column:1/-1}
.cover-field-full{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:1.3rem;padding:1.2rem}
.reader-covers .cover-full a{height:auto;min-height:230px;aspect-ratio:3/2;padding:.4rem}
.cover-full img{width:100%;height:100%}
.cover-summary-full .cover-preview a{height:320px}
.cover-review-controls{min-width:0}
.cover-choices{border:0;margin:1rem 0;padding:0;min-width:0}
.cover-choices legend{font-size:.9rem;font-weight:700;margin-bottom:.25rem}
.cover-choices label{display:flex;align-items:flex-start;gap:.5rem;line-height:1.35;margin:.45rem 0}
.cover-choices input{width:1rem;height:1rem;flex-shrink:0;margin:.1rem 0 0;accent-color:var(--red)}
.cover-choice-summary{padding-left:1.1rem;font-size:.9rem}
.cover-feedback-choices{display:flex;flex-wrap:wrap;gap:.4rem;margin:.65rem 0}
.version-warning{max-width:1440px;margin:1rem auto;padding:1rem 1.2rem;border:2px solid #aa7020;border-radius:.6rem;background:#fff3d6;color:#49331b;scroll-margin-top:9rem}
.version-warning strong{font-size:1.1rem}
.version-warning p{margin:.4rem 0}
.version-warning .end-actions{margin:.75rem 0 0;flex-wrap:wrap}
body[data-reader-theme="dark"] .version-warning{background:#49391e;color:#ffefcd;border-color:#ba9559}
button:disabled,select:disabled,textarea:disabled{cursor:default;opacity:.65}
@media(max-width:1000px){.cover-field-full{grid-template-columns:1fr}.reader-covers .cover-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.reader-covers .cover-gallery,.cover-gallery{grid-template-columns:1fr}.cover-field-full{padding:.8rem;gap:.5rem}.volume{gap:.4rem}.volume-thumbnail{width:2.5rem}.volume b{font-size:1.08rem}.version-warning{margin:.75rem .85rem;padding:.8rem}.version-warning .end-actions button{font-size:.86rem}.reader-covers .cover-full a{min-height:0}.cover-summary-full .cover-preview a{height:210px}}

#reader[data-reader-focus="true"] .reader-covers{grid-column:1/-1}
#reader[data-reader-focus="true"] .cover-field-full{grid-template-columns:1fr}

/* Zuschaltbare redaktionelle Themen, unabhängig von Leserkommentaren */
.theme-tension,[data-theme="tension"]{--theme-ink:#855006;--theme-wash:#fff0d8}
.theme-collection,[data-theme="collection"]{--theme-ink:#774082;--theme-wash:#f6e8f9}
.theme-psychology,[data-theme="psychology"]{--theme-ink:#235b89;--theme-wash:#e6f1fb}
.theme-compulsion,[data-theme="compulsion"]{--theme-ink:#26645a;--theme-wash:#e4f3ed}
.theme-controls{margin:.8rem 0 1rem;padding:.75rem .85rem;border:1px solid var(--edge);border-radius:.5rem;background:var(--card);font:inherit}
.theme-controls>summary{cursor:pointer;font-size:.94rem;font-weight:700}
.theme-controls .theme-enable{display:flex;align-items:flex-start;gap:.5rem;margin:.85rem 0 .4rem}
.theme-controls input{flex-shrink:0;width:1rem;height:1rem;margin:.25rem 0 0;accent-color:var(--red)}
.theme-controls fieldset{border:0;margin:.8rem 0;padding:0;min-width:0}
.theme-controls legend{font-size:.86rem;font-weight:650;margin-bottom:.4rem}
#theme-topic-options{display:flex;flex-wrap:wrap;gap:.5rem .9rem}
.theme-controls .theme-option{display:flex;align-items:center;gap:.35rem;font-size:.84rem;margin:0}
.theme-option input{margin:0}
.theme-swatch{display:inline-block;flex-shrink:0;width:.7rem;height:.7rem;border-radius:.15rem;background:var(--theme-ink)}
.theme-navigation{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0}
.theme-navigation button{font-size:.82rem}
#theme-status:empty{display:none}
.reaction-paragraph.theme-marked{background:var(--theme-wash);border-radius:.3rem;padding-left:1rem;margin-left:-.6rem;scroll-margin-top:9rem}
.theme-color-rail{position:absolute;top:0;bottom:0;left:0;width:.5rem;display:flex;border-radius:.25rem;overflow:hidden}
.theme-color-rail>span{flex:1;background:var(--theme-ink)}
.theme-labels{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.3rem;padding:.5rem .25rem .5rem 0;font:500 .76rem/1.4 system-ui,sans-serif}
.theme-note{max-width:100%;min-width:0}
.theme-note summary{cursor:pointer;list-style:none;border:1px solid var(--theme-ink);color:var(--theme-ink);background:var(--theme-wash);border-radius:.3rem;padding:.2rem .4rem;font-weight:700}
.theme-note summary::after{content:" ▾";font-size:.7rem}
.theme-note[open]{flex-basis:100%}
.theme-note[open] summary::after{content:" ▴"}
.theme-reason{padding:.5rem .4rem;color:var(--ink);font-size:.86rem;line-height:1.5}
#chapters .chapter-theme-badges{display:flex;gap:.25rem;flex-wrap:wrap;grid-column:1/-1}
#chapters .chapter-theme-badge{color:var(--theme-ink);background:var(--theme-wash);font:650 .66rem/1.3 system-ui,sans-serif;padding:.1rem .25rem;border-radius:.2rem}
body[data-reader-theme="dark"] .theme-tension,body[data-reader-theme="dark"] [data-theme="tension"]{--theme-ink:#eec37f;--theme-wash:#453622}
body[data-reader-theme="dark"] .theme-collection,body[data-reader-theme="dark"] [data-theme="collection"]{--theme-ink:#dfb5ee;--theme-wash:#3d2c44}
body[data-reader-theme="dark"] .theme-psychology,body[data-reader-theme="dark"] [data-theme="psychology"]{--theme-ink:#a8cff2;--theme-wash:#243747}
body[data-reader-theme="dark"] .theme-compulsion,body[data-reader-theme="dark"] [data-theme="compulsion"]{--theme-ink:#a1dbca;--theme-wash:#243c35}
@media(max-width:650px){.theme-controls{padding:.65rem}.reaction-paragraph.theme-marked{margin-left:0;padding-left:.75rem}.theme-color-rail{width:.35rem}.theme-labels{font-size:.72rem}}
