/* The toolbar must occupy its wrapped height before the notice and the workspace. */
.studio-header {
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-block: 8px;
}
.studio-header .brand {
  flex-shrink: 0;
}
.studio-header .brand strong,
.studio-header .brand small {
  white-space: nowrap;
}

@media (min-width: 1100px) and (max-width: 1400px) {
  .studio-header {
    gap: 6px 8px;
    padding-inline: 14px;
  }
  .studio-header .brand {
    gap: 8px;
  }
  .studio-header .brand small {
    display: none;
  }
  .studio-header .header-actions {
    gap: 3px;
  }
  .studio-header .header-actions button,
  .studio-header .mode-switch button {
    padding-inline: 7px;
  }
}

@media (max-width: 700px) {
  .studio-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 36px);
    gap: 5px;
    padding: 6px 12px;
  }
  .studio-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .studio-header .header-actions {
    display: contents;
  }
  .studio-header .header-actions > button {
    grid-row: 1;
    justify-content: center;
    width: 36px;
    min-height: 36px;
  }
  .studio-header .workspace-navigation,
  .studio-header .mode-switch {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .studio-header .workspace-navigation {
    grid-row: 2;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
  }
  .studio-header .mode-switch {
    grid-row: 3;
  }
}
