/* My Teams homepage module. Hidden unless the visitor already has teams saved.
   Reserve height before first paint (html.has-my-teams) so the block does not
   shift the server-rendered homepage when it fills in. */
#my-teams-root { display: none; }
html.has-my-teams #my-teams-root {
  display: block;
  min-height: calc(4.5rem + (var(--my-teams-n, 1) * 3.4rem));
  margin: 0 auto 8px;
}
.my-teams {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px 8px;
  margin: 12px 0 4px;
}
.my-teams-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.my-teams-title {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: 0;
}
.my-teams-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.my-teams-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  min-height: 3.25rem;
  align-items: center;
}
.my-teams-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.my-teams-name:hover { text-decoration: underline; }
.my-teams-next {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.my-teams-remove {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  padding: 4px 10px;
}
.my-teams-error { margin: 8px 0; color: var(--text-muted); }
@media (max-width: 640px) {
  .my-teams { padding: 12px 12px 6px; }
  .my-teams-remove { padding: 4px 8px; }
}
