/* Mini App layout. Rides on top of explorer.css and reuses its variables,
   so the two stay in visual sync - change a colour there, it lands here. */

body.mini{padding:12px 12px 32px;background:var(--bg)}
.mini .wrap{display:block;height:auto}          /* undo the explorer's sidebar grid */

.mhead{display:flex;align-items:stretch;gap:10px;margin-bottom:14px}
.mteam{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px;
  align-items:center;text-align:center;background:var(--panel);
  border:1px solid var(--line);border-radius:12px;padding:12px 8px}
.mteam.win{border-color:var(--ok)}
.mteam img{width:44px;height:44px;border-radius:9px;object-fit:cover}
.mteam .tn{font-weight:650;font-size:13px;line-height:1.25;
  overflow-wrap:anywhere}                       /* full names, never truncated */
.mteam .pts{font-size:26px;font-weight:700;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums}
.mteam .rec{font-size:11px;color:var(--muted)}
.mvs{flex:0 0 auto;display:flex;align-items:center;color:var(--muted);
  font-size:12px;letter-spacing:.08em;text-transform:uppercase}

/* One matchup row: player | position tag | player */
.mrow{display:grid;grid-template-columns:1fr 46px 1fr;align-items:center;
  gap:6px;padding:5px 4px;border-bottom:1px solid var(--line)}
.mrow:last-child{border-bottom:0}
.mrow .side{display:flex;align-items:center;gap:6px;min-width:0}
.mrow .side.r{flex-direction:row-reverse;text-align:right}
.mrow .side img{width:26px;height:26px;border-radius:5px;object-fit:contain;
  flex:0 0 auto;background:var(--sunk)}
.mrow .who{min-width:0;flex:1 1 auto}
.mrow .nm{font-size:12.5px;line-height:1.25;overflow-wrap:anywhere}
.mrow .m{font-size:10.5px;color:var(--muted)}
.mrow .p{font-variant-numeric:tabular-nums;font-weight:650;font-size:13px;
  flex:0 0 auto;min-width:30px}
.mrow .p.z{color:var(--muted);font-weight:400}
.mrow .mid{display:flex;justify-content:center}
.mrow .dash{color:var(--muted);font-size:12px;opacity:.55;padding:0;
  text-align:center}

.totals{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;
  padding:8px 4px;font-variant-numeric:tabular-nums}
.totals .lbl{text-align:center;color:var(--muted);font-size:11px;
  text-transform:uppercase;letter-spacing:.06em}
.totals .a{text-align:left;font-weight:650}
.totals .b{text-align:right;font-weight:650}
.totals .big{font-size:16px}

/* Waiver order */
.wrow .lead{font-variant-numeric:tabular-nums;font-weight:700;color:var(--muted);
  min-width:26px;text-align:left}
.wrow .t span{overflow-wrap:anywhere}

.foot{margin-top:16px;text-align:center;font-size:12px;color:var(--muted)}
.foot a{color:var(--accent)}
.stale{margin-bottom:10px;padding:8px 10px;border-radius:8px;
  background:var(--t-commish-bg);color:var(--t-commish);font-size:12px}
