@media(max-width:700px){
  body.mobile-workspace-library{padding-bottom:env(safe-area-inset-bottom,0px)!important;}
  body.mobile-workspace-library .app-shell{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))!important;}
  body.mobile-workspace-library .workspace{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;}
  header.topbar.library-mode{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"libtitle tools" "recent recent"!important;align-items:center!important;justify-content:stretch!important;gap:7px 9px!important;width:100%!important;min-height:0!important;height:auto!important;padding:7px 0 6px!important;}
  header.topbar.library-mode>.library-header-brand:not([hidden]){grid-area:libtitle!important;display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:36px!important;flex:0 1 auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;white-space:nowrap!important;}
  header.topbar.library-mode>.library-header-brand .library-header-copy{min-width:0!important;}
  header.topbar.library-mode>.library-header-brand .library-header-copy strong{font-size:14px!important;line-height:1.15!important;}
  header.topbar.library-mode>.library-header-brand .library-header-copy small{font-size:7px!important;letter-spacing:.12em!important;}
  header.topbar.library-mode>.library-header-brand>.library-recent-home-icon{display:grid!important;flex:0 0 30px!important;width:30px!important;height:30px!important;margin-left:auto!important;}
  header.topbar.library-mode>.top-actions{grid-area:tools!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;gap:5px!important;}
  header.topbar.library-mode>.top-actions>.mobile-brand-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;margin:0!important;}
  header.topbar.library-mode .mobile-brand-tools>#libraryTopNav{display:none!important;}
  header.topbar.library-mode .mobile-brand-tools>.settings-wrap,header.topbar.library-mode .mobile-brand-tools>.settings-wrap>.settings-trigger{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;flex-basis:34px!important;}
  header.topbar.library-mode .mobile-brand-tools>.topbar-clock,header.topbar.library-mode>.top-actions>.archive-search,header.topbar.library-mode>.top-actions>#newcat,header.topbar.library-mode>.top-actions>#add{display:none!important;}
  header.topbar.library-mode>.library-recent-home:not([hidden]){grid-area:recent!important;order:initial!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:44px!important;height:44px!important;margin:0!important;padding:5px 7px!important;overflow:hidden!important;border-radius:11px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-home-head{display:flex!important;flex:0 0 92px!important;width:92px!important;min-width:92px!important;align-items:center!important;gap:4px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-home-title{min-width:0!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-home-title strong{font-size:9px!important;white-space:nowrap!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-list{display:flex!important;flex:1 1 auto!important;align-items:center!important;width:auto!important;min-width:0!important;min-height:0!important;height:32px!important;gap:5px!important;margin:0!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-card{flex:0 0 132px!important;width:132px!important;min-width:132px!important;max-width:132px!important;height:30px!important;min-height:30px!important;padding:3px 6px!important;gap:5px!important;border-radius:8px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-file-icon{width:21px!important;height:23px!important;flex-basis:21px!important;font-size:10px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-card-copy b{font-size:8px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-card-copy small,header.topbar.library-mode>.library-recent-home .library-recent-card-meta{display:none!important;}
  .library-view:not(.fullscreen){display:flex!important;flex-direction:column!important;gap:7px!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;padding:0 0 8px!important;overflow:visible!important;}
  .library-toolbar{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;width:100%!important;max-width:100%!important;min-height:40px!important;height:auto!important;padding:5px!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;}
  .library-toolbar::-webkit-scrollbar{display:none!important;}
  .library-toolbar>*{flex:0 0 auto!important;min-width:0!important;}
  .library-toolbar .library-tool{min-height:31px!important;padding:6px 8px!important;font-size:10px!important;white-space:nowrap!important;}
  .library-toolbar .library-tool .shortcut{display:none!important;}
  .library-workbench,.library-workbench:not(.explorer-collapsed),.library-view.fullscreen .library-workbench,.library-view.fullscreen .library-workbench:not(.explorer-collapsed){display:flex!important;flex:0 0 auto!important;flex-direction:column!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;border-radius:13px!important;}
  .library-explorer{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:26dvh!important;overflow:hidden!important;border-right:0!important;border-bottom:1px solid rgba(126,150,184,.2)!important;}
  .library-workbench.explorer-collapsed .library-explorer{display:none!important;}
  .library-tree{display:flex!important;flex:0 1 auto!important;flex-direction:column!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:26dvh!important;padding:5px 8px!important;overflow:auto!important;}
  .library-tree-row{width:100%!important;min-width:0!important;margin:1px 0!important;padding-left:calc(var(--depth,0)*9px)!important;}
  .library-tree-folder,.library-tree-file{min-height:31px!important;padding:6px 8px!important;gap:7px!important;font-size:10px!important;}
  .library-editor-panel{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;width:100%!important;height:54dvh!important;min-width:0!important;min-height:340px!important;max-height:590px!important;overflow:hidden!important;border-radius:0 0 13px 13px!important;}
  .library-tabstrip{flex:0 0 32px!important;min-height:32px!important;max-height:32px!important;overflow-x:auto!important;}
  .library-editor-empty{display:grid!important;flex:1 1 auto!important;height:100%!important;min-height:0!important;place-content:center!important;justify-items:center!important;gap:10px!important;padding:20px 15px!important;}
  .library-editor-empty .empty-file-icon{width:54px!important;height:54px!important;border-radius:15px!important;font-size:28px!important;}
  .library-editor-empty b{max-width:290px!important;font-size:14px!important;line-height:1.4!important;text-align:center!important;}
  .library-editor-empty span:last-child{max-width:290px!important;font-size:10px!important;line-height:1.5!important;text-align:center!important;}
  .library-code-wrap{grid-template-columns:30px minmax(0,1fr)!important;flex:1 1 auto!important;min-height:0!important;}
  .library-code-gutter{font-size:10px!important;padding:10px 5px 24px 0!important;}
  #libraryTextEditor,#libraryFindHighlight{font-size:11px!important;padding:10px 8px 24px!important;line-height:1.6!important;}
  .library-statusbar{flex:0 0 25px!important;min-height:25px!important;gap:6px!important;padding:4px 7px!important;font-size:8px!important;}
  #libraryCursorState{display:none!important;}
  .library-view.fullscreen{position:fixed!important;inset:0!important;z-index:1000!important;display:flex!important;flex-direction:column!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;margin:0!important;padding:8px!important;overflow:auto!important;background:var(--bg)!important;}
  .library-view.fullscreen .library-workbench{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;}
  .library-view.fullscreen .library-editor-panel{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;}
}
@media(max-width:390px){
  header.topbar.library-mode{gap:6px 7px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-home-head{flex-basis:84px!important;width:84px!important;min-width:84px!important;}
  header.topbar.library-mode>.library-recent-home .library-recent-card{flex-basis:118px!important;width:118px!important;min-width:118px!important;}
  .library-editor-panel{height:52dvh!important;min-height:315px!important;}
}
