.collection-pdf-dialog:not([open]){display:none}.collection-pdf-dialog{display:flex;flex-direction:column;max-width:min(100vw - 1.5rem,28rem);width:100%;max-height:min(92vh,720px);height:-moz-fit-content;height:fit-content;padding:0;border:1px solid var(--border-color, rgba(44, 44, 44, .2));border-radius:12px;background:var(--surface-paper, #faf9f6);color:var(--text-color, #1a1a1a);box-shadow:0 16px 48px #0000002e;overflow:hidden}.collection-pdf-dialog::backdrop{background:#00000073}@media(min-width:640px){.collection-pdf-dialog{max-width:min(100vw - 1.5rem,36rem);max-height:min(94vh,920px)}}@media(max-width:639px){.collection-pdf-dialog{max-width:100vw;max-height:100vh;height:100%;min-height:100%;width:100%;border-radius:0;margin:0}}.collection-pdf-dialog-inner{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:inherit;overflow:hidden}@media(max-width:639px){.collection-pdf-dialog-inner{flex:1 1 auto;height:100%;max-height:none;min-height:0}}.collection-pdf-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--border-color, rgba(44, 44, 44, .12));flex-shrink:0}.collection-pdf-dialog-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .55rem;min-width:0;flex:1;font-size:1.05rem;font-weight:600;line-height:1.3;margin:0}.collection-pdf-dialog-action{flex-shrink:0}.collection-pdf-dialog-subject{min-width:0;font-weight:600}.collection-pdf-dialog-subject:before{content:"·";margin-right:.5rem;color:var(--text-muted, #666);font-weight:500}.collection-pdf-dialog-close{background:none;border:none;font-size:1.5rem;line-height:1;cursor:pointer;color:var(--text-muted);padding:.1rem .35rem;flex-shrink:0}.collection-pdf-dialog-body{display:flex;flex-direction:column;overflow-y:auto;padding:.85rem 1rem;flex:0 1 auto;min-height:0;max-height:min(58vh,520px)}@media(min-width:640px){.collection-pdf-dialog-body{max-height:min(78vh,780px)}}@media(max-width:639px){.collection-pdf-dialog-body{flex:1 1 auto;max-height:none;min-height:0}}.collection-pdf-main,.collection-pdf-settings{display:flex;flex-direction:column;gap:.85rem}.collection-pdf-settings{margin-top:.85rem;padding-top:.85rem;border-top:1px solid var(--border-color, rgba(44, 44, 44, .12))}.collection-pdf-section-label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin:0}.collection-pdf-scope,.collection-pdf-contents-select,.collection-pdf-format-block,.collection-pdf-options{display:flex;flex-direction:column;gap:.4rem;margin:0}.collection-pdf-count{margin:0;font-size:.88rem;color:var(--text-muted)}.collection-pdf-hint{margin:0;font-size:.82rem;line-height:1.4;color:var(--text-muted, #666)}.collection-pdf-large-export-note{margin:0;font-size:.75rem;line-height:1.4;color:var(--text-muted, #666)}.collection-pdf-option-stack,.collection-pdf-option-group,.collection-pdf-fieldset{display:flex;flex-direction:column;gap:.4rem;margin:0;padding:0;border:none;min-inline-size:0}.collection-pdf-fieldset{margin-left:1.4rem;gap:.3rem}.collection-pdf-field{display:flex;align-items:flex-start;gap:.45rem;margin:0}.collection-pdf-field input,.collection-pdf-fieldset input{margin:.15rem 0 0;flex-shrink:0}.collection-pdf-toc-wrap{border:1px solid var(--border-color, rgba(44, 44, 44, .12));border-radius:8px;background:#2c2c2c05;overflow:hidden}.collection-pdf-chapter-list{list-style:none;margin:0;padding:0;font-size:.85rem}.collection-pdf-chapter-list li{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;padding:.4rem .65rem;border-bottom:1px solid rgba(44,44,44,.06)}.collection-pdf-chapter-list li:last-child{border-bottom:none}.collection-pdf-chapter-title{flex:1;min-width:0}.collection-pdf-chapter-count{font-variant-numeric:tabular-nums;color:var(--text-muted)}.collection-pdf-contents-head{display:flex;flex-direction:column;gap:.35rem;margin:0}.collection-pdf-contents-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem}.collection-pdf-selection-count{font-size:.82rem;color:var(--text-muted);font-variant-numeric:tabular-nums;margin-right:.25rem}.collection-pdf-btn-tertiary{font-size:.78rem;padding:.15rem .5rem;border-radius:6px;border:1px solid var(--border-color, rgba(44, 44, 44, .25));background:transparent;cursor:pointer;color:var(--text-color)}.collection-pdf-tree-scroll{max-height:min(28vh,220px);overflow-y:auto;border:1px solid var(--border-color, rgba(44, 44, 44, .12));border-radius:8px;padding:.5rem .6rem;background:#2c2c2c05}@media(min-width:640px){.collection-pdf-tree-scroll{max-height:min(32vh,280px)}}.pdf-tree-chapter+.pdf-tree-chapter{margin-top:.65rem;padding-top:.55rem;border-top:1px solid rgba(44,44,44,.06)}.pdf-tree-chapter-row{margin-bottom:.15rem}.pdf-tree-chapter-label,.pdf-tree-discourse-label{display:flex;gap:.4rem;align-items:flex-start;font-size:.84rem;line-height:1.35;cursor:pointer}.pdf-tree-chapter-title{font-weight:600;margin:0}.pdf-tree-id{font-variant-numeric:tabular-nums;color:var(--text-muted);font-weight:500}.pdf-tree-chapter-title .pdf-tree-id{font-weight:600;color:var(--text-color)}.pdf-tree-discourse-title{word-break:break-word;margin:0}.pdf-tree-discourses{list-style:none;margin:.35rem 0 0;padding:0 0 0 .85rem;border-left:1px solid rgba(44,44,44,.1)}.pdf-tree-discourses li{margin:.2rem 0}.pdf-tree-discourse-label--reference{padding:.2rem .35rem;margin:-.2rem -.35rem;border-radius:8px;border:1px dashed color-mix(in srgb,var(--border-color, rgba(44, 44, 44, .25)) 70%,transparent);background:color-mix(in srgb,var(--surface-paper, #faf9f6) 85%,var(--border-color, rgba(44, 44, 44, .08)));opacity:.92}.pdf-tree-ref-badge{display:inline-block;margin-left:.35rem;font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);vertical-align:middle}.collection-pdf-dialog-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--border-color, rgba(44, 44, 44, .12));flex-shrink:0}@media(max-width:639px){.collection-pdf-dialog-footer{margin-top:auto;padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}}.collection-pdf-btn-secondary{padding:.45rem .9rem;font-size:.88rem;border-radius:8px;border:1px solid var(--border-color, rgba(44, 44, 44, .25));background:transparent;cursor:pointer;color:var(--text-color)}.collection-pdf-btn-primary{padding:.45rem 1rem;font-size:.88rem;border-radius:8px;border:none;background:var(--primary-color, #6b21a8);color:#fff;cursor:pointer}.collection-pdf-btn-primary:disabled{opacity:.65;cursor:not-allowed}.collection-pdf-format{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;border:none;margin:0;padding:0;min-inline-size:0}.collection-pdf-format--stack{grid-template-columns:1fr}.collection-pdf-format-option[hidden],.collection-pdf-contents-select[hidden],.collection-pdf-options[hidden],.collection-pdf-large-export-note[hidden]{display:none}.collection-pdf-format-option{display:flex;align-items:flex-start;gap:.45rem;padding:.55rem .6rem;border:1px solid var(--border-color, rgba(44, 44, 44, .2));border-radius:8px;cursor:pointer;font-size:.88rem;line-height:1.3}.collection-pdf-format-option:has(input:checked){border-color:var(--primary-color, #6b21a8);background:color-mix(in srgb,var(--primary-color, #6b21a8) 8%,var(--surface-paper, #faf9f6))}.collection-pdf-format-option input{margin-top:.15rem;flex-shrink:0}.collection-pdf-format-desc{display:block;font-size:.75rem;color:var(--text-muted, #666);font-weight:400;margin-top:.15rem}.collection-pdf-epub-note{margin:0;font-size:.75rem;line-height:1.4;color:var(--text-muted, #666)}.collection-pdf-epub-note[hidden],#pdf-fieldset-layout[hidden],#pdf-fieldset-viz-colors[hidden],.collection-pdf-viz-group[hidden],#pdf-fieldset-viz-colors label[hidden]{display:none}.collection-pdf-field,.collection-pdf-fieldset label{display:flex;align-items:flex-start;gap:.45rem;font-size:.88rem;line-height:1.35;margin:0}.collection-pdf-fieldset[disabled]{opacity:.45;pointer-events:none}.collection-pdf-toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%) translateY(calc(100% + 2rem));max-width:min(90vw,480px);padding:.7rem 1rem;background:#c0392b;color:#fff;font-size:.82rem;line-height:1.4;border-radius:8px;box-shadow:0 4px 16px #00000040;display:flex;align-items:center;gap:.6rem;z-index:10000;transition:transform .3s ease,opacity .3s ease;pointer-events:none;opacity:0}.collection-pdf-toast.visible{transform:translate(-50%) translateY(0);pointer-events:auto;opacity:1}.collection-pdf-toast .toast-msg{flex:1}.collection-pdf-toast .toast-close{background:none;border:none;color:#fff;font-size:1.1rem;cursor:pointer;padding:0 .2rem;opacity:.8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#ask-pdf-fieldset-layout[hidden],#ask-pdf-fieldset-viz-colors[hidden],#ask-pdf-fieldset-viz-colors label[hidden]{display:none}.pdf-tree-chapter-title{word-break:break-word}
