/* Compact action buttons: feed tabs, Follow, profile, toolbar and primary actions share one slim pill (32–36px tall)
   instead of tall 44–52px blocks. Loaded last and scoped through html body (plus ids where older layers use them),
   so it wins over the older theme layers; list-style rows (search results, menus) keep their own shape. */
html body .btn:not(:where(.dm-people-results,.wa-menu,.mw-ms-card,.mw-language-options) .btn){min-height:34px!important;padding:6px 16px!important;border-radius:999px!important;font-size:.8rem;font-weight:700;line-height:1.2;letter-spacing:.01em}
html body .row:has(>.btn){gap:6px;row-gap:6px}

/* Main feed tabs ("Orbit" and "Following"): compact pills. The ids beat the inline padding and the old 44px button floor. */
html body :is(#allFeedBtn,#followingFeedBtn){flex:0 1 auto;min-width:96px;height:34px!important;min-height:34px!important;padding:0 18px!important;border-radius:999px!important;font-size:.82rem!important;font-weight:750;line-height:1!important;display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap}
html body .tabs>.tab{min-height:34px!important;padding:6px 16px!important;border-radius:999px!important;font-size:.8rem;line-height:1.2}

/* Primary actions from other panels (groups, gifts, Go Live) follow the same height. */
html body :is(.mwgs-primary,.mwgs-secondary){min-height:36px!important;padding:6px 18px!important;border-radius:999px!important;font-size:.82rem}
html body .mwg-primary{min-height:36px!important;padding:6px 18px!important;border-radius:999px!important;font-size:.85rem}
html body .mw-live-page .mw-live-primary{min-height:36px!important;padding:6px 20px!important;border-radius:999px!important;font-size:.85rem}

/* Follow buttons in the feed and on suggestion cards. */
html body .follow-mini{display:inline-flex;align-items:center;justify-content:center;height:26px;min-height:26px!important;padding:0 12px!important;border-radius:999px!important;font-size:.7rem;font-weight:750;line-height:1;white-space:nowrap}
html body .suggested-card .follow-btn{min-height:30px!important;height:30px;padding:0 16px!important;border-radius:999px!important;margin-top:10px!important;font-size:.78rem}

/* Profile actions (Follow, Message, Block, Report) sit in one tidy row. */
html body :is(#publicFollow,#msgUserBtn,#blockBtn,#reportUserBtn){min-height:32px!important;padding:5px 14px!important;margin:0!important;flex:0 0 auto}
html body #loggedBox .mwx-account-actions>.btn{min-height:36px!important;padding:6px 16px!important}
html body #settingsSheet :is(.mws-actions,.mws-links) .btn{min-height:36px!important;padding:6px 16px!important;border-radius:999px!important}

/* Top bar account button. */
html body #accountTopBtn{min-height:34px!important;height:34px;padding:0 14px!important;border-radius:999px!important}

@media(max-width:560px){
  html body .btn:not(:where(.dm-people-results,.wa-menu,.mw-ms-card,.mw-language-options) .btn){min-height:32px!important;padding:6px 14px!important;font-size:.78rem}
  html body :is(#allFeedBtn,#followingFeedBtn){height:32px!important;min-height:32px!important;min-width:88px;padding:0 16px!important;font-size:.8rem!important}
  html body #accountTopBtn{height:32px;min-height:32px!important;padding:0 12px!important}
  html body :is(#publicFollow,#msgUserBtn,#blockBtn,#reportUserBtn){padding:5px 12px!important;font-size:.76rem}
}
