/* TabbedPages 2026.11.89 · Open · Save · Close (pages-files-r1.js) */
html.pages-ready body>header#pg-header{grid-template-columns:minmax(180px,1fr) auto auto!important}
@media(max-width:1100px){html.pages-ready body>header#pg-header{grid-template-columns:minmax(140px,1fr) auto auto!important}}
#pg-filebar{grid-column:3;grid-row:1;align-self:center;position:relative;display:flex;align-items:center;gap:6px}
#pg-header #pg-filebar .pg-round{min-width:40px!important;max-width:40px!important;flex:0 0 40px;position:static;grid-column:auto;display:inline-flex;align-items:center;justify-content:center;width:40px!important;height:40px!important;padding:0!important;margin:0;border:1px solid #d4d0c9;border-radius:20px;background:#faf9f7;color:#252420;cursor:pointer}
#pg-filebar .pg-round:hover{background:#fff;border-color:#c7c1b6}
#pg-filebar .pg-round:focus-visible{outline:2px solid #f0a23b;outline-offset:2px}
#pg-filebar .pg-round[aria-expanded="true"]{background:#fff0d7;border-color:#e8b469}
#pg-filebar .pg-round svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
/* the three file menus: one compact list, like the right-click menu */
.pg-fm{position:fixed;z-index:400;min-width:236px;max-width:320px;padding:5px;border:1px solid var(--pg-separator,#e3e1dd);border-radius:10px;background:var(--pg-control,#fff);color:var(--pg-ui-ink,#292827);box-shadow:0 12px 32px rgba(0,0,0,.16),0 1px 3px rgba(0,0,0,.08);font:13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
.pg-fm button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;height:30px;padding:0 10px 0 8px;border-radius:6px;cursor:pointer;color:inherit;white-space:nowrap}
.pg-fm button i{display:inline-flex;width:18px;justify-content:center;flex:0 0 18px;color:var(--pg-ui-muted,#77746e)}
.pg-fm button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pg-fm button span{flex:1}
.pg-fm kbd{font:11.5px -apple-system,system-ui,sans-serif;color:var(--pg-ui-muted,#77746e);background:none;border:0;padding:0}
.pg-fm button:hover:not(:disabled),.pg-fm button:focus-visible{background:var(--pg-selected,#f9ecd9);color:var(--pg-accent-ink,#a85c00)}
.pg-fm button:hover:not(:disabled) i,.pg-fm button:focus-visible i{color:var(--pg-accent-ink,#a85c00)}
.pg-fm button.danger:hover:not(:disabled),.pg-fm button.danger:focus-visible{background:#fdeceb;color:#b3261e}
.pg-fm button.danger:hover:not(:disabled) i{color:#b3261e}
.pg-fm button:disabled{opacity:.4;cursor:default}
.pg-fm hr{border:0;border-top:1px solid var(--pg-separator,#e3e1dd);margin:4px 6px}
#pg-filebar .pg-round[aria-expanded="true"]{background:var(--pg-selected,#f9ecd9)!important;color:var(--pg-accent-ink,#a85c00)!important}
/* Dropbox picker */
dialog.pg-dp{width:min(440px,92vw)}
.pg-dp .pg-dp-note{margin:0 0 8px;font-size:12px;color:var(--pg-ui-muted,#77746e)}
.pg-dp .pg-dp-find{width:100%;box-sizing:border-box;height:32px;padding:0 10px;margin:0 0 8px;border:1px solid var(--pg-separator,#e3e1dd);border-radius:8px;font:inherit;background:var(--pg-control,#fff);color:inherit}
.pg-dp .pg-dp-list{max-height:50vh;overflow:auto;font-size:13px;color:var(--pg-ui-muted,#77746e)}
.pg-dp .pg-dp-list button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border-radius:7px;cursor:pointer;color:var(--pg-ui-ink,#292827)}
.pg-dp .pg-dp-list button:hover,.pg-dp .pg-dp-list button:focus-visible{background:var(--pg-selected,#f9ecd9)}
.pg-dp .pg-dp-list button svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.pg-dp .pg-dp-list span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg-dp .pg-dp-list small{font-size:11.5px;color:var(--pg-ui-muted,#77746e)}
html[data-theme=dark] .pg-fm button.danger:hover:not(:disabled){background:#3a2423;color:#ff9b93}
html body #pg-header #pg-toolbar #zoomsel.pg-zoom,html.pages-ready body #pg-header #zoomsel{width:86px!important;min-width:86px!important;max-width:none!important}
