/* v71.40: one layout owner for mobile canvas actions; older 37-39 references removed */
/* The Edit tab in canvas-preview.js does nothing. No feature is removed by hiding it. */
.canvas-view-tabs > button:first-child:not(#canvas-preview-open){display:none!important}
@media (max-width:900px){
 #pg711-version{display:none!important}
 header .top-actions > #undo,
 header .top-actions > #redo,
 header .top-actions > .pg740-top-preview{display:none!important}
 /* Heading: stable two-row layout, never shared with free-floating canvas shortcuts. */
 body #workspace .workspace-heading,
 body #top-tools .workspace-heading{
   display:flex!important; flex-direction:column!important;align-items:stretch!important;
   justify-content:flex-start!important;gap:9px!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   height:auto!important;min-height:0!important;padding:10px 12px!important;
   margin:0!important;box-sizing:border-box!important;border-radius:17px!important;
   overflow:visible!important;
 }
 body .workspace-heading .pg740-meta{
   display:flex!important; align-items:center!important;justify-content:space-between!important;
   min-width:0!important;gap:8px!important;width:100%!important;
 }
 body .workspace-heading .pg740-meta #doc-name{
   display:block!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;
   white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
   font-size:12px!important;font-weight:700!important;line-height:1.4!important;
 }
 body .workspace-heading .pg740-meta #doc-size{
   display:block!important;flex:0 0 auto!important;min-width:0!important;max-width:48%!important;
   margin:0!important;padding:5px 8px!important;border-radius:9px!important;
   font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;
 }
 body .workspace-heading .canvas-view-tabs,
 body .workspace-heading #canvas-preview-open,
 body .workspace-heading .pg54-compare,
 body .workspace-heading #pg54-history{display:none!important}
 body .workspace-heading .pg740-actions{
   position:relative!important;inset:auto!important;transform:none!important;
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
   gap:7px!important;width:100%!important;max-width:100%!important;
   min-height:0!important;height:auto!important;box-sizing:border-box!important;
   padding:6px!important;margin:0!important;
   border-radius:15px!important;background:rgba(244,247,255,.9)!important;
   border:1px solid rgba(100,116,180,.14)!important;
 }
 body .workspace-heading .pg740-actions > .pg740-action{
   appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;
   position:relative!important;inset:auto!important;transform:none!important;
   width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;
   padding:0!important;margin:0!important;border-radius:12px!important;
   border:1px solid rgba(124,143,194,.2)!important;
   background:#fff!important;color:#263454!important;
   box-shadow:0 2px 6px rgba(36,50,90,.06)!important;
 }
 body .workspace-heading .pg740-action svg{
   width:20px!important;height:20px!important;display:block!important;
   fill:none!important;stroke:currentColor!important;stroke-width:1.85!important;
   stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none!important;
 }
 body .workspace-heading .pg740-action[disabled]{opacity:.45!important}
 body .workspace-heading .pg740-action.pg740-active{
   background:#5564f5!important;color:white!important;border-color:#5564f5!important;
 }
 html[data-theme='dark'] body .workspace-heading .pg740-actions{background:rgba(28,35,61,.95)!important;border-color:rgba(127,145,199,.25)!important}
 html[data-theme='dark'] body .workspace-heading .pg740-action{background:#252f4d!important;color:#f0f3ff!important;border-color:rgba(125,143,200,.28)!important}
 html[data-theme='dark'] body .workspace-heading .pg740-action.pg740-active{background:#5564f5!important;color:white!important}
}
@media (min-width:901px){body .workspace-heading .pg740-actions{display:none!important}}
