 .folder-tree{font:400 calc(15px * var(--reading-scale,1))/1.5 'Courier New',monospace;color:var(--grey-secondary);padding-top:clamp(16px,3.5svh,36px);--tree-line:var(--grey-divider)}.commonplace-dark .folder-tree{color:#aaa;--tree-line:var(--grey-divider-dark)}.folder-tree ul{list-style:none;margin:0;padding:0 0 0 1.5em}.folder-tree li{position:relative;padding:.22em 0;overflow-wrap:anywhere}.folder-tree li:before{content:'';position:absolute;left:-1em;top:0;bottom:0;border-left:1px solid var(--tree-line)}.folder-tree li:last-child:before{bottom:auto;height:.97em}.folder-tree li:after{content:'';position:absolute;left:-1em;top:.97em;width:.8em;border-top:1px solid var(--tree-line)}.folder-tree a,.folder-tree button{font:inherit;color:var(--site-accent);text-decoration:none;background:none;border:0;padding:0;cursor:pointer;text-align:left}.folder-tree .tree-inactive{opacity:.55}.tree-branch{display:flex;align-items:baseline;gap:.6em}.tree-branch button[aria-controls]{color:inherit;min-width:1.5em;text-align:center}.tree-root{margin-bottom:.25em}.folder-tree [hidden]{display:none!important}.folder-tree #tree-hidden-toggle{margin-top:1.5em;color:var(--grey-secondary)}.commonplace-dark .folder-tree #tree-hidden-toggle{color:#aaa}
.folder-tree .tree-last:after,.folder-tree [aria-current=page]:after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--site-accent);margin-left:.65em;vertical-align:middle}.folder-tree .tree-hidden{opacity:.8}

.tree-post-row{display:flex;align-items:center;gap:6px;white-space:nowrap;min-width:max-content}.folder-tree{overflow-x:auto}.tree-post-row>*{flex:none}.folder-tree .tree-photo-count,.folder-tree .tree-avatar{box-sizing:border-box;width:24px;height:24px;border:1px solid currentColor;border-radius:4px;color:inherit;display:inline-flex;align-items:center;justify-content:center;font:12px 'Courier New',monospace;overflow:hidden;flex:none}.tree-avatar img,.tree-photo-strip img{width:24px;height:24px;object-fit:cover;border-radius:4px;display:block;flex:none}.tree-photo-strip{display:flex;gap:3px;overflow:hidden;width:0;transition:width .8s ease-in-out;margin-right:-6px}.tree-photo-count[aria-expanded=true]+.tree-photo-strip{margin-right:0}.tree-swatches{display:inline-flex;height:1em;flex:none}.tree-swatches i{width:4px;height:100%;display:block}.folder-tree .tree-people{white-space:nowrap;color:inherit}.tree-branch:has(.tree-avatar){align-items:center}.folder-tree .tree-people-toggle{color:inherit;width:1em;text-align:center}@media(prefers-reduced-motion:reduce){.tree-photo-strip{transition:none}}

