/* Library uses the whole application viewport, with one return control. */
.is-library-workspace .sidebar,.is-library-workspace .topbar,.is-library-workspace .mobile-nav,.is-library-workspace .mobile-save-status{display:none!important}
.is-library-workspace .workspace{margin-left:0!important;height:100dvh;min-height:0;overflow:hidden}
.is-library-workspace .page-library.content-layout{max-width:none;width:100%;height:100%;margin:0;padding:8px 12px 0;display:block}
.is-library-workspace #main{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.library-workspace-back{display:inline-flex;align-items:center;align-self:flex-start;flex-shrink:0;gap:8px;min-height:36px;padding:8px 12px;border-radius:7px;color:var(--ink);font-size:12px;font-weight:800}
.library-workspace-back:hover{background:var(--surface-alt)}
.library-workspace-back .icon{width:19px;height:19px}
.is-library-workspace .library{width:100%;max-width:none;margin:0;flex:1;display:flex;flex-direction:column;min-height:0;overflow:auto}
.is-library-workspace .library-heading{padding:8px 12px}
.is-library-workspace .library-heading .page-eyebrow,.is-library-workspace .library-heading .page-description{display:none}
.is-library-workspace .library-heading h1{font-size:23px;margin:0}
.is-library-workspace .library-status{padding:0 12px;margin:4px 0 8px}
.is-library-workspace .library:has(.library-browser-layout){overflow:hidden}
.is-library-workspace .library-browser-layout{flex:1;min-height:0;border-radius:0;border-left:0;border-right:0}
.library-browser-layout .library-explorer{display:flex;flex-direction:column;min-width:0;min-height:0}
.library-browser-layout [data-lib-files],.library-browser-layout [data-public-files]{flex:1 1 0;max-height:none!important;min-width:0;min-height:0!important;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.is-library-workspace .library-folder-status{margin-top:auto}
.is-library-workspace .library-sidebar,.is-library-workspace .explorer-details-pane{max-height:100%;min-height:0}
.is-library-workspace .library-drives{grid-template-columns:repeat(auto-fit,minmax(260px,400px));padding:0 12px}
.is-library-workspace .library-section-label,.is-library-workspace .library-open-hint{margin-left:12px}
/* Keep names inside their tracks in both shared and private Explorer views. */
.library-files,.library-file,.library-file-open,.library-file-open>span{min-width:0;max-width:100%}
.library-file-open{overflow:hidden}
.library-file-open>.icon{flex-shrink:0}
.library-files:not(.is-grid) .library-file-open>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-files.is-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));align-content:start}
.library-files.is-grid .library-file{min-width:0;overflow:hidden}
.library-files.is-grid .library-file-open{align-items:center;text-align:center;width:100%}
.library-files.is-grid .library-file-open>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;line-height:1.5;max-height:3em;width:100%}
.library-files.is-grid .is-folder{border:1px solid transparent;border-radius:6px!important;background:transparent;box-shadow:none;padding:16px 12px}
.library-files.is-grid .is-folder:hover{background:var(--surface-alt)}
.library-files.is-grid .is-folder.is-selected{background:var(--accent-light)}
.library-files.is-grid .is-folder .library-file-open>.icon{width:58px;height:58px;color:#dfb249}
.library-files.is-grid .is-folder .library-file-size{display:none}
.library-files.is-grid .library-file-size{text-align:center}
@media(max-width:650px){
 .is-library-workspace .page-library.content-layout{padding:4px 0 0}
 .is-library-workspace #main{min-height:0}
 .is-library-workspace .library-heading{flex-direction:row;align-items:center;gap:6px;padding:8px}
 .is-library-workspace .library-heading>div{width:100%;flex:0 0 100%;min-width:0}
 .is-library-workspace .library-heading h1{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .is-library-workspace .library-heading .btn{flex:0 1 auto;width:auto;min-height:34px;padding:6px;font-size:8px}
 .is-library-workspace .library-heading{flex-wrap:wrap}
 .is-library-workspace .explorer-details-pane{top:50px;bottom:12px;max-height:none}
 .is-library-workspace .library-undo-toast{top:52px}
 .library-files.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
