/* R136: rem-based desktop legibility, without zoom, transforms or mobile changes. */
@media screen and (min-width: 980px) {
  html { font-size: clamp(1rem, calc(.85rem + .25vw), 1.25rem); }
  .app-shell.desktop-layout { min-width: 0; }
  .app-shell.desktop-layout :is(input, select, textarea) {
    font-size: max(.9rem, 1em);
    line-height: 1.45;
    max-width: 100%;
  }
  .app-shell.desktop-layout :is(.side-menu button, .side-menu-list button, .side-admin-shortcuts button, #roleQuickMenu button) {
    /* Legacy dense-menu selectors otherwise win with 9–11 px text. */
    font-size: max(.85rem, 14px) !important;
    line-height: 1.35;
    min-height: 40px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .app-shell.desktop-layout :is(.side-nav-quick > p, .side-nav-group-title, .side-menu-group-title) {
    font-size: max(.75rem, 12px);
    line-height: 1.45;
  }
  .app-shell.desktop-layout :is(label, .work-order-task-label, .work-order-active-task-label,
      .work-order-active-group p, .work-order-active-group small, .work-order-role-assignment-notice) {
    font-size: max(.85rem, 14px);
    line-height: 1.45;
  }
  .app-shell.desktop-layout :is(.primary-button, .secondary-button, .danger-button, .small-button) {
    font-size: max(.85rem, 14px);
    line-height: 1.35;
    min-height: 38px;
    white-space: normal;
  }
  .app-shell.desktop-layout :is(.inventory-table, .operational-table, .boss-history-table) :is(td, th) {
    font-size: max(.8rem, 13px);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .app-shell.desktop-layout :is(img, canvas, svg) { max-width: 100%; }
}
