.cosmic-pdf{background:var(--cosmic-surface,#19201a);border:1px solid var(--cosmic-border,#53624f);border-radius:12px;padding:16px;min-width:0;color:var(--cosmic-surface-text,#f1efe7)}.pdf-toolbar,.pdf-filters,.pdf-nav{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.cosmic-pdf label{display:grid;gap:5px;font-size:12px}.cosmic-pdf :is(input,select,button){font:inherit;min-height:42px;padding:9px 12px;border:1px solid var(--cosmic-border,#53624f);border-radius:7px;color:var(--cosmic-surface-text,#f1efe7);background:var(--cosmic-surface,#19201a);max-width:100%}.cosmic-pdf input[type=number]{width:85px}.cosmic-pdf button{cursor:pointer}.cosmic-pdf button:disabled{opacity:.5;cursor:default}.pdf-toolbar a{padding:10px;color:var(--cosmic-surface-link,#e6cf8b);font-size:13px}.pdf-filters{margin-top:16px}.pdf-filters label:first-child{flex:1 1 230px}.pdf-filters input{width:100%}.pdf-status{font-size:13px;color:var(--cosmic-surface-muted,#bbbdb3)}.pdf-body{display:grid;grid-template-columns:200px minmax(0,1fr);gap:14px;align-items:start}.pdf-matches{display:flex;flex-direction:column;gap:5px;max-height:70dvh;overflow:auto;font-size:12px}.pdf-matches button{text-align:left;line-height:1.45;flex:none}.pdf-matches button[aria-current=true]{border-color:var(--cosmic-link,#e6cf8b);font-weight:700}.pdf-stage{min-width:0;min-height:220px;max-height:78dvh;overflow:auto;background:#333b35;border-radius:7px;padding:16px}.pdf-sheet{min-width:100%;display:flex;justify-content:safe center}.pdf-sheet canvas{display:block;max-width:none;background:#fff;box-shadow:0 2px 12px #0008}.pdf-page-text{white-space:pre-wrap;font:16px/1.75 var(--cosmic-body,system-ui);padding:22px;background:var(--cosmic-surface,#19201a);color:var(--cosmic-surface-text,#f1efe7);overflow-wrap:anywhere}.pdf-page-text mark{background:var(--cosmic-accent,#d2b975);color:var(--cosmic-on-accent,#161811)}.pdf-nav{justify-content:space-between;margin-top:16px}.cosmic-pdf:fullscreen{overflow:auto;border-radius:0;width:100%;height:100%;padding:24px}.cosmic-pdf:fullscreen .pdf-stage,.cosmic-pdf:fullscreen .pdf-matches{max-height:76dvh}#handbook-pdf-viewer{margin-top:16px}.resource-content>.cosmic-pdf{width:100%}.resource-content:has(>.cosmic-pdf){height:auto;min-height:70vh}#book-original>#book-frame{display:none}.pdf-sheet[hidden],.pdf-page-text[hidden]{display:none!important}@media(max-width:700px){.cosmic-pdf{padding:12px}.pdf-body{grid-template-columns:1fr}.pdf-matches{flex-direction:row;max-height:100px;max-width:100%;overflow:auto}.pdf-matches button{width:145px;max-height:80px;overflow:hidden}.pdf-filters{gap:8px}.pdf-filters label{flex:1 1 120px}.pdf-stage{padding:8px;max-height:70dvh}.pdf-toolbar{gap:8px}.pdf-toolbar label{flex:1 1 80px}.cosmic-pdf input,.cosmic-pdf select{font-size:16px}.pdf-toolbar a{font-size:12px}.pdf-page-text{padding:12px}}

#hx-book>.hx-book-search,#hx-book>.experience-player-tools,#hx-book>#book-status,#hx-book>#book-text{display:none}#book-original{border:0;padding:0;background:none}#book-original>summary{font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center}#handbook-pdf-viewer:empty{min-height:180px}
.cosmic-pdf .pdf-source-note{margin:10px 0 14px;padding:9px 12px;border-left:3px solid var(--cosmic-accent,#d2b975);background:#15231d;color:var(--cosmic-surface-text,#f1efe7);font:13px/1.5 system-ui,sans-serif}.cosmic-pdf .pdf-toolbar{position:sticky;top:0;z-index:2;background:var(--cosmic-surface,#19201a);padding:6px 0 10px}.cosmic-pdf .pdf-matches{scrollbar-width:thin}.cosmic-pdf .pdf-matches button[aria-current=true]{background:#2c443b}.cosmic-pdf .pdf-page-text{max-width:75ch;margin:auto;line-height:1.8}.cosmic-pdf .pdf-stage{scrollbar-width:thin}
