/* Final small consistency fixes shared by the portal and Django admin. */
.team-logo{display:block;width:32px;height:32px;max-width:32px;max-height:32px;object-fit:contain;flex:0 0 32px}
.team-logo.fallback{display:grid;place-items:center}
.leaderboard-team{display:inline-flex;align-items:center;gap:12px;min-height:52px;text-decoration:none}
.leaderboard-team-logo{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);overflow:hidden}
.leaderboard-team-logo .team-logo{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;flex-basis:42px!important}
.leaderboard-team strong{font-size:15px}

/* Keep task evidence clearly separated from the challenge/proof row. */
.tile-detail-page .tile-detail-grid{margin-bottom:24px!important}
.tile-detail-page .tile-history{margin-top:0!important}

/* Live draft discovery surfaces. */
.live-drafts-home{margin-bottom:40px}
.draft-card{min-width:0}
.draft-card-live{border-color:color-mix(in srgb,var(--good) 42%,var(--line));background:linear-gradient(180deg,color-mix(in srgb,var(--good) 5%,var(--surface)),var(--surface))}
.draft-card .action-row{margin-top:18px}

/* Django admin help belongs under the field value, not in the label column. */
.aligned .form-row:not(.checkbox-row) .help,
.aligned .form-row:not(.checkbox-row) .helptext{
  grid-column:2!important;
  width:auto!important;
  min-width:0!important;
  margin:7px 0 0!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}

@media(max-width:900px){
  .aligned .form-row:not(.checkbox-row) .help,
  .aligned .form-row:not(.checkbox-row) .helptext{grid-column:1!important}
}
