/* Eric's marked H&R reference: one compact pill geometry across Millan.
   Geometry only: existing fonts, wording, colors, actions and containers stay.
   Layered important rules override the older unlayered size patches cleanly. */
@layer millan-button-shape {
  :is(button, input[type="submit"], input[type="button"], input[type="reset"],
      [role="button"], .btn, .pill, .reviews, .rv-leave,
      .service-link, .tabs a, .mobile-action-bar a,
      .crm-nav a, .quick-action, .view-site, .reports-open, .staff-link) {
    box-sizing: border-box !important;
    border-radius: 999px !important;
    min-height: 32px !important;
    height: auto !important;
    padding: 4px 14px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: fit-content !important;
    border-width: 1px !important;
  }
  :is(button, input[type="submit"], input[type="button"], input[type="reset"],
      [role="button"], .btn, .pill, .reviews, .rv-leave,
      .service-link, .tabs a, .view-site, .reports-open, .staff-link) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Preserve existing equal-width mobile slots and sidebar/list placement. */
  .mobile-action-bar a { width: auto !important; flex: 1 1 0 !important; }
  .crm-nav a,.quick-action,.thread-button { width: 100% !important; }
  .thread-button { display: block !important; }
  input[type="file"]::file-selector-button { border-radius: 999px; min-height: 32px; padding: 4px 14px; }
  .promo-close { width: 32px !important; height: 32px !important; padding: 4px !important; }
  /* Native hidden controls and unopened forms must stay hidden. */
  [hidden] { display: none !important; }
  .lead-form.is-closed > :not(.form-open) { display: none !important; }
}
