/* Phone layout (< 744px) for the lists screens — see the mobile handoff. */
@media (max-width:743.98px){
  /* ---- the filter card: Find across, two pickers to a row, then the link
     to the rest, then the verbs as one wrapping row under them */
  .mlist-bar > .mmore-link{grid-column:1 / -1;justify-self:start;min-height:44px;padding:0 2px;
    font-size:14px;font-weight:600;color:#0E7A63;text-decoration:none}
  .mlist-bar > .mmore{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mlist-bar > .mmore[hidden]{display:none}
  .mlist-bar > .mmore > .inline-field{grid-column:1 / -1;min-width:0}
  .mlist-bar > .bar.tight,.mfit-bar > .bar.tight{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;
    background:none;border:0;border-radius:0;padding:0;margin:0}
  .mlist-bar > .bar.tight > *{flex:1 1 auto;min-width:0;width:auto}
  .mlist-bar > .bar.tight > .btn.iconbtn{flex:0 0 48px}
  .mlist-bar > .bar.tight > .btn.primary,
  .mlist-bar > .bar.tight > .mobile-full{order:-1;flex:1 1 100%}
  .mlist-bar .collapsetools{flex:1 1 100%;display:flex;gap:8px}
  .mlist-bar .collapsetools .btn{flex:1;min-height:44px;font-size:14px}

  /* a bar with one or two wide controls: each gets the whole row */
  .mfit-bar > *{grid-column:1 / -1}
  .mfit-bar > .grow{display:none}
  .mfit-bar .filepick{display:flex;align-items:center;gap:10px;min-width:0}
  .mfit-bar .filepick-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* ---- the list: rows inside one white card */
  .mfit .panel > .mlist{border-top:0}
  .mlist{background:var(--surface)}
  .mlist > .empty{padding:24px 14px;text-align:center}
  .mrow{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;
    border-top:1px solid #EDF0EC;min-width:0}
  .mlist > .mrow:first-child{border-top:0}
  .mrow.clickable{cursor:pointer;-webkit-tap-highlight-color:transparent}
  .mrow.clickable:active{background:#F7FAF7}
  .mrow-face{flex:none;line-height:0}
  .mrow-face .face{width:40px;height:40px;border-radius:50%;font-size:14px;
    background:#DDEEE8;color:#0A5A49}
  .mrow-main{flex:1 1 auto;min-width:0}
  .mrow-title{font-size:16px;font-weight:600;color:#16211C;line-height:1.3;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mrow-sub{font-size:14px;color:#5C6D64;line-height:1.35;margin-top:2px;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mrow-note{white-space:normal}
  .mrow-note .remarkcell{font-size:14px}
  .mrow-val{flex:none;text-align:end;max-width:40%}
  .mrow-num{font-family:var(--mono);font-size:15px;font-weight:600;color:#16211C;white-space:nowrap}
  .mrow-vsub{font-size:12px;color:#5C6D64;margin-top:2px;white-space:nowrap}
  .mrow > .pill{flex:none;font-size:12px}
  .mrow-act{flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:-6px -6px -6px 0;
    border-radius:50%;color:#5C6D64}
  .mrow-chev{flex:none;color:#8A988F;line-height:0;margin-right:-4px}
  .mrow-chev .ico,.mrow-chev svg{transform:rotate(-90deg)}

  /* ---- a row's buttons, in a sheet: one full-width line each */
  .mact-list{display:flex;flex-direction:column;gap:8px}
  .mact-list > .mact{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;
    min-height:52px;padding:0 16px;border-radius:12px;background:var(--surface);
    border:1px solid #E5EAE6;color:#16211C;font-size:16px;font-weight:600;line-height:1.2;text-align:start;
    text-decoration:none}
  .mact-list > .mact.danger{color:#B3261E}

  /* ---- stacked cards (Classes, Standards, Subjects, Rooms, Recycle bin,
     Imports): fit the width, actions a thumb can hit, nothing sideways */
  .mfit .panel{overflow:hidden}
  .mfit .tablewrap.stack{padding:10px 10px 0}
  .mfit .tablewrap.stack td{flex-wrap:wrap}
  .mfit .tablewrap.stack td > *{min-width:0;max-width:100%}
  .mfit .tablewrap.stack td.mstack-acts,.mfit .tablewrap.stack td:last-child:has(.rowacts){
    justify-content:flex-end;padding-top:8px}
  .mfit .tablewrap.stack .rowacts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;
    white-space:normal}
  .mfit .tablewrap.stack .rowacts .iconbtn{min-width:44px;min-height:44px}
  .mfit .tablewrap.stack .rowacts .linkbtn:not(.iconbtn){min-height:44px;display:inline-flex;
    align-items:center;padding:0 8px}
  .mfit .tablewrap.stack td .combo.native{flex:1 1 160px}
  .mfit .panel > header > .bar.tight{display:flex;flex-wrap:wrap;gap:8px;align-items:center;
    background:none;border:0;border-radius:0;padding:0;margin:0}
  .mfit .panel > header > .bar.tight > *{width:auto;min-width:0}
  .mfit .chips{min-width:0}
  .mfit .cards{min-width:0}
  .mfit .pager{min-width:0}
}
