.mobile-only,.mobile-actions,.mobile-dismiss{display:none}
@media(max-width:650px){
  body:not(.library-open) .app-header{height:48px;padding:0 13px;align-items:center;gap:10px;background:#fafbf8}
  body:not(.library-open) .brand-group{flex:1;gap:5px;overflow:hidden}
  body:not(.library-open) .brand{font-size:0;margin:0;min-width:34px;width:34px;height:40px;display:grid;place-items:center}
  body:not(.library-open) .brand:before{content:'‹';font:300 31px/1 var(--sans);color:#707768}
  body:not(.library-open) .brand:after{display:none}
  body:not(.library-open) #book-title{font:400 17px/1.2 var(--serif);color:#5c6652;display:block;border:0;padding:0;max-width:calc(100vw - 115px);text-overflow:ellipsis}
  body:not(.library-open) .header-actions{display:none}
  body:not(.library-open) .toolbar{display:none}
  body:not(.library-open) .workspace{height:calc(100dvh - 48px);padding:0 9px calc(76px + env(safe-area-inset-bottom,0px))}
  body:not(.library-open) .book-shell{width:100%;height:100%}
  body:not(.library-open) .edge-tabs,body:not(.library-open) .page-actions{display:none}
  body:not(.library-open) .mobile-only{display:flex}
  .mobile-more-toggle{position:fixed;z-index:105;top:4px;right:12px;width:37px;height:38px;align-items:center;justify-content:center;font:21px/1 var(--sans);letter-spacing:1px;color:#606b54;border-radius:8px}
  .mobile-more-toggle[aria-expanded=true]{background:#edf0e7}
  .mobile-tools{position:fixed;z-index:110;bottom:calc(15px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);align-items:center;gap:7px;padding:5px 8px;border:1px solid #e1e4da;border-radius:13px;background:#fffffdf5;box-shadow:0 3px 15px #36402b0b}
  .mobile-tools button{width:43px;height:38px;display:grid;place-items:center;border-radius:8px;color:#69765d}.mobile-tools button:active,.mobile-tools button[aria-expanded=true]{background:#eef1e7}.mobile-tools svg{width:20px;height:20px;stroke-width:1.5}.mobile-tools>span{width:1px;height:24px;background:#e6e9df;margin:0 1px}
  .mobile-pages-toggle{position:fixed;z-index:109;right:13px;bottom:calc(20px + env(safe-area-inset-bottom,0px));width:37px;height:38px;align-items:center;justify-content:center;color:#7a856e;border-radius:9px;border:1px solid #e1e4da;background:#fffffdf5}.mobile-pages-toggle svg{width:18px;height:18px}
  .mobile-dismiss:not([hidden]){display:block;position:fixed;inset:48px 0 0;z-index:120;background:#333b2b15;cursor:default}
  .mobile-actions:not([hidden]){display:block;position:fixed;z-index:150;bottom:calc(72px + env(safe-area-inset-bottom,0px));left:12px;right:12px;max-height:calc(100dvh - 140px - env(safe-area-inset-bottom,0px));overflow:auto;padding:19px;background:#fffefc;border:1px solid #dce0d3;border-radius:13px;box-shadow:0 8px 25px #36402b18}
  .mobile-actions[data-mode=more]{bottom:auto;top:49px}.mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.mobile-sheet-head h2{font:400 23px/1.2 var(--serif);margin:0;color:#48543f}.mobile-sheet-head button{width:32px;height:32px;font-size:24px;font-weight:300;color:#919985}.mobile-actions #mobile-action-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mobile-actions #mobile-action-list>button{display:flex;align-items:center;gap:10px;padding:11px 9px;text-align:left;color:#647157;font-size:11px;border:1px solid #eceee5;border-radius:7px;background:#fff}.mobile-actions #mobile-action-list>button:active{background:#eef1e6}.mobile-actions #mobile-action-list>button:disabled{opacity:.35}.mobile-actions #mobile-action-list svg{width:17px;height:17px;flex-shrink:0}.mobile-actions #mobile-sync-status{font-size:10px;color:#949c89;margin:0 0 14px}.mobile-actions #mobile-sync-status[hidden]{display:none}
  body:not(.library-open) .panel{z-index:160;left:12px;right:12px;top:auto;bottom:calc(73px + env(safe-area-inset-bottom,0px));width:auto;max-height:calc(100dvh - 140px - env(safe-area-inset-bottom,0px));border-radius:13px;padding:20px;overflow:auto;backdrop-filter:blur(14px);transform:translateY(12px)}body:not(.library-open) .panel.open{transform:none}.panel-head{margin-bottom:15px}.panel-head h2{font-size:24px}.toast{bottom:calc(79px + env(safe-area-inset-bottom,0px))}.corner-nav{bottom:0}.page-number{bottom:4%}.scrap-item.selected .edit-item{padding:7px 11px;bottom:-32px}.resize-handle{width:16px;height:16px;right:-9px;bottom:-9px}.move-handle{width:25px;height:29px;left:-29px}
}
