@media screen {
 body :is(.bottom-actions,.bottom-page-tabs) {
  display:grid!important;
  width:100%!important;
  max-width:940px!important;
  gap:10px!important;
  margin-inline:auto!important;
 }
 body .bottom-actions.bottom-actions {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  margin-block:16px 0!important;
 }
 body .bottom-page-tabs {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  margin-block:10px 16px!important;
 }
 body :is(.bottom-actions,.bottom-page-tabs) > button {
  min-width:0;
  min-height:46px!important;
  padding:8px 6px!important;
  font-size:clamp(13px,1.2vw,16px)!important;
  line-height:1.3!important;
  border-radius:10px!important;
  white-space:normal;
  overflow-wrap:anywhere;
 }
 @media(max-width:600px) {
  body .bottom-actions.bottom-actions {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body :is(.bottom-actions,.bottom-page-tabs) {gap:8px!important}
 }
}

@media screen and (min-width: 768px) and (pointer: fine) {
 .page-tabs:not(.bottom-page-tabs) { gap: 14px; }
 .page-tabs:not(.bottom-page-tabs) > button {
  min-width: 144px;
  padding-inline: 18px;
 }
}

@media screen and (min-width:601px) {
 body .bottom-actions.bottom-actions:has(> :is(#saveAllLocal,#saveAllTeam)) {
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
 }
}

@media screen and (min-width:768px) and (pointer:fine) {
 body:has(#safePage:not([hidden]),#pettyPage:not([hidden])) :is(.bottom-actions,.bottom-page-tabs),
 #counter:is([data-part="safe"],[data-part="petty"]) :is(.bottom-actions,.bottom-page-tabs) {
  max-width:750px!important;
  gap:8px!important;
 }
 body:has(#safePage:not([hidden]),#pettyPage:not([hidden])) :is(.bottom-actions,.bottom-page-tabs)>button,
 #counter:is([data-part="safe"],[data-part="petty"]) :is(.bottom-actions,.bottom-page-tabs)>button {
  min-height:38px!important;
  padding:6px 5px!important;
  font-size:13px!important;
 }
}
