/* Practice History flags: loaded by base.html, surviving partial-page navigation. */
#practice_history-practice-list.ph-modern-rows .ph-row-flag {
  display:flex; align-items:center; justify-content:center;
  width:32px; min-width:32px; max-width:32px; height:24px;
}
#practice_history-practice-list.ph-modern-rows .ph-row-flag img {
  display:block; width:30px!important; min-width:30px!important; max-width:30px!important;
  height:20px!important; min-height:20px!important; max-height:20px!important;
  object-fit:cover; border-radius:3px; border:1px solid rgba(15,23,42,.22);
  box-sizing:border-box;
}
#practice_history-practice-list.history-cards .history-showcase-flag {
  display:flex; align-items:center; justify-content:center;
  width:42px; min-width:42px; height:34px;
}
#practice_history-practice-list.history-cards .history-showcase-flag img {
  display:block; width:36px!important; min-width:36px!important; max-width:36px!important;
  height:24px!important; min-height:24px!important; max-height:24px!important;
  object-fit:cover; border-radius:3px; border:1px solid rgba(15,23,42,.22);
  box-sizing:border-box; box-shadow:none;
}
/* Preserve the existing uncropped SPQR emblem treatment. */
#practice_history-practice-list.ph-modern-rows .ph-row-flag img[src$="/flags/spqr.svg"],
#practice_history-practice-list.history-cards .history-showcase-flag img[src$="/flags/spqr.svg"] {
  border:0!important; border-radius:0!important; background:transparent!important;
  object-fit:contain!important;
}