/* Two-line post entries */
.tree-post-row{min-width:0;white-space:normal;align-items:baseline;gap:6px}.tree-post-row>a{flex:1;min-width:0;overflow-wrap:anywhere}.tree-people-toggle{flex:none}.tree-post-meta{display:flex;align-items:center;gap:6px;margin:4px 0 6px calc(1em + 6px);min-width:0;flex-wrap:wrap}.tree-note-count{font-size:.65em;line-height:0;vertical-align:super;color:var(--grey-secondary);margin-left:2px}.commonplace-dark .tree-note-count{color:#aaa}.tree-post-meta .tree-photo-strip{max-width:100%;flex:none;flex-wrap:wrap;align-content:flex-start}.tree-post-meta .tree-photo-strip:not(:empty){min-height:24px}.tree-post-meta .tree-photo-count[aria-expanded=false]+.tree-photo-strip{min-height:0;height:0}.tree-post-meta .tree-swatches{flex:none}.folder-tree .tree-people{white-space:normal}

.folder-tree .tree-paginated{padding:10px;margin:6px 0;border:1px solid var(--tree-line);border-radius:4px;min-width:0;list-style:none}.tree-pages{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;align-items:stretch;min-width:0}.tree-pages::-webkit-scrollbar{display:none}.folder-tree .tree-panel{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;padding:0;min-height:290px}.folder-tree .tree-panel>li:before,.folder-tree .tree-panel>li:after{display:none}.tree-dots{display:flex;justify-content:center;gap:4px;margin-top:8px}.folder-tree .tree-page-dot{width:24px;height:24px;display:grid;place-items:center}.tree-page-dot:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--site-accent);opacity:.3}.tree-page-dot[aria-current=true]:before{opacity:1}.folder-tree .tree-page-dot:after{display:none}.tree-post-meta .tree-swatches{box-sizing:border-box;height:24px;border:1px solid currentColor;border-radius:4px;overflow:hidden}.tree-swatches i{width:5px;flex:none}.folder-tree .tree-note-count{color:var(--grey-secondary,#999)}.commonplace-dark .folder-tree .tree-note-count{color:#aaa}

/* Keep the entire metadata row on one line during expansion. */
.tree-post-meta{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;min-width:0}.tree-post-meta .tree-photo-strip{flex-wrap:nowrap;max-width:none;min-height:24px;height:24px;flex:none;align-items:center;transition:width .8s ease-in-out,margin-right .8s ease-in-out}.tree-post-meta .tree-photo-count[aria-expanded=false]+.tree-photo-strip{height:24px;min-height:24px}.tree-post-meta .tree-photo-strip img{flex:0 0 24px}@media(prefers-reduced-motion:reduce){.tree-post-meta .tree-photo-strip{transition:none}}

.tree-post-meta .tree-swatches{border:0;border-radius:0;overflow:visible;gap:4px;align-items:center;color:#888;font-size:10px}.folder-tree .tree-swatch{display:block;box-sizing:border-box;width:24px;height:24px;border:1px solid #888;border-radius:4px;flex:none}

.tree-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.tree-post-meta .tree-photo-strip{display:contents}.tree-post-meta .tree-photo-count[aria-expanded=false]+.tree-photo-strip{display:none}.tree-post-meta .tree-swatches{flex-basis:100%;width:100%;height:24px;display:flex;align-items:center;gap:6px;margin:0;border:0;overflow:visible}.tree-post-meta .tree-swatch{width:24px;height:24px;border:1px solid #888;border-radius:4px;box-sizing:border-box;flex:none}.tree-post-meta .swatch-separator{color:#888}.tree-post-meta .tree-photo-strip img{width:24px;height:24px;flex:none;border-radius:4px;object-fit:cover}

.tree-library-button{display:inline-flex;width:24px;height:24px;box-sizing:border-box;align-items:center;justify-content:center;border:1px solid #888;border-radius:4px;color:#888}.tree-loan{font-family:'Courier New',monospace;display:flow-root}.tree-loan-status{float:right;margin-left:8px;color:#888}.tree-loan-status.overdue{color:#39804a}.commonplace-dark .tree-loan-status.overdue{color:#81b88a}.tree-loan>div{font-size:.85em;color:var(--grey-secondary,#888)}

.folder-tree #tree-current-loans{padding:10px;margin:6px 0;border:1px solid var(--tree-line);border-radius:4px;list-style:none;min-width:0}.folder-tree #tree-current-loans[hidden]{display:none}.folder-tree #tree-current-loans>li:before,.folder-tree #tree-current-loans>li:after{display:none}

.folder-tree .tree-library-button{box-sizing:border-box;width:24px;height:24px;border:1px solid var(--grey-secondary,#888);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none;color:var(--site-accent)}.tree-branch:has(.tree-library-button){align-items:center}.folder-tree .tree-library-button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.commonplace-dark .folder-tree .tree-library-button{border-color:#aaa}

/* Position marker overlays the button without participating in flex layout. */
.folder-tree .tree-library-button{position:relative;overflow:hidden}.folder-tree .tree-library-button svg{flex:none;width:16px;height:16px}.folder-tree .tree-library-button.tree-last:after,.folder-tree .tree-library-button[aria-current=page]:after{position:absolute;top:2px;right:2px;width:3px;height:3px;margin:0;pointer-events:none}

.folder-tree ul{box-sizing:border-box}

.tree-trivia-icon{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;vertical-align:middle;margin-right:6px;color:var(--grey-secondary)}.tree-trivia-icon svg{width:16px;height:16px}.commonplace-dark .tree-trivia-icon{color:#aaa}
