/* Shared return path for standalone PWA modules. Keep module-specific actions beside it. */
header .app-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

header .app-nav > * {
  margin-left: 0 !important;
}

header .apps-back {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}

header .apps-back:hover,
header .apps-back:focus-visible {
  border-color: #fff;
}

header .apps-back:focus-visible {
  outline: 3px solid #FA9C2E;
  outline-offset: 2px;
}

/* iPad portrait needs the actions on their own row; 560px was too late. */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
  }

  header .app-nav {
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  header .apps-back {
    font-size: 12px;
    padding: 7px 10px;
  }
}
