#notebook-toggle[hidden],#notebook-dialog [hidden]{display:none}
#notebook-dialog{--ink:#35483b;--muted:#69745c;width:min(1000px,94vw);max-height:92dvh;margin:auto;padding:0;border:1px solid #c3b796;border-radius:5px 14px 14px 5px;background:#f0e9d7;color:var(--ink);box-shadow:0 24px 90px #0008;font:15px/1.65 Georgia,serif;overflow:auto}
#notebook-dialog::backdrop{background:#101b18b8;backdrop-filter:blur(3px)}
#notebook-dialog header{display:flex;justify-content:space-between;align-items:center;padding:25px 32px 20px;border-bottom:1px solid #c5bea9}
#notebook-dialog h2{font:32px/1.2 Georgia,serif;margin:4px 0 0}
#notebook-dialog .book-kicker{font:10px/1.5 var(--ocr,monospace);letter-spacing:.13em;color:var(--muted);margin:0 0 12px}
#notebook-dialog button{font:13px/1.4 var(--ocr,monospace);padding:10px 14px;min-height:44px;cursor:pointer;border:1px solid #adb69e;border-radius:4px;color:var(--ink);background:transparent}
#notebook-dialog button:hover{background:#e1e4cc}
#notebook-dialog button:disabled{opacity:.5;cursor:default}
#notebook-dialog button:focus-visible{outline:2px solid #517560;outline-offset:3px}
#notebook-dialog .book-close{font:28px/1 serif;border:0}
#notebook-dialog .book-spread{display:grid;grid-template-columns:235px minmax(0,1fr)}
#notebook-dialog nav{padding:28px 18px 32px 28px;border-right:1px solid #c5bea9;background:#e8e3d0}
#notebook-dialog nav button{display:block;text-align:left;width:100%;border:0;border-radius:0;padding:14px 8px;border-bottom:1px solid #c5bea9}
#notebook-dialog nav button small{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}
#notebook-dialog nav button span{font:17px/1.3 Georgia,serif}
#notebook-dialog nav button[aria-current=true]{background:#f8f2df;box-shadow:-3px 0 #577360}
#notebook-dialog article{padding:32px 38px 36px;min-width:0;background:linear-gradient(90deg,#b2a98415,transparent 20px)}
#notebook-dialog h3{font:32px/1.15 Georgia,serif;margin:0 0 20px;letter-spacing:-.025em}
#notebook-dialog h4{font:italic 21px/1.3 Georgia,serif;margin:27px 0 10px}
#notebook-dialog p{margin:0 0 16px;overflow-wrap:anywhere}
#notebook-dialog .book-question{font-style:italic;font-size:18px}
#notebook-dialog .book-summary{border-left:2px solid #90a17b;padding-left:17px}
#notebook-dialog svg{display:block;width:100%;height:auto;background:repeating-linear-gradient(0deg,transparent,transparent 21px,#89977815 22px);border:1px solid #c6c9ae;border-radius:4px}
#notebook-dialog .book-caption{font:11px/1.65 var(--ocr,monospace);color:var(--muted);margin:10px 0 22px}
#notebook-dialog .book-measures{padding-left:24px;margin:24px 0}
#notebook-dialog .book-measures li{padding:8px 0 10px}
#notebook-dialog .book-measures strong{font-weight:normal}
#notebook-dialog .book-measures span{display:block;font:11px/1.6 var(--ocr,monospace);color:var(--muted)}
#notebook-dialog .book-measures i{display:block;height:3px;background:#8b9f76;margin-top:7px}
#notebook-dialog .book-actions{display:flex;align-items:center;gap:14px;border-top:1px solid #c5bea9;padding-top:22px}
#notebook-dialog .book-actions span{font:italic 14px/1.5 Georgia,serif;color:var(--muted)}
#notebook-dialog .book-go{background:#3d5949;color:#f7efda;border-color:#3d5949;white-space:nowrap}
#notebook-dialog .book-go:hover{background:#4a6c57}
#notebook-dialog footer{border-top:1px solid #c5bea9;padding:15px 28px;display:flex;align-items:center;gap:18px;justify-content:space-between}
#notebook-dialog footer p{margin:0;font:12px/1.6 var(--ocr,monospace)}
#notebook-dialog footer div{display:flex;gap:8px;flex-shrink:0}
#notebook-dialog .book-empty{padding:30px 0;max-width:400px}
@media(max-width:680px){#notebook-dialog .book-spread{grid-template-columns:1fr}#notebook-dialog nav{border-right:0;border-bottom:1px solid #c5bea9;padding:16px;max-height:160px;overflow:auto}#notebook-dialog article{padding:25px 22px}#notebook-dialog header{padding:20px}#notebook-dialog h3{font-size:27px}#notebook-dialog footer{flex-direction:column;align-items:flex-start;padding:16px 22px}#notebook-dialog .book-actions{align-items:flex-start}}
