/* The host catalog link sits above each independently styled tool. */
.ttt-course-bar {
  position: relative;
  z-index: 1;
  padding: .65rem clamp(1rem, 4vw, 2rem);
  background: #173b45;
  color: #fff;
  font: 600 .875rem/1.4 system-ui, sans-serif;
}
.ttt-course-bar a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.ttt-course-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 560px) {
  header > div:has(> div > #btn-api-settings),
  header > div:has(> div > #btnExportQTI),
  header > div > div:has(> div > #student-profile-btn) {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: .5rem;
    padding-block: .45rem;
  }

  header > div:has(> div > #btnExportQTI) > div:first-child,
  header > div > div:has(> div > #student-profile-btn) > div:first-child {
    min-width: 0;
  }

  main:has(#parameters) > .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  main:has(#parameters) #table-wrap {
    max-width: 100%;
  }
}
