/* Phone-only presentation layer. Existing controls, routes and permissions remain authoritative. */
#fmBottomNav{display:none}
@media screen and (max-width:760px){
 body.ui-v2-preview.workbench-shell{--fm-top:60px;--fm-bottom:calc(66px + env(safe-area-inset-bottom,0px));--fv-rail:0px;--fv-menu:0px;margin:0!important;padding:calc(var(--fm-top) + env(safe-area-inset-top,0px) + 14px) 12px calc(var(--fm-bottom) + 20px)!important;transition:none!important;background:#f6f7f9!important}
 body.ui-v2-preview.workbench-shell #wbTopbar{position:fixed!important;inset:0 0 auto 0!important;box-sizing:border-box!important;width:100%!important;height:calc(var(--fm-top) + env(safe-area-inset-top,0px))!important;padding:env(safe-area-inset-top,0px) 10px 0!important;flex-wrap:nowrap!important;gap:6px!important;background:#ffffffed!important;z-index:75}
 body.ui-v2-preview #wbHistoryTools{display:flex;flex:none;gap:0}
 body.ui-v2-preview #wbHistoryTools button{width:40px!important;min-height:44px!important;padding:8px!important}
 
 body.ui-v2-preview .wb-trail{flex:1;min-width:0!important;gap:0!important}
 body.ui-v2-preview .wb-trail>:not(#wbPageTitle){display:none!important}
 body.ui-v2-preview #wbPageTitle{font-size:16px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243348!important}
 body.ui-v2-preview #fvGlobalSearch{width:40px;min-height:44px!important;padding:10px!important;flex:none}
 body.ui-v2-preview #fvQuickCreate{display:none!important}
 body.ui-v2-preview #wbTopActions{margin:0!important;max-width:100%;display:flex;flex-wrap:wrap;gap:8px;padding:10px!important}
 body.ui-v2-preview #wbTopbar>.fm-mobile-fold{position:relative;margin:0;flex:none;border:1px solid #e1e7ef;border-radius:8px}
 body.ui-v2-preview #wbTopbar>.fm-mobile-fold>summary{min-height:44px;padding:8px;font-size:13px}
 body.ui-v2-preview #wbTopbar>.fm-mobile-fold>summary::after{display:none}
 body.ui-v2-preview #wbTopbar>.fm-mobile-fold>#wbTopActions{position:absolute;top:calc(100% + 8px);right:0;width:240px;max-width:calc(100vw - 24px);background:white;border:1px solid #dfe5ed;border-radius:12px;box-shadow:0 8px 24px #22354b18}
 body.ui-v2-preview .fm-mobile-fold .fm-mobile-fold{margin:0 10px 10px}

 body.ui-v2-preview #wbTopActions>button{padding:8px!important;font-size:12px!important;min-height:44px!important;white-space:nowrap}
 
 body.ui-v2-preview #wbTopActions #wbMore>summary{font-size:13px!important;padding:8px!important;min-width:44px;min-height:44px;box-sizing:border-box}
 
 body.ui-v2-preview.workbench-shell #wbNotice{position:static!important;height:auto!important;min-height:0!important;padding:0!important;margin:0 0 10px!important;font-size:12px!important;background:transparent!important;overflow-wrap:anywhere}
 body.ui-v2-preview #wbNotice:empty{display:none!important}
 body.ui-v2-preview #fvRail,body.ui-v2-preview #fvSecondary{display:none!important}
 body.ui-v2-preview.fv-mobile-menu{overflow:hidden!important}
 body.ui-v2-preview.fv-mobile-menu #fvRail{display:flex!important;position:fixed;top:calc(var(--fm-top) + env(safe-area-inset-top,0px));bottom:var(--fm-bottom);left:0;width:60px;box-sizing:border-box;padding:12px 7px;z-index:91;background:#f0f3f7!important;overflow-y:auto}
 body.ui-v2-preview.fv-mobile-menu #fvRailNav{margin-top:10px;gap:6px}
 body.ui-v2-preview.fv-mobile-menu #fvRail>a{width:44px;height:44px}
 body.ui-v2-preview.fv-mobile-menu #fvRail button.fv-rail-item{width:44px;min-height:44px!important}
 body.ui-v2-preview.fv-mobile-menu #fvSecondary{display:flex!important;position:fixed;top:calc(var(--fm-top) + env(safe-area-inset-top,0px));bottom:var(--fm-bottom);left:60px;width:min(260px,calc(100vw - 80px));z-index:90;background:#fff!important;border-right:1px solid #dfe5ee;border-radius:0 12px 12px 0}
 body.ui-v2-preview #fvNavBrand{padding:16px!important;min-height:0!important}
 body.ui-v2-preview #fvNavBrand>img{width:110px!important}
 body.ui-v2-preview #fvSecondary h2{margin:16px 16px 8px!important}
 body.ui-v2-preview #fvSecondaryNav button{min-height:46px!important;max-height:none!important;height:auto!important}
 body.ui-v2-preview #fvSecondary footer{padding:12px;font-size:11px}
 body.ui-v2-preview.fv-mobile-menu #fvOverlay{display:block!important;position:fixed;inset:calc(var(--fm-top) + env(safe-area-inset-top,0px)) 0 var(--fm-bottom) 0!important;background:#15283c55!important;z-index:89!important;border-radius:0!important;margin:0!important}
 body.ui-v2-preview #fmBottomNav{display:flex!important;position:fixed;bottom:0;left:0;right:0;z-index:95;box-sizing:border-box;min-height:var(--fm-bottom);padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px));gap:4px;background:#ffffffed;border-top:1px solid #e1e7ef;backdrop-filter:blur(14px)}
 body.ui-v2-preview #fmBottomNav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;flex:1;min-width:0;min-height:54px!important;margin:0!important;border:0!important;border-radius:10px!important;padding:5px!important;background:transparent!important;color:#68788c!important;font-size:11px!important;box-shadow:none!important}
 body.ui-v2-preview #fmBottomNav button svg{width:21px;height:21px}
 body.ui-v2-preview #fmBottomNav button[aria-current=page],body.ui-v2-preview #fmBottomNav button[aria-expanded=true]{color:#2855ff!important;background:#eef2ff!important;font-weight:600!important}
 body.ui-v2-preview #fmBottomNav button[hidden]{display:none!important}
 body.ui-v2-preview.workbench-shell :is(main,#library,#wbToolHost,#manualReader5,#fvEditorHeader){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;margin-left:0!important;margin-right:0!important}
 body.ui-v2-preview .fv-page-heading{gap:12px;margin-bottom:12px}
 body.ui-v2-preview .fv-page-heading h1{font-size:22px!important;margin:0!important;letter-spacing:0}
 body.ui-v2-preview .fv-page-heading p{font-size:12px!important;margin:4px 0 0!important}
 body.ui-v2-preview .fv-eyebrow{display:none}
 body.ui-v2-preview .fv-heading-actions{display:flex;flex-wrap:wrap;gap:8px}
 body.ui-v2-preview .fv-heading-actions button{min-height:42px!important}
 body.ui-v2-preview.workbench-shell #library #mdQuickSearch{position:sticky;top:calc(var(--fm-top) + env(safe-area-inset-top,0px));z-index:35;margin:0 0 10px;padding:12px!important;background:#f8fbff;border-radius:12px}
 body.ui-v2-preview #mdQuickSearch>strong{font-size:14px}
 body.ui-v2-preview #mdQuickSearch .md-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:end}
 body.ui-v2-preview #mdQuickSearch input{font-size:16px!important;min-height:46px!important;width:100%}
 body.ui-v2-preview #mdQuickSearch label{font-size:12px!important}
 body.ui-v2-preview .fm-mobile-fold{background:white;border:1px solid #e1e7ef;border-radius:10px;margin:0 0 10px;min-width:0}
 body.ui-v2-preview .fm-mobile-fold>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:46px;padding:10px 12px;box-sizing:border-box;cursor:pointer;font-size:14px;color:#334a62;list-style:none}
 body.ui-v2-preview .fm-mobile-fold>summary::after{content:'展开⌄';font-size:12px;color:#65798d}
 body.ui-v2-preview .fm-mobile-fold[open]>summary::after{content:'收起⌃'}
 body.ui-v2-preview .fm-mobile-fold>summary::-webkit-details-marker{display:none}
 body.ui-v2-preview .fm-mobile-fold #fvFilters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 12px 12px!important;border:0!important;margin:0!important;background:none!important}
 body.ui-v2-preview .fm-mobile-fold #fvFilterMore{grid-column:1/-1}
 body.ui-v2-preview .fm-mobile-fold #fvLibraryActions{padding:0 12px 12px!important;gap:8px;flex-wrap:wrap;min-width:0}
 body.ui-v2-preview.workbench-shell #library #productGrid{gap:14px!important;grid-template-columns:minmax(0,1fr)!important}
 body.ui-v2-preview.workbench-shell #productGrid .productCard{border-radius:14px!important;min-width:0;width:100%;box-sizing:border-box}
 body.ui-v2-preview.workbench-shell #productGrid .product-media5{height:184px!important;min-height:0!important;padding:8px!important;background:#f5f7fa!important}
 body.ui-v2-preview.workbench-shell #productGrid .product-media5>img{height:168px!important;max-width:100%!important;object-fit:contain}
 body.ui-v2-preview.workbench-shell #productGrid .productInfo{padding:14px!important;min-width:0}
 body.ui-v2-preview.workbench-shell #productGrid .productInfo :is(b,h3){color:#243348!important;font-size:18px!important;line-height:1.45}
 body.ui-v2-preview.workbench-shell #productGrid .productInfo>p{font-size:13px!important;margin:7px 0!important;overflow-wrap:anywhere}
 body.ui-v2-preview.workbench-shell #productGrid .productInfo>button{min-height:44px!important;font-size:13px!important}
 body.ui-v2-preview.workbench-shell #productGrid .md-card-actions{margin:12px 0}
 body.ui-v2-preview.workbench-shell #productGrid .md-card-actions>[data-md-card-preview]{font-size:15px!important;min-height:48px!important;background:#2855ff!important;color:#fff!important;border-color:#2855ff!important}
 body.ui-v2-preview.workbench-shell #productGrid .md-card-buttons>a{background:#fff!important;color:#345b84!important;border-color:#d8e2ee!important}
 body.ui-v2-preview.workbench-shell #productGrid .md-card-buttons>a,.md-card-buttons>button{font-size:13px!important;min-height:44px!important}
 body.ui-v2-preview.workbench-shell #productGrid .md-card-actions>small{font-size:12px}
 body.ui-v2-preview.workbench-shell #productGrid.fv-list-view{background:transparent!important;border:0!important;overflow:visible!important}
 body.ui-v2-preview #fvTableHead{display:none!important}
 body.ui-v2-preview #productGrid .fv-product-row{display:grid;grid-template-columns:24px 64px minmax(0,1fr);min-width:0!important;gap:8px;padding:12px;margin-bottom:12px;background:white;border:1px solid #e1e7ef;border-radius:12px}
 body.ui-v2-preview .fv-product-row>span:nth-of-type(n+2){grid-column:2/-1}
 body.ui-v2-preview .fv-product-row .fv-row-actions{grid-column:1/-1;min-width:0;display:flex;flex-wrap:wrap}
 body.ui-v2-preview .fv-row-actions .md-card-actions{min-width:0}
 body.ui-v2-preview.workbench-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;box-sizing:border-box;font-size:16px!important;min-height:44px}
 body.ui-v2-preview.workbench-shell :is(button,summary,.button){touch-action:manipulation}
 body.ui-v2-preview.workbench-shell :is(button,.button){min-height:44px}
 body.ui-v2-preview.workbench-shell .grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.ui-v2-preview.workbench-shell .paper{padding:14px!important;margin-bottom:14px!important;border-radius:12px!important}
 body.ui-v2-preview #fvEditorTabs{gap:16px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
 body.ui-v2-preview #fvEditorTabs button{flex:none;min-height:44px}
 body.ui-v2-preview :is(#manualReader5,#readerContent5){padding:12px!important}
 body.ui-v2-preview .reader-toolbar5{padding:14px!important;gap:12px;min-width:0}
 body.ui-v2-preview .reader-toolbar5 nav{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 body.ui-v2-preview .reader-toolbar5 nav button{flex:1;min-width:120px;min-height:44px}
 body.ui-v2-preview .reader-toolbar5 h2{font-size:21px!important;margin:4px 0!important;overflow-wrap:anywhere}
 body.ui-v2-preview .reader-images5 figure{min-width:0!important;flex-basis:100%}
 body.ui-v2-preview :is(.reader-table5,.five-tool-scroll5){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 body.ui-v2-preview :is(.attachment-location5,.location-row){overflow-wrap:anywhere}
 body.ui-v2-preview :is(.row5,.toolbar5){flex-wrap:wrap;gap:8px}
 body.ui-v2-preview .stats5{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.ui-v2-preview .stats5 article{padding:12px!important;min-width:0}
 body.ui-v2-preview #orderList .order5{min-width:0!important;max-width:100%;padding:14px!important;overflow-wrap:anywhere}
 body.ui-v2-preview .wb-order-head{display:none!important}
 body.ui-v2-preview.wb-pilot #orderList .order5>.row5:last-child{display:flex!important;flex-direction:column;gap:10px;min-width:0!important}
 body.ui-v2-preview #orderList .order5 nav{display:flex;flex-wrap:wrap;gap:8px}
 body.ui-v2-preview :is(#wbPaging,#fvLibraryFooter){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 body.ui-v2-preview #wbDetailAnchors{position:static;display:flex;overflow-x:auto;max-width:100%;white-space:nowrap}
 body.ui-v2-preview :is(.wb-more>div,.wb-row-more>div){max-width:calc(100vw - 32px);right:0;z-index:80}
 body.ui-v2-preview.workbench-shell dialog{box-sizing:border-box;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow:auto}
 body.ui-v2-preview.workbench-shell dialog.md-quick-dialog{width:calc(100vw - 16px)!important;margin:auto;padding:14px!important;max-height:calc(100dvh - 16px)!important}
 body.ui-v2-preview .md-quick-dialog .md-quick-heading{position:sticky;top:-14px;z-index:4;background:#fff;margin:-14px -14px 0;padding:12px 14px;border-bottom:1px solid #e4eaf0}
 body.ui-v2-preview .md-quick-dialog .manual-direct-download{border:0;padding:8px 0!important;background:#fff}
 body.ui-v2-preview .md-quick-dialog .manual-direct-download nav{bottom:-14px;background:#fff;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #e4eaf0}
 body.ui-v2-preview :focus-visible{outline:3px solid #2855ff70!important;outline-offset:2px}
}
@media screen and (max-width:360px){
 body.ui-v2-preview #wbTopActions>button{max-width:76px;overflow:hidden;text-overflow:ellipsis}
 body.ui-v2-preview #fmBottomNav button{font-size:10px!important}
 body.ui-v2-preview .fm-mobile-fold #fvFilters{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){#fmBottomNav,#fmBottomNav *{transition:none!important}}
@media print{#fmBottomNav{display:none!important}.fm-mobile-fold{display:none!important}}
